kget
rangetreewidget.h
Go to the documentation of this file.
128 void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
RangeSortFilterProxyModel(QObject *parent=0)
Definition: rangetreewidget.cpp:62
RangeTreeWidgetItemDelegate(QAbstractItemView *parent)
Definition: rangetreewidget.cpp:285
void setRangeDelegate(RangeDelegate *delegate)
Set a delegate in case you want to create the ranges dinamically Ej, the host ranges delegate...
Definition: rangetreewidget.cpp:187
QStandardItem * item(const QModelIndex &index=QModelIndex(), int column=0)
Definition: rangetreewidget.cpp:226
We need to override the qsortfilterproxymodel behavior to avoid include the range rows in the search ...
Definition: rangetreewidget.h:30
void setLabels(const QStringList &labels)
Definition: rangetreewidget.cpp:178
HostRangeDelegate(QObject *parent=0)
Definition: rangetreewidget.cpp:272
void removeRow(int row, const QModelIndex &parent=QModelIndex())
Definition: rangetreewidget.cpp:231
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const
Definition: rangetreewidget.cpp:333
QVariant getRangeData(const QVariant &data)
Returns the current range of the incoming data.
Definition: rangetreewidget.cpp:280
Definition: rangetreewidget.h:123
Creates a ragen based on the host of the transfer.
Definition: rangetreewidget.h:113
QStandardItem * currentItem(int column=-1)
Definition: rangetreewidget.cpp:212
RangeTreeWidget(QWidget *parent=0)
Definition: rangetreewidget.cpp:81
void setFilterRegExp(const QString &text)
Filters the data throws the qsortfilterproxymodel.
Definition: rangetreewidget.cpp:236
int addRange(const QVariant &min, const QVariant &max, const QString &title)
Creates a range with a title between two values.
Definition: rangetreewidget.cpp:117
void add(const QVariant &data, const QString &column)
Definition: rangetreewidget.cpp:148
virtual QVariant getRangeData(const QVariant &data)=0
Returns the current range of the incoming data.
Definition: rangetreewidget.h:40
QObject * parent() const
virtual bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const
Definition: rangetreewidget.cpp:71
~RangeSortFilterProxyModel()
Definition: rangetreewidget.cpp:67
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
Definition: rangetreewidget.cpp:289
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:28:43 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:28:43 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.