Have a tooltip with the number of connected devices
This commit is contained in:
parent
7b87af16df
commit
7960cb2ca7
1 changed files with 4 additions and 0 deletions
|
@ -70,5 +70,9 @@ int main(int argc, char** argv)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
QObject::connect(&model, &DevicesModel::rowsChanged, &model, [&systray, &model]() {
|
||||||
|
systray.setToolTip(i18np("%1 device connected", "%1 devices connected", model.rowCount()));
|
||||||
|
});
|
||||||
|
|
||||||
return app.exec();
|
return app.exec();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue