Fixes icons not displaying in AudioControlsEditor (#1596)
The qrc files appeared to be set up correctly, but needed to add a Q_INIT_RESOURCE call to the code.
This commit is contained in:
@@ -23,6 +23,11 @@
|
||||
#include <CryPath.h>
|
||||
#include <Util/PathUtil.h>
|
||||
|
||||
void InitWwiseResources()
|
||||
{
|
||||
Q_INIT_RESOURCE(EditorWwise);
|
||||
}
|
||||
|
||||
namespace AudioControls
|
||||
{
|
||||
//-------------------------------------------------------------------------------------------//
|
||||
@@ -80,6 +85,12 @@ namespace AudioControls
|
||||
return "";
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------------------------//
|
||||
CAudioSystemEditor_wwise::CAudioSystemEditor_wwise()
|
||||
{
|
||||
InitWwiseResources();
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------------------------//
|
||||
void CAudioSystemEditor_wwise::Reload()
|
||||
{
|
||||
|
||||
@@ -63,7 +63,7 @@ namespace AudioControls
|
||||
friend class CAudioWwiseLoader;
|
||||
|
||||
public:
|
||||
CAudioSystemEditor_wwise() = default;
|
||||
CAudioSystemEditor_wwise();
|
||||
~CAudioSystemEditor_wwise() override = default;
|
||||
|
||||
//////////////////////////////////////////////////////////
|
||||
|
||||
@@ -30,6 +30,11 @@
|
||||
#include <QPainter>
|
||||
#include <QMessageBox>
|
||||
|
||||
void InitACEResources()
|
||||
{
|
||||
Q_INIT_RESOURCE(AudioControlsEditorUI);
|
||||
}
|
||||
|
||||
namespace AudioControls
|
||||
{
|
||||
//-------------------------------------------------------------------------------------------//
|
||||
@@ -40,6 +45,8 @@ namespace AudioControls
|
||||
CAudioControlsEditorWindow::CAudioControlsEditorWindow(QWidget* parent)
|
||||
: QMainWindow(parent)
|
||||
{
|
||||
InitACEResources();
|
||||
|
||||
setupUi(this);
|
||||
|
||||
m_pATLModel = CAudioControlsEditorPlugin::GetATLModel();
|
||||
|
||||
Reference in New Issue
Block a user