kcalc
kcalc_button.cpp
Go to the documentation of this file.
36 KCalcButton::KCalcButton(QWidget *parent) : KPushButton(parent), show_shortcut_mode_(false), mode_flags_(ModeNormal), size_() {
50 KCalcButton::KCalcButton(const QString &label, QWidget *parent, const QString &tooltip) : KPushButton(label, parent), show_shortcut_mode_(false), mode_flags_(ModeNormal), size_() {
147 const int x_offset = is_down ? style()->pixelMetric(QStyle::PM_ButtonShiftHorizontal, &option, this) : 0;
148 const int y_offset = is_down ? style()->pixelMetric(QStyle::PM_ButtonShiftVertical, &option, this) : 0;
164 p.translate((width() / 2 - doc.size().width() / 2) + x_offset, (height() / 2 - doc.size().height() / 2) + y_offset);
Definition: kcalc_button.h:45
bool contains(const Key &key) const
void save()
QSize globalStrut()
void addMode(ButtonModeFlags mode, const QString &label, const QString &tooltip)
Definition: kcalc_button.cpp:63
Definition: kcalc_button.h:37
QAbstractTextDocumentLayout * documentLayout() const
Definition: kcalc_button.h:39
void slotSetAccelDisplayMode(bool flag)
Definition: kcalc_button.cpp:119
Definition: kcalc_button.h:38
void setDefaultFont(const QFont &font)
void restore()
QSize expandedTo(const QSize &otherSize) const
void translate(const QPointF &offset)
void setHtml(const QString &html)
virtual void draw(QPainter *painter, const PaintContext &context)=0
bool isEmpty() const
void slotSetMode(ButtonModeFlags mode, bool flag)
Definition: kcalc_button.cpp:82
int remove(const Key &key)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:42:28 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:42:28 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.