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 addInfoLogEntry(const QString &log)
Definition: customlogwidget.cpp:130
LogItemDelegate(QObject *parent)
Definition: customlogwidget.cpp:27
CustomLogWidget(QWidget *parent=0)
Definition: customlogwidget.cpp:107
virtual QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const
Definition: customlogwidget.cpp:85
virtual void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
Definition: customlogwidget.cpp:59
virtual QWidget * createEditor(QWidget *, const QStyleOptionViewItem &, const QModelIndex &) const
Definition: customlogwidget.cpp:100
void addEndLineLogEntry()
Definition: customlogwidget.cpp:148
Definition: customlogwidget.h:28
void addErrorLogEntry(const QString &log)
Definition: customlogwidget.cpp:139
void addTitleLogEntry(const QString &log)
Definition: customlogwidget.cpp:118
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:03 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:58:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.