Initial implementation of theming

This commit is contained in:
luisangelsm
2026-02-19 17:39:22 +01:00
parent ed28c94f66
commit 044176d6b7
303 changed files with 4634 additions and 2119 deletions

View File

@ -62,6 +62,15 @@ QList<QAction *> ActionsGroupsModel::getActions(const QModelIndex &mi)
return QList<QAction *>();
}
void ActionsGroupsModel::updateGroupIcon(int row, const QIcon &icon)
{
if (row >= 0 && row < groups.size()) {
groups[row].setIcon(icon);
QModelIndex idx = index(row, 0);
emit dataChanged(idx, idx, { Qt::DecorationRole });
}
}
//-------------------------------------------------------------------
ActionsGroup::ActionsGroup(const QString &name, const QIcon &icon, QList<QAction *> &actions)
@ -74,6 +83,11 @@ QString ActionsGroup::getName() const
return name;
}
void ActionsGroup::setIcon(const QIcon &newIcon)
{
icon = newIcon;
}
QIcon ActionsGroup::getIcon() const
{
return icon;