Browse Source

scaling still isn't quite right...

pull/350/head
dubslow 11 years ago committed by Tux3 / Mlkj / !Lev.uXFMLA
parent
commit
9d36833a8b
  1. 2
      widget/form/settings/avform.cpp
  2. 2
      widget/form/settings/generalform.cpp
  3. 4
      widget/form/settings/genericsettings.h
  4. 2
      widget/form/settings/identityform.cpp
  5. 2
      widget/form/settings/privacyform.cpp

2
widget/form/settings/avform.cpp

@ -19,7 +19,7 @@ @@ -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"));
}

2
widget/form/settings/generalform.cpp

@ -20,7 +20,7 @@ @@ -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();

4
widget/form/settings/genericsettings.h

@ -19,6 +19,7 @@ @@ -19,6 +19,7 @@
#include <QObject>
#include <QVBoxLayout>
#include <QLabel>
#include "widget/form/settingswidget.h"
class GenericForm : public QObject
@ -36,8 +37,7 @@ public: @@ -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
{

2
widget/form/settings/identityform.cpp

@ -22,7 +22,7 @@ @@ -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"));

2
widget/form/settings/privacyform.cpp

@ -20,7 +20,7 @@ @@ -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"));
}

Loading…
Cancel
Save