[Kst] extragear/graphics/kst/src/libkstapp
Andrew Walker
arwalker at sumusltd.com
Wed Feb 14 22:55:03 CET 2007
SVN commit 633704 by arwalker:
usr KGlobalSettings to determine desktop size to prevent problems with xinerama and multi-heads
M +4 -8 kst.cpp
--- trunk/extragear/graphics/kst/src/libkstapp/kst.cpp #633703:633704
@@ -254,16 +254,12 @@
QSize KstApp::sizeHint() const
{
- QSize size(600, 480);
+ QSize size;
+ QRect rect( KGlobalSettings::desktopGeometry(KstApp::inst()) );
- QDesktopWidget *desktop = QApplication::desktop();
- if (desktop) {
- QRect rect(desktop->availableGeometry());
+ size.setWidth(3*rect.width()/4);
+ size.setHeight(3*rect.height()/4);
- size.setWidth(3*rect.width()/4);
- size.setHeight(3*rect.height()/4);
- }
-
return size;
}
More information about the Kst
mailing list