forked from quickshell/quickshell
core/screen: add model and serial number properties
This commit is contained in:
parent
6a017d63d6
commit
b73eff0e47
2 changed files with 24 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue