16class LIBDTKWIDGETSHARED_EXPORT
DSpinBox :
public QSpinBox,
public DTK_CORE_NAMESPACE::DObject
20 Q_PROPERTY(
bool alert READ isAlert WRITE setAlert NOTIFY alertChanged)
21#if DTK_VERSION < DTK_VERSION_CHECK(6, 0, 0, 0)
22 Q_PROPERTY(
int defaultValue READ defaultValue WRITE setDefaultValue NOTIFY defaultValueChanged)
26 explicit DSpinBox(QWidget *parent =
nullptr);
28 QLineEdit *lineEdit()
const;
31 void showAlertMessage(
const QString &text,
int duration = 3000);
32 void showAlertMessage(
const QString &text, QWidget *follower,
int duration = 3000);
33#if DTK_VERSION < DTK_VERSION_CHECK(6, 0, 0, 0)
34 D_DECL_DEPRECATED
int defaultValue()
const;
37 void setEnabledEmbedStyle(
bool enabled);
40 void setAlert(
bool alert);
41#if DTK_VERSION < DTK_VERSION_CHECK(6, 0, 0, 0)
42 D_DECL_DEPRECATED
void setDefaultValue(
int defaultValue);
47#if DTK_VERSION < DTK_VERSION_CHECK(6, 0, 0, 0)
48 D_DECL_DEPRECATED
void defaultValueChanged(
int defaultValue);
56class LIBDTKWIDGETSHARED_EXPORT
DDoubleSpinBox :
public QDoubleSpinBox,
public DTK_CORE_NAMESPACE::DObject
60 Q_PROPERTY(
bool alert READ isAlert WRITE setAlert NOTIFY alertChanged)
61#if DTK_VERSION < DTK_VERSION_CHECK(6, 0, 0, 0)
62 Q_PROPERTY(
double defaultValue READ defaultValue WRITE setDefaultValue NOTIFY defaultValueChanged)
69 void showAlertMessage(
const QString &text,
int duration = 3000);
70 void showAlertMessage(
const QString &text, QWidget *follower,
int duration = 3000);
71#if DTK_VERSION < DTK_VERSION_CHECK(6, 0, 0, 0)
72 D_DECL_DEPRECATED
double defaultValue()
const;
75 QLineEdit *lineEdit()
const;
76 void setEnabledEmbedStyle(
bool enabled);
79 void setAlert(
bool alert);
80#if DTK_VERSION < DTK_VERSION_CHECK(6, 0, 0, 0)
81 D_DECL_DEPRECATED
void setDefaultValue(
double defaultValue);
85 void alertChanged(
bool alert);
86#if DTK_VERSION < DTK_VERSION_CHECK(6, 0, 0, 0)
87 D_DECL_DEPRECATED
void defaultValueChanged(
double defaultValue);