24 #include "clipboard.h" 27 #include "ui_logdock.h" 31 DClass<LogDock> :
public Ui::LogDock
40 this->toggleViewAction()->setIcon(QIcon(
":/icons/log.png"));
42 connect(d->btnClear, SIGNAL(clicked()),
this, SLOT(clearContent()));
43 connect(d->btnCopy, SIGNAL(clicked()),
this, SLOT(btnCopyClicked()));
52 d->teContent->moveCursor(QTextCursor::End);
53 d->teContent->insertPlainText(entry);
56 void LogDock::clearContent()
59 d->teContent->document()->clear();
62 void LogDock::btnCopyClicked()
static void setText(const QString &text)
Sets text both in clipboard and selection modes.
Dockable widget designed for application's log presentation.
void appendLogEntry(const QString &entry)