45 #include <QtCore/qdatetime.h> 46 #include <QtGui/qboxlayout.h> 47 #include <QtGui/qtextedit.h> 48 #include <QtGui/qscrollbar.h> 49 #include <QtCore/qdebug.h> 55 class QScriptErrorLogWidgetOutputEdit :
public QTextEdit 58 QScriptErrorLogWidgetOutputEdit(
QWidget *parent = 0)
98 d->outputEdit =
new QScriptErrorLogWidgetOutputEdit();
114 int lineNumber,
int columnNumber,
const QVariant &)
125 d->outputEdit->insertHtml(html);
126 d->outputEdit->scrollToBottom();
132 d->outputEdit->clear();
The QVariant class acts like a union for the most common Qt data types.
#define QT_END_NAMESPACE
This macro expands to.
The QString class provides a Unicode character string.
QtMsgType
This enum describes the messages that can be sent to a message handler (QtMsgHandler).
void addWidget(QWidget *, int stretch=0, Qt::Alignment alignment=0)
Adds widget to the end of this box layout, with a stretch factor of stretch and alignment alignment...
static QString toString(Register *reg, int type, bool *ok=0)
#define QT_BEGIN_NAMESPACE
This macro expands to.
void setMaximumBlockCount(int maximum)
Q_GUI_EXPORT QString escape(const QString &plain)
Converts the plain text string plain to a HTML string with HTML metacharacters <, >...
#define Q_DECLARE_PUBLIC(Class)
QString & append(QChar c)
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
void setSpacing(int spacing)
Reimplements QLayout::setSpacing().
QTextDocument * document() const
Returns a pointer to the underlying document.
static QDateTime currentDateTime()
Returns the current datetime, as reported by the system clock, in the local time zone.
The QVBoxLayout class lines up widgets vertically.
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
static QString fileName(const QString &fileUrl)
void setReadOnly(bool ro)
The QTextEdit class provides a widget that is used to edit and display both plain and rich text...