mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-16 18:35:35 +08:00
[AFV] CInputManager stores icon indexes instead of QPixmap instances
The GUI converts icon indexes to QPixmap indexes when needed. This fixes the context unittest that was broken by audio context changes.
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
#ifndef BLACKGUI_MODELS_ACTIONITEM_H
|
||||
#define BLACKGUI_MODELS_ACTIONITEM_H
|
||||
|
||||
#include "blackmisc/icons.h"
|
||||
#include <QList>
|
||||
#include <QString>
|
||||
#include <QPixmap>
|
||||
@@ -29,6 +30,9 @@ namespace BlackGui
|
||||
//! Constructor
|
||||
CActionItem(const QString &action, const QString &name, const QPixmap &icon, CActionItem *parentItem = nullptr);
|
||||
|
||||
//! Constructor
|
||||
CActionItem(const QString &action, const QString &name, BlackMisc::CIcons::IconIndex icon, CActionItem *parentItem = nullptr);
|
||||
|
||||
//! Destructor
|
||||
~CActionItem();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user