[Kst] extragear/graphics/kst/src/libkstapp

Andrew Walker arwalker at sumusltd.com
Wed Feb 14 00:55:22 CET 2007


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