kalarm/lib
spinbox.cpp
Go to the documentation of this file.
380 int step = (currentButton == UP) ? mLineShiftStep : (currentButton == DOWN) ? -mLineShiftStep : 0;
533 so.subControls = mUpDownOnly ? (QStyle::SC_SpinBoxUp | QStyle::SC_SpinBoxDown | QStyle::SC_SpinBoxFrame)
534 : (QStyle::SC_SpinBoxUp | QStyle::SC_SpinBoxDown | QStyle::SC_SpinBoxFrame | QStyle::SC_SpinBoxEditField);
Qt::MouseButtons mouseButtons()
void setMinimum(int min)
Qt::KeyboardModifiers modifiers() const
Type type() const
virtual void keyReleaseEvent(QKeyEvent *event)
void initStyleOption(QStyleOptionSpinBox &) const
Initialise a QStyleOptionSpinBox with this instance's details.
Definition: spinbox.cpp:529
void interpretText()
QStyle * style() const
virtual void keyPressEvent(QKeyEvent *event)
virtual StepEnabled stepEnabled() const
QRect upDownRect() const
Returns the rectangle containing the up and down arrows.
Definition: spinbox.cpp:508
virtual QRect subControlRect(ComplexControl control, const QStyleOptionComplex *option, SubControl subControl, const QWidget *widget) const =0
bool hasFocus() const
Qt::MouseButtons buttons() const
void valueChanged(int i)
void setReadOnly(bool)
void installEventFilter(QObject *filterObj)
virtual void mouseDoubleClickEvent(QMouseEvent *)
Definition: spinbox.cpp:255
Qt::MouseButton button() const
virtual bool eventFilter(QObject *, QEvent *)
Receives events destined for the spin widget or for the edit field.
Definition: spinbox.cpp:189
void setRange(int minValue, int maxValue)
Sets the minimum and maximum values of the spin box.
Definition: spinbox.h:79
QLineEdit * lineEdit() const
bool isEmpty() const
virtual void mousePressEvent(QMouseEvent *event)
virtual bool eventFilter(QObject *watched, QEvent *event)
virtual void wheelEvent(QWheelEvent *event)
void stepped(int step)
Signal emitted when the spin box's value is stepped (by the shifted or unshifted increment).
bool signalsBlocked() const
virtual int shiftStepAdjustment(int oldValue, int shiftStep)
Returns the initial adjustment to the value for a shift step up or down.
Definition: spinbox.cpp:459
void addValue(int change)
Adds a value to the current value of the spin box.
Definition: spinbox.h:69
int singleStep() const
Qt::KeyboardModifiers modifiers() const
int key() const
void accept()
bool blockSignals(bool block)
virtual void mouseMoveEvent(QMouseEvent *event)
int delta() const
void setMaximum(int max)
virtual void mouseDoubleClickEvent(QMouseEvent *event)
ButtonSymbols buttonSymbols() const
virtual void stepBy(int steps)
Called whenever the user triggers a step, to adjust the value of the spin box by the unshifted increm...
Definition: spinbox.cpp:120
virtual void mouseReleaseEvent(QMouseEvent *event)
virtual void paintEvent(QPaintEvent *event)
int value() const
int bound(int val) const
Returns the specified value clamped to the range of the spin box.
Definition: spinbox.cpp:87
bool hasFrame() const
QString specialValueText() const
void init(const QWidget *widget)
virtual void drawComplexControl(ComplexControl control, const QStyleOptionComplex *option, QPainter *painter, const QWidget *widget) const =0
const QPoint & pos() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void deselect()
virtual void setReadOnly(bool readOnly)
Sets whether the spin box can be changed by the user.
Definition: spinbox.cpp:76
virtual void focusOutEvent(QFocusEvent *event)
bool wrapping() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:35:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:35:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.