aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Fabio Bas2010-04-05 21:10:46 +0000
committerGravatar Fabio Bas2010-04-05 21:10:46 +0000
commitacff38d7d32275af729076947377592733ee1214 (patch)
treeab0418311f258e87f95b71ab7de57150bcbdbe78 /src
parentfix for #756, implemented #757 (diff)
downloadKVIrc-acff38d7d32275af729076947377592733ee1214.tar.gz
KVIrc-acff38d7d32275af729076947377592733ee1214.tar.bz2
KVIrc-acff38d7d32275af729076947377592733ee1214.zip
added a workaround for the userlist/ircview width problem
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@4241 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src')
-rw-r--r--src/kvirc/ui/kvi_ircview.cpp9
-rw-r--r--src/kvirc/ui/kvi_userlistview.cpp9
2 files changed, 16 insertions, 2 deletions
diff --git a/src/kvirc/ui/kvi_ircview.cpp b/src/kvirc/ui/kvi_ircview.cpp
index da1a22023..42c0160dc 100644
--- a/src/kvirc/ui/kvi_ircview.cpp
+++ b/src/kvirc/ui/kvi_ircview.cpp
@@ -172,8 +172,15 @@
// Major opcode: 55
// Program received signal SIGABRT, Aborted.
// Do not change unless you're sure that it will not happen :)
-#define KVI_IRCVIEW_MINIMUM_WIDTH 22
+// #define KVI_IRCVIEW_MINIMUM_WIDTH 22
//16+4+(2*4) * Do not change
+
+/*
+ * Raised this value trying to avoid a bad effect when the window gets resized to its
+ * minimum size: the splitter will return the widgets minimumSize(). We enforce the same
+ * default proportions of 82/18 (ircview/userlist) used in KviChannel::loadProperties
+ */
+#define KVI_IRCVIEW_MINIMUM_WIDTH 82
#define KVI_IRCVIEW_PIXMAP_AND_SEPARATOR 20
#define KVI_IRCVIEW_PIXMAP_SEPARATOR_AND_DOUBLEBORDER_WIDTH 28
#define KVI_IRCVIEW_SIZEHINT_WIDTH 150
diff --git a/src/kvirc/ui/kvi_userlistview.cpp b/src/kvirc/ui/kvi_userlistview.cpp
index 2219da199..b7f810a8a 100644
--- a/src/kvirc/ui/kvi_userlistview.cpp
+++ b/src/kvirc/ui/kvi_userlistview.cpp
@@ -394,7 +394,14 @@ void KviUserListView::applyOptions()
}
updateScrollBarRange();
m_pUsersLabel->setFont(KVI_OPTION_FONT(KviOption_fontUserListView));
- setMinimumWidth(100);
+
+ /*
+ * Lowered this value trying to avoid a bad effect when the window gets resized to its
+ * minimum size: the splitter will return the widgets minimumSize(). We enforce the same
+ * default proportions of 82/18 (ircview/userlist) used in KviChannel::loadProperties
+ */
+
+ setMinimumWidth(18);
resizeEvent(0); // this will call update() too
repaint();
}