10 #ifndef GUARD_GROUPLISTWIDGET_H_INCLUDE
11 #define GUARD_GROUPLISTWIDGET_H_INCLUDE
13 #include <grouplistwidget/grouplistwidget-config.h>
14 #include <QTreeWidget>
18 class QAbstractItemModel;
36 QWidget *parent = NULL);
44 QAbstractItemModel * model);
89 return list_view_mode_; }
99 return pixmap_size_; }
104 if (grid_cell_.isNull()) {
105 grid_cell_ = computeGridCell ();
112 computeGridCell ()
const;
115 QAbstractItemDelegate *
117 return list_delegate_;
123 QAbstractItemDelegate * value);
126 QAbstractItemDelegate *
128 QAbstractItemDelegate * value = NULL);
135 QListView::ViewMode value);
140 QListView::Flow value);
151 if (pixmap_size_ == -1) {
154 new_size = pixmap_size_ * 1.2;
156 setPixmapSize (new_size);
163 if (pixmap_size_ == -1) {
166 new_size = pixmap_size_ * 0.8;
167 if (new_size < 16) new_size = 16;
169 setPixmapSize (new_size);
176 currentLVItemChanged (
181 currentLVItemChangedEx (
190 underModelAboutToBeReset ();
198 underGroupingChanged (
205 const QModelIndex ¤t,
206 const QModelIndex &previous);
217 QContextMenuEvent * event);
242 uninstallUnderModel (
243 bool b_delete =
false);
249 QTreeWidgetItem *tvi);
255 const QString &menu_label,
256 const QList<int> &gcol_lst,
257 const QStringList &gcol_lbl,
258 int crt_grp,
const char *connect_to);
269 gridCellFromDelegate (
270 QAbstractItemDelegate *delegate,
271 QStyleOptionViewItem & option)
const;
277 QListView::ViewMode list_view_mode_;
278 QListView::Flow list_flow_;
280 QAbstractItemDelegate * list_delegate_;
284 #endif // GUARD_GROUPLISTWIDGET_H_INCLUDE
Represents a list widget inside the tree presenting the content of a group.
Definition: grouplistgroup.h:19
Delegate for QTreeWidget.
Definition: grouplistwidget.cc:62
A model representing a group that is used by the embedded lists.
Definition: groupsubmodel.h:25
A model that is to be installed into a GroupListWidget.
Definition: groupmodel.h:36