#include <lcdnumber.h>
◆ CALCDNumber()
| CALCDNumber::CALCDNumber |
( |
int |
iMin, |
|
|
int |
iMax, |
|
|
QWidget * |
poParent = 0, |
|
|
QString |
oText = "" |
|
) |
| |
Constructs the number display
- Parameters
-
| iMin | minimal number |
| iMax | maximal number |
| oToolTipText | text to be displayed as tool tip
|
| oShortCut | shortcut for a quick change of the number |
| poParent | parent widget |
| oText | name of the widget |
References max_, min_, and setRealValue().
◆ contextMenuEvent()
| virtual void CALCDNumber::contextMenuEvent |
( |
QContextMenuEvent * |
poEvt | ) |
|
|
inlineprotectedvirtual |
Overrides QMainWindow::contextMenuEvent() to prevent showing the context menu when the LCD widget is right-clicked (in a toolbar).
- Parameters
-
| poEvt | Pointer to event info. |
◆ getRealValue()
| int CALCDNumber::getRealValue |
( |
| ) |
|
◆ isZero()
| bool CALCDNumber::isZero |
( |
| ) |
|
Checks if the value is 0 (or false if LCD number wasn't plugged)
References getRealValue().
◆ mousePressEvent()
| void CALCDNumber::mousePressEvent |
( |
QMouseEvent * |
poEvt | ) |
|
|
protectedvirtual |
◆ setMax()
| void CALCDNumber::setMax |
( |
int |
iMax | ) |
|
◆ setMin()
| void CALCDNumber::setMin |
( |
int |
iMin | ) |
|
◆ setRealValue()
| void CALCDNumber::setRealValue |
( |
int |
val | ) |
|
Sets the current value of the number display
- Parameters
-
References max_, realValue_, and valChanged().
Referenced by CALCDNumber(), mousePressEvent(), CAMainWin::on_uiInsertPlayable_toggled(), CAMainWin::on_uiNewVoice_triggered(), CAMainWin::on_uiRemoveVoice_triggered(), CAMainWin::scoreViewKeyPress(), CAMainWin::scoreViewMousePress(), setMax(), setMin(), CAMainWin::setMode(), and wheelEvent().
◆ valChanged
| void CALCDNumber::valChanged |
( |
int |
iVal | ) |
|
|
signal |
Actually sends out the changed value if triggered via mouse press event
- Parameters
-
Referenced by setRealValue().
◆ wheelEvent()
| void CALCDNumber::wheelEvent |
( |
QWheelEvent * |
poEvt | ) |
|
|
protectedvirtual |
◆ max_
◆ min_
◆ numDisplay_
◆ realValue_
| int CALCDNumber::realValue_ |
|
private |
◆ toolTipText_
| QString CALCDNumber::toolTipText_ |
|
private |
The documentation for this class was generated from the following files:
- /home/iurt/rpmbuild/BUILD/canorus-0.7.3svn20190422/src/widgets/lcdnumber.h
- /home/iurt/rpmbuild/BUILD/canorus-0.7.3svn20190422/src/widgets/lcdnumber.cpp