Diffstat (limited to 'noncore/multimedia/opieplayer2/mediawidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/mediawidget.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/noncore/multimedia/opieplayer2/mediawidget.cpp b/noncore/multimedia/opieplayer2/mediawidget.cpp index a1b292e..1d18d6f 100644 --- a/noncore/multimedia/opieplayer2/mediawidget.cpp +++ b/noncore/multimedia/opieplayer2/mediawidget.cpp | |||
@@ -60,5 +60,13 @@ void MediaWidget::handleCommand( Command command, bool buttonDown ) | |||
60 | } | 60 | } |
61 | } | 61 | } |
62 | 62 | ||
63 | bool MediaWidget::isOverButton( const QPoint &position, int buttonId ) const | ||
64 | { | ||
65 | return ( position.x() > 0 && position.y() > 0 && | ||
66 | position.x() < buttonMask.width() && | ||
67 | position.y() < buttonMask.height() && | ||
68 | buttonMask.pixelIndex( position.x(), position.y() ) == buttonId + 1 ); | ||
69 | } | ||
70 | |||
63 | /* vim: et sw=4 ts=4 | 71 | /* vim: et sw=4 ts=4 |
64 | */ | 72 | */ |