mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
cosmetics
This commit is contained in:
parent
5ec79fc260
commit
575862f25f
|
@ -19,6 +19,8 @@
|
||||||
AVForm::AVForm()
|
AVForm::AVForm()
|
||||||
{
|
{
|
||||||
prep();
|
prep();
|
||||||
|
icon.addFile(":/img/settings/av.png");
|
||||||
|
label.setText(tr("Audio/Video settings"));
|
||||||
}
|
}
|
||||||
|
|
||||||
AVForm::~AVForm()
|
AVForm::~AVForm()
|
||||||
|
|
|
@ -20,6 +20,8 @@
|
||||||
GeneralForm::GeneralForm()
|
GeneralForm::GeneralForm()
|
||||||
{
|
{
|
||||||
prep();
|
prep();
|
||||||
|
icon.addFile(":/img/settings/general.png");
|
||||||
|
label.setText(tr("General settings"));
|
||||||
group = new QGroupBox(tr("General Settings"));
|
group = new QGroupBox(tr("General Settings"));
|
||||||
enableIPv6 = new QCheckBox();
|
enableIPv6 = new QCheckBox();
|
||||||
enableIPv6->setText(tr("Enable IPv6 (recommended)","Text on a checkbox to enable IPv6"));
|
enableIPv6->setText(tr("Enable IPv6 (recommended)","Text on a checkbox to enable IPv6"));
|
||||||
|
|
|
@ -34,13 +34,19 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
QVBoxLayout layout, headLayout;
|
QVBoxLayout layout;
|
||||||
|
QHBoxLayout headLayout;
|
||||||
|
QIcon icon;
|
||||||
|
QLabel label;
|
||||||
QWidget head, body;
|
QWidget head, body;
|
||||||
void prep() // call in subclass constructor
|
void prep() // call in subclass constructor
|
||||||
{
|
{
|
||||||
head.setLayout(&headLayout);
|
head.setLayout(&headLayout);
|
||||||
|
headLayout.addWidget(&icon);
|
||||||
|
headLayout.addWidget(&label);
|
||||||
body.setLayout(&layout);
|
body.setLayout(&layout);
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -22,6 +22,8 @@
|
||||||
IdentityForm::IdentityForm()
|
IdentityForm::IdentityForm()
|
||||||
{
|
{
|
||||||
prep();
|
prep();
|
||||||
|
icon.addFile(":/img/settings/identity.png");
|
||||||
|
label.setText(tr("Your identity"));
|
||||||
toxGroup = new QGroupBox(tr("Tox ID"));
|
toxGroup = new QGroupBox(tr("Tox ID"));
|
||||||
QLabel* toxIdLabel = new QLabel(tr("Your Tox ID"));
|
QLabel* toxIdLabel = new QLabel(tr("Your Tox ID"));
|
||||||
QLineEdit* toxID = new QLineEdit();
|
QLineEdit* toxID = new QLineEdit();
|
||||||
|
|
|
@ -20,6 +20,8 @@
|
||||||
PrivacyForm::PrivacyForm()
|
PrivacyForm::PrivacyForm()
|
||||||
{
|
{
|
||||||
prep();
|
prep();
|
||||||
|
icon.addFile(":/img/settings/privacy.png");
|
||||||
|
label.setText(tr("Privacy settings"));
|
||||||
}
|
}
|
||||||
|
|
||||||
PrivacyForm::~PrivacyForm()
|
PrivacyForm::~PrivacyForm()
|
||||||
|
|
|
@ -110,7 +110,7 @@ void SettingsWidget::prepButtons()
|
||||||
// just straight up copying it like this... oh well
|
// just straight up copying it like this... oh well
|
||||||
// the layout/icons obviously need to be improved, but it's a working model,
|
// the layout/icons obviously need to be improved, but it's a working model,
|
||||||
// not a pretty one
|
// not a pretty one
|
||||||
QSizePolicy sizePolicy3(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed);
|
QSizePolicy sizePolicy3(QSizePolicy::Fixed, QSizePolicy::Fixed);
|
||||||
sizePolicy3.setHorizontalStretch(0);
|
sizePolicy3.setHorizontalStretch(0);
|
||||||
sizePolicy3.setVerticalStretch(0);
|
sizePolicy3.setVerticalStretch(0);
|
||||||
foot->setObjectName(QStringLiteral("foot"));
|
foot->setObjectName(QStringLiteral("foot"));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user