forked from qt-creator/qt-creator
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user