23 #ifndef ITOMQTWIDGETS_H
24 #define ITOMQTWIDGETS_H
26 #include <qtabwidget.h>
27 #include <qtreeview.h>
28 #include <qlistview.h>
29 #include <qtableview.h>
48 inline QTabBar* getTabBar() {
return tabBar(); };
51 void contextMenuEvent (QContextMenuEvent * event)
53 emit tabContextMenuEvent(event);
58 void tabContextMenuEvent (QContextMenuEvent *event);
70 QModelIndexList selectedIndexes()
const
72 QModelIndexList retList;
73 for (
int i = 0; i < QTreeView::selectedIndexes().length(); ++i)
75 if (QTreeView::selectedIndexes().at(i).column() == 0)
77 retList.append(QTreeView::selectedIndexes().at(i));
84 virtual void selectionChanged(
const QItemSelection & selected,
const QItemSelection & deselected)
86 QTreeView::selectionChanged(selected, deselected);
87 emit selectedItemsChanged(selected, deselected);
91 void selectedItemsChanged(
const QItemSelection &selected,
const QItemSelection &deselected);
103 QModelIndexList selectedIndexes()
const
105 QModelIndexList retList;
106 for (
int i = 0; i < QListView::selectedIndexes().length(); ++i)
108 if (QListView::selectedIndexes().at(i).column() == 0)
110 retList.append(QListView::selectedIndexes().at(i));
117 virtual void selectionChanged(
const QItemSelection & selected,
const QItemSelection & deselected)
119 QListView::selectionChanged(selected, deselected);
120 emit selectedItemsChanged(selected, deselected);
124 void selectedItemsChanged(
const QItemSelection &selected,
const QItemSelection &deselected);
136 QModelIndexList selectedIndexes()
const
138 QModelIndexList retList;
139 for (
int i = 0; i < QTableView::selectedIndexes().length(); ++i)
141 if (QTableView::selectedIndexes().at(i).column() == 0)
143 retList.append(QTableView::selectedIndexes().at(i));
150 virtual void selectionChanged(
const QItemSelection & selected,
const QItemSelection & deselected)
152 QTableView::selectionChanged(selected, deselected);
153 emit selectedItemsChanged(selected, deselected);
157 void selectedItemsChanged(
const QItemSelection &selected,
const QItemSelection &deselected);
Definition: itomQWidgets.h:128
Definition: apiFunctionsGraph.cpp:39
Definition: itomQWidgets.h:62
Definition: itomQWidgets.h:95