aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-desktop-unified/src-desktop/src-cpp/RootDesktopObject.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-11-16 13:19:48 -0500
committerKen Moore <ken@ixsystems.com>2017-11-16 13:19:48 -0500
commit31e8c393ea88c99f43817bb91d35355015597e4b (patch)
treefca8bec343e833bb2cbff4b44cb11d6537cbc5dc /src-qt5/core/lumina-desktop-unified/src-desktop/src-cpp/RootDesktopObject.cpp
parentAdd a bunch of ZFS information routines to LFileInfo. (diff)
downloadlumina-31e8c393ea88c99f43817bb91d35355015597e4b.tar.gz
lumina-31e8c393ea88c99f43817bb91d35355015597e4b.tar.bz2
lumina-31e8c393ea88c99f43817bb91d35355015597e4b.zip
Another attempt to fix the Repeater of objects issue in Lumina 2.
Diffstat (limited to 'src-qt5/core/lumina-desktop-unified/src-desktop/src-cpp/RootDesktopObject.cpp')
-rw-r--r--src-qt5/core/lumina-desktop-unified/src-desktop/src-cpp/RootDesktopObject.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src-qt5/core/lumina-desktop-unified/src-desktop/src-cpp/RootDesktopObject.cpp b/src-qt5/core/lumina-desktop-unified/src-desktop/src-cpp/RootDesktopObject.cpp
index 9842712e..ee15c9c2 100644
--- a/src-qt5/core/lumina-desktop-unified/src-desktop/src-cpp/RootDesktopObject.cpp
+++ b/src-qt5/core/lumina-desktop-unified/src-desktop/src-cpp/RootDesktopObject.cpp
@@ -36,6 +36,13 @@ QList<ScreenObject*> RootDesktopObject::screens(){
return s_objects;
}
+ScreenObject* RootDesktopObject::screen(QString id){
+ for(int i=0; i<s_objects.length(); i++){
+ if(s_objects[i]->name()==id){ return s_objects[i]; }
+ }
+ return 0;
+}
+
void RootDesktopObject::logout(){
emit startLogout();
}
bgstack15