Remove usage of SIGNAL/SLOT macro
Signed-off-by: Yihe Li <winmikedows@hotmail.com>
This commit is contained in:
parent
0136c2e82a
commit
4a9b3d2f5f
30 changed files with 75 additions and 87 deletions
|
@ -84,7 +84,7 @@ void CheckComboBox::setSourceModel(QAbstractItemModel* new_model)
|
|||
proxy->setSourceModel(new_model);
|
||||
model()->disconnect(this);
|
||||
QComboBox::setModel(proxy);
|
||||
connect(this, QOverload<int>::of(&QComboBox::activated), this, &CheckComboBox::toggleCheckState);
|
||||
connect(this, &QComboBox::activated, this, &CheckComboBox::toggleCheckState);
|
||||
connect(proxy, &CheckComboModel::checkStateChanged, this, &CheckComboBox::emitCheckedItemsChanged);
|
||||
connect(model(), &CheckComboModel::rowsInserted, this, &CheckComboBox::emitCheckedItemsChanged);
|
||||
connect(model(), &CheckComboModel::rowsRemoved, this, &CheckComboBox::emitCheckedItemsChanged);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue