From 35c3d3929cedb07bd9fcead83a6445b4e2512792 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 17 Feb 2011 10:54:48 -0700 Subject: [PATCH] Fix #9012 (Tweak Window Left Pane Resizing) --- src/calibre/gui2/preferences/tweaks.py | 3 + src/calibre/gui2/preferences/tweaks.ui | 216 +++++++++++++------------ 2 files changed, 118 insertions(+), 101 deletions(-) diff --git a/src/calibre/gui2/preferences/tweaks.py b/src/calibre/gui2/preferences/tweaks.py index 075375f3b0..9d0097ac35 100644 --- a/src/calibre/gui2/preferences/tweaks.py +++ b/src/calibre/gui2/preferences/tweaks.py @@ -260,6 +260,9 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form): self.restore_default_button.clicked.connect(self.restore_to_default) self.apply_button.clicked.connect(self.apply_tweak) self.plugin_tweaks_button.clicked.connect(self.plugin_tweaks) + self.splitter.setStretchFactor(0, 1) + self.splitter.setStretchFactor(1, 100) + def plugin_tweaks(self): raw = self.tweaks.plugin_tweaks_string diff --git a/src/calibre/gui2/preferences/tweaks.ui b/src/calibre/gui2/preferences/tweaks.ui index 139f9563ad..ab3f6b2bc3 100644 --- a/src/calibre/gui2/preferences/tweaks.ui +++ b/src/calibre/gui2/preferences/tweaks.ui @@ -13,109 +13,123 @@ Form - - - - - - - Values for the tweaks are shown below. Edit them to change the behavior of calibre. Your changes will only take effect <b>after a restart</b> of calibre. - - - true - - - - - - - - 0 - 0 - - - - - 300 - 0 - - - - true - - - 5 - - - true - - - - - - - Edit tweaks for any custom plugins you have installed - - - &Plugin tweaks - - - - - - - - - Help + + + + + Qt::Horizontal - - - - - QPlainTextEdit::NoWrap - - - true - - - - - - - - - - Edit tweak + + false - - - - - QPlainTextEdit::NoWrap - - - - - - - Restore this tweak to its default value - - - Restore &default - - - - - - - Apply any changes you made to this tweak - - - &Apply - - - - + + + + + + Values for the tweaks are shown below. Edit them to change the behavior of calibre. Your changes will only take effect <b>after a restart</b> of calibre. + + + true + + + + + + + + 0 + 0 + + + + + 300 + 0 + + + + true + + + 5 + + + true + + + + + + + Edit tweaks for any custom plugins you have installed + + + &Plugin tweaks + + + + + + + + + + + Help + + + + + + QPlainTextEdit::NoWrap + + + true + + + + + + + + + + Edit tweak + + + + + + QPlainTextEdit::NoWrap + + + + + + + Restore this tweak to its default value + + + Restore &default + + + + + + + Apply any changes you made to this tweak + + + &Apply + + + + + + + +