mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-27 06:01:14 +01:00
client ui
rework better radiobutton
This commit is contained in:
@@ -19,14 +19,8 @@ void Better_Radiobutton::add_radiobutton(QString name)
|
||||
m_radiobuttons.push_back(radiobutton);
|
||||
m_v_layout->addWidget(radiobutton);
|
||||
|
||||
connect(radiobutton, &QRadioButton::toggled, this, [this, name, radiobutton] {
|
||||
emit toggled(name);
|
||||
if (radiobutton->isChecked())
|
||||
{
|
||||
m_checked = name;
|
||||
emit checked(name);
|
||||
}
|
||||
});
|
||||
connect(radiobutton, &QRadioButton::toggled, this,
|
||||
[this, name, radiobutton](bool checked) { emit toggled(name, checked); });
|
||||
}
|
||||
|
||||
QString Better_Radiobutton::isChecked() const
|
||||
|
||||
Reference in New Issue
Block a user