Changeset View
Changeset View
Standalone View
Standalone View
mainwindow.cpp
Show First 20 Lines • Show All 134 Lines • ▼ Show 20 Line(s) | |||||
135 | { | 135 | { | ||
136 | } | 136 | } | ||
137 | 137 | | |||
138 | void MainWindow::setupActions() | 138 | void MainWindow::setupActions() | ||
139 | { | 139 | { | ||
140 | QAction *connectionAction = actionCollection()->addAction(QStringLiteral("new_connection")); | 140 | QAction *connectionAction = actionCollection()->addAction(QStringLiteral("new_connection")); | ||
141 | connectionAction->setText(i18n("New Connection")); | 141 | connectionAction->setText(i18n("New Connection")); | ||
142 | connectionAction->setIcon(QIcon::fromTheme(QStringLiteral("network-connect"))); | 142 | connectionAction->setIcon(QIcon::fromTheme(QStringLiteral("network-connect"))); | ||
143 | actionCollection()->setDefaultShortcuts(connectionAction, KStandardShortcut::openNew()); | ||||
143 | connect(connectionAction, SIGNAL(triggered()), SLOT(newConnectionPage())); | 144 | connect(connectionAction, SIGNAL(triggered()), SLOT(newConnectionPage())); | ||
144 | 145 | | |||
145 | QAction *screenshotAction = actionCollection()->addAction(QStringLiteral("take_screenshot")); | 146 | QAction *screenshotAction = actionCollection()->addAction(QStringLiteral("take_screenshot")); | ||
146 | screenshotAction->setText(i18n("Copy Screenshot to Clipboard")); | 147 | screenshotAction->setText(i18n("Copy Screenshot to Clipboard")); | ||
147 | screenshotAction->setIconText(i18n("Screenshot")); | 148 | screenshotAction->setIconText(i18n("Screenshot")); | ||
148 | screenshotAction->setIcon(QIcon::fromTheme(QStringLiteral("ksnapshot"))); | 149 | screenshotAction->setIcon(QIcon::fromTheme(QStringLiteral("ksnapshot"))); | ||
149 | connect(screenshotAction, SIGNAL(triggered()), SLOT(takeScreenshot())); | 150 | connect(screenshotAction, SIGNAL(triggered()), SLOT(takeScreenshot())); | ||
150 | 151 | | |||
▲ Show 20 Lines • Show All 1054 Lines • Show Last 20 Lines |