[Kst] [Bug 141612] Kst starts with smallest possible window size
Andrew Walker
arwalker at sumusltd.com
Wed Feb 14 00:55:27 CET 2007
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=141612
------- Additional Comments From arwalker sumusltd com 2007-02-14 00:55 -------
SVN commit 633390 by arwalker:
CCBUG:141612 a marginal improvement in the initial size of the app. the height is still the minimum value
M +16 -0 kst.cpp
M +2 -0 kst.h
--- trunk/extragear/graphics/kst/src/libkstapp/kst.cpp #633389:633390
@ -252,6 +252,22 @
}
+QSize KstApp::sizeHint() const
+{
+ QSize size(600, 480);
+
+ QDesktopWidget *desktop = QApplication::desktop();
+ if (desktop) {
+ QRect rect(desktop->availableGeometry());
+
+ size.setWidth(3*rect.width()/4);
+ size.setHeight(3*rect.height()/4);
+ }
+
+ return size;
+}
+
+
void KstApp::initialize() {
KstSettings::checkUpdates();
kConfigObject = new KConfig("kstdatarc", false, false);
--- trunk/extragear/graphics/kst/src/libkstapp/kst.h #633389:633390
@ -97,6 +97,8 @
KstApp(QWidget* parent=0, const char* name=0);
~KstApp();
+ virtual QSize sizeHint() const;
+
static KstApp* inst();
static void doubleCheckCleanup();
More information about the Kst
mailing list