diff options
author | Clinton Stimpson <clinton@elemtech.com> | 2008-02-15 00:58:31 (GMT) |
---|---|---|
committer | Clinton Stimpson <clinton@elemtech.com> | 2008-02-15 00:58:31 (GMT) |
commit | d0d67d00153cad4f460eab7b930f7c2d3572b498 (patch) | |
tree | 5d69e530830aaaa88e98eee9cbd7b4e27338b34c /Source/QtDialog/QCMakeCacheView.h | |
parent | df3169273a3333efe8ecb45da51e4c53b5d27fe9 (diff) | |
download | CMake-d0d67d00153cad4f460eab7b930f7c2d3572b498.zip CMake-d0d67d00153cad4f460eab7b930f7c2d3572b498.tar.gz CMake-d0d67d00153cad4f460eab7b930f7c2d3572b498.tar.bz2 |
ENH: Convert native paths from QFileDialog and QDirModel/QCompleter.
BUG: Block possible completion loop.
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 |