diff options
Diffstat (limited to 'Source/QtDialog/QCMakeCacheView.h')
-rw-r--r-- | Source/QtDialog/QCMakeCacheView.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/QtDialog/QCMakeCacheView.h b/Source/QtDialog/QCMakeCacheView.h index 8a6e1de..fd8c2fe 100644 --- a/Source/QtDialog/QCMakeCacheView.h +++ b/Source/QtDialog/QCMakeCacheView.h @@ -25,6 +25,7 @@ #include <QLineEdit> #include <QItemDelegate> #include <QSortFilterProxyModel> +#include <QCompleter> class QCMakeCacheModel; class QToolButton; @@ -139,5 +140,13 @@ public: void chooseFile(); }; +/// completer class that returns native cmake paths +class QCMakeFileCompleter : public QCompleter +{ +public: + QCMakeFileCompleter(QObject* o, bool dirs); + virtual QString pathFromIndex(const QModelIndex& idx) const; +}; + #endif |