kalarm/lib
spinbox2.cpp
Go to the documentation of this file.
57 w->render(&p, QPoint(0,0), r, QWidget::DrawWindowBackground | QWidget::DrawChildren | QWidget::IgnoreMask);
331 QApplication::postEvent(mUpdown2, new QHoverEvent(e->type(), QPoint(1, he->pos().y()), he->oldPos()));
338 QApplication::postEvent(mUpdown2, new QHoverEvent(e->type(), he->pos(), QPoint(1, he->oldPos().y())));
381 QRect arrowRect = style()->visualRect((mRightToLeft ? Qt::RightToLeft : Qt::LeftToRight), rect(), QRect(0, 0, wUpdown2, height()));
386 mSpinbox->setGeometry(mRightToLeft ? 0 : -wSpinboxHide, 0, mSpinboxFrame->width() + wSpinboxHide, height());
387 // kDebug() << "arrowRect="<<arrowRect<<", mUpdown2="<<mUpdown2->geometry()<<", mSpinboxFrame="<<mSpinboxFrame->geometry()<<", mSpinbox="<<mSpinbox->geometry()<<", width="<<width();
409 wSpinboxHide = mRightToLeft ? mSpinbox->style()->subControlRect(QStyle::CC_SpinBox, &option, QStyle::SC_SpinBoxFrame).right() - r.right() : r.left();
441 // kDebug() << "wUpdown2="<<wUpdown2<<", wSpinboxHide="<<wSpinboxHide<<", frame right="<<r.right() - butRect.right();
586 int editOffsetX = (oxygen || oxygen1) ? (KDE::version() >= KDE_MAKE_VERSION(4,6,0) ? 4 : 2) : 2; // offset to edit field
607 mMainSpinbox->render(&p, QPoint(x, 0), endr, QWidget::DrawWindowBackground | QWidget::DrawChildren | QWidget::IgnoreMask);
674 QApplication::postEvent(mSpinbox, new QMouseEvent(e->type(), pt, e->button(), e->buttons(), e->modifiers()));
690 QApplication::postEvent(mSpinbox, new QWheelEvent(pt, e->delta(), e->buttons(), e->modifiers()), e->orientation());
745 QApplication::postEvent(mSpinbox, new QHoverEvent(e->type(), spinboxPoint(he->pos()), spinboxPoint(he->oldPos())));
QFrame(QWidget *parent, QFlags< Qt::WindowType > f)
virtual void setEnabled(bool enabled)
Sets whether the widget is enabled.
Definition: spinbox2.cpp:129
bool isRightToLeft()
Type type() const
int width() const
bool end()
void setMatrix(const QMatrix &matrix, bool combine)
Definition: spinbox2_p.h:67
QGraphicsItem * itemAt(const QPointF &position) const
QRect down2Rect() const
Returns the geometry of the left-hand "down" button.
Definition: spinbox2.cpp:148
int right() const
QRect up2Rect() const
Returns the geometry of the left-hand "up" button.
Definition: spinbox2.cpp:143
void setFocusPolicy(Qt::FocusPolicy policy)
void initStyleOption(QStyleOptionSpinBox &) const
Initialise a QStyleOptionSpinBox with this instance's details.
Definition: spinbox.cpp:529
Qt::MouseButtons buttons() const
QStyle * style() const
void setSelectOnStep(bool sel)
Sets whether the spin box value text should be selected when its value is stepped.
Definition: spinbox.h:67
void setBackgroundBrush(const QBrush &brush)
int y() const
void setSceneRect(const QRectF &rect)
void setAttribute(Qt::WidgetAttribute attribute, bool on)
void drawTiledPixmap(const QRectF &rectangle, const QPixmap &pixmap, const QPointF &position)
int height() const
virtual QRect subControlRect(ComplexControl control, const QStyleOptionComplex *option, SubControl subControl, const QWidget *widget) const =0
void setSteps(int line, int page)
Sets the unshifted step increments for the two pairs of spin buttons, i.e.
Definition: spinbox2.cpp:162
Qt::MouseButtons buttons() const
const QPoint & pos() const
void setFrameStyle(int style)
QGraphicsScene * scene() const
int x() const
int y() const
QGraphicsPixmapItem * addPixmap(const QPixmap &pixmap)
static QRect spinBoxEditFieldRect(const QWidget *, const QStyleOptionSpinBox &)
Definition: spinbox2.cpp:770
void setGeometry(int x, int y, int w, int h)
void initFrom(const QWidget *widget)
width
size
void setWrapping(bool on)
Sets whether it is possible to step the value from the highest value to the lowest value and vice ver...
Definition: spinbox2.cpp:137
Qt::FocusReason reason() const
void setReverseWithLayout(bool reverse)
Sets whether the spin button pairs should be reversed for a right-to-left language.
Definition: spinbox2.cpp:119
bool reverseButtons() const
Returns whether the spin button pairs will be reversed for a right-to-left language.
Definition: spinbox2.h:85
void setEnabled(bool)
void setShiftSteps(int line, int page)
Sets the shifted step increments for the two pairs of spin buttons, i.e.
Definition: spinbox2.cpp:178
qreal x() const
qreal y() const
void installEventFilter(QObject *filterObj)
int x() const
void setButtonSymbols(QSpinBox::ButtonSymbols)
Sets the button symbols to use (arrows or plus/minus).
Definition: spinbox2.cpp:194
virtual void paintEvent(QPaintEvent *)
void valueChanged(int value)
Signal which is emitted whenever the value of the spin box changes.
int top() const
Qt::Orientation orientation() const
virtual bool event(QEvent *event)
void painted()
bool inherits(const char *className) const
virtual void setReadOnly(bool readOnly)
Sets whether the spin box can be changed by the user.
Definition: spinbox2.cpp:109
void setFocus()
void setTop(int y)
void setPos(const QPointF &pos)
int left() const
Qt::MouseButton button() const
void setHorizontalScrollBarPolicy(Qt::ScrollBarPolicy)
void setWidth(int width)
void setFocusProxy(QWidget *w)
void setWidth(int width)
QPointF mapFromScene(const QPointF &point) const
void move(int x, int y)
void setScene(QGraphicsScene *scene)
const QPoint & oldPos() const
QPixmap scaled(int width, int height, Qt::AspectRatioMode aspectRatioMode, Qt::TransformationMode transformMode) const
bool signalsBlocked() const
QRect rect() 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
Qt::KeyboardModifiers modifiers() const
bool blockSignals(bool block)
const QSize & size() const
void setFixedSize(const QSize &s)
virtual void setMinimum(int val)
Sets the minimum value of the spin box.
Definition: spinbox2.cpp:207
int delta() const
int bound(int val) const
Returns the specified value clamped to the range of the spin box.
Definition: spinbox2.cpp:202
void setButtonSymbols(ButtonSymbols bs)
int width() const
QPoint pos()
const QPoint & pos() const
void setValue(int val)
void setHeight(int height)
QRect visualRect(Qt::LayoutDirection direction, const QRect &boundingRectangle, const QRect &logicalRectangle)
QPoint mapFromGlobal(const QPoint &pos) const
int height() const
void setPixmap(const QPixmap &pixmap)
void adjust(int dx1, int dy1, int dx2, int dy2)
void setX(int x)
void setY(int y)
void setMouseTracking(bool enable)
void setSingleStep(int step)
Sets the unshifted step increment for the right-hand spin buttons, i.e.
Definition: spinbox2.cpp:153
const QPoint & pos() const
void moveRight(int x)
virtual void setMaximum(int val)
Sets the maximum value of the spin box.
Definition: spinbox2.cpp:214
SpinMirror(ExtraSpinBox *, SpinBox *, QWidget *parent=0)
Definition: spinbox2.cpp:532
void postEvent(QObject *receiver, QEvent *event)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
Definition: spinbox2_p.h:38
void setZValue(qreal z)
void setVerticalScrollBarPolicy(Qt::ScrollBarPolicy)
void setLeft(int x)
virtual void setReadOnly(bool readOnly)
Sets whether the spin box can be changed by the user.
Definition: spinbox.cpp:76
height
void render(QPaintDevice *target, const QPoint &targetOffset, const QRegion &sourceRegion, QFlags< QWidget::RenderFlag > renderFlags)
singleShot
void setWrapping(bool w)
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.