21#ifndef SAYONARASELECTIONVIEW_H
22#define SAYONARASELECTIONVIEW_H
24#include "Utils/Pimpl.h"
29class QAbstractItemView;
31class QItemSelectionModel;
39 enum class SelectionType
47 [[nodiscard]]
virtual IndexSet selectedItems()
const;
52 void selectRows(
const IndexSet& rows,
int minimumColumn = -1,
int maximumColumn = -1);
53 void selectItems(
const IndexSet& indexes);
56 [[nodiscard]]
virtual SelectionViewInterface::SelectionType selectionType()
const;
57 [[nodiscard]]
virtual int mapModelIndexToIndex(
const QModelIndex& idx)
const = 0;
58 [[nodiscard]]
virtual ModelIndexRange mapIndexToModelIndexes(
int idx)
const = 0;
60 virtual bool handleKeyPress(QKeyEvent* e);
Definition: SelectionView.h:35
A set structure. Inherited from std::set with some useful methods. For integer and String this set is...
Definition: Set.h:37
Definition: typedefs.h:33