summaryrefslogtreecommitdiff
path: root/tools/qml/loggerwidget.cpp
diff options
context:
space:
mode:
authorJoona Petrell <joona.t.petrell@nokia.com>2011-01-18 13:37:56 +1000
committerJoona Petrell <joona.t.petrell@nokia.com>2011-01-18 14:46:08 +1000
commit9ef953a65a96b511aae2a4ba6db9579b5d23cc29 (patch)
treedb5b41cd3d96fe66257b39497eca9ffb379dd237 /tools/qml/loggerwidget.cpp
parentf503dc25886e556983fc1bf3efb2e15669f3507c (diff)
downloadqt4-tools-9ef953a65a96b511aae2a4ba6db9579b5d23cc29.tar.gz
Add a way to clear warnings in qmlviewer warnings window on Symbian
Basically by adding a clear soft key to the currently empty right soft key in warninng window in qmlviewer. Task-number: Reviewed-by: Martin Jones
Diffstat (limited to 'tools/qml/loggerwidget.cpp')
-rw-r--r--tools/qml/loggerwidget.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/qml/loggerwidget.cpp b/tools/qml/loggerwidget.cpp
index fb4fedc22a..e167c94345 100644
--- a/tools/qml/loggerwidget.cpp
+++ b/tools/qml/loggerwidget.cpp
@@ -67,6 +67,11 @@ LoggerWidget::LoggerWidget(QWidget *parent) :
m_plainTextEdit = new QPlainTextEdit();
#if defined(Q_OS_SYMBIAN)
+ QAction* clearAction = new QAction(tr("Clear"), this);
+ clearAction->setSoftKeyRole(QAction::PositiveSoftKey);
+ connect(clearAction, SIGNAL(triggered()), m_plainTextEdit, SLOT(clear()));
+ addAction(clearAction);
+
m_plainTextEdit->setReadOnly(true);
QAction* backAction = new QAction( tr("Back"), this );
backAction->setSoftKeyRole( QAction::NegativeSoftKey );