[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdebase/kpersonalizer
From:       George Staikos <staikos () kde ! org>
Date:       2002-03-02 13:25:02
[Download RAW message or body]


kdebase/kpersonalizer keyecandypage.cpp,1.26,1.27
Author: staikos
Sat Mar  2 14:25:02 CET 2002
In directory office:/tmp/cvs-serv455


Modified Files:
         keyecandypage.cpp
Log Message:


For Xinerama.  KDE apps can no longer assume that QApplication::desktop() is the \
screen!  You must ask QApplication::desktop() how many screens there are, and what \
their geometry is.   This makes the personalizer set the settings that are intended.  \
On a 2x 640x480 desktop it would look terrible to have 48x48 icons!

3x this diff:


-  if(QApplication::desktop()->width() >=1024){
-     icon_effect_size_desktop->setOn(true); // enable 48x48 icons by default if the \
                desktop size is wider than 1024x768
-  }
-  if(QApplication::desktop()->width() >=1280){
-     icon_effect_size_panel->setOn(true);
+  for (int i = 0; i < QApplication::desktop()->numScreens(); i++) {
+     if(QApplication::desktop()->screenGeometry(i).width() >= 1024)
+        icon_effect_size_desktop->setOn(true); // enable 48x48 icons by default if a \
screen size is wider than 1024 +     \
if(QApplication::desktop()->screenGeometry(i).width() >= 1280) +        \
icon_effect_size_panel->setOn(true);


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic