19class LIBDTKWIDGETSHARED_EXPORT
DLineEdit :
public QWidget,
public DTK_CORE_NAMESPACE::DObject
24 Q_PROPERTY(
bool alert READ isAlert WRITE setAlert NOTIFY alertChanged)
30 QLineEdit *lineEdit() const;
31 void setPlaceholderText(const QString &);
33 void setAlert(
bool isAlert);
35 void showAlertMessage(const QString &text,
int duration = 3000);
36 void showAlertMessage(const QString &text, QWidget *follower,
int duration = 3000);
37 void setAlertMessageAlignment(Qt::Alignment alignment);
38 Qt::Alignment alertMessageAlignment() const;
39 void hideAlertMessage();
41 void setLeftWidgets(const QList<QWidget *> &list);
42 void setRightWidgets(const QList<QWidget *> &list);
44 void setLeftWidgetsVisible(
bool visible);
45 void setRightWidgetsVisible(
bool visible);
47 void setClearButtonEnabled(
bool enable);
48 bool isClearButtonEnabled() const;
50 void setText(const QString &text);
55 QLineEdit::EchoMode echoMode() const;
56 void setEchoMode(QLineEdit::EchoMode mode);
58 void setContextMenuPolicy(Qt::ContextMenuPolicy policy);
60 bool speechToTextIsEnabled() const;
61 void setSpeechToTextEnabled(
bool enable);
63 bool textToSpeechIsEnabled() const;
64 void setTextToSpeechEnabled(
bool enable);
66 bool textToTranslateIsEnabled() const;
67 void setTextToTranslateEnabled(
bool enable);
69 bool copyEnabled() const;
70 void setCopyEnabled(
bool enable);
72 bool cutEnabled() const;
73 void setCutEnabled(
bool enable);
76 void alertChanged(
bool alert) const;
77 void focusChanged(
bool onFocus) const;
79 void textChanged(const QString &);
80 void textEdited(const QString &);
81 void cursorPositionChanged(
int,
int);
83 void editingFinished();
84 void selectionChanged();
88 bool eventFilter(QObject *watched, QEvent *event) override;
89 bool event(QEvent *event) override;