forked from qt-creator/qt-creator
Navigation side bar: It is "View", not "Pane"
Change-Id: Ic6a2f953089a58a8aaa432b9edeb7f6357d527f6 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
This commit is contained in:
@@ -199,7 +199,7 @@ bool CommandComboBox::event(QEvent *e)
|
|||||||
if (e->type() == QEvent::ToolTip) {
|
if (e->type() == QEvent::ToolTip) {
|
||||||
const QString text = currentText();
|
const QString text = currentText();
|
||||||
if (const Core::Command *cmd = command(text)) {
|
if (const Core::Command *cmd = command(text)) {
|
||||||
const QString tooltip = tr("Activate %1 Pane").arg(text);
|
const QString tooltip = tr("Activate %1 View").arg(text);
|
||||||
setToolTip(cmd->stringWithAppendedShortcut(tooltip));
|
setToolTip(cmd->stringWithAppendedShortcut(tooltip));
|
||||||
} else {
|
} else {
|
||||||
setToolTip(text);
|
setToolTip(text);
|
||||||
|
@@ -184,7 +184,7 @@ void NavigationWidget::setFactories(const QList<INavigationWidgetFactory *> &fac
|
|||||||
foreach (INavigationWidgetFactory *factory, factories) {
|
foreach (INavigationWidgetFactory *factory, factories) {
|
||||||
const Id id = factory->id();
|
const Id id = factory->id();
|
||||||
|
|
||||||
QAction *action= new QAction(tr("Activate %1 Pane").arg(factory->displayName()), this);
|
QAction *action = new QAction(tr("Activate %1 View").arg(factory->displayName()), this);
|
||||||
connect(action, SIGNAL(triggered()), this, SLOT(activateSubWidget()));
|
connect(action, SIGNAL(triggered()), this, SLOT(activateSubWidget()));
|
||||||
d->m_actionMap.insert(action, id);
|
d->m_actionMap.insert(action, id);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user