1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

cosmetics

This commit is contained in:
dubslow 2014-09-15 08:31:42 -05:00
parent aa801f9615
commit 5dc4128215
6 changed files with 16 additions and 2 deletions

View File

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

View File

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

View File

@ -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

View File

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

View File

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

View File

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