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.
This commit is contained in:
Clinton Stimpson
2008-04-02 15:28:17 -04:00
parent 76ed89cede
commit 1e61bb1f4c
2 changed files with 38 additions and 3 deletions

View File

@@ -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;