summaryrefslogtreecommitdiffstats
path: root/kmix/KMixApp.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-09-16 23:34:21 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-09-16 23:34:21 +0900
commit00105125e3010438663b1355f6f1579476ee9510 (patch)
tree51e43d62f7c9900c007c92ad5e226bdc4bf9d4bc /kmix/KMixApp.cpp
parentf0e311f71b7f02fb20e5db21a297a2c4caee9153 (diff)
downloadtdemultimedia-00105125e3010438663b1355f6f1579476ee9510.tar.gz
tdemultimedia-00105125e3010438663b1355f6f1579476ee9510.zip
This is a temporary commit to save WIP done on this topic.feat/kmix/mixer-detection
Development of this feature will only resume after the release of R14.1.0. Relates to bug 3159. NOTE: this commit needs to be completed/reworked. It should not be merged to master as is. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kmix/KMixApp.cpp')
-rw-r--r--kmix/KMixApp.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/kmix/KMixApp.cpp b/kmix/KMixApp.cpp
index d511605c..a1032e2e 100644
--- a/kmix/KMixApp.cpp
+++ b/kmix/KMixApp.cpp
@@ -26,7 +26,7 @@
KMixApp::KMixApp()
- : KUniqueApplication(), m_kmix( 0 )
+ : KUniqueApplication(), m_kmix(NULL), m_updateMixersTimer(NULL)
{
// We handle autostart via standard autostart-enabled .desktop file instead of the session manager
disableSessionManagement();
@@ -35,6 +35,10 @@ KMixApp::KMixApp()
KMixApp::~KMixApp()
{
+ if (m_updateMixersTimer)
+ {
+ delete m_updateMixersTimer;
+ }
if (m_kmix)
{
delete m_kmix;
@@ -52,6 +56,9 @@ KMixApp::newInstance()
else
{
m_kmix = new KMixWindow;
+ m_updateMixersTimer = new TQTimer();
+ connect(m_updateMixersTimer, TQT_SIGNAL(timeout()), m_kmix, TQT_SLOT(updateMixers()));
+ m_updateMixersTimer->start(5000);
connect(this, TQT_SIGNAL(stopUpdatesOnVisibility()), m_kmix, TQT_SLOT(stopVisibilityUpdates()));
if ( isRestored() && TDEMainWindow::canBeRestored(0) )
{