D20237: Port to new KWorkspace API

David Edmundson noreply at phabricator.kde.org
Wed Apr 3 22:44:03 BST 2019


davidedmundson accepted this revision.
davidedmundson added inline comments.
This revision is now accepted and ready to land.

INLINE COMMENTS

> systemmodel.cpp:57
>  {
> -    qDeleteAll(m_entryList);
> -}
> -
> -void SystemModel::init()
> -{
> -    QList<SystemEntry *> actions;
> -
> -    actions << new SystemEntry(this, SystemEntry::LockSession);
> -    actions << new SystemEntry(this, SystemEntry::LogoutSession);
> -    actions << new SystemEntry(this, SystemEntry::SaveSession);
> -    actions << new SystemEntry(this, SystemEntry::SwitchUser);
> -    actions << new SystemEntry(this, SystemEntry::SuspendToRam);
> -    actions << new SystemEntry(this, SystemEntry::SuspendToDisk);
> -    actions << new SystemEntry(this, SystemEntry::Reboot);
> -    actions << new SystemEntry(this, SystemEntry::Shutdown);
> -
> -    foreach(SystemEntry *entry, actions) {
> -        if (entry->isValid()) {
> -            m_entryList << entry;
> -        } else {
> -            delete entry;
> -        }
> -    }
> +    qDeleteAll(m_entries.values());
>  }

qDeleteAll(m_entries)

REPOSITORY
  R119 Plasma Desktop

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D20237

To: hein, #plasma, davidedmundson
Cc: plasma-devel, jraleigh, GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20190403/9194bfc9/attachment.html>


More information about the Plasma-devel mailing list