Browse Source

cosmetics

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

2
widget/form/settings/avform.cpp

@ -19,6 +19,8 @@ @@ -19,6 +19,8 @@
AVForm::AVForm()
{
prep();
icon.addFile(":/img/settings/av.png");
label.setText(tr("Audio/Video settings"));
}
AVForm::~AVForm()

2
widget/form/settings/generalform.cpp

@ -20,6 +20,8 @@ @@ -20,6 +20,8 @@
GeneralForm::GeneralForm()
{
prep();
icon.addFile(":/img/settings/general.png");
label.setText(tr("General settings"));
group = new QGroupBox(tr("General Settings"));
enableIPv6 = new QCheckBox();
enableIPv6->setText(tr("Enable IPv6 (recommended)","Text on a checkbox to enable IPv6"));

8
widget/form/settings/genericsettings.h

@ -34,13 +34,19 @@ public: @@ -34,13 +34,19 @@ public:
}
protected:
QVBoxLayout layout, headLayout;
QVBoxLayout layout;
QHBoxLayout headLayout;
QIcon icon;
QLabel label;
QWidget head, body;
void prep() // call in subclass constructor
{
head.setLayout(&headLayout);
headLayout.addWidget(&icon);
headLayout.addWidget(&label);
body.setLayout(&layout);
}
};
#endif

2
widget/form/settings/identityform.cpp

@ -22,6 +22,8 @@ @@ -22,6 +22,8 @@
IdentityForm::IdentityForm()
{
prep();
icon.addFile(":/img/settings/identity.png");
label.setText(tr("Your identity"));
toxGroup = new QGroupBox(tr("Tox ID"));
QLabel* toxIdLabel = new QLabel(tr("Your Tox ID"));
QLineEdit* toxID = new QLineEdit();

2
widget/form/settings/privacyform.cpp

@ -20,6 +20,8 @@ @@ -20,6 +20,8 @@
PrivacyForm::PrivacyForm()
{
prep();
icon.addFile(":/img/settings/privacy.png");
label.setText(tr("Privacy settings"));
}
PrivacyForm::~PrivacyForm()

2
widget/form/settingswidget.cpp

@ -110,7 +110,7 @@ void SettingsWidget::prepButtons() @@ -110,7 +110,7 @@ void SettingsWidget::prepButtons()
// just straight up copying it like this... oh well
// the layout/icons obviously need to be improved, but it's a working model,
// not a pretty one
QSizePolicy sizePolicy3(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed);
QSizePolicy sizePolicy3(QSizePolicy::Fixed, QSizePolicy::Fixed);
sizePolicy3.setHorizontalStretch(0);
sizePolicy3.setVerticalStretch(0);
foot->setObjectName(QStringLiteral("foot"));

Loading…
Cancel
Save