mirror of
https://github.com/YACReader/yacreader
synced 2025-07-14 02:54:46 -04:00
Simplify connection from QComboBox
All we want is the new text after it changes.
This commit is contained in:
@ -117,7 +117,7 @@ ServerConfigDialog::ServerConfigDialog(QWidget *parent)
|
||||
portLabel->setStyleSheet("QLabel {color:#575757; font-size:18px; font-family: Arial;}");
|
||||
|
||||
ip = new QComboBox(this);
|
||||
connect(ip, QOverload<const QString &>::of(&QComboBox::activated), this, &ServerConfigDialog::regenerateQR);
|
||||
connect(ip, &QComboBox::currentTextChanged, this, &ServerConfigDialog::regenerateQR);
|
||||
|
||||
ip->setFixedWidth(200);
|
||||
ip->move(332, 153);
|
||||
|
Reference in New Issue
Block a user