Revamp resource embedding (#7241)
This commit is contained in:
@@ -123,10 +123,10 @@ EqControlsDialog::EqControlsDialog( EqControls *controls ) :
|
||||
activeButton->setCheckable(true);
|
||||
activeButton->setModel( m_parameterWidget->getBandModels( i )->active );
|
||||
|
||||
QString iconActiveFileName = "bandLabel" + QString::number(i+1);
|
||||
QString iconInactiveFileName = "bandLabel" + QString::number(i+1) + "off";
|
||||
activeButton->setActiveGraphic( PLUGIN_NAME::getIconPixmap( iconActiveFileName.toLatin1() ) );
|
||||
activeButton->setInactiveGraphic( PLUGIN_NAME::getIconPixmap( iconInactiveFileName.toLatin1() ) );
|
||||
const auto iconActiveFileName = "bandLabel" + std::to_string(i + 1);
|
||||
const auto iconInactiveFileName = iconActiveFileName + "off";
|
||||
activeButton->setActiveGraphic(PLUGIN_NAME::getIconPixmap(iconActiveFileName));
|
||||
activeButton->setInactiveGraphic(PLUGIN_NAME::getIconPixmap(iconInactiveFileName));
|
||||
activeButton->move( distance - 2, 276 );
|
||||
activeButton->setModel( m_parameterWidget->getBandModels( i )->active );
|
||||
|
||||
|
||||
@@ -185,9 +185,9 @@ QPainterPath EqHandle::getCurvePath()
|
||||
|
||||
void EqHandle::loadPixmap()
|
||||
{
|
||||
QString fileName = "handle" + QString::number(m_numb+1);
|
||||
if ( !isActiveHandle() ) { fileName = fileName + "inactive"; }
|
||||
m_circlePixmap = PLUGIN_NAME::getIconPixmap( fileName.toLatin1() );
|
||||
auto fileName = "handle" + std::to_string(m_numb + 1);
|
||||
if (!isActiveHandle()) { fileName += "inactive"; }
|
||||
m_circlePixmap = PLUGIN_NAME::getIconPixmap(fileName);
|
||||
}
|
||||
|
||||
bool EqHandle::mousePressed() const
|
||||
|
||||
@@ -86,7 +86,8 @@ public:
|
||||
return spinBox;
|
||||
}
|
||||
|
||||
PixmapButton* createPixmapButton(const QString& text, QWidget* parent, int x, int y, BoolModel* model, const QString& activeIcon, const QString& inactiveIcon, const QString& tooltip)
|
||||
PixmapButton* createPixmapButton(const QString& text, QWidget* parent, int x, int y, BoolModel* model,
|
||||
std::string_view activeIcon, std::string_view inactiveIcon, const QString& tooltip)
|
||||
{
|
||||
PixmapButton* button = new PixmapButton(parent, text);
|
||||
button->move(x, y);
|
||||
|
||||
Reference in New Issue
Block a user