35 #include "pqWidgetsModule.h" 54 Q_PROPERTY(QString text2 READ text WRITE setTextAndResetCursor)
55 Q_PROPERTY(
bool resetCursorPositionOnEditingFinished
56 READ resetCursorPositionOnEditingFinished
57 WRITE setResetCursorPositionOnEditingFinished)
59 typedef QLineEdit Superclass;
62 pqLineEdit(
const QString &contents, QWidget *parent=0);
71 {
return this->ResetCursorPositionOnEditingFinished; }
78 void textChangedAndEditingFinished();
84 void setTextAndResetCursor(
const QString& text);
90 { this->ResetCursorPositionOnEditingFinished = val; }
94 void onEditingFinished();
101 void triggerTextChangedAndEditingFinished();
106 bool EditingFinishedPending;
107 bool ResetCursorPositionOnEditingFinished;
void setResetCursorPositionOnEditingFinished(bool val)
To enable/disable whether the cursor position is reset to 0 after editingFinished() is fired...
pqLineEditEventPlayer extends pqAbstractStringEventPlayer to ensure that pqLineEdit fires textChanged...
pqLineEdit is a specialization of QLineEdit which provide a new property 'text2'. ...
bool resetCursorPositionOnEditingFinished() const
To enable/disable whether the cursor position is reset to 0 after editingFinished() is fired...