- protected Q_SLOTS:
- ///
- void availableChanged(const QModelIndex & idx, const QModelIndex &);
- ///
- void selectedChanged(const QModelIndex & idx, const QModelIndex &);
- ///
- void addPB_clicked();
- ///
- void deletePB_clicked();
- ///
- void upPB_clicked();
- ///
- void downPB_clicked();
- ///
- void availableLV_clicked(const QModelIndex &);
- ///
- void availableLV_doubleClicked(const QModelIndex &);
- ///
- void selectedLV_clicked(const QModelIndex &);
- ///
- bool eventFilter(QObject *, QEvent *);
+protected:
+ /// Given a QModelIndex from availableLV, determines whether it has
+ /// been selected (i.e., is also in selectedLV).
+ bool isSelected(const QModelIndex & idx);
+ ///
+ bool insertRowToSelected(int i, QMap<int, QVariant> const & itemData);
+ ///
+ QAbstractItemView * availableLV;
+ ///
+ QListView * selectedLV;
+ ///
+ QPushButton * addPB;
+ ///
+ QPushButton * deletePB;
+ ///
+ QPushButton * upPB;
+ ///
+ QPushButton * downPB;
+ ///
+ QAbstractListModel * availableModel;
+ ///
+ QAbstractListModel * selectedModel;
+
+protected Q_SLOTS:
+ ///
+ void availableChanged(QModelIndex const & idx, QModelIndex const &);
+ ///
+ void selectedChanged(QModelIndex const & idx, QModelIndex const &);
+ ///
+ void availableChanged(QItemSelection const & qis, QItemSelection const &);
+ ///
+ void selectedChanged(QItemSelection const & qis, QItemSelection const &);
+ ///
+ virtual void addPB_clicked();
+ ///
+ virtual void deletePB_clicked();
+ ///
+ virtual void upPB_clicked();
+ ///
+ virtual void downPB_clicked();
+ ///
+ void availableLV_doubleClicked(const QModelIndex &);
+ ///
+ bool eventFilter(QObject *, QEvent *);