Use Open Project button in Getting Started mode

We already have it in the projects mode so we might as well
use the same in "Getting Started".

Reviewed-by: danimo
This commit is contained in:
Jens Bache-Wiig
2010-04-29 19:07:13 +02:00
parent a99614b29d
commit c7d08f9b6e
7 changed files with 37 additions and 33 deletions

View File

@@ -1283,6 +1283,18 @@ QPrinter *MainWindow::printer() const
return m_printer;
}
void MainWindow::openProject()
{
// ### We need a way to access the mimedatabase and differentiate
// between project types and other files. This is currently not possible
const QString filters = "All Files (*);;Projects(*.pro *.qmlproject)";
QString selectedFilters = "Projects(*.pro *.qmlproject)";
QStringList files =
Core::ICore::instance()->fileManager()->getOpenFileNames(
filters, tr("Open Project"), &selectedFilters);
openFiles(files);
}
void MainWindow::setFullScreen(bool on)
{
if (bool(windowState() & Qt::WindowFullScreen) == on)