aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/utils/historycompleter.h
diff options
context:
space:
mode:
authorhjk <qthjk@ovi.com>2012-08-22 15:08:38 +0200
committerhjk <qthjk@ovi.com>2012-08-23 10:57:18 +0200
commiteaee72c4afbbec907ffe6f358c2785ebf07ae7ad (patch)
tree43228f1e89a9b980beb4b2595bc52b2a1eb434f9 /src/libs/utils/historycompleter.h
parentc685abebafe7e08428b3f88e0a8d317ec33a3ace (diff)
historycompleter: even less use of object names.
This allows history to be shared between similar but different line edits. Change-Id: I6ddaa686f99cf0d89e9be024ccb006d179a6bd1c Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'src/libs/utils/historycompleter.h')
-rw-r--r--src/libs/utils/historycompleter.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/libs/utils/historycompleter.h b/src/libs/utils/historycompleter.h
index b1b97dd01b..3827eced31 100644
--- a/src/libs/utils/historycompleter.h
+++ b/src/libs/utils/historycompleter.h
@@ -35,13 +35,13 @@
#include <QCompleter>
-QT_FORWARD_DECLARE_CLASS(QSettings)
+QT_BEGIN_NAMESPACE
+class QSettings;
+QT_END_NAMESPACE
namespace Utils {
-namespace Internal {
- class HistoryCompleterPrivate;
-}
+namespace Internal { class HistoryCompleterPrivate; }
class QTCREATOR_UTILS_EXPORT HistoryCompleter : public QCompleter
{
@@ -49,7 +49,7 @@ class QTCREATOR_UTILS_EXPORT HistoryCompleter : public QCompleter
public:
HistoryCompleter(QSettings *settings, QObject *parent,
- const QByteArray &historyKey = QByteArray());
+ const QString &historyKey = QString());
~HistoryCompleter();
int historySize() const;
int maximalHistorySize() const;
@@ -61,7 +61,6 @@ public Q_SLOTS:
private:
Internal::HistoryCompleterPrivate *d;
-
};
} // namespace Utils