diff options
author | Clinton Stimpson <clinton@elemtech.com> | 2008-04-02 19:28:17 (GMT) |
---|---|---|
committer | Clinton Stimpson <clinton@elemtech.com> | 2008-04-02 19:28:17 (GMT) |
commit | 1e61bb1f4c19f6ed474abe4ab8415ac2a60e6b22 (patch) | |
tree | 0d50a0682fa62c4c76f1948e24de3501048665d2 /Source/QtDialog/QCMakeCacheView.h | |
parent | 76ed89cedebe4b47dcbc8f29442b2f9061a15f8e (diff) | |
download | CMake-1e61bb1f4c19f6ed474abe4ab8415ac2a60e6b22.zip CMake-1e61bb1f4c19f6ed474abe4ab8415ac2a60e6b22.tar.gz CMake-1e61bb1f4c19f6ed474abe4ab8415ac2a60e6b22.tar.bz2 |
BUG: Keep editor alive when file dialog comes up to pick another file or path.
The editor going away prematurely Seems to only happen on Mac OS X.
Diffstat (limited to 'Source/QtDialog/QCMakeCacheView.h')
-rw-r--r-- | Source/QtDialog/QCMakeCacheView.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/QtDialog/QCMakeCacheView.h b/Source/QtDialog/QCMakeCacheView.h index fd8c2fe..45a858e 100644 --- a/Source/QtDialog/QCMakeCacheView.h +++ b/Source/QtDialog/QCMakeCacheView.h @@ -108,6 +108,11 @@ public: const QModelIndex& index ) const; bool editorEvent (QEvent* event, QAbstractItemModel* model, const QStyleOptionViewItem& option, const QModelIndex& index); + bool eventFilter(QObject* object, QEvent* event); +protected slots: + void setFileDialogFlag(bool); +protected: + bool FileDialogFlag; }; /// Editor widget for editing paths or file paths @@ -118,6 +123,8 @@ public: QCMakeCacheFileEditor(QWidget* p, const QString& var); protected slots: virtual void chooseFile() = 0; +signals: + void fileDialogExists(bool); protected: void resizeEvent(QResizeEvent* e); QToolButton* ToolButton; |