[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.4/kdegraphics/kpdf/ui
From: Albert Astals Cid <tsdgeos () terra ! es>
Date: 2005-09-11 20:20:12
Message-ID: 1126470012.564026.11135.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 459780 by aacid:
Ensure the button is updated on enter/leave events, as some styles may not do that.
M +14 -0 minibar.cpp
--- branches/KDE/3.4/kdegraphics/kpdf/ui/minibar.cpp #459779:459780
@@ -69,6 +69,8 @@
protected:
void paintEvent( QPaintEvent * e );
+ void enterEvent( QPaintEvent * e );
+ void leaveEvent( QPaintEvent * e );
};
@@ -397,6 +399,18 @@
#endif
}
+void HoverButton::enterEvent( QPaintEvent * e )
+{
+ update();
+ QPushButton::enterEvent( e );
+}
+
+void HoverButton::leaveEvent( QPaintEvent * e )
+{
+ update();
+ QPushButton::leaveEvent( e );
+}
+
void HoverButton::paintEvent( QPaintEvent * e )
{
if ( hasMouse() )
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic