forked from qt-creator/qt-creator
Allow specifying the name of a new generic project
The name is used as the base for files like [project].creator, [project].files, etc. and is displayed in the Projects mode and the Projects tree.
This commit is contained in:
@@ -30,10 +30,6 @@
|
||||
#include "filewizardpage.h"
|
||||
#include "ui_filewizardpage.h"
|
||||
|
||||
#include <QtCore/QDebug>
|
||||
#include <QtCore/QDir>
|
||||
#include <QtGui/QMessageBox>
|
||||
|
||||
namespace Core {
|
||||
namespace Utils {
|
||||
|
||||
@@ -103,6 +99,16 @@ bool FileWizardPage::isComplete() const
|
||||
return m_d->m_complete;
|
||||
}
|
||||
|
||||
void FileWizardPage::setNameLabel(const QString &label)
|
||||
{
|
||||
m_d->m_ui.nameLabel->setText(label);
|
||||
}
|
||||
|
||||
void FileWizardPage::setPathLabel(const QString &label)
|
||||
{
|
||||
m_d->m_ui.pathLabel->setText(label);
|
||||
}
|
||||
|
||||
void FileWizardPage::slotValidChanged()
|
||||
{
|
||||
const bool newComplete = m_d->m_ui.pathChooser->isValid() && m_d->m_ui.nameLineEdit->isValid();
|
||||
|
||||
Reference in New Issue
Block a user