diff --git a/widget/form/settings/avform.cpp b/widget/form/settings/avform.cpp index 5c0b38da3..e0b0773f9 100644 --- a/widget/form/settings/avform.cpp +++ b/widget/form/settings/avform.cpp @@ -19,7 +19,7 @@ AVForm::AVForm() { prep(); - icon.addFile(":/img/settings/av.png"); + icon.setPixmap(QPixmap(":/img/settings/av.png").scaledToHeight(headLayout.sizeHint().height(), Qt::SmoothTransformation)); label.setText(tr("Audio/Video settings")); } diff --git a/widget/form/settings/generalform.cpp b/widget/form/settings/generalform.cpp index a9810c1ae..7a6734383 100644 --- a/widget/form/settings/generalform.cpp +++ b/widget/form/settings/generalform.cpp @@ -20,7 +20,7 @@ GeneralForm::GeneralForm() { prep(); - icon.addFile(":/img/settings/general.png"); + icon.setPixmap(QPixmap(":/img/settings/general.png").scaledToHeight(headLayout.sizeHint().height(), Qt::SmoothTransformation)); label.setText(tr("General settings")); group = new QGroupBox(tr("General Settings")); enableIPv6 = new QCheckBox(); diff --git a/widget/form/settings/genericsettings.h b/widget/form/settings/genericsettings.h index 94f8fe90f..760d39cb0 100644 --- a/widget/form/settings/genericsettings.h +++ b/widget/form/settings/genericsettings.h @@ -19,6 +19,7 @@ #include #include +#include #include "widget/form/settingswidget.h" class GenericForm : public QObject @@ -36,8 +37,7 @@ public: protected: QVBoxLayout layout; QHBoxLayout headLayout; - QIcon icon; - QLabel label; + QLabel label, icon; QWidget head, body; void prep() // call in subclass constructor { diff --git a/widget/form/settings/identityform.cpp b/widget/form/settings/identityform.cpp index ac89257a9..696b2141a 100644 --- a/widget/form/settings/identityform.cpp +++ b/widget/form/settings/identityform.cpp @@ -22,7 +22,7 @@ IdentityForm::IdentityForm() { prep(); - icon.addFile(":/img/settings/identity.png"); + icon.setPixmap(QPixmap(":/img/settings/identity.png").scaledToHeight(headLayout.sizeHint().height(), Qt::SmoothTransformation)); label.setText(tr("Your identity")); toxGroup = new QGroupBox(tr("Tox ID")); QLabel* toxIdLabel = new QLabel(tr("Your Tox ID")); diff --git a/widget/form/settings/privacyform.cpp b/widget/form/settings/privacyform.cpp index ef7c54c4b..e1f737975 100644 --- a/widget/form/settings/privacyform.cpp +++ b/widget/form/settings/privacyform.cpp @@ -20,7 +20,7 @@ PrivacyForm::PrivacyForm() { prep(); - icon.addFile(":/img/settings/privacy.png"); + icon.setPixmap(QPixmap(":/img/settings/privacy.png").scaledToHeight(headLayout.sizeHint().height(), Qt::SmoothTransformation)); label.setText(tr("Privacy settings")); }