mirror of
https://github.com/quickshell-mirror/quickshell.git
synced 2026-10-29 03:05:05 +00:00
15 lines
330 B
C++
15 lines
330 B
C++
#include "model.hpp"
|
|
|
|
#include <qbytearray.h>
|
|
#include <qhash.h>
|
|
#include <qnamespace.h>
|
|
|
|
QHash<int, QByteArray> UntypedObjectModel::roleNames() const {
|
|
return {{Qt::UserRole, "modelData"}};
|
|
}
|
|
|
|
UntypedObjectModel* UntypedObjectModel::emptyInstance() {
|
|
static auto* instance = new ObjectModel<void>(nullptr);
|
|
return instance;
|
|
}
|