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>
This commit is contained in:
Thorbjørn Martsum 2013-08-11 03:53:13 +02:00 committed by The Qt Project
parent ade0d8361c
commit 28c6841283
2 changed files with 7 additions and 0 deletions

View File

@ -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);

View File

@ -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;