summaryrefslogtreecommitdiffstats
path: root/src/kmplayerpartbase.cpp
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2012-07-11 03:36:42 +0200
committerSlávek Banko <[email protected]>2012-07-11 03:57:21 +0200
commitf5dd8fe760c32ee6526ad8c299a773d188d3ec87 (patch)
treec069d446b6e449324569d8170a9ce9dcbc56df85 /src/kmplayerpartbase.cpp
parentd7288a48b318bf518b3c2ac384066930994c32a3 (diff)
downloadkmplayer-f5dd8fe760c32ee6526ad8c299a773d188d3ec87.tar.gz
kmplayer-f5dd8fe760c32ee6526ad8c299a773d188d3ec87.zip
Changed screen saver control to use fake events
This closes Bug 1031 (cherry picked from commit 8fe6f08227059c8cddc686888fb3e402b83c9eff)
Diffstat (limited to 'src/kmplayerpartbase.cpp')
-rw-r--r--src/kmplayerpartbase.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/kmplayerpartbase.cpp b/src/kmplayerpartbase.cpp
index 6a6f84c..32ead14 100644
--- a/src/kmplayerpartbase.cpp
+++ b/src/kmplayerpartbase.cpp
@@ -874,6 +874,11 @@ KDE_NO_EXPORT bool PartBase::isPlaying () {
return playing ();
}
+KDE_NO_EXPORT bool PartBase::isPaused () {
+ NodePtr doc = m_source ? m_source->document () : 0L;
+ return doc && doc->state == Node::state_deferred;
+}
+
KAboutData* PartBase::createAboutData () {
KMessageBox::error(0L, "createAboutData", "KMPlayer");
return 0;