ZoomButton Class Reference
A class for Zoom Buttons.
More...
#include <zoombutton.h>
List of all members.
Public Member Functions |
| ZoomButton (QWidget *parent=0, QString normalIconPictureFileName=QString(), QString selectedIconPictureFileName=QString()) |
| Constructor.
|
const QPoint & | eventPosition () |
| Relative position of the event inside the widget.
|
Protected Member Functions |
void | mouseMoveEvent (QMouseEvent *event) |
| Event handler for mouse move events.
|
void | mousePressEvent (QMouseEvent *event) |
| Event handler for mouse press events.
|
Private Attributes |
QTimer * | m_dragStartTimer |
| Mouse press timer, initiates drag mode.
|
QPoint | m_eventPosition |
| Position of mousePressEvent.
|
Detailed Description
A class for Zoom Buttons.
- Author:
- Kaj Wallin - kaj.wallin (at) ixonos.com
Constructor & Destructor Documentation
ZoomButton::ZoomButton |
( |
QWidget * |
parent = 0 , |
|
|
QString |
normalIconPictureFileName = QString() , |
|
|
QString |
selectedIconPictureFileName = QString() | |
|
) |
| | |
Constructor.
- Parameters:
-
| parent | Parent |
| normalIconPictureFileName | Normal state Icon image file name |
| selectedIconPictureFileName | Selected state Icon image file name (optional) |
Member Function Documentation
void ZoomButton::mouseMoveEvent |
( |
QMouseEvent * |
event |
) |
[protected] |
Event handler for mouse move events.
- Parameters:
-
void ZoomButton::mousePressEvent |
( |
QMouseEvent * |
event |
) |
[protected] |
Event handler for mouse press events.
- Parameters:
-
Reimplemented from ImageButton.
The documentation for this class was generated from the following files: