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

Reviewed-By: dt
This commit is contained in:
hjk
2010-09-16 16:30:05 +02:00
parent a10b26920b
commit 60f23d29ae
6 changed files with 13 additions and 13 deletions

View File

@@ -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)

View File

@@ -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(),

View File

@@ -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

View File

@@ -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(),

View File

@@ -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,

View File

@@ -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(),