aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/utils/historycompleter.h
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2013-12-13 14:34:28 +0200
committerOrgad Shaneh <orgads@gmail.com>2014-01-14 11:30:48 +0100
commit6c78cb303e71fef9564fe7d1b3b5ec9870e318d5 (patch)
tree775c15187c9c46631bbfbf0a9725361627e082ca /src/libs/utils/historycompleter.h
parent77b766400e38bd460d1319a3e0b7eaa004e6225f (diff)
Utils: Introduce CompletingLineEdit
* Works around QTCREATORBUG-9453 * Triggers completion on Key_Down with empty prefix * Replace current filters in HistoryCompleter and FancyLineEdit Change-Id: I56bfd4e0ee969c5ae674de2f2de1081fcf6dc176 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Diffstat (limited to 'src/libs/utils/historycompleter.h')
-rw-r--r--src/libs/utils/historycompleter.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libs/utils/historycompleter.h b/src/libs/utils/historycompleter.h
index 3d9352a6ae..41cb01cb3f 100644
--- a/src/libs/utils/historycompleter.h
+++ b/src/libs/utils/historycompleter.h
@@ -35,11 +35,12 @@
#include <QCompleter>
QT_BEGIN_NAMESPACE
-class QLineEdit;
class QSettings;
QT_END_NAMESPACE
namespace Utils {
+
+class FancyLineEdit;
namespace Internal { class HistoryCompleterPrivate; }
class QTCREATOR_UTILS_EXPORT HistoryCompleter : public QCompleter
@@ -48,7 +49,7 @@ class QTCREATOR_UTILS_EXPORT HistoryCompleter : public QCompleter
public:
static void setSettings(QSettings *settings);
- HistoryCompleter(QLineEdit *lineEdit, const QString &historyKey, QObject *parent = 0);
+ HistoryCompleter(FancyLineEdit *lineEdit, const QString &historyKey, QObject *parent = 0);
bool removeHistoryItem(int index);
private:
@@ -56,7 +57,6 @@ private:
int historySize() const;
int maximalHistorySize() const;
void setMaximalHistorySize(int numberOfEntries);
- bool eventFilter(QObject *obj, QEvent *event);
public Q_SLOTS:
void clearHistory();