From b28cd2dbd78bfeecd0209142f6dd6a8e8ad8aa90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Mon, 12 Sep 2016 10:53:16 +0200 Subject: [PATCH] Qt: Word wrap static text preferences MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The preferences static text may be too long for the preferences dialog width, so set word wrap for this label. Change-Id: I0828601b39a5e189de707087e317c598576fc3db Reviewed-on: https://code.wireshark.org/review/17656 Petri-Dish: Stig Bjørlykke Tested-by: Petri Dish Buildbot Reviewed-by: Stig Bjørlykke --- ui/qt/module_preferences_scroll_area.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/qt/module_preferences_scroll_area.cpp b/ui/qt/module_preferences_scroll_area.cpp index 4aaa3b21f2..1c6840b1e3 100644 --- a/ui/qt/module_preferences_scroll_area.cpp +++ b/ui/qt/module_preferences_scroll_area.cpp @@ -178,6 +178,7 @@ pref_show(pref_t *pref, gpointer layout_ptr) { QLabel *label = new QLabel(pref->title); label->setToolTip(tooltip); + label->setWordWrap(true); vb->addWidget(label); break; }