diff options
author | Gerald Combs <gerald@wireshark.org> | 2013-02-01 00:14:15 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2013-02-01 00:14:15 +0000 |
commit | 89c5066f6710083f10ed921c73209f659f160d3a (patch) | |
tree | 91f056a6a9a94c078dbc8f0c8489d40442c718ec /ui/qt/preferences_dialog.cpp | |
parent | 7fb4d231c3fa80edfcce9944a90652ec274e24be (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.cpp | 3 |
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); |