@@ -34,50 +34,50 @@ class QHistoryLineEdit : public QLineEdit {
3434 QHistoryLineEdit (const QString& contents, QWidget* parent = 0 );
3535 QHistoryLineEdit (QWidget* parent = 0 );
3636
37- void enableReturnPressedOnClear ();
37+ void enableReturnPressedOnClear ();
3838
39- int lineCount () const ;
39+ int lineCount () const ;
4040
41- void setHistory (const QStringList& history);
42- QStringList history () const ;
41+ void setHistory (const QStringList& history);
42+ QStringList history () const ;
4343
44- void setWordCompleter (QCompleter* completer);
45- void setWordCompleterPrefix (const QString& prefix);
46- void setWordCompleterMinChars (int minChars);
47- void setWordCompleterMaxSuggestions (int max);
44+ void setWordCompleter (QCompleter* completer);
45+ void setWordCompleterPrefix (const QString& prefix);
46+ void setWordCompleterMinChars (int minChars);
47+ void setWordCompleterMaxSuggestions (int max);
4848
4949 public slots:
50- void execute ();
50+ void execute ();
5151
5252 signals:
53- void lineExecuted (QString text);
54- void lostFocus ();
55- void gainedFocus ();
56- void escapePressed ();
53+ void lineExecuted (QString text);
54+ void lostFocus ();
55+ void gainedFocus ();
56+ void escapePressed ();
5757
5858 protected:
59- void keyPressEvent (QKeyEvent* event) Q_DECL_OVERRIDE;
60- void wheelEvent (QWheelEvent* event) Q_DECL_OVERRIDE;
61- void focusOutEvent (QFocusEvent* event) Q_DECL_OVERRIDE;
62- void focusInEvent (QFocusEvent* event) Q_DECL_OVERRIDE;
59+ void keyPressEvent (QKeyEvent* event) Q_DECL_OVERRIDE;
60+ void wheelEvent (QWheelEvent* event) Q_DECL_OVERRIDE;
61+ void focusOutEvent (QFocusEvent* event) Q_DECL_OVERRIDE;
62+ void focusInEvent (QFocusEvent* event) Q_DECL_OVERRIDE;
6363
64- void previousLine ();
65- void nextLine ();
64+ void previousLine ();
65+ void nextLine ();
6666
67- QString current_word () const ;
67+ QString current_word () const ;
6868
6969 private slots:
70- void autoComplete (const QString& completion);
70+ void autoComplete (const QString& completion);
7171
7272 private:
73- int _wordStart () const ;
74-
75- int _currentLine;
76- QStringList _lines;
77- QString _unfinished;
78- QCompleter* _completer;
79- QString _completionPrefix;
80- int _completionMinchars;
81- int _completionMax;
73+ int _wordStart () const ;
74+
75+ int _currentLine;
76+ QStringList _lines;
77+ QString _unfinished;
78+ QCompleter* _completer;
79+ QString _completionPrefix;
80+ int _completionMinchars;
81+ int _completionMax;
8282};
8383
0 commit comments