Kate
katecolortreewidget.cpp
Go to the documentation of this file.
130 r.setWidth(m_tree->viewport()->width() - m_categoryDrawer.leftMargin() - m_categoryDrawer.rightMargin());
144 virtual void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const
211 QRect rect(option.rect.left() + 10, option.rect.top() + (option.rect.height() - p.height() + 1) / 2, p.width(), p.height());
287 void KateColorTreeWidget::drawBranches(QPainter* painter, const QRect& rect, const QModelIndex& index) const
void addTopLevelItem(QTreeWidgetItem *item)
void expandItem(const QTreeWidgetItem *item)
virtual bool edit(const QModelIndex &index, EditTrigger trigger, QEvent *event)
Definition: katecolortreewidget.cpp:243
Type type() const
QScriptValue i18n(QScriptContext *context, QScriptEngine *engine)
i18n("text", arguments [optional])
Definition: katescripthelpers.cpp:186
int width() const
Definition: katecolortreewidget.h:27
void fillRect(const QRectF &rectangle, const QBrush &brush)
void changed()
friend class KateColorTreeDelegate
Definition: katecolortreewidget.h:48
void setRenderHint(RenderHint hint, bool on)
QVector< KateColorItem > colorItems() const
Definition: katecolortreewidget.cpp:345
void append(const T &value)
QTreeWidgetItem * child(int index) const
int & rwidth()
void drawBranches(QPainter *painter, const QRect &rect, const QModelIndex &index) const
Definition: katecolortreewidget.cpp:287
QList< QTreeWidgetItem * > items(const QMimeData *data) const
QWidget * viewport() const
virtual void setData(int column, int role, const QVariant &value)
int height() const
void setClipRegion(const QRegion ®ion, Qt::ClipOperation operation)
bool isExpanded() const
void update()
int & rheight()
KateColorTreeWidget(QWidget *parent=0)
Definition: katecolortreewidget.cpp:228
bool isValid() const
void addColorItems(const QVector< KateColorItem > &colorItems)
Definition: katecolortreewidget.cpp:339
int top() const
void resizeColumnToContents(int column)
Definition: katecategorydrawer.h:32
QRegion clipRegion() const
virtual void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
void setTop(int y)
void drawPixmap(const QRectF &target, const QPixmap &pixmap, const QRectF &source)
void setWidth(int width)
bool isEmpty() const
void setItemDelegate(QAbstractItemDelegate *delegate)
virtual QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const
QModelIndex parent() const
void setIndentation(int i)
void addColorItem(const KateColorItem &colorItem)
Definition: katecolortreewidget.cpp:317
QTreeWidgetItem * itemFromIndex(const QModelIndex &index) const
int key() const
int height() const
QTreeWidgetItem * parent() const
QModelIndex child(int row, int column) const
Definition: katecolortreewidget.h:44
void setHeaderLabels(const QStringList &labels)
void setRight(int x)
virtual bool event(QEvent *e)
void setClipRect(const QRectF &rectangle, Qt::ClipOperation operation)
void setHeaderHidden(bool hide)
void setHeight(int height)
void setText(int column, const QString &text)
int column() const
void edit(const QModelIndex &index)
friend class KateColorTreeItem
Definition: katecolortreewidget.h:47
QTreeWidgetItem * topLevelItem(int index) const
void setRootIsDecorated(bool show)
int topLevelItemCount() const
QColor findColor(const QString &key) const
Definition: katecolortreewidget.cpp:359
int childCount() const
void setLeft(int x)
QString text(int column) const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.