Libkleo
treeview.cpp
103 auto numVisibleColumns = std::count_if(d->mColumnActions.cbegin(), d->mColumnActions.cend(), [](const auto &action) {
208 // on first focusing of QTreeView, Qt sends focus event for current item before focus event for tree
244QModelIndex TreeView::moveCursor(QAbstractItemView::CursorAction cursorAction, Qt::KeyboardModifiers modifiers)
A tree view that allows accessible column by column keyboard navigation and that has customizable col...
Definition treeview.h:40
void saveColumnLayout(const QString &stateGroupName)
Set the state config group name to use for saving the state.
Definition treeview.cpp:268
bool restoreColumnLayout(const QString &stateGroupName)
Restores the layout state under key stateGroupName and enables state saving when the object is destro...
Definition treeview.cpp:152
QString i18nc(const char *context, const char *text, const TYPE &arg...)
char * toString(const EngineQuery &query)
virtual int columnCount(const QModelIndex &parent) const const=0
virtual QVariant data(const QModelIndex &index, int role) const const=0
CursorAction
SelectItems
QModelIndex currentIndex() const const
virtual bool event(QEvent *event) override
virtual void focusInEvent(QFocusEvent *event) override
QAbstractItemModel * model() const const
selectionBehavior
void setCheckable(bool)
bool isChecked() const const
void setData(const QVariant &data)
void setText(const QString &text, Mode mode)
ContextMenu
QClipboard * clipboard()
int count() const const
defaultSectionSize
void moveSection(int from, int to)
void resizeSection(int logicalIndex, int size)
void sectionMoved(int logicalIndex, int oldVisualIndex, int newVisualIndex)
void sectionResized(int logicalIndex, int oldSize, int newSize)
int sectionSize(int logicalIndex) const const
bool isSortIndicatorShown() const const
void sortIndicatorChanged(int logicalIndex, Qt::SortOrder order)
Qt::SortOrder sortIndicatorOrder() const const
int sortIndicatorSection() const const
int visualIndex(int logicalIndex) const const
bool invokeMethod(QObject *context, Functor &&function, FunctorReturnType *ret)
bool isValid() const const
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
void installEventFilter(QObject *filterObj)
bool isEmpty() const const
QueuedConnection
DisplayRole
typedef KeyboardModifiers
Horizontal
AscendingOrder
int columnWidth(int column) const const
virtual void currentChanged(const QModelIndex ¤t, const QModelIndex &previous) override
QHeaderView * header() const const
void hideColumn(int column)
bool isColumnHidden(int column) const const
itemsExpandable
virtual void keyPressEvent(QKeyEvent *event) override
virtual QModelIndex moveCursor(CursorAction cursorAction, Qt::KeyboardModifiers modifiers) override
void resizeColumnToContents(int column)
void setColumnWidth(int column, int width)
void sortByColumn(int column, Qt::SortOrder order)
bool isSortingEnabled() const const
bool canConvert() const const
bool isValid() const const
QString toString() const const
QPoint mapToGlobal(const QPoint &pos) const const
visible
width
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:14 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:09:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.