Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Elisa
Commits
21afbe60
Commit
21afbe60
authored
Jan 15, 2021
by
Nate Graham
Browse files
Merge branch 'release/20.12'
parents
05976910
afaf25d8
Pipeline
#47818
passed with stage
in 9 minutes and 50 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/CMakeLists.txt
View file @
21afbe60
...
...
@@ -88,6 +88,13 @@ ecm_qt_declare_logging_category(elisaLib_SOURCES
DEFAULT_SEVERITY Info
)
ecm_qt_declare_logging_category
(
elisaLib_SOURCES
HEADER
"powerManagementLogging.h"
IDENTIFIER
"orgKdeElisaPowerManagement"
CATEGORY_NAME
"org.kde.elisa.powermanagement"
DEFAULT_SEVERITY Info
)
if
(
LIBVLC_FOUND
)
ecm_qt_declare_logging_category
(
elisaLib_SOURCES
HEADER
"vlcLogging.h"
...
...
src/powermanagementinterface.cpp
View file @
21afbe60
...
...
@@ -8,6 +8,8 @@
#include
"config-upnp-qt.h"
#include
"powerManagementLogging.h"
#include
<KLocalizedString>
#if defined Qt5DBus_FOUND && Qt5DBus_FOUND
...
...
@@ -28,7 +30,7 @@
#include
<QCoreApplication>
#include
<Q
Debug
>
#include
<Q
LoggingCategory
>
class
PowerManagementInterfacePrivate
{
...
...
@@ -119,7 +121,7 @@ void PowerManagementInterface::uninhibitDBusCallFinishedPlasmaWorkspace(QDBusPen
#if defined Qt5DBus_FOUND && Qt5DBus_FOUND
QDBusPendingReply
<>
reply
=
*
aWatcher
;
if
(
reply
.
isError
())
{
qDebug
()
<<
"PowerManagementInterface::uninhibitDBusCallFinished"
<<
reply
.
error
();
q
C
Debug
(
orgKdeElisaPowerManagement
()
)
<<
"PowerManagementInterface::uninhibitDBusCallFinished"
<<
reply
.
error
();
}
else
{
d
->
mInhibitedSleep
=
false
;
...
...
@@ -134,7 +136,7 @@ void PowerManagementInterface::inhibitDBusCallFinishedGnomeWorkspace(QDBusPendin
#if defined Qt5DBus_FOUND && Qt5DBus_FOUND
QDBusPendingReply
<
uint
>
reply
=
*
aWatcher
;
if
(
reply
.
isError
())
{
qDebug
()
<<
"PowerManagementInterface::inhibitDBusCallFinishedGnomeWorkspace"
<<
reply
.
error
();
q
C
Debug
(
orgKdeElisaPowerManagement
()
)
<<
"PowerManagementInterface::inhibitDBusCallFinishedGnomeWorkspace"
<<
reply
.
error
();
}
else
{
d
->
mInhibitSleepCookie
=
reply
.
argumentAt
<
0
>
();
d
->
mInhibitedSleep
=
true
;
...
...
@@ -150,7 +152,7 @@ void PowerManagementInterface::uninhibitDBusCallFinishedGnomeWorkspace(QDBusPend
#if defined Qt5DBus_FOUND && Qt5DBus_FOUND
QDBusPendingReply
<>
reply
=
*
aWatcher
;
if
(
reply
.
isError
())
{
qDebug
()
<<
"PowerManagementInterface::uninhibitDBusCallFinished"
<<
reply
.
error
();
q
C
Debug
(
orgKdeElisaPowerManagement
()
)
<<
"PowerManagementInterface::uninhibitDBusCallFinished"
<<
reply
.
error
();
}
else
{
d
->
mInhibitedSleep
=
false
;
...
...
src/qml/MediaPlayListView.qml
View file @
21afbe60
...
...
@@ -140,9 +140,9 @@ FocusScope {
icon.name
:
'
media-track-show-active
'
enabled
:
ElisaApplication
.
mediaPlayListProxyModel
?
ElisaApplication
.
mediaPlayListProxyModel
.
tracksCount
>
0
:
false
onClicked
:
{
playListView
.
positionViewAtIndex
(
ElisaApplication
.
mediaPlayListProxyModel
.
currentTrackRow
,
ListView
.
Contain
)
playListView
.
currentIndex
=
ElisaApplication
.
mediaPlayListProxyModel
.
currentTrackRow
playListView
.
currentItem
.
forceActiveFocus
()
playListView
.
listView
.
positionViewAtIndex
(
ElisaApplication
.
mediaPlayListProxyModel
.
currentTrackRow
,
ListView
.
Contain
)
playListView
.
listView
.
currentIndex
=
ElisaApplication
.
mediaPlayListProxyModel
.
currentTrackRow
playListView
.
listView
.
currentItem
.
forceActiveFocus
()
}
},
FlatButtonWithToolTip
{
...
...
src/qml/PlayListBasicView.qml
View file @
21afbe60
...
...
@@ -14,6 +14,7 @@ ScrollView {
id
:
scrollView
property
alias
playListModel
:
playListModelDelegate
.
model
property
alias
listView
:
playListView
property
string
title
signal
startPlayback
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment