diff options
author | Chris Xiong <chirs241097@gmail.com> | 2023-11-26 21:29:16 -0500 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2023-11-26 21:29:16 -0500 |
commit | f7def0d883fa5cab62ef61b40b9f857245be8e6c (patch) | |
tree | d29322dd4be6e98c0740ae6df4dc70eb41614a76 /mpris-plugin | |
parent | 60989e52b3f3bc0a95d3e61bd8e59fa4d9b7ab83 (diff) | |
download | QMidiPlayer-f7def0d883fa5cab62ef61b40b9f857245be8e6c.tar.xz |
Initial Qt 6 port. Many bug fixes.
Diffstat (limited to 'mpris-plugin')
-rw-r--r-- | mpris-plugin/CMakeLists.txt | 8 | ||||
-rw-r--r-- | mpris-plugin/qmpmprisimpl.cpp | 1 |
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; } |