forked from qt-creator/qt-creator
clarify file->new/open/open with
This is a fix for the problem, that some users were unable to figure out how to open projects.
This commit is contained in:
@@ -558,21 +558,21 @@ void MainWindow::registerDefaultActions()
|
||||
connect(m_focusToEditor, SIGNAL(activated()), this, SLOT(setFocusToEditor()));
|
||||
|
||||
// New File Action
|
||||
m_newAction = new QAction(QIcon(Constants::ICON_NEWFILE), tr("&New..."), this);
|
||||
m_newAction = new QAction(QIcon(Constants::ICON_NEWFILE), tr("&New File/Project..."), this);
|
||||
cmd = am->registerAction(m_newAction, Constants::NEW, m_globalContext);
|
||||
cmd->setDefaultKeySequence(QKeySequence::New);
|
||||
mfile->addAction(cmd, Constants::G_FILE_NEW);
|
||||
connect(m_newAction, SIGNAL(triggered()), this, SLOT(newFile()));
|
||||
|
||||
// Open Action
|
||||
m_openAction = new QAction(QIcon(Constants::ICON_OPENFILE), tr("&Open..."), this);
|
||||
m_openAction = new QAction(QIcon(Constants::ICON_OPENFILE), tr("&Open File/Project..."), this);
|
||||
cmd = am->registerAction(m_openAction, Constants::OPEN, m_globalContext);
|
||||
cmd->setDefaultKeySequence(QKeySequence::Open);
|
||||
mfile->addAction(cmd, Constants::G_FILE_OPEN);
|
||||
connect(m_openAction, SIGNAL(triggered()), this, SLOT(openFile()));
|
||||
|
||||
// Open With Action
|
||||
m_openWithAction = new QAction(tr("&Open With..."), this);
|
||||
m_openWithAction = new QAction(tr("&Open File With..."), this);
|
||||
cmd = am->registerAction(m_openWithAction, Constants::OPEN_WITH, m_globalContext);
|
||||
mfile->addAction(cmd, Constants::G_FILE_OPEN);
|
||||
connect(m_openWithAction, SIGNAL(triggered()), this, SLOT(openFileWith()));
|
||||
|
||||
Reference in New Issue
Block a user