core/screen: add model and serial number properties

This commit is contained in:
outfoxxed 2025-01-22 19:38:18 -08:00
parent 6a017d63d6
commit b73eff0e47
Signed by untrusted user: outfoxxed
GPG key ID: 4C88A185FB89301E
2 changed files with 24 additions and 0 deletions

View file

@ -42,6 +42,24 @@ QString QuickshellScreenInfo::name() const {
return this->screen->name();
}
QString QuickshellScreenInfo::model() const {
if (this->screen == nullptr) {
this->warnDangling();
return "{ NULL SCREEN }";
}
return this->screen->model();
}
QString QuickshellScreenInfo::serialNumber() const {
if (this->screen == nullptr) {
this->warnDangling();
return "{ NULL SCREEN }";
}
return this->screen->serialNumber();
}
qint32 QuickshellScreenInfo::x() const {
if (this->screen == nullptr) {
this->warnDangling();