KTextEditor
katecompletiontree.cpp
40 // We need ScrollPerItem, because ScrollPerPixel is too slow with a very large completion-list(see KDevelop).
53 connect(widget()->model(), &QAbstractItemModel::modelReset, this, &KateCompletionTree::scheduleUpdate, Qt::QueuedConnection);
145 if (measureColumnSizes(tree, model->index(i, 0, current), columnSize, currentYPos, maxHeight, true)) {
277 // qCDebug(LOG_KTE) << geometry() << "newWidth" << newWidth << "current width" << width() << "target width" << newWidth + scrollBarWidth;
285 // qCDebug(LOG_KTE) << "created geometry:" << widget()->geometry() << geometry() << "newWidth" << newWidth << "viewport" << viewport()->width();
287 if (viewport()->width() > totalColumnsWidth) { // Set the size of the last column to fill the whole rest of the widget
This class has the responsibility for filtering, sorting, and manipulating code completion data provi...
Definition katecompletionmodel.h:40
void rowSelected(const QModelIndex &row) const
Definition katecompletionmodel.cpp:1776
This is the code completion's main widget, and also contains the core interface logic.
Definition katecompletionwidget.h:45
virtual int columnCount(const QModelIndex &parent) const const=0
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const=0
void modelReset()
virtual int rowCount(const QModelIndex &parent) const const=0
MoveDown
ScrollPerItem
QModelIndex currentIndex() const const
virtual void initViewItemOption(QStyleOptionViewItem *option) const const
QAbstractItemModel * model() const const
void setCurrentIndex(const QModelIndex &index)
QSize sizeHintForIndex(const QModelIndex &index) const const
void setHorizontalScrollBarPolicy(Qt::ScrollBarPolicy)
QScrollBar * verticalScrollBar() const const
QWidget * viewport() const const
NoFrame
frameWidth
bool isValid() const const
const QAbstractItemModel * model() const const
QModelIndex parent() const const
int row() const const
QModelIndex sibling(int row, int column) const const
QObject * parent() const const
int height() const const
int width() const const
PM_FocusFrameHMargin
virtual int pixelMetric(PixelMetric metric, const QStyleOption *option, const QWidget *widget) const const=0
QueuedConnection
NoModifier
ScrollBarAlwaysOff
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
void start()
void stop()
void timeout()
int columnViewportPosition(int column) const const
int columnWidth(int column) const const
virtual void currentChanged(const QModelIndex ¤t, const QModelIndex &previous) override
virtual QModelIndex indexAt(const QPoint &point) const const override
virtual QModelIndex moveCursor(CursorAction cursorAction, Qt::KeyboardModifiers modifiers) override
virtual void scrollContentsBy(int dx, int dy) override
void setColumnWidth(int column, int width)
qsizetype size() const const
enabled
geometry
height
void hide()
bool isHidden() const const
QWidget * parentWidget() const const
void resize(const QSize &)
QStyle * style() const const
void setUpdatesEnabled(bool enable)
bool isVisible() const const
width
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:11:26 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:11:26 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.