[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdebase/kwin/clients/b2
From: Luciano Montanaro <mikelima () cirulla ! net>
Date: 2004-06-02 9:53:24
Message-ID: 20040602095324.F1596126EF () office ! kde ! org
[Download RAW message or body]
CVS commit by montanaro:
Use the new showWindowMenu() variant.
M +3 -10 b2client.cpp 1.74
--- kdebase/kwin/clients/b2/b2client.cpp #1.73:1.74
@@ -839,15 +839,8 @@ void B2Client::menuButtonPressed()
if (!dbl) {
KDecorationFactory* f = factory();
-#if 0
- QPoint menutop = button[BtnMenu]->mapToGlobal(
- button[BtnMenu]->rect().topLeft());
- QPoint menubottom = button[BtnMenu]->mapToGlobal(
- button[BtnMenu]->rect().bottomRight());
+ QRect menuRect =button[BtnMenu]->rect();
+ QPoint menutop = button[BtnMenu]->mapToGlobal(menuRect.topLeft());
+ QPoint menubottom = button[BtnMenu]->mapToGlobal(menuRect.bottomRight());
showWindowMenu(QRect(menutop, menubottom));
-#else
- QPoint menupoint = button[BtnMenu]->mapToGlobal(
- button[BtnMenu]->rect().bottomLeft());
- showWindowMenu(menupoint);
-#endif
if (!f->exists(this)) // 'this' was destroyed
return;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic