mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
kdeui: implement KIntNumInput and KDoubleNumInput alignment proxies
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
e4ff263ec7
commit
7ca1def2e4
2 changed files with 26 additions and 0 deletions
|
@ -142,6 +142,16 @@ void KIntNumInput::setSpecialValueText(const QString &text)
|
|||
d->spinbox->setSpecialValueText(text);
|
||||
}
|
||||
|
||||
Qt::Alignment KIntNumInput::alignment() const
|
||||
{
|
||||
return d->spinbox->alignment();
|
||||
}
|
||||
|
||||
void KIntNumInput::setAlignment(const Qt::Alignment alignment)
|
||||
{
|
||||
d->spinbox->setAlignment(alignment);
|
||||
}
|
||||
|
||||
int KIntNumInput::base() const
|
||||
{
|
||||
return d->validator->base();
|
||||
|
@ -312,6 +322,16 @@ void KDoubleNumInput::setSpecialValueText(const QString &text)
|
|||
d->spinbox->setSpecialValueText(text);
|
||||
}
|
||||
|
||||
Qt::Alignment KDoubleNumInput::alignment() const
|
||||
{
|
||||
return d->spinbox->alignment();
|
||||
}
|
||||
|
||||
void KDoubleNumInput::setAlignment(const Qt::Alignment alignment)
|
||||
{
|
||||
d->spinbox->setAlignment(alignment);
|
||||
}
|
||||
|
||||
int KDoubleNumInput::decimals() const
|
||||
{
|
||||
return d->spinbox->decimals();
|
||||
|
|
|
@ -49,6 +49,7 @@ class KDEUI_EXPORT KIntNumInput : public QWidget
|
|||
Q_PROPERTY(QString suffix READ suffix WRITE setSuffix)
|
||||
Q_PROPERTY(QString prefix READ prefix WRITE setPrefix)
|
||||
Q_PROPERTY(QString specialValueText READ specialValueText WRITE setSpecialValueText)
|
||||
Q_PROPERTY(Qt::Alignment alignment READ alignment WRITE setAlignment)
|
||||
Q_PROPERTY(int base READ base WRITE setBase)
|
||||
Q_PROPERTY(bool sliderEnabled READ sliderEnabled WRITE setSliderEnabled)
|
||||
public:
|
||||
|
@ -74,6 +75,8 @@ public:
|
|||
QString prefix() const;
|
||||
QString specialValueText() const;
|
||||
void setSpecialValueText(const QString &text);
|
||||
Qt::Alignment alignment() const;
|
||||
void setAlignment(const Qt::Alignment alignment);
|
||||
|
||||
/**
|
||||
* @return the base in which numbers in the spin box are represented.
|
||||
|
@ -143,6 +146,7 @@ class KDEUI_EXPORT KDoubleNumInput : public QWidget
|
|||
Q_PROPERTY(QString suffix READ suffix WRITE setSuffix)
|
||||
Q_PROPERTY(QString prefix READ prefix WRITE setPrefix)
|
||||
Q_PROPERTY(QString specialValueText READ specialValueText WRITE setSpecialValueText)
|
||||
Q_PROPERTY(Qt::Alignment alignment READ alignment WRITE setAlignment)
|
||||
Q_PROPERTY(int decimals READ decimals WRITE setDecimals)
|
||||
Q_PROPERTY(bool sliderEnabled READ sliderEnabled WRITE setSliderEnabled)
|
||||
public:
|
||||
|
@ -168,6 +172,8 @@ public:
|
|||
QString prefix() const;
|
||||
QString specialValueText() const;
|
||||
void setSpecialValueText(const QString &text);
|
||||
Qt::Alignment alignment() const;
|
||||
void setAlignment(const Qt::Alignment alignment);
|
||||
|
||||
/**
|
||||
* @return number of decimals.
|
||||
|
|
Loading…
Add table
Reference in a new issue