Skip to content

Commit

Permalink
Use COSlave instead of COThread
Browse files Browse the repository at this point in the history
ControlObjectThread is deprecated all new CO's should be of type
ControlObjectSlave
  • Loading branch information
Max Linke committed Nov 5, 2014
1 parent 82085f3 commit 76113d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/widget/wtracktableview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,8 @@ WTrackTableView::WTrackTableView(QWidget * parent,
connect(&m_crateMapper, SIGNAL(mapped(int)),
this, SLOT(addSelectionToCrate(int)));

m_pCOTGuiTick = new ControlObjectThread("[Master]", "guiTick50ms");
connect(m_pCOTGuiTick, SIGNAL(valueChanged(double)),
this, SLOT(slotGuiTick50ms(double)));
m_pCOTGuiTick = new ControlObjectSlave("[Master]", "guiTick50ms");
m_pCOTGuiTick->connectValueChanged(this, SLOT(slotGuiTick50ms(double)));

connect(this, SIGNAL(scrollValueChanged(int)),
this, SLOT(slotScrollValueChanged(int)));
Expand Down
3 changes: 2 additions & 1 deletion src/widget/wtracktableview.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <QSortFilterProxyModel>

#include "configobject.h"
#include "controlobjectslave.h"
#include "trackinfoobject.h"
#include "library/libraryview.h"
#include "library/trackmodel.h" // Can't forward declare enums
Expand Down Expand Up @@ -167,7 +168,7 @@ class WTrackTableView : public WLibraryTableView {
// Control the delay to load a cover art.
qint64 m_lastUserActionNanos;
bool m_loadCachedOnly;
ControlObjectThread* m_pCOTGuiTick;
ControlObjectSlave* m_pCOTGuiTick;
};

#endif

0 comments on commit 76113d0

Please sign in to comment.