88 QModelIndexList selectedIndexes()
const
90 QModelIndexList retList;
91 for (
int i = 0; i < QTreeView::selectedIndexes().length(); ++i)
93 if (QTreeView::selectedIndexes().at(i).column() == 0)
95 retList.append(QTreeView::selectedIndexes().at(i));
102 virtual void selectionChanged(
const QItemSelection & selected,
const QItemSelection & deselected)
104 QTreeView::selectionChanged(selected, deselected);
105 emit selectedItemsChanged(selected, deselected);
109 void selectedItemsChanged(
const QItemSelection &selected,
const QItemSelection &deselected);
121 QModelIndexList selectedIndexes()
const
123 QModelIndexList retList;
124 for (
int i = 0; i < QListView::selectedIndexes().length(); ++i)
126 if (QListView::selectedIndexes().at(i).column() == 0)
128 retList.append(QListView::selectedIndexes().at(i));
135 virtual void selectionChanged(
const QItemSelection & selected,
const QItemSelection & deselected)
137 QListView::selectionChanged(selected, deselected);
138 emit selectedItemsChanged(selected, deselected);
142 void selectedItemsChanged(
const QItemSelection &selected,
const QItemSelection &deselected);
154 QModelIndexList selectedIndexes()
const
156 QModelIndexList retList;
157 for (
int i = 0; i < QTableView::selectedIndexes().length(); ++i)
159 if (QTableView::selectedIndexes().at(i).column() == 0)
161 retList.append(QTableView::selectedIndexes().at(i));
168 virtual void selectionChanged(
const QItemSelection & selected,
const QItemSelection & deselected)
170 QTableView::selectionChanged(selected, deselected);
171 emit selectedItemsChanged(selected, deselected);
175 void selectedItemsChanged(
const QItemSelection &selected,
const QItemSelection &deselected);