Have a tooltip with the number of connected devices

This commit is contained in:
Aleix Pol 2016-11-23 19:35:39 +01:00
parent 7b87af16df
commit 7960cb2ca7

View file

@ -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();
}