Commit c0d82f24 authored by Anthony Fieroni's avatar Anthony Fieroni

Show inhibition text

Differential Revision: https://phabricator.kde.org/D11042Signed-off-by: Anthony Fieroni's avatarAnthony Fieroni <bvbfan@abv.bg>
parent 3a0404c3
......@@ -9,7 +9,8 @@ set(KDE_APPLICATIONS_VERSION "${KDE_APPLICATIONS_VERSION_MAJOR}.${KDE_APPLICATIO
set(PROJECT_VERSION ${KDE_APPLICATIONS_VERSION})
set(QT_MIN_VERSION "5.4.0")
set(QT_MIN_VERSION "5.6.0")
set(KF5_MIN_VERSION "5.31.0")
find_package(ECM 1.3.0 REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
......@@ -29,7 +30,7 @@ find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS
Widgets
)
find_package(KF5 REQUIRED
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED
Config
ConfigWidgets
CoreAddons
......@@ -64,9 +65,6 @@ check_include_files(unistd.h HAVE_UNISTD_H)
configure_file(config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h)
add_definitions(-DTRANSLATION_DOMAIN="dragonplayer")
if (${KF5_VERSION} VERSION_GREATER "5.14.0")
add_definitions(-DWITH_KCRASH_INIT)
endif()
add_subdirectory( src/app )
add_subdirectory( misc )
......
......@@ -40,9 +40,7 @@ int main( int argc, char **argv )
{
Dragon::PlayerApplication app(argc, argv);
app.setOrganizationDomain("org.kde");
#ifdef WITH_KCRASH_INIT
KCrash::initialize();
#endif
KLocalizedString::setApplicationDomain("dragonplayer");
......
......@@ -836,7 +836,7 @@ MainWindow::inhibitPowerSave()
// TODO: inhibit screen sleep. No viable API found.
// https://git.reviewboard.kde.org/r/129651
if (!m_stopScreenSaver && TheStream::hasVideo())
m_stopScreenSaver = new KNotificationRestrictions(KNotificationRestrictions::ScreenSaver);
m_stopScreenSaver = new KNotificationRestrictions(KNotificationRestrictions::ScreenSaver, i18nc("Notification inhibition reason", "playing a video"));
}
void
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment