Kate
katecompletiontree.cpp
Go to the documentation of this file.
49 //We need ScrollPerItem, because ScrollPerPixel is too slow with a very large competion-list(see KDevelop).
68 void KateCompletionTree::currentChanged ( const QModelIndex & current, const QModelIndex & previous ) {
139 if( current.child(0,0).isValid() ) { //If the index has children, it is a group-label. Then we should start with it's first child.
149 // kDebug() << current.row() << "out of" << model()->rowCount(current.parent()) << "in" << current.parent().data(Qt::DisplayRole);
151 // itemDelegate()->sizeHint(QStyleOptionViewItem(), current).isValid() && itemDelegate()->sizeHint(QStyleOptionViewItem(), current).intersects(visibleViewportRect)
157 // kDebug() << "size-hint for" << current.row() << a << ":" << s << current.sibling(current.row(), a).data(Qt::DisplayRole);
255 // kDebug() << geometry() << "newWidth" << newWidth << "current width" << width() << "target width" << newWidth + scrollBarWidth;
263 // kDebug() << "created geometry:" << widget()->geometry() << geometry() << "newWidth" << newWidth << "viewport" << viewport()->width();
265 if( viewport()->width() > totalColumnsWidth ) //Set the size of the last column to fill the whole rest of the widget
KateCompletionWidget * widget() const
Definition: katecompletiontree.cpp:103
virtual bool indexIsItem(const QModelIndex &index) const
Should return true if the given row should be painted like a contained item(as opposed to label-rows ...
Definition: katecompletionmodel.cpp:1152
const char header[]
void setScrollingEnabled(bool)
Definition: katecompletiontree.cpp:73
int timeout
Definition: expandingtree.h:28
virtual void currentChanged(const QModelIndex ¤t, const QModelIndex &previous)
Definition: katecompletiontree.cpp:68
This class has the responsibility for filtering, sorting, and manipulating code completion data provi...
Definition: katecompletionmodel.h:48
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
const KateCompletionModel * model() const
Definition: katecompletionwidget.cpp:252
This is the code completion's main widget, and also contains the core interface logic.
Definition: katecompletionwidget.h:55
virtual void rowSelected(const QModelIndex &row)
Notifies underlying models that the item was selected, collapses any previous partially expanded line...
Definition: katecompletionmodel.cpp:2240
virtual QStyleOptionViewItem viewOptions() const
Definition: katecompletiontree.cpp:283
KateCompletionModel * kateModel() const
Definition: katecompletiontree.cpp:292
int translateColumn(int sourceColumn) const
Definition: katecompletionmodel.cpp:1263
void resizeColumns(bool firstShow=false, bool forceResize=false)
Definition: katecompletiontree.cpp:114
virtual void scrollContentsBy(int dx, int dy)
Not available as a signal in this way.
Definition: katecompletiontree.cpp:77
KateCompletionTree(KateCompletionWidget *parent)
Definition: katecompletiontree.cpp:39
int columnTextViewportPosition(int column) const
Returns the approximated viewport position of the text in the given column, skipping an eventual icon...
Definition: katecompletiontree.cpp:86
bool previousCompletion()
Definition: katecompletiontree.cpp:320
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.