[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/utils/yakuake/src
From: Eike Hein <hein () kde ! org>
Date: 2007-05-05 5:10:23
Message-ID: 1178341823.440151.2767.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 661296 by hein:
* Update splitter's minimum sizes during cleanup to fix handle
movement problems after adding and deleting a series of ter-
minals in one direction.
* Remove some obsolete files.
D shell_session.cpp
D shell_session.h
M +21 -2 terminal_splitter.cpp
M +1 -0 terminal_splitter.h
--- trunk/extragear/utils/yakuake/src/terminal_splitter.cpp #661295:661296
@@ -16,7 +16,6 @@
#include <qobjectlist.h>
-
TerminalSplitter::TerminalSplitter(Orientation o, QWidget* parent, const char* name)
: QSplitter(o, parent, name)
{
@@ -98,5 +97,25 @@
splitter->recursiveCleanup();
}
- if (count() == 0) deleteLater();
+ if (count() == 0)
+ deleteLater();
+ else
+ {
+ // Update minimum sizes.
+ if (orientation() == TerminalSplitter::Horizontal)
+ {
+ int minimumWidth = (terminalCount() > 1) ?
+ terminalCount()*150+handleWidth() : terminalCount()*150;
+
+ setMinimumSize(QSize(minimumWidth, minimumHeight()));
+
+ }
+ else if (orientation() == TerminalSplitter::Vertical)
+ {
+ int minimumHeight = (terminalCount() > 1) ?
+ terminalCount()*70+handleWidth() : terminalCount()*70;
+
+ setMinimumSize(QSize(minimumWidth(), minimumHeight));
+ }
+ }
}
--- trunk/extragear/utils/yakuake/src/terminal_splitter.h #661295:661296
@@ -39,6 +39,7 @@
void setPrepareShutdown(bool shutdown);
+
private:
bool is_shutting_down;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic