[Kst] extragear/graphics/kst/src/libkstapp
George Staikos
staikos at kde.org
Wed Feb 14 01:07:50 CET 2007
If the desktop is Xinerama then this will result in an application
window that spans across multiple screens which is quite ugly.
On 13-Feb-07, at 6:55 PM, Andrew Walker wrote:
> 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();
>
> _______________________________________________
> Kst mailing list
> Kst at kde.org
> https://mail.kde.org/mailman/listinfo/kst
>
--
George Staikos
KDE Developer http://www.kde.org/
Staikos Computing Services Inc. http://www.staikos.net/
More information about the Kst
mailing list