summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog/AddCacheEntry.h
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2011-11-19 21:21:41 (GMT)
committerAlex Neundorf <neundorf@kde.org>2011-11-19 21:21:41 (GMT)
commitb0d01c306bd8dc6c636e65d38dc0d9e483568a67 (patch)
tree97bdc61a64fdbcfaa2057a4541f7c9324de15d1e /Source/QtDialog/AddCacheEntry.h
parent08c59af4dec0628964d9534ac165d75914bf580c (diff)
downloadCMake-b0d01c306bd8dc6c636e65d38dc0d9e483568a67.zip
CMake-b0d01c306bd8dc6c636e65d38dc0d9e483568a67.tar.gz
CMake-b0d01c306bd8dc6c636e65d38dc0d9e483568a67.tar.bz2
cmake-gui: add completion for the names when adding cache entries
Up to 100 completion strings for the names of added variables are saved in the settings, so it will remember the variables you are usually adding. It also ensures that CMAKE_INSTALL_PREFIX is always there, since this is maybe the one which is set most often. Alex
Diffstat (limited to 'Source/QtDialog/AddCacheEntry.h')
-rw-r--r--Source/QtDialog/AddCacheEntry.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/QtDialog/AddCacheEntry.h b/Source/QtDialog/AddCacheEntry.h
index db6baf9..e219d4e 100644
--- a/Source/QtDialog/AddCacheEntry.h
+++ b/Source/QtDialog/AddCacheEntry.h
@@ -15,6 +15,7 @@
#include <QWidget>
#include <QCheckBox>
+#include <QStringList>
#include "QCMake.h"
#include "ui_AddCacheEntry.h"
@@ -23,7 +24,7 @@ class AddCacheEntry : public QWidget, public Ui::AddCacheEntry
{
Q_OBJECT
public:
- AddCacheEntry(QWidget* p);
+ AddCacheEntry(QWidget* p, const QStringList& completions);
QString name() const;
QVariant value() const;