The ScrollDialPopup is a private class of QtScrollDial. More...
#include <scrolldialpopup.h>
Public Member Functions | |
ScrollDialPopup (QtScrollDial *parent) | |
virtual | ~ScrollDialPopup () |
void | setSkin (const QString &skin) |
QString | skin () const |
void | setRange (int minimum, int maximum) |
void | setValue (int value) |
Protected Member Functions | |
virtual void | hideEvent (QHideEvent *event) |
virtual void | resizeEvent (QResizeEvent *event) |
virtual void | paintEvent (QPaintEvent *event) |
virtual void | wheelEvent (QWheelEvent *event) |
void | init () |
void | updateMask () |
Properties | |
QString | skin |
The ScrollDialPopup is a private class of QtScrollDial.
The description of the QtBasicDialGauge.
ScrollDialPopup::ScrollDialPopup | ( | QtScrollDial * | parent | ) |
Constructor of the ScrollDialPopup with parent
as parent.
ScrollDialPopup::~ScrollDialPopup | ( | ) | [virtual] |
Destructor
void ScrollDialPopup::hideEvent | ( | QHideEvent * | event | ) | [protected, virtual] |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
void ScrollDialPopup::paintEvent | ( | QPaintEvent * | event | ) | [protected, virtual] |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
void ScrollDialPopup::resizeEvent | ( | QResizeEvent * | event | ) | [protected, virtual] |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
References updateMask().
void ScrollDialPopup::setRange | ( | int | minimum, | |
int | maximum | |||
) |
Sets the ScrollDialPopup's minimum to min and its maximum to max. If max is smaller than min, min becomes the only legal value. See also minimum and maximum.
References QtBasicDialGauge::setRange().
Referenced by QtScrollDial::mousePressEvent().
void ScrollDialPopup::setSkin | ( | const QString & | skin | ) |
With this function you can set the skin that will be displayed in the widget.
ScrollDialPopup * scroll = new ScrollDialPopup(this); scroll->setSkin("Beryl");
This function has to be called before using the ScrollDialPopup.
References QtScrollWheel::setSkin().
Referenced by QtScrollDial::setSkin().
void ScrollDialPopup::setValue | ( | int | value | ) |
Set the current value of the display and wheel widget.
References QtBasicDialGauge::setValue().
Referenced by QtScrollDial::mousePressEvent().
void ScrollDialPopup::updateMask | ( | ) | [protected] |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Referenced by resizeEvent().
void ScrollDialPopup::wheelEvent | ( | QWheelEvent * | event | ) | [protected, virtual] |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
QString ScrollDialPopup::skin [read, write] |
This function returns the actual skin name. If no skin has been set the return value is "".
ScrollDialPopup * scroll = new ScrollDialPopup(this); scroll->setSkin("Beryl"); qDebug() << scroll->skin();