Changeset View
Changeset View
Standalone View
Standalone View
src/context/applets/currenttrack/plugin/CurrentEngine.cpp
Show All 36 Lines | |||||
37 | 37 | | |||
38 | CurrentEngine::CurrentEngine( QObject* parent ) | 38 | CurrentEngine::CurrentEngine( QObject* parent ) | ||
39 | : QObject( parent ) | 39 | : QObject( parent ) | ||
40 | , m_coverWidth( 0 ) | 40 | , m_coverWidth( 0 ) | ||
41 | , m_lastQueryMaker( Q_NULLPTR ) | 41 | , m_lastQueryMaker( Q_NULLPTR ) | ||
42 | { | 42 | { | ||
43 | EngineController* engine = The::engineController(); | 43 | EngineController* engine = The::engineController(); | ||
44 | 44 | | |||
45 | // Connect queued to reduce interface stuttering. | ||||
45 | connect( engine, &EngineController::trackPlaying, | 46 | connect( engine, &EngineController::trackPlaying, | ||
46 | this, &CurrentEngine::slotTrackChanged ); | 47 | this, &CurrentEngine::slotTrackChanged, Qt::QueuedConnection ); | ||
47 | connect( engine, &EngineController::stopped, | 48 | connect( engine, &EngineController::stopped, | ||
48 | this, &CurrentEngine::stopped ); | 49 | this, &CurrentEngine::stopped, Qt::QueuedConnection ); | ||
49 | connect( engine, &EngineController::trackMetadataChanged, | 50 | connect( engine, &EngineController::trackMetadataChanged, | ||
50 | this, &CurrentEngine::slotTrackMetadataChanged ); | 51 | this, &CurrentEngine::slotTrackMetadataChanged, Qt::QueuedConnection ); | ||
51 | connect( engine, &EngineController::albumMetadataChanged, | 52 | connect( engine, &EngineController::albumMetadataChanged, | ||
52 | this, &CurrentEngine::slotAlbumMetadataChanged ); | 53 | this, &CurrentEngine::slotAlbumMetadataChanged, Qt::QueuedConnection ); | ||
53 | } | 54 | } | ||
54 | 55 | | |||
55 | CurrentEngine::~CurrentEngine() | 56 | CurrentEngine::~CurrentEngine() | ||
56 | { | 57 | { | ||
57 | } | 58 | } | ||
58 | 59 | | |||
59 | void | 60 | void | ||
60 | CurrentEngine::slotAlbumMetadataChanged( Meta::AlbumPtr album ) | 61 | CurrentEngine::slotAlbumMetadataChanged( Meta::AlbumPtr album ) | ||
▲ Show 20 Lines • Show All 223 Lines • Show Last 20 Lines |