forked from editorconfig/editorconfig-qtcreator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheditorconfigwizarddialog.cpp
43 lines (29 loc) · 955 Bytes
/
editorconfigwizarddialog.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
* Copyright 2017 Herbert Graeber
*/
#include "editorconfigwizarddialog.h"
#include "editorconfigwizard.h"
#include "editorconfigwizardpage.h"
#include "editorconfiglogging.h"
using namespace EditorConfig;
using namespace Internal;
EditorConfigDialog::EditorConfigDialog(const EditorConfigWizard *factory, QWidget *parent) :
Core::BaseFileWizard(factory, QVariantMap(), parent)
{
qCDebug(editorConfigLog) << "EditorConfigDialog::EditorConfigDialog";
setWindowTitle(tr("Editorconfig File"));
m_editorConfigPage = new EditorConfigPage(this);
setPage(0, m_editorConfigPage);
foreach (QWizardPage *p, extensionPages())
addPage(p);
}
QString EditorConfigDialog::path() const {
return m_editorConfigPage->path();
}
void EditorConfigDialog::setPath(const QString &path) {
m_editorConfigPage->setPath(path);
}
bool EditorConfigDialog::validateCurrentPage()
{
return QWizard::validateCurrentPage();
}