diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2016-11-27 20:54:45 +0100 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2016-11-28 19:42:47 +0000 |
commit | 591e63366b4b04602fe40e7d016ce4d7dbe97010 (patch) | |
tree | cdfb93d678f73b48b43ac7ef6b2b1428f9894fdd /ui/qt | |
parent | c4aba11ee32411bcd31d08c5ff9798c56e806271 (diff) |
Qt: Position UAT hint label just below the list.
Place the UAT hint label at the same position as in other dialogs;
just below the main widget. Also use smaller font and italic.
Change-Id: I51251825ff08122e17ca60144ef53fed5c6142ef
Reviewed-on: https://code.wireshark.org/review/18969
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'ui/qt')
-rw-r--r-- | ui/qt/uat_dialog.cpp | 2 | ||||
-rw-r--r-- | ui/qt/uat_dialog.ui | 32 |
2 files changed, 17 insertions, 17 deletions
diff --git a/ui/qt/uat_dialog.cpp b/ui/qt/uat_dialog.cpp index b9978b9f16..6530696924 100644 --- a/ui/qt/uat_dialog.cpp +++ b/ui/qt/uat_dialog.cpp @@ -198,7 +198,7 @@ bool UatDialog::trySetErrorHintFromField(const QModelIndex &index) const QVariant &data = uat_model_->data(index, Qt::UserRole + 1); if (!data.isNull()) { // use HTML instead of PlainText because that handles wordwrap properly - ui->hintLabel->setText(html_escape(data.toString())); + ui->hintLabel->setText("<small><i>" + html_escape(data.toString()) + "</i></small>"); return true; } return false; diff --git a/ui/qt/uat_dialog.ui b/ui/qt/uat_dialog.ui index 507e8e90d1..61f3da487d 100644 --- a/ui/qt/uat_dialog.ui +++ b/ui/qt/uat_dialog.ui @@ -21,6 +21,22 @@ </widget> </item> <item> + <widget class="QLabel" name="hintLabel"> + <property name="styleSheet"> + <string notr="true">QLabel { color: red; }</string> + </property> + <property name="text"> + <string/> + </property> + <property name="textFormat"> + <set>Qt::RichText</set> + </property> + <property name="wordWrap"> + <bool>true</bool> + </property> + </widget> + </item> + <item> <layout class="QHBoxLayout" name="horizontalLayout" stretch="0,0,0,0,1"> <item> <widget class="QToolButton" name="newToolButton"> @@ -96,22 +112,6 @@ </layout> </item> <item> - <widget class="QLabel" name="hintLabel"> - <property name="styleSheet"> - <string notr="true">QLabel { color: red; }</string> - </property> - <property name="text"> - <string/> - </property> - <property name="textFormat"> - <set>Qt::RichText</set> - </property> - <property name="wordWrap"> - <bool>true</bool> - </property> - </widget> - </item> - <item> <widget class="QDialogButtonBox" name="buttonBox"> <property name="orientation"> <enum>Qt::Horizontal</enum> |