summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThorbjørn Martsum <tmartsum@gmail.com>2013-08-11 03:53:13 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-08-12 19:59:43 +0200
commit28c6841283b8a0e292afae4d6cddc5b20fac2406 (patch)
tree4cbf368bf275af0453de46b1a4b9bf6b1499385e
parentade0d8361c130ef46b4f2ebe2c8e9999740b93d2 (diff)
QMessageBox - add detailed text to manual test
Even though detailed text does not work that well, it should still be in the manual test. Change-Id: I051f9f0592ad9206dc42f0e9929c1be32baec832 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
-rw-r--r--tests/manual/dialogs/messageboxpanel.cpp6
-rw-r--r--tests/manual/dialogs/messageboxpanel.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/tests/manual/dialogs/messageboxpanel.cpp b/tests/manual/dialogs/messageboxpanel.cpp
index 6af6b8502f..6fc84e11fd 100644
--- a/tests/manual/dialogs/messageboxpanel.cpp
+++ b/tests/manual/dialogs/messageboxpanel.cpp
@@ -57,6 +57,7 @@ MessageBoxPanel::MessageBoxPanel(QWidget *parent) : QWidget(parent)
,m_iconComboBox(new QComboBox)
,m_textInMsgBox(new QLineEdit)
,m_informativeText(new QLineEdit)
+,m_detailedtext(new QLineEdit)
,m_buttonsMask(new QLineEdit)
,m_btnExec(new QPushButton)
,m_btnShowApply(new QPushButton)
@@ -77,6 +78,10 @@ MessageBoxPanel::MessageBoxPanel(QWidget *parent) : QWidget(parent)
optionsLayout->addWidget(new QLabel(QString::fromLatin1("Informative Text")));
optionsLayout->addWidget(m_informativeText);
+ // detailed text
+ optionsLayout->addWidget(new QLabel(QString::fromLatin1("detailed Text")));
+ optionsLayout->addWidget(m_detailedtext);
+
// icon
QStringList items;
items << "NoIcon" << "Information" << "Warning" << "Critical" << "Question";
@@ -126,6 +131,7 @@ void MessageBoxPanel::setupMessageBox(QMessageBox &box)
m_resultLabel->setText(QString());
box.setText(m_textInMsgBox->text());
box.setInformativeText(m_informativeText->text());
+ box.setDetailedText(m_detailedtext->text());
QString btnHexText = m_buttonsMask->text();
btnHexText = btnHexText.replace(QString::fromLatin1("0x"), QString(), Qt::CaseInsensitive);
diff --git a/tests/manual/dialogs/messageboxpanel.h b/tests/manual/dialogs/messageboxpanel.h
index 37093b3ff5..9f7e35210c 100644
--- a/tests/manual/dialogs/messageboxpanel.h
+++ b/tests/manual/dialogs/messageboxpanel.h
@@ -70,6 +70,7 @@ private:
QComboBox *m_iconComboBox;
QLineEdit *m_textInMsgBox;
QLineEdit *m_informativeText;
+ QLineEdit *m_detailedtext;
QLineEdit *m_buttonsMask;
QPushButton *m_btnExec;
QPushButton *m_btnShowApply;