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

List:       kde-commits
Subject:    branches/work/suse_kickoff/kicker/kicker/ui
From:       Stephan Binner <binner () kde ! org>
Date:       2006-10-11 11:23:16
Message-ID: 1160565796.967968.9159.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 594451 by binner:

implement a size restriction for menu (bnc:205373)


 M  +3 -1      k_new_mnu.cpp  


--- branches/work/suse_kickoff/kicker/kicker/ui/k_new_mnu.cpp #594450:594451
@@ -3366,7 +3366,9 @@
 {
 #warning FIXME
     // this should be only for the inner area so layout changes do not break it
-    QSize wanted(KickerSettings::kMenuWidth(), KickerSettings::kMenuHeight());
+    const int width = QMIN(KickerSettings::kMenuWidth(), QApplication::desktop()->width()-50);
+    const int height = QMIN(KickerSettings::kMenuHeight(), QApplication::desktop()->height()-50);
+    QSize wanted(width, height);
     kdDebug() << "show " << minimumSizeHint() << " " << m_stacker->minimumSizeHint() << " "
               << m_searchFrame->minimumSizeHint() << " " << wanted << endl;
     bool isDefault = wanted.isNull();
[prev in list] [next in list] [prev in thread] [next in thread] 

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