D25186: Update internal printer enabled/paused state if it changes externally
Kai Uwe Broulik
noreply at phabricator.kde.org
Thu Nov 7 10:42:44 GMT 2019
broulik added inline comments.
INLINE COMMENTS
> PrinterItem.qml:259
> Component.onCompleted: {
> isPaused = printerState === 5
> + printersModel.dataChanged.connect(printerDataChanged)
Can you see if assigning a binding here works instead?
isPaused = Qt.binding(function() {
return printerState === 5;
});
Ideally, this was done entirely declaratively, i.e. assign the property
isPaused: printerState === 5
but I don't know the code enough to tell why it was done imperatively originally
REPOSITORY
R363 Print Manager
REVISION DETAIL
https://phabricator.kde.org/D25186
To: marten, dantti, broulik, ngraham
Cc: kde-utils-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-utils-devel/attachments/20191107/9add761f/attachment-0001.html>
More information about the Kde-utils-devel
mailing list