[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/krita/ui/widgets
From: Cyrille Berger <cyb () lepi ! org>
Date: 2009-07-27 9:24:18
Message-ID: 1248686658.706208.31159.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1002900 by berger:
first show the popup, then change its position (otherwise, on first show the widget \
might be not layouted properly, and have an incorrect dimension)
M +2 -3 kis_popup_button.cc
--- trunk/koffice/krita/ui/widgets/kis_popup_button.cc #1002899:1002900
@@ -86,6 +86,8 @@
void KisPopupButton::showPopupWidget()
{
if (m_d->popupWidget) {
+ m_d->frame->raise();
+ m_d->frame->show();
QSize popSize = m_d->popupWidget->size();
QRect popupRect(this->mapToGlobal(QPoint(0, this->size().height())), \
popSize);
@@ -97,10 +99,7 @@
popupRect.translate(screenRect.left() - popupRect.left(), 0);
if (popupRect.bottom() > screenRect.bottom())
popupRect.translate(0, -m_d->frame->height());
-
m_d->frame->setGeometry(popupRect);
- m_d->frame->raise();
- m_d->frame->show();
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic