moved peridic update-timer from songEditor to mainWindow
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1567 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
1 parent
dc895f4850
commit
ae8ed9e183
4 files changed
+26
-35
No files matched your search
@@ -25,18 +25,15 @@
|
||||
*/
|
||||
|
||||
|
||||
#include <QtCore/QTimer>
|
||||
#include <QtGui/QMouseEvent>
|
||||
#include <QtGui/QPainter>
|
||||
#include <QtGui/QPixmap>
|
||||
|
||||
#include "visualization_widget.h"
|
||||
#include "main_window.h"
|
||||
#include "embed.h"
|
||||
#include "engine.h"
|
||||
#include "templates.h"
|
||||
#include "tooltip.h"
|
||||
#include "song.h"
|
||||
#include "song_editor.h"
|
||||
|
||||
|
||||
|
||||
@@ -99,7 +96,7 @@ void visualizationWidget::setActive( bool _active )
|
||||
m_active = _active;
|
||||
if( m_active )
|
||||
{
|
||||
connect( engine::getSongEditor(),
|
||||
connect( engine::getMainWindow(),
|
||||
SIGNAL( periodicUpdate() ),
|
||||
this, SLOT( update() ) );
|
||||
connect( engine::getMixer(),
|
||||
@@ -108,7 +105,7 @@ void visualizationWidget::setActive( bool _active )
|
||||
}
|
||||
else
|
||||
{
|
||||
disconnect( engine::getSongEditor(),
|
||||
disconnect( engine::getMainWindow(),
|
||||
SIGNAL( periodicUpdate() ),
|
||||
this, SLOT( update() ) );
|
||||
disconnect( engine::getMixer(),
|
||||
|
||||
Reference in new issue
Block a user