27 QSizePolicy::Policy hpolicy=QSizePolicy::Minimum;
28 QSizePolicy::Policy vpolicy=QSizePolicy::Minimum;
32 wParent=GWEN_Widget_Tree_GetParent(
_widget);
35 qw->setAllColumnsShowFocus(
true);
36 qw->setSortingEnabled(
true);
37 qw->setRootIsDecorated(
false);
38 qw->setItemsExpandable(
false);
39 qw->setSelectionBehavior(QAbstractItemView::SelectRows);
43 hpolicy=QSizePolicy::Expanding;
45 vpolicy=QSizePolicy::Expanding;
46 qw->setSizePolicy(hpolicy, vpolicy);
53 qw->connect(qw, SIGNAL(currentItemChanged(QTreeWidgetItem*, QTreeWidgetItem*)),
55 SLOT(slotActivated()));
79 QTreeWidgetItem *item;
81 item=qw->topLevelItem(index);
88 qw->setCurrentItem(item);
93 qw->setColumnWidth(index, value);
99 qw->setSelectionMode(QAbstractItemView::NoSelection);
102 qw->setSelectionMode(QAbstractItemView::SingleSelection);
105 qw->setSelectionMode(QAbstractItemView::ExtendedSelection);
115 qw->sortByColumn(-1, Qt::AscendingOrder);
118 qw->sortByColumn(index, Qt::AscendingOrder);
121 qw->sortByColumn(index, Qt::DescendingOrder);
134 qw->sortItems(c, h->sortIndicatorOrder());
156 QTreeWidgetItem *item;
159 item=qw->currentItem();
161 item=qw->itemAbove(item);
169 return qw->columnWidth(index);
172 switch(qw->selectionMode()) {
173 case QAbstractItemView::NoSelection:
175 case QAbstractItemView::SingleSelection:
177 case QAbstractItemView::ExtendedSelection:
183 qw->selectionMode());
187 if (qw->sortColumn()!=index)
190 switch(qw->header()->sortIndicatorOrder()) {
191 case Qt::AscendingOrder:
193 case Qt::DescendingOrder:
229 qw->header()->reset();
232 while(!(t=str.section(
'\t', n, n)).isEmpty()) {
236 qw->setHeaderLabels(sl);
252 while(!(t=str.section(
'\t', n, n)).isEmpty()) {
256 new QTreeWidgetItem(qw, sl);
269 const char *defaultValue) {
278 QTreeWidgetItem *item;
280 item=qw->headerItem();
284 for (i=0; i<qw->columnCount(); i++) {
300 QTreeWidgetItem *item;
303 item=qw->topLevelItem(index);
310 for (i=0; i<qw->columnCount(); i++) {
#define DBG_ERROR(dbg_logger, format,...)
const char * getCharProperty(GWEN_DIALOG_PROPERTY prop, int index, const char *defaultValue)
#define GWEN_ERROR_INVALID
Qt5_W_ListBox(GWEN_WIDGET *w)
static QString extractHtml(const char *text)
int setIntProperty(GWEN_DIALOG_PROPERTY prop, int index, int value, int doSignal)
#define GWEN_WIDGET_FLAGS_FILLY
QT5_DialogBox * getMainWindow()
#define GWEN_WIDGET_FLAGS_FILLX
#define QT5_DIALOG_STRING_TITLE
int getIntProperty(GWEN_DIALOG_PROPERTY prop, int index, int defaultValue)
int setCharProperty(GWEN_DIALOG_PROPERTY prop, int index, const char *value, int doSignal)
#define QT5_DIALOG_WIDGET_REAL
#define QT5_DIALOG_STRING_VALUE