Commit b8b2568a authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Core: Export PromptOverwriteDialog



This is necessary since the JsonWizard will need to trigger this dialog, too.

Change-Id: Ic8eebc77282a620b13c227890b5f1861a31a2b20
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
parent ae37f767
......@@ -420,7 +420,7 @@ BaseFileWizardFactory::OverwriteResult BaseFileWizardFactory::promptOverwrite(Ge
return OverwriteError;
}
// Prompt to overwrite existing files.
Internal::PromptOverwriteDialog overwriteDialog;
PromptOverwriteDialog overwriteDialog;
// Scripts cannot handle overwrite
overwriteDialog.setFiles(existingFiles);
foreach (const GeneratedFile &file, *files)
......
......@@ -57,7 +57,6 @@ static inline QString fileNameOfItem(const QStandardItem *item)
}
namespace Core {
namespace Internal {
PromptOverwriteDialog::PromptOverwriteDialog(QWidget *parent) :
QDialog(parent),
......@@ -157,5 +156,4 @@ bool PromptOverwriteDialog::isFileChecked(const QString &f) const
return false;
}
} // namespace Internal
} // namespace Core
......@@ -30,6 +30,8 @@
#ifndef PROMPTOVERWRITEDIALOG_H
#define PROMPTOVERWRITEDIALOG_H
#include "../core_global.h"
#include <QDialog>
QT_BEGIN_NAMESPACE
......@@ -40,10 +42,9 @@ class QLabel;
QT_END_NAMESPACE
namespace Core {
namespace Internal {
// Documentation inside.
class PromptOverwriteDialog : public QDialog
class CORE_EXPORT PromptOverwriteDialog : public QDialog
{
Q_OBJECT
public:
......@@ -69,7 +70,6 @@ private:
QStandardItemModel *m_model;
};
} // namespace Internal
} // namespace Core
#endif // PROMPTOVERWRITEDIALOG_H
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment