[libcalamaresui] Remove unused static methods

- The UI bits that needed these button-setup functions have
  moved to CalamaresWindow (with copies of those functions)
This commit is contained in:
Adriaan de Groot 2020-04-02 23:39:29 +02:00
parent a3c966cc6c
commit 081f5ec4d9

View File

@ -63,23 +63,6 @@ ViewManager::instance( QObject* parent )
return s_instance;
}
/** @brief Get a button-sized icon. */
static inline QPixmap
getButtonIcon( const QString& name )
{
return Calamares::Branding::instance()->image( name, QSize( 22, 22 ) );
}
static inline void
setButtonIcon( QPushButton* button, const QString& name )
{
auto icon = getButtonIcon( name );
if ( button && !icon.isNull() )
{
button->setIcon( icon );
}
}
ViewManager::ViewManager( QObject* parent )
: QAbstractListModel( parent )
, m_currentStep( 0 )