forked from quickshell/quickshell
parent
69430e3873
commit
fa74449139
3 changed files with 11 additions and 10 deletions
|
@ -1,5 +1,6 @@
|
|||
#include "qml.hpp"
|
||||
|
||||
#include <qnamespace.h>
|
||||
#include <qobject.h>
|
||||
|
||||
#include "../../core/model.hpp"
|
||||
|
@ -28,9 +29,6 @@ void SystemTray::onItemRegistered(StatusNotifierItem* item) {
|
|||
void SystemTray::onItemUnregistered(StatusNotifierItem* item) { this->mItems.removeObject(item); }
|
||||
ObjectModel<StatusNotifierItem>* SystemTray::items() { return &this->mItems; }
|
||||
|
||||
bool SystemTray::compareItems(
|
||||
qs::service::sni::StatusNotifierItem* a,
|
||||
qs::service::sni::StatusNotifierItem* b
|
||||
) {
|
||||
return a->category() > b->category() || a->id().compare(b->id(), Qt::CaseInsensitive) >= 0;
|
||||
bool SystemTray::compareItems(StatusNotifierItem* a, StatusNotifierItem* b) {
|
||||
return a->category() < b->category() || a->id().compare(b->id(), Qt::CaseInsensitive) >= 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue