forked from qt-creator/qt-creator
core: remove unused return value from ICore::showNewItemDialog()
Reviewed-By: dt
This commit is contained in:
@@ -67,11 +67,11 @@ CoreImpl::~CoreImpl()
|
||||
m_instance = 0;
|
||||
}
|
||||
|
||||
QStringList CoreImpl::showNewItemDialog(const QString &title,
|
||||
void CoreImpl::showNewItemDialog(const QString &title,
|
||||
const QList<IWizard *> &wizards,
|
||||
const QString &defaultLocation)
|
||||
{
|
||||
return m_mainwindow->showNewItemDialog(title, wizards, defaultLocation);
|
||||
m_mainwindow->showNewItemDialog(title, wizards, defaultLocation);
|
||||
}
|
||||
|
||||
bool CoreImpl::showOptionsDialog(const QString &group, const QString &page, QWidget *parent)
|
||||
|
||||
@@ -44,7 +44,7 @@ public:
|
||||
CoreImpl(MainWindow *mainwindow);
|
||||
~CoreImpl();
|
||||
|
||||
QStringList showNewItemDialog(const QString &title,
|
||||
void showNewItemDialog(const QString &title,
|
||||
const QList<IWizard *> &wizards,
|
||||
const QString &defaultLocation = QString());
|
||||
bool showOptionsDialog(const QString &group = QString(),
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn QStringList ICore::showNewItemDialog(const QString &title,
|
||||
\fn void ICore::showNewItemDialog(const QString &title,
|
||||
const QList<IWizard *> &wizards,
|
||||
const QString &defaultLocation = QString())
|
||||
\brief Opens a dialog where the user can choose from a set of \a wizards that
|
||||
|
||||
@@ -74,7 +74,7 @@ public:
|
||||
|
||||
static ICore *instance();
|
||||
|
||||
virtual QStringList showNewItemDialog(const QString &title,
|
||||
virtual void showNewItemDialog(const QString &title,
|
||||
const QList<IWizard *> &wizards,
|
||||
const QString &defaultLocation = QString()) = 0;
|
||||
|
||||
|
||||
@@ -883,7 +883,7 @@ void MainWindow::setFocusToEditor()
|
||||
|
||||
}
|
||||
|
||||
QStringList MainWindow::showNewItemDialog(const QString &title,
|
||||
void MainWindow::showNewItemDialog(const QString &title,
|
||||
const QList<IWizard *> &wizards,
|
||||
const QString &defaultLocation)
|
||||
{
|
||||
@@ -906,7 +906,7 @@ QStringList MainWindow::showNewItemDialog(const QString &title,
|
||||
}
|
||||
|
||||
if (!wizard)
|
||||
return QStringList();
|
||||
return;
|
||||
|
||||
QString path = defaultLocation;
|
||||
if (path.isEmpty()) {
|
||||
@@ -925,7 +925,7 @@ QStringList MainWindow::showNewItemDialog(const QString &title,
|
||||
break;
|
||||
}
|
||||
}
|
||||
return wizard->runWizard(path, this);
|
||||
wizard->runWizard(path, this);
|
||||
}
|
||||
|
||||
bool MainWindow::showOptionsDialog(const QString &category,
|
||||
|
||||
@@ -134,7 +134,7 @@ public slots:
|
||||
void exit();
|
||||
void setFullScreen(bool on);
|
||||
|
||||
QStringList showNewItemDialog(const QString &title,
|
||||
void showNewItemDialog(const QString &title,
|
||||
const QList<IWizard *> &wizards,
|
||||
const QString &defaultLocation = QString());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user