Changeset View
Changeset View
Standalone View
Standalone View
addons/konsole/kateconsole.cpp
Show First 20 Lines • Show All 143 Lines • ▼ Show 20 Line(s) | 128 | { | |||
---|---|---|---|---|---|
144 | 144 | | |||
145 | a = actionCollection()->addAction(QStringLiteral("katekonsole_tools_run")); | 145 | a = actionCollection()->addAction(QStringLiteral("katekonsole_tools_run")); | ||
146 | a->setText(i18nc("@action", "Run Current Document")); | 146 | a->setText(i18nc("@action", "Run Current Document")); | ||
147 | connect(a, SIGNAL(triggered()), this, SLOT(slotRun())); | 147 | connect(a, SIGNAL(triggered()), this, SLOT(slotRun())); | ||
148 | 148 | | |||
149 | a = actionCollection()->addAction(QStringLiteral("katekonsole_tools_toggle_focus")); | 149 | a = actionCollection()->addAction(QStringLiteral("katekonsole_tools_toggle_focus")); | ||
150 | a->setIcon(QIcon::fromTheme(QStringLiteral("utilities-terminal"))); | 150 | a->setIcon(QIcon::fromTheme(QStringLiteral("utilities-terminal"))); | ||
151 | a->setText(i18nc("@action", "&Focus Terminal")); | 151 | a->setText(i18nc("@action", "&Focus Terminal")); | ||
152 | a->setShortcut(QKeySequence(Qt::Key_F4)); | 152 | actionCollection()->setDefaultShortcut(a, QKeySequence(Qt::Key_F4)); | ||
153 | connect(a, &QAction::triggered, this, &KateConsole::slotToggleFocus); | 153 | connect(a, &QAction::triggered, this, &KateConsole::slotToggleFocus); | ||
154 | 154 | | |||
155 | m_mw->guiFactory()->addClient (this); | 155 | m_mw->guiFactory()->addClient (this); | ||
156 | 156 | | |||
157 | readConfig(); | 157 | readConfig(); | ||
158 | } | 158 | } | ||
159 | 159 | | |||
160 | KateConsole::~KateConsole () | 160 | KateConsole::~KateConsole () | ||
▲ Show 20 Lines • Show All 342 Lines • Show Last 20 Lines |