mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user