aboutsummaryrefslogtreecommitdiff
path: root/mpris-plugin
diff options
context:
space:
mode:
Diffstat (limited to 'mpris-plugin')
-rw-r--r--mpris-plugin/CMakeLists.txt8
-rw-r--r--mpris-plugin/qmpmprisimpl.cpp1
2 files changed, 3 insertions, 6 deletions
diff --git a/mpris-plugin/CMakeLists.txt b/mpris-plugin/CMakeLists.txt
index c0395c0..1366f39 100644
--- a/mpris-plugin/CMakeLists.txt
+++ b/mpris-plugin/CMakeLists.txt
@@ -13,8 +13,6 @@ set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
-find_package(Qt5 REQUIRED COMPONENTS DBus)
-
include_directories(${PROJECT_SOURCE_DIR}/include/)
add_library(qmpmpris MODULE
@@ -22,9 +20,9 @@ add_library(qmpmpris MODULE
)
target_link_libraries(qmpmpris
- Qt5::Core
- Qt5::Widgets
- Qt5::DBus
+ Qt${QT_VERSION_MAJOR}::Core
+ Qt${QT_VERSION_MAJOR}::Widgets
+ Qt${QT_VERSION_MAJOR}::DBus
)
install(TARGETS qmpmpris LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/qmidiplayer/)
diff --git a/mpris-plugin/qmpmprisimpl.cpp b/mpris-plugin/qmpmprisimpl.cpp
index 335a638..583cc70 100644
--- a/mpris-plugin/qmpmprisimpl.cpp
+++ b/mpris-plugin/qmpmprisimpl.cpp
@@ -56,7 +56,6 @@ QVariantMap QMPPlayer::getMetadata()
qlonglong QMPPlayer::getPosition()
{
::PlaybackStatus ps = api->getPlaybackStatus();
- fprintf(stderr, "%lu\n", ps.curtime_ms);
return ps.curtime_ms * 1000;
}