diff --git a/src/EngineController.h b/src/EngineController.h --- a/src/EngineController.h +++ b/src/EngineController.h @@ -261,6 +261,16 @@ */ int decreaseVolume( int ticks = 100/25 ); + /** + * Increases the volume by default amount + */ + int regularIncreaseVolume(); + + /** + * Decreases the volume by default amount + */ + int regularDecreaseVolume(); + /** * Sets the volume * diff --git a/src/EngineController.cpp b/src/EngineController.cpp --- a/src/EngineController.cpp +++ b/src/EngineController.cpp @@ -660,6 +660,18 @@ return setVolume( volume() - ticks ); } +int +EngineController::regularIncreaseVolume() //SLOT +{ + return increaseVolume(); +} + +int +EngineController::regularDecreaseVolume() //SLOT +{ + return decreaseVolume(); +} + int EngineController::setVolume( int percent ) //SLOT { diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -900,13 +900,13 @@ ac->addAction( "increaseVolume", action ); KGlobalAccel::setGlobalShortcut(action, QKeySequence( Qt::META + Qt::Key_Plus ) ); action->setShortcut( Qt::Key_Plus ); - connect( action, &QAction::triggered, ec, &EngineController::increaseVolume ); + connect( action, &QAction::triggered, ec, &EngineController::regularIncreaseVolume ); action = new QAction( i18n( "Decrease Volume" ), this ); ac->addAction( "decreaseVolume", action ); KGlobalAccel::setGlobalShortcut(action, QKeySequence( Qt::META + Qt::Key_Minus ) ); action->setShortcut( Qt::Key_Minus ); - connect( action, &QAction::triggered, ec, &EngineController::decreaseVolume ); + connect( action, &QAction::triggered, ec, &EngineController::regularDecreaseVolume ); action = new QAction( i18n( "Toggle Main Window" ), this ); ac->addAction( "toggleMainWindow", action );