libkdepim
customlogwidget.cpp
Go to the documentation of this file.
36 QTextDocument* LogItemDelegate::document ( const QStyleOptionViewItem &option, const QModelIndex &index ) const
59 void LogItemDelegate::paint( QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index ) const
85 QSize LogItemDelegate::sizeHint ( const QStyleOptionViewItem &option, const QModelIndex &index ) const
100 QWidget *LogItemDelegate::createEditor ( QWidget *, const QStyleOptionViewItem &, const QModelIndex & ) const
159 result += QLatin1String("<meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\">\n");
167 logText = QString::fromUtf8( "<font color=%1>%2</font>" ).arg(QColor(Qt::black).name()).arg(itemText);
170 logText = QString::fromUtf8( "<font color=%1>%2</font>" ).arg(QColor(Qt::red).name()).arg(itemText);
173 logText = QString::fromUtf8( "<font color=%1>%2</font>" ).arg(QColor(Qt::green).name()).arg(itemText);
void drawContents(QPainter *p, const QRectF &rect)
QString toUpper() const
void setRenderHint(RenderHint hint, bool on)
QString name() const
virtual void initStyleOption(QStyleOptionViewItem *option, const QModelIndex &index) const
void addInfoLogEntry(const QString &log)
Definition: customlogwidget.cpp:130
LogItemDelegate(QObject *parent)
Definition: customlogwidget.cpp:27
void setDocumentMargin(qreal margin)
void save()
T value() const
void addItem(const QString &label)
CustomLogWidget(QWidget *parent=0)
Definition: customlogwidget.cpp:107
void setBold(bool enable)
virtual QSizeF documentSize() const =0
const char * name() const
virtual QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const
Definition: customlogwidget.cpp:85
bool isValid() const
QString fromUtf8(const char *str, int size)
int toInt(bool *ok) const
void setPen(const QColor &color)
QSize toSize() const
virtual void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
Definition: customlogwidget.cpp:59
QFont font() const
void setItemDelegate(QAbstractItemDelegate *delegate)
virtual QWidget * createEditor(QWidget *, const QStyleOptionViewItem &, const QModelIndex &) const
Definition: customlogwidget.cpp:100
void addEndLineLogEntry()
Definition: customlogwidget.cpp:148
virtual QVariant data(int role) const
QAbstractItemDelegate * itemDelegate() const
QAbstractTextDocumentLayout * documentLayout() const
Definition: customlogwidget.h:28
void setForeground(const QBrush &brush)
QListWidgetItem * item(int row) const
int count() const
void addErrorLogEntry(const QString &log)
Definition: customlogwidget.cpp:139
const QFont & font() const
virtual void setData(int role, const QVariant &value)
void restore()
void setTextWidth(qreal width)
QVariant data(int role) const
QStyle * style()
void translate(const QPointF &offset)
virtual void drawPrimitive(PrimitiveElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget) const =0
void setHtml(const QString &html)
QString fromLatin1(const char *str, int size)
void scrollToItem(const QListWidgetItem *item, QAbstractItemView::ScrollHint hint)
QWidget * itemWidget(QListWidgetItem *item) const
void addTitleLogEntry(const QString &log)
Definition: customlogwidget.cpp:118
const QPen & pen() const
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
void setFont(const QFont &font)
QString text() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:50 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:50 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.