mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
fixed appearance macosx server dialog
This commit is contained in:
parent
ebebe7d46c
commit
6bad2870dc
@ -102,12 +102,22 @@ ServerConfigDialog::ServerConfigDialog(QWidget * parent)
|
|||||||
ip = new QComboBox(this);
|
ip = new QComboBox(this);
|
||||||
connect(ip,SIGNAL(activated(const QString &)),this,SLOT(regenerateQR(const QString &)));
|
connect(ip,SIGNAL(activated(const QString &)),this,SLOT(regenerateQR(const QString &)));
|
||||||
//ip->move(520,71);
|
//ip->move(520,71);
|
||||||
|
#ifndef Q_OS_WIN32
|
||||||
|
ip->setStyleSheet("QComboBox{font-size:10px;}");
|
||||||
|
#endif
|
||||||
ip->setSizeAdjustPolicy(QComboBox::AdjustToContents);
|
ip->setSizeAdjustPolicy(QComboBox::AdjustToContents);
|
||||||
|
#ifdef Q_OS_WIN32
|
||||||
ip->setMinimumWidth(120);
|
ip->setMinimumWidth(120);
|
||||||
|
#else
|
||||||
|
ip->setFixedSize(120,ip->height());
|
||||||
|
#endif
|
||||||
|
|
||||||
port = new QLineEdit("8080",this);
|
port = new QLineEdit("8080",this);
|
||||||
port->setReadOnly(false);
|
port->setReadOnly(false);
|
||||||
port->setMaximumWidth(50);
|
port->setMaximumWidth(50);
|
||||||
|
#ifndef Q_OS_WIN32
|
||||||
|
port->setStyleSheet("QLineEdit{font-size:10px;}");
|
||||||
|
#endif
|
||||||
//port->move(520,110);
|
//port->move(520,110);
|
||||||
QValidator *validator = new QIntValidator(1024, 65535, this);
|
QValidator *validator = new QIntValidator(1024, 65535, this);
|
||||||
port->setValidator(validator);
|
port->setValidator(validator);
|
||||||
@ -120,7 +130,11 @@ ServerConfigDialog::ServerConfigDialog(QWidget * parent)
|
|||||||
formLayout->addRow("",accept);
|
formLayout->addRow("",accept);
|
||||||
|
|
||||||
form->setLayout(formLayout);
|
form->setLayout(formLayout);
|
||||||
|
#ifdef Q_OS_WIN32
|
||||||
form->move(444,70);
|
form->move(444,70);
|
||||||
|
#else
|
||||||
|
form->move(435,70);
|
||||||
|
#endif
|
||||||
//END FORM-----------------------------------------------------------------
|
//END FORM-----------------------------------------------------------------
|
||||||
|
|
||||||
check = new QCheckBox(this);
|
check = new QCheckBox(this);
|
||||||
@ -258,9 +272,6 @@ void ServerConfigDialog::generateQR()
|
|||||||
|
|
||||||
}
|
}
|
||||||
//qrCode->setText(dir+":8080");
|
//qrCode->setText(dir+":8080");
|
||||||
#ifdef Q_OS_MAC
|
|
||||||
ip->setFixedWidth(130);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ServerConfigDialog::generateQR(const QString & serverAddress)
|
void ServerConfigDialog::generateQR(const QString & serverAddress)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user