refact: DesktopFile's method and structure

Signed-off-by: ComixHe <heyuming@deepin.org>
This commit is contained in:
ComixHe
2023-08-21 16:02:26 +08:00
committed by Comix
parent 65b6c9eaf0
commit 06ee5e5899
10 changed files with 155 additions and 99 deletions

View File

@ -27,7 +27,7 @@ public:
u8"JobNew",
this,
SLOT(jobNewForward(QDBusObjectPath, QDBusObjectPath)))) {
qFatal() << "connect JobNew failed.";
qFatal("connect JobNew failed.");
}
if (!con.connect(JobManager.service(),
@ -36,7 +36,7 @@ public:
u8"JobRemoved",
this,
SLOT(jobRemovedForward(QDBusObjectPath, QString, QVariantList)))) {
qFatal() << "connect JobNew failed.";
qFatal("connect JobNew failed.");
}
connect(this, &Demo::applicationLaunched, [](QList<QString> apps) {