mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
GIT_SILENT Prevent clang-format uglification
This commit is contained in:
parent
53a8244997
commit
88ef5ea9b7
2 changed files with 7 additions and 8 deletions
|
|
@ -79,7 +79,7 @@ QHash<int, QByteArray> ApplicationListModel::roleNames() const
|
|||
{ApplicationStartupNotifyRole, QByteArrayLiteral("applicationStartupNotify")},
|
||||
{ApplicationLocationRole, QByteArrayLiteral("applicationLocation")},
|
||||
{ApplicationRunningRole, QByteArrayLiteral("applicationRunning")},
|
||||
{ApplicationUniqueIdRole, QByteArrayLiteral("applicationUniqueId")}
|
||||
{ApplicationUniqueIdRole, QByteArrayLiteral("applicationUniqueId")},
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -190,11 +190,10 @@ void ApplicationListModel::loadApplications()
|
|||
} else if (entry->property(QStringLiteral("Exec")).isValid()) {
|
||||
KService::Ptr service(static_cast<KService *>(entry.data()));
|
||||
|
||||
if (service->isApplication() &&
|
||||
!blacklist.contains(service->desktopEntryName()) &&
|
||||
service->showOnCurrentPlatform() &&
|
||||
!service->property(QStringLiteral("Terminal"), QVariant::Bool).toBool()) {
|
||||
|
||||
if (service->isApplication() //
|
||||
&& !blacklist.contains(service->desktopEntryName()) //
|
||||
&& service->showOnCurrentPlatform() //
|
||||
&& !service->property(QStringLiteral("Terminal"), QVariant::Bool).toBool()) {
|
||||
ApplicationData data;
|
||||
data.name = service->name();
|
||||
data.icon = service->icon();
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ public:
|
|||
enum LauncherLocation {
|
||||
Grid = 0,
|
||||
Favorites,
|
||||
Desktop
|
||||
Desktop,
|
||||
};
|
||||
Q_ENUM(LauncherLocation)
|
||||
|
||||
|
|
@ -63,7 +63,7 @@ public:
|
|||
ApplicationStartupNotifyRole,
|
||||
ApplicationLocationRole,
|
||||
ApplicationRunningRole,
|
||||
ApplicationUniqueIdRole
|
||||
ApplicationUniqueIdRole,
|
||||
};
|
||||
|
||||
ApplicationListModel(HomeScreen *parent = nullptr);
|
||||
|
|
|
|||
Loading…
Reference in a new issue