From 0c35bb340a8b21ffd10df9f4fb738542f27ab2e3 Mon Sep 17 00:00:00 2001 From: Exeldro Date: Mon, 26 Aug 2024 12:08:12 +0200 Subject: [PATCH] remove appearance icon warning --- config-dialog.cpp | 10 ++++++++++ config-dialog.hpp | 3 +++ 2 files changed, 13 insertions(+) diff --git a/config-dialog.cpp b/config-dialog.cpp index da098bf..f349eeb 100644 --- a/config-dialog.cpp +++ b/config-dialog.cpp @@ -427,6 +427,11 @@ QIcon OBSBasicSettings::GetGeneralIcon() const return listWidget->item(0)->icon(); } +QIcon OBSBasicSettings::GetAppearanceIcon() const +{ + return QIcon(); +} + QIcon OBSBasicSettings::GetStreamIcon() const { return listWidget->item(1)->icon(); @@ -467,6 +472,11 @@ void OBSBasicSettings::SetGeneralIcon(const QIcon &icon) listWidget->item(0)->setIcon(icon); } +void OBSBasicSettings::SetAppearanceIcon(const QIcon &icon) +{ + UNUSED_PARAMETER(icon); +} + void OBSBasicSettings::SetStreamIcon(const QIcon &icon) { listWidget->item(1)->setIcon(icon); diff --git a/config-dialog.hpp b/config-dialog.hpp index 43302c5..fc8a652 100644 --- a/config-dialog.hpp +++ b/config-dialog.hpp @@ -19,6 +19,7 @@ class OBSBasicSettings : public QDialog { Q_OBJECT Q_PROPERTY(QIcon generalIcon READ GetGeneralIcon WRITE SetGeneralIcon DESIGNABLE true) + Q_PROPERTY(QIcon appearanceIcon READ GetAppearanceIcon WRITE SetAppearanceIcon DESIGNABLE true) Q_PROPERTY(QIcon streamIcon READ GetStreamIcon WRITE SetStreamIcon DESIGNABLE true) Q_PROPERTY(QIcon outputIcon READ GetOutputIcon WRITE SetOutputIcon DESIGNABLE true) Q_PROPERTY(QIcon audioIcon READ GetAudioIcon WRITE SetAudioIcon DESIGNABLE true) @@ -30,6 +31,7 @@ private: QListWidget *listWidget; QIcon GetGeneralIcon() const; + QIcon GetAppearanceIcon() const; QIcon GetStreamIcon() const; QIcon GetOutputIcon() const; QIcon GetAudioIcon() const; @@ -63,6 +65,7 @@ private: private slots: void SetGeneralIcon(const QIcon &icon); + void SetAppearanceIcon(const QIcon &icon); void SetStreamIcon(const QIcon &icon); void SetOutputIcon(const QIcon &icon); void SetAudioIcon(const QIcon &icon);