16class LIBDTKWIDGETSHARED_EXPORT
DIpv4LineEdit :
public QLineEdit,
public DCORE_NAMESPACE::DObject
22 Q_PROPERTY(QString displayText READ displayText)
23 Q_PROPERTY(
int cursorPosition READ cursorPosition WRITE setCursorPosition)
24 Q_PROPERTY(Qt::Alignment alignment READ alignment)
25 Q_PROPERTY(QString selectedText READ selectedText)
26 Q_PROPERTY(
bool acceptableInput READ hasAcceptableInput)
27 Q_PROPERTY(
bool readOnly READ isReadOnly WRITE setReadOnly)
28 Q_PROPERTY(QString placeholderText READ placeholderText)
29 Q_PROPERTY(
bool clearButtonEnabled READ isClearButtonEnabled)
34 QString displayText() const;
35 int cursorPosition() const;
36 Qt::Alignment alignment() const;
37 bool hasAcceptableInput() const;
38 bool isReadOnly() const;
41 void setCursorPosition(
int cursorPosition);
42 void setReadOnly(
bool readOnly);
43 void setSelection(
int start,
int length);
47 void focusChanged(
bool focus);
50 bool eventFilter(QObject *obj, QEvent *e) Q_DECL_OVERRIDE;
54 void setPlaceholderText(QString placeholderText);
55 void setClearButtonEnabled(
bool clearButtonEnabled);
57 Q_PRIVATE_SLOT(d_func(),
void _q_updateLineEditText())
58 Q_PRIVATE_SLOT(d_func(),
void _q_setIpLineEditText(const QString &))
61 void resizeEvent(QResizeEvent *event) override;