mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
scaling still isn't quite right...
This commit is contained in:
parent
575862f25f
commit
9d36833a8b
|
@ -19,7 +19,7 @@
|
||||||
AVForm::AVForm()
|
AVForm::AVForm()
|
||||||
{
|
{
|
||||||
prep();
|
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"));
|
label.setText(tr("Audio/Video settings"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
GeneralForm::GeneralForm()
|
GeneralForm::GeneralForm()
|
||||||
{
|
{
|
||||||
prep();
|
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"));
|
label.setText(tr("General settings"));
|
||||||
group = new QGroupBox(tr("General Settings"));
|
group = new QGroupBox(tr("General Settings"));
|
||||||
enableIPv6 = new QCheckBox();
|
enableIPv6 = new QCheckBox();
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
|
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QVBoxLayout>
|
#include <QVBoxLayout>
|
||||||
|
#include <QLabel>
|
||||||
#include "widget/form/settingswidget.h"
|
#include "widget/form/settingswidget.h"
|
||||||
|
|
||||||
class GenericForm : public QObject
|
class GenericForm : public QObject
|
||||||
|
@ -36,8 +37,7 @@ public:
|
||||||
protected:
|
protected:
|
||||||
QVBoxLayout layout;
|
QVBoxLayout layout;
|
||||||
QHBoxLayout headLayout;
|
QHBoxLayout headLayout;
|
||||||
QIcon icon;
|
QLabel label, icon;
|
||||||
QLabel label;
|
|
||||||
QWidget head, body;
|
QWidget head, body;
|
||||||
void prep() // call in subclass constructor
|
void prep() // call in subclass constructor
|
||||||
{
|
{
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
IdentityForm::IdentityForm()
|
IdentityForm::IdentityForm()
|
||||||
{
|
{
|
||||||
prep();
|
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"));
|
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"));
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
PrivacyForm::PrivacyForm()
|
PrivacyForm::PrivacyForm()
|
||||||
{
|
{
|
||||||
prep();
|
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"));
|
label.setText(tr("Privacy settings"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user