Changeset View
Changeset View
Standalone View
Standalone View
src/MainWindow.cpp
Show First 20 Lines • Show All 894 Lines • ▼ Show 20 Line(s) | 732 | { | |||
---|---|---|---|---|---|
895 | ac->addAction( "next", action ); | 895 | ac->addAction( "next", action ); | ||
896 | KGlobalAccel::setGlobalShortcut(action, QKeySequence() ); | 896 | KGlobalAccel::setGlobalShortcut(action, QKeySequence() ); | ||
897 | connect( action, &QAction::triggered, pa, &Playlist::Actions::next ); | 897 | connect( action, &QAction::triggered, pa, &Playlist::Actions::next ); | ||
898 | 898 | | |||
899 | action = new QAction( i18n( "Increase Volume" ), this ); | 899 | action = new QAction( i18n( "Increase Volume" ), this ); | ||
900 | ac->addAction( "increaseVolume", action ); | 900 | ac->addAction( "increaseVolume", action ); | ||
901 | KGlobalAccel::setGlobalShortcut(action, QKeySequence( Qt::META + Qt::Key_Plus ) ); | 901 | KGlobalAccel::setGlobalShortcut(action, QKeySequence( Qt::META + Qt::Key_Plus ) ); | ||
902 | action->setShortcut( Qt::Key_Plus ); | 902 | action->setShortcut( Qt::Key_Plus ); | ||
903 | connect( action, &QAction::triggered, ec, &EngineController::increaseVolume ); | 903 | connect( action, &QAction::triggered, ec, &EngineController::regularIncreaseVolume ); | ||
904 | 904 | | |||
905 | action = new QAction( i18n( "Decrease Volume" ), this ); | 905 | action = new QAction( i18n( "Decrease Volume" ), this ); | ||
906 | ac->addAction( "decreaseVolume", action ); | 906 | ac->addAction( "decreaseVolume", action ); | ||
907 | KGlobalAccel::setGlobalShortcut(action, QKeySequence( Qt::META + Qt::Key_Minus ) ); | 907 | KGlobalAccel::setGlobalShortcut(action, QKeySequence( Qt::META + Qt::Key_Minus ) ); | ||
908 | action->setShortcut( Qt::Key_Minus ); | 908 | action->setShortcut( Qt::Key_Minus ); | ||
909 | connect( action, &QAction::triggered, ec, &EngineController::decreaseVolume ); | 909 | connect( action, &QAction::triggered, ec, &EngineController::regularDecreaseVolume ); | ||
910 | 910 | | |||
911 | action = new QAction( i18n( "Toggle Main Window" ), this ); | 911 | action = new QAction( i18n( "Toggle Main Window" ), this ); | ||
912 | ac->addAction( "toggleMainWindow", action ); | 912 | ac->addAction( "toggleMainWindow", action ); | ||
913 | KGlobalAccel::setGlobalShortcut(action, QKeySequence() ); | 913 | KGlobalAccel::setGlobalShortcut(action, QKeySequence() ); | ||
914 | connect( action, &QAction::triggered, this, &MainWindow::showHide ); | 914 | connect( action, &QAction::triggered, this, &MainWindow::showHide ); | ||
915 | 915 | | |||
916 | action = new QAction( i18n( "Toggle Full Screen" ), this ); | 916 | action = new QAction( i18n( "Toggle Full Screen" ), this ); | ||
917 | ac->addAction( "toggleFullScreen", action ); | 917 | ac->addAction( "toggleFullScreen", action ); | ||
▲ Show 20 Lines • Show All 471 Lines • Show Last 20 Lines |