Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tooltip fixes to match current keyboard shortcuts #598

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/robomongo/gui/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ namespace Robomongo
).arg(explorerColor));

_openAction = new QAction(GuiRegistry::instance().openIcon(), tr("&Open..."), this);
_openAction->setToolTip("Load script from the file to the currently opened shell");
_openAction->setToolTip(QString("Load script from the file to the currently opened shell <b>(%1 + O)</b>").arg(controlKey));
_openAction->setShortcuts(QKeySequence::Open);
VERIFY(connect(_openAction, SIGNAL(triggered()), this, SLOT(open())));

Expand All @@ -143,7 +143,7 @@ namespace Robomongo
_connectAction->setShortcuts(QKeySequence::New);
_connectAction->setIcon(GuiRegistry::instance().connectIcon());
_connectAction->setIconText("Connect");
_connectAction->setToolTip(QString("Connect to local or remote MongoDB instance <b>(%1 + O)</b>").arg(controlKey));
_connectAction->setToolTip(QString("Connect to local or remote MongoDB instance <b>(%1 + N)</b>").arg(controlKey));
VERIFY(connect(_connectAction, SIGNAL(triggered()), this, SLOT(manageConnections())));

_connectionsMenu = new ConnectionMenu(this);
Expand All @@ -154,7 +154,7 @@ namespace Robomongo
_connectButton->setText("&Connect...");
_connectButton->setIcon(GuiRegistry::instance().connectIcon());
_connectButton->setFocusPolicy(Qt::NoFocus);
_connectButton->setToolTip(QString("Connect to local or remote MongoDB instance <b>(%1 + O)</b>").arg(controlKey));
_connectButton->setToolTip(QString("Connect to local or remote MongoDB instance <b>(%1 + N)</b>").arg(controlKey));
_connectButton->setToolButtonStyle(Qt::ToolButtonIconOnly);

#if !defined(Q_OS_MAC)
Expand Down