Changeset View
Changeset View
Standalone View
Standalone View
src/MainWindow.cpp
Show First 20 Lines • Show All 339 Lines • ▼ Show 20 Line(s) | 307 | { | |||
---|---|---|---|---|---|
340 | // Bookmark Menu | 340 | // Bookmark Menu | ||
341 | KActionMenu *bookmarkMenu = new KActionMenu(i18nc("@title:menu", "&Bookmarks"), collection); | 341 | KActionMenu *bookmarkMenu = new KActionMenu(i18nc("@title:menu", "&Bookmarks"), collection); | ||
342 | _bookmarkHandler = new BookmarkHandler(collection, bookmarkMenu->menu(), true, this); | 342 | _bookmarkHandler = new BookmarkHandler(collection, bookmarkMenu->menu(), true, this); | ||
343 | collection->addAction(QStringLiteral("bookmark"), bookmarkMenu); | 343 | collection->addAction(QStringLiteral("bookmark"), bookmarkMenu); | ||
344 | connect(_bookmarkHandler, &Konsole::BookmarkHandler::openUrls, this, | 344 | connect(_bookmarkHandler, &Konsole::BookmarkHandler::openUrls, this, | ||
345 | &Konsole::MainWindow::openUrls); | 345 | &Konsole::MainWindow::openUrls); | ||
346 | 346 | | |||
347 | // Settings Menu | 347 | // Settings Menu | ||
348 | _toggleMenuBarAction = KStandardAction::showMenubar(menuBar(), SLOT(setVisible(bool)), collection); | 348 | _toggleMenuBarAction = KStandardAction::showMenubar(menuBar(), &MainWindow::setVisible, collection); | ||
anthonyfieroni: It should be setVisible on QMenuBar not on MainWindow
```
toggleMenuBarAction = KStandardAction… | |||||
tcanabrava: ups. | |||||
349 | collection->setDefaultShortcut(_toggleMenuBarAction, Konsole::ACCEL + Qt::SHIFT + Qt::Key_M); | 349 | collection->setDefaultShortcut(_toggleMenuBarAction, Konsole::ACCEL + Qt::SHIFT + Qt::Key_M); | ||
350 | 350 | | |||
351 | // Full Screen | 351 | // Full Screen | ||
352 | menuAction = KStandardAction::fullScreen(this, SLOT(viewFullScreen(bool)), this, collection); | 352 | menuAction = KStandardAction::fullScreen(this, &MainWindow::viewFullScreen, this, collection); | ||
353 | collection->setDefaultShortcut(menuAction, Qt::Key_F11); | 353 | collection->setDefaultShortcut(menuAction, Qt::Key_F11); | ||
354 | 354 | | |||
355 | KStandardAction::configureNotifications(this, SLOT(configureNotifications()), collection); | 355 | KStandardAction::configureNotifications(this, &MainWindow::configureNotifications, collection); | ||
356 | KStandardAction::keyBindings(this, SLOT(showShortcutsDialog()), collection); | 356 | KStandardAction::keyBindings(this, &MainWindow::showShortcutsDialog, collection); | ||
357 | KStandardAction::preferences(this, SLOT(showSettingsDialog()), collection); | 357 | KStandardAction::preferences(this, &MainWindow::showSettingsDialog, collection); | ||
358 | 358 | | |||
359 | menuAction = collection->addAction(QStringLiteral("manage-profiles")); | 359 | menuAction = collection->addAction(QStringLiteral("manage-profiles")); | ||
360 | menuAction->setText(i18nc("@action:inmenu", "Manage Profiles...")); | 360 | menuAction->setText(i18nc("@action:inmenu", "Manage Profiles...")); | ||
361 | menuAction->setIcon(QIcon::fromTheme(QStringLiteral("configure"))); | 361 | menuAction->setIcon(QIcon::fromTheme(QStringLiteral("configure"))); | ||
362 | connect(menuAction, &QAction::triggered, this, &Konsole::MainWindow::showManageProfilesDialog); | 362 | connect(menuAction, &QAction::triggered, this, &Konsole::MainWindow::showManageProfilesDialog); | ||
363 | 363 | | |||
364 | // Set up an shortcut-only action for activating menu bar. | 364 | // Set up an shortcut-only action for activating menu bar. | ||
365 | menuAction = collection->addAction(QStringLiteral("activate-menu")); | 365 | menuAction = collection->addAction(QStringLiteral("activate-menu")); | ||
▲ Show 20 Lines • Show All 474 Lines • Show Last 20 Lines |
It should be setVisible on QMenuBar not on MainWindow