--9627d0acdbf94eb98ba8b97011d34403 Content-Type: text/plain; charset="ascii" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit broulik added inline comments. INLINE COMMENTS > main.qml:241 > + onDragEnter: { > + if (event.mimeData.formats.indexOf("text/x-plasmoidservicename") < 0) { > + event.ignore(); Can you split that into a function so we then have onDragEnter: { if (!isAcceptableDragEvent(event)) { event.ignore() return } } onDrop: { if (!isAcceptableDragEvent(event)) { event.ignore() return } ... } > systemtray.h:100 > > + Q_INVOKABLE bool isSystemTrayApplet(const QString &appletId); > + const REPOSITORY rPLASMAWORKSPACE Plasma Workspace REVISION DETAIL https://phabricator.kde.org/D3212 EMAIL PREFERENCES https://phabricator.kde.org/settings/panel/emailpreferences/ To: davidedmundson, #plasma Cc: broulik, plasma-devel, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas --9627d0acdbf94eb98ba8b97011d34403 Content-Type: text/html; charset="ascii" Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable broulik=20added=20inline=20comments. View=20Revision
INLINE=20COMMENTS
View=20Inlinemain.qml:241 =20=20=20=20=20=20= =20=20onDragEnter:=20{
=20=20=20=20=20=20=20=20=20=20=20=20if=20(event.mimeData.formats.indexOf("text/x-plasmoidservicename")=20<=200)=20{
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20event.ignore(); Can=20you=20split=20that=20into=20a=20functio= n=20so=20we=20then=20have

onDragEnter:=20{ =20=20=20=20if=20(!isAcceptableDragEvent(event))=20{ =20=20=20=20=20=20=20=20event.ignore() =20=20=20=20=20=20=20=20return =20=20=20=20} } onDrop:=20{ =20=20=20=20if=20(!isAcceptableDragEvent(event))=20{ =20=20=20=20=20=20=20=20event.ignore() =20=20=20=20=20=20=20=20return =20=20=20=20} =20=20=20=20... }View=20Inlinesystemtray.h:1= 00 =20=20=20=20Q_INVOKABLE=20bool=20isSystemTrayApplet(const=20QString=20&appletId); const

REPOSITORY
rPLASMAWORKSPACE=20Plasma=20Wor= kspace
REVISION=20DETAILhttps= ://phabricator.kde.org/D3212
EMAIL=20PR= EFERENCES
https://phabricator.kde.org/set= tings/panel/emailpreferences/
To:=20davidedmundson,=20PlasmaCc:=20broulik,=20pla= sma-devel,=20lesliezhai,=20ali-mohamed,=20jensreuterberg,=20abetts,=20sebas=
--9627d0acdbf94eb98ba8b97011d34403--