00001 #ifndef COSTTYPESELECTIONMODEL_H 00002 #define COSTTYPESELECTIONMODEL_H 00003 00004 #include <QItemSelectionModel> 00005 #include "../Models/costtypefiltermodel.h" 00006 00007 class CostTypeSelectionModel : public QItemSelectionModel 00008 { 00009 Q_OBJECT; 00010 00011 public: 00012 CostTypeSelectionModel(CostTypeFilterModel *model); 00013 00014 public slots: 00015 void select(const QModelIndex &index, QItemSelectionModel::SelectionFlags flags); 00016 00017 private slots: 00018 void affectedRowIndexes(QModelIndexList *selectedIndexes, QModelIndex index); 00019 00020 signals: 00021 void enableEditRemoveActions(bool); 00022 }; 00023 00024 00025 #endif // COSTTYPESELECTIONMODEL_H