diff options
author | Sami Merila <sami.merila@nokia.com> | 2011-07-06 11:32:10 (GMT) |
---|---|---|
committer | Sami Merila <sami.merila@nokia.com> | 2011-07-06 11:32:10 (GMT) |
commit | b3e0d76d558d35e40f1c4f1b5b1b14ba79f8eef6 (patch) | |
tree | 209835d828e0b079ad7f99fadeb8cb99a77d4329 /src/gui | |
parent | ca0b81567d76d3af82ce025e029fb5efa50846ed (diff) | |
download | Qt-b3e0d76d558d35e40f1c4f1b5b1b14ba79f8eef6.zip Qt-b3e0d76d558d35e40f1c4f1b5b1b14ba79f8eef6.tar.gz Qt-b3e0d76d558d35e40f1c4f1b5b1b14ba79f8eef6.tar.bz2 |
On symbian QMessageBox does not look like native dialog
If API QMessageBox::setInformativeText() is used to set informative
text to the messagebox, the text is added to the "icon column",
which makes the messagebox look really weird.
Use layoutDirection() and add informative text to the same column
where other text elements are added.
Task-number: QTBUG-9924
Reviewed-by: Tomi Vihria
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/dialogs/qmessagebox.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/dialogs/qmessagebox.cpp b/src/gui/dialogs/qmessagebox.cpp index 6a1c04a..f18fe60 100644 --- a/src/gui/dialogs/qmessagebox.cpp +++ b/src/gui/dialogs/qmessagebox.cpp @@ -2507,7 +2507,12 @@ void QMessageBox::setInformativeText(const QString &text) label->hide(); QTextBrowser *textBrowser = new QTextBrowser(this); textBrowser->setOpenExternalLinks(true); - grid->addWidget(textBrowser, 1, 1, 1, 1); +#if defined(Q_OS_SYMBIAN) + const int preferredTextColumn = (QApplication::layoutDirection() == Qt::LeftToRight) ? 0 : 1; +#else + const int preferredTextColumn = 1; +#endif + grid->addWidget(textBrowser, 1, preferredTextColumn, 1, 1); d->textBrowser = textBrowser; #else grid->addWidget(label, 1, 1, 1, 1); |