ProjectManager: Make Open Project dialog open in default folder

Move open project dialog handling into ProjectExplorer and make it
use its list of project file patterns. Same in Checkout wizards.

Task-number: QTCREATORBUG-1759
Reviewed-by: dt
This commit is contained in:
Friedemann Kleint
2010-06-28 14:34:30 +02:00
parent eaf8d2692e
commit a945f8b5fd
8 changed files with 43 additions and 21 deletions

View File

@@ -1292,18 +1292,6 @@ 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)