Commit 60f23d29 authored by hjk's avatar hjk

core: remove unused return value from ICore::showNewItemDialog()

Reviewed-By: dt
parent a10b2692
......@@ -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,9 +74,9 @@ public:
static ICore *instance();
virtual QStringList showNewItemDialog(const QString &title,
const QList<IWizard *> &wizards,
const QString &defaultLocation = QString()) = 0;
virtual void showNewItemDialog(const QString &title,
const QList<IWizard *> &wizards,
const QString &defaultLocation = QString()) = 0;
virtual bool showOptionsDialog(const QString &group = QString(),
const QString &page = QString(),
......
......@@ -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,9 +134,9 @@ public slots:
void exit();
void setFullScreen(bool on);
QStringList showNewItemDialog(const QString &title,
const QList<IWizard *> &wizards,
const QString &defaultLocation = QString());
void showNewItemDialog(const QString &title,
const QList<IWizard *> &wizards,
const QString &defaultLocation = QString());
bool showOptionsDialog(const QString &category = QString(),
const QString &page = QString(),
......
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