summaryrefslogtreecommitdiff
path: root/src/gui/widgets/textfield.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/textfield.h')
-rw-r--r--src/gui/widgets/textfield.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gui/widgets/textfield.h b/src/gui/widgets/textfield.h
index 58e37f5c..1e6df9d6 100644
--- a/src/gui/widgets/textfield.h
+++ b/src/gui/widgets/textfield.h
@@ -90,6 +90,16 @@ class TextField : public gcn::TextField
*/
int getValue() const;
+ /**
+ * Set if the tabulator key causes auto complete
+ */
+ void setAutoComplete(bool b ) {mAutoComplete = b;}
+
+ /**
+ * Returns if the tabulator key causes auto complete
+ */
+ bool getAutoComplete() {return mAutoComplete;}
+
private:
void handlePaste();
@@ -100,6 +110,7 @@ class TextField : public gcn::TextField
int mMinimum;
int mMaximum;
bool mLoseFocusOnTab;
+ bool mAutoComplete;
};
#endif