| 1 |
/* |
| 2 |
* Audacity: A Digital Audio Editor |
| 3 |
*/ |
| 4 |
#include "playbacktoolbarcontrolitem.h" |
| 5 |
|
| 6 |
using namespace au::playback; |
| 7 |
|
| 8 |
PlaybackToolBarControlItem::PlaybackToolBarControlItem(const muse::ui::UiAction& action, muse::uicomponents::ToolBarItemType::Type type, |
| 9 |
QObject* parent) |
| 10 |
: muse::uicomponents::ToolBarItem(action, type, parent) |
| 11 |
{ |
| 12 |
} |
| 13 |
|
| 14 |
QColor PlaybackToolBarControlItem::iconColor() const |
| 15 |
{ |
| 16 |
return m_iconColor; |
| 17 |
} |
| 18 |
|
| 19 |
void PlaybackToolBarControlItem::setIconColor(const QColor& color) |
| 20 |
{ |
| 21 |
if (m_iconColor == color) { |
| 22 |
return; |
| 23 |
} |
| 24 |
|
| 25 |
m_iconColor = color; |
| 26 |
emit iconColorChanged(); |
| 27 |
} |
| 28 |
|
| 29 |
QColor PlaybackToolBarControlItem::backgroundColor() const |
| 30 |
{ |
| 31 |
return m_backgroundColor; |
| 32 |
} |
| 33 |
|
| 34 |
void PlaybackToolBarControlItem::setBackgroundColor(const QColor& color) |
| 35 |
{ |
| 36 |
if (m_backgroundColor == color) { |
| 37 |
return; |
| 38 |
} |
| 39 |
|
| 40 |
m_backgroundColor = color; |
| 41 |
emit backgroundColorChanged(); |
| 42 |
} |