aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/preferences_dialog.cpp
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2013-02-01 00:14:15 +0000
committerGerald Combs <gerald@wireshark.org>2013-02-01 00:14:15 +0000
commit89c5066f6710083f10ed921c73209f659f160d3a (patch)
tree91f056a6a9a94c078dbc8f0c8489d40442c718ec /ui/qt/preferences_dialog.cpp
parent7fb4d231c3fa80edfcce9944a90652ec274e24be (diff)
Add interface prefs. Adjust some spacing and resize behavior.
svn path=/trunk/; revision=47403
Diffstat (limited to 'ui/qt/preferences_dialog.cpp')
-rw-r--r--ui/qt/preferences_dialog.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/qt/preferences_dialog.cpp b/ui/qt/preferences_dialog.cpp
index 24d43f9b45..cf40f1c0f1 100644
--- a/ui/qt/preferences_dialog.cpp
+++ b/ui/qt/preferences_dialog.cpp
@@ -218,6 +218,9 @@ void PreferencesDialog::showEvent(QShowEvent *evt)
int new_prefs_tree_width = pd_ui_->prefsTree->style()->subElementRect(QStyle::SE_TreeViewDisclosureItem, &style_opt).left();
QList<int> sizes = pd_ui_->splitter->sizes();
+#ifdef Q_WS_WIN
+ new_prefs_tree_width *= 2;
+#endif
pd_ui_->prefsTree->resizeColumnToContents(0);
new_prefs_tree_width += pd_ui_->prefsTree->columnWidth(0);
pd_ui_->prefsTree->setMinimumWidth(new_prefs_tree_width);