[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdeedu/khangman/khangman
From: Anne-Marie Mahfouf <annma () kde ! org>
Date: 2005-04-11 19:59:36
Message-ID: 20050411195936.C7FCE633 () office ! kde ! org
[Download RAW message or body]
CVS commit by annma:
better position passive popups
M +9 -1 khangmanview.cpp 1.102
--- kdeedu/khangman/khangman/khangmanview.cpp #1.101:1.102
@@ -157,6 +157,10 @@ void KHangManView::mousePressEvent(QMous
myPopup->setPalette(QToolTip::palette());
myPopup->setTimeout(4000); //show for 4 seconds
- //see http://lxr.kde.org/source/kdeextragear-3/digikam/imageplugins/imageeffect_redeye.cpp#L54 \
for reimplementing moveNear() myPopup->show();
+ int x = width()*254/700;
+ int y = height()*405/535;
+ myPopup->move(x, y);
+ //maybe it's better to popup where the mouse clicks, in that case kill the \
popup before new click + //myPopup->move(mouse->pos());
}
update();
@@ -169,4 +173,5 @@ void KHangManView::setTheme()
slotSetPixmap(bcgdPicture);
slotNewGame();
+ update();
}
@@ -434,4 +439,7 @@ void KHangManView::slotTry()
popup->setView(i18n("This letter has already been guessed.") );
popup->show();
+ int x = width()*332/700;
+ int y = height()*134/535;
+ popup->move(x, y);
redIndex = missedL.find(sChar, 0);
//put the letter in red for 1 second
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic