Kate
expandingwidgetmodel.h
Go to the documentation of this file.
140 //Finds out the basic height of the row represented by the given index. Basic means without respecting any expansion.
147 QMap< QModelIndex, QPointer<QWidget> > m_expandingWidgets; //Map rows to their expanding-widgets
148 QMap< QModelIndex, int > m_contextMatchQualities; //Map rows to their context-match qualities(undefined if unknown, else 0 to 10). Not used yet, eventually remove.
159 QList<QVariant> mergeCustomHighlighting( QStringList strings, QList<QVariantList> highlights, int gapBetweenStrings = 0 );
void partiallyUnExpand(const QModelIndex &index)
Definition: expandingwidgetmodel.cpp:146
void setCurrentItemExpanded(bool)
Expand/collapse the current item.
virtual void rowSelected(const QModelIndex &row)
Notifies underlying models that the item was selected, collapses any previous partially expanded line...
Definition: expandingwidgetmodel.cpp:157
QModelIndex partiallyExpandedRow() const
Returns the first row that is currently partially expanded.
Definition: expandingwidgetmodel.cpp:116
void clearExpanding()
Unexpand all rows and clear all cached information about them(this includes deleting the expanding-wi...
Definition: expandingwidgetmodel.cpp:123
void placeExpandingWidgets()
Place or hides all expanding-widgets to the correct positions. Should be called after the view was sc...
Definition: expandingwidgetmodel.cpp:414
QList< QVariant > mergeCustomHighlighting(QStringList strings, QList< QVariantList > highlights, int gapBetweenStrings=0)
Helper-function to merge custom-highlighting variant-lists.
Definition: expandingwidgetmodel.cpp:490
virtual QTreeView * treeView() const =0
QString partialExpandText(const QModelIndex &row) const
Definition: expandingwidgetmodel.cpp:244
ExpansionType isPartiallyExpanded(const QModelIndex &index) const
Returns whether the given index is currently partially expanded. Does not do any other checks like ca...
Definition: expandingwidgetmodel.cpp:139
static QIcon m_collapsedIcon
Definition: expandingwidgetmodel.h:136
bool isExpandable(const QModelIndex &index) const
Definition: expandingwidgetmodel.cpp:290
void placeExpandingWidget(const QModelIndex &row)
Places and shows the expanding-widget for the given row, if it should be visible and is valid...
Definition: expandingwidgetmodel.cpp:370
virtual QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
Does not request data from index, this only returns local data like highlighting for expanded rows an...
Definition: expandingwidgetmodel.cpp:88
virtual int contextMatchQuality(const QModelIndex &index) const =0
QWidget * expandingWidget(const QModelIndex &row) const
Definition: expandingwidgetmodel.cpp:431
uint matchColor(const QModelIndex &index) const
Returns the match-color for the given index, or zero if match-quality could not be computed...
Definition: expandingwidgetmodel.cpp:58
bool isExpanded(const QModelIndex &row) const
Definition: expandingwidgetmodel.cpp:305
ExpandingWidgetModel(QWidget *parent)
Definition: expandingwidgetmodel.cpp:44
int partiallyExpandWidgetHeight() const
Amount by which the height of a row increases when it is partially expanded.
Definition: expandingwidgetmodel.cpp:153
void clearMatchQualities()
Definition: expandingwidgetmodel.cpp:112
bool canCollapseCurrentItem() const
void setExpanded(QModelIndex index, bool expanded)
Change the expand-state of the row given through index. The display will be updated.
Definition: expandingwidgetmodel.cpp:311
virtual ~ExpandingWidgetModel()
Definition: expandingwidgetmodel.cpp:49
static QIcon m_expandedIcon
Definition: expandingwidgetmodel.h:135
bool canExpandCurrentItem() const
The following three are convenience-functions for the current item that could be replaced by the late...
int expandingWidgetsHeight() const
Returns the total height added through all open expanding-widgets.
Definition: expandingwidgetmodel.cpp:420
int basicRowHeight(const QModelIndex &index) const
Definition: expandingwidgetmodel.cpp:357
virtual bool indexIsItem(const QModelIndex &index) const =0
Should return true if the given row should be painted like a contained item(as opposed to label-rows ...
Cares about expanding/un-expanding items in a tree-view together with ExpandingDelegate.
Definition: expandingwidgetmodel.h:36
QRect partialExpandRect(const QModelIndex &row) const
Returns the rectangle for the partially expanded part of the given row.
Definition: expandingwidgetmodel.cpp:251
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.