KNumInput Class Reference
You need to inherit from this class if you want to implement K*NumInput for a different variable type. More...
#include <knuminput.h>
Inheritance diagram for KNumInput:

Public Member Functions | |
KNumInput (QWidget *parent=0, const char *name=0) | |
Default constructor. | |
KNumInput (KNumInput *below, QWidget *parent=0, const char *name=0) | |
virtual void | setLabel (const QString &label, int a=AlignLeft|AlignTop) |
Sets the text and alignment of the main description label. | |
QString | label () const |
bool | showSlider () const |
void | setSteps (int minor, int major) |
Sets the spacing of tickmarks for the slider. | |
QSizePolicy | sizePolicy () const |
Specifies that this widget may stretch horizontally, but is fixed vertically (like QSpinBox itself). | |
virtual QSize | sizeHint () const |
Returns a size which fits the contents of the control. | |
Protected Member Functions | |
void | layout (bool deep) |
Call this function whenever you change something in the geometry of your KNumInput child. | |
virtual void | doLayout ()=0 |
You need to overwrite this method and implement your layout calculations there. | |
virtual void | virtual_hook (int id, void *data) |
Protected Attributes | |
KNumInput * | m_prev |
KNumInput * | m_next |
int | m_colw1 |
int | m_colw2 |
QLabel * | m_label |
QSlider * | m_slider |
QSize | m_sizeSlider |
QSize | m_sizeLabel |
int | m_alignment |
Detailed Description
You need to inherit from this class if you want to implement K*NumInput for a different variable type.
Definition at line 48 of file knuminput.h.
Constructor & Destructor Documentation
|
Default constructor.
Definition at line 60 of file knuminput.cpp. References KStdAccel::name(). |
|
Definition at line 66 of file knuminput.cpp. References m_next, m_prev, and KStdAccel::name(). |
Member Function Documentation
|
Sets the text and alignment of the main description label.
Reimplemented in KIntNumInput, and KDoubleNumInput. Definition at line 99 of file knuminput.cpp. References QString::isEmpty(), KStdAccel::label(), QWidget::layout(), QLabel::setAlignment(), and QLabel::setText(). Referenced by KDoubleNumInput::setLabel(), and KIntNumInput::setLabel(). |
|
Definition at line 120 of file knuminput.cpp. References QLabel::text(). |
|
Definition at line 95 of file knuminput.h. |
|
Sets the spacing of tickmarks for the slider.
Definition at line 193 of file knuminput.cpp. |
|
Specifies that this widget may stretch horizontally, but is fixed vertically (like QSpinBox itself).
Reimplemented from QWidget. Definition at line 183 of file knuminput.cpp. |
|
Returns a size which fits the contents of the control.
Reimplemented from QWidget. Definition at line 188 of file knuminput.cpp. References QWidget::minimumSizeHint(). |
|
Call this function whenever you change something in the geometry of your KNumInput child.
Definition at line 126 of file knuminput.cpp. References doLayout(), m_colw1, m_colw2, m_next, m_prev, and QSize::width(). |
|
You need to overwrite this method and implement your layout calculations there. See KIntNumInput::doLayout and KDoubleNumInput::doLayout implementation for details. Implemented in KIntNumInput, and KDoubleNumInput. Referenced by layout(). |
The documentation for this class was generated from the following files: