KDEUI
knuminput.h
Go to the documentation of this file.
224 KDE_CONSTRUCTOR_DEPRECATED KIntNumInput(KNumInput* below, int value, QWidget *parent, int base = 10);
483 KDoubleNumInput(double lower, double upper, double value, QWidget *parent=0,double singleStep=0.01,
void relativeValueChanged(double)
This is an overloaded member function, provided for convenience.
virtual void doLayout()
You need to overwrite this method and implement your layout calculations there.
Definition knuminput.cpp:876
void setPrefix(const QString &prefix)
Sets the prefix to be displayed to prefix.
Definition knuminput.cpp:1033
void setSuffix(const QString &suffix)
Sets the suffix to be displayed to suffix.
Definition knuminput.cpp:1026
void setRange(double min, double max, double singleStep=1, bool slider=true)
Definition knuminput.cpp:906
void setSpecialValueText(const QString &text)
Sets the special value text.
Definition knuminput.cpp:1052
KDoubleNumInput(QWidget *parent=0)
Constructs an input control for double values with initial value 0.00.
Definition knuminput.cpp:697
void valueChanged(double)
Emitted every time the value changes (by calling setValue() or by user interaction).
void setEditFocus(bool mark=true)
sets focus to the edit widget and marks all text in if mark == true
Definition knuminput.cpp:541
void setRelativeValue(double)
Sets the value in units of the referencePoint.
Definition knuminput.cpp:634
void setRange(int min, int max, int singleStep=1)
Sets the allowed input range and the step size for the slider and the spin box.
Definition knuminput.cpp:450
KIntNumInput(QWidget *parent=0)
Constructs an input control for integer values with base 10 and initial value 0.
Definition knuminput.cpp:347
virtual void doLayout()
You need to overwrite this method and implement your layout calculations there.
Definition knuminput.cpp:574
virtual QSize minimumSizeHint() const
This method returns the minimum size necessary to display the control.
Definition knuminput.cpp:546
void relativeValueChanged(double)
Emitted whenever valueChanged is.
virtual void setLabel(const QString &label, Qt::Alignment a=Qt::AlignLeft|Qt::AlignTop)
Sets the text and alignment of the main description label.
Definition knuminput.cpp:668
void valueChanged(int)
Emitted every time the value changes (by calling setValue() or by user interaction).
void setSpecialValueText(const QString &text)
Sets the special value text.
Definition knuminput.cpp:657
void setBase(int base)
Sets the base in which the numbers in the spin box are represented.
Definition knuminput.cpp:274
virtual QString textFromValue(int) const
Overloaded the method in QSpinBox to make use of the base given in the constructor.
Definition knuminput.cpp:285
void setSuffix(const KLocalizedString &suffix)
Sets the suffix to suffix.
Definition knuminput.cpp:311
virtual int valueFromText(const QString &text) const
Overloaded the method in QSpinBox to make use of the base given in the constructor.
Definition knuminput.cpp:290
void layout(bool deep)
Call this function whenever you change something in the geometry of your KNumInput child.
Definition knuminput.cpp:158
virtual void doLayout()=0
You need to overwrite this method and implement your layout calculations there.
virtual void setLabel(const QString &label, Qt::Alignment a=Qt::AlignLeft|Qt::AlignTop)
Sets the text and alignment of the main description label.
Definition knuminput.cpp:130
virtual QSize sizeHint() const
Returns a size which fits the contents of the control.
Definition knuminput.cpp:218
void setSteps(int minor, int major)
Sets the spacing of tickmarks for the slider.
Definition knuminput.cpp:223
QString prefix()
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.