Warning, /plasma/lightdm-kde-greeter/lib/qml/ScreenManager.qml is written in an unsupported language. File is not indexed.

0001 /*
0002  This file is part of LightDM-KDE.
0003 
0004  Copyright 2012 David Edmundson <kde@davidedmundson.co.uk>
0005 
0006  LightDM-KDE is free software: you can redistribute it and/or modify
0007  it under the terms of the GNU General Public License as published by
0008  the Free Software Foundation, either version 3 of the License, or
0009  (at your option) any later version.
0010 
0011  LightDM-KDE is distributed in the hope that it will be useful,
0012  but WITHOUT ANY WARRANTY; without even the implied warranty of
0013  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0014  GNU General Public License for more details.
0015 
0016  You should have received a copy of the GNU General Public License
0017  along with LightDM-KDE.  If not, see <http://www.gnu.org/licenses/>.
0018 */
0019 
0020 import QtQuick 1.1
0021 import org.kde.lightdm 0.1 as LightDM
0022 
0023 Item {
0024     id: manager
0025     property Item activeScreen
0026     property Component delegate
0027    
0028     Repeater {
0029         id: repeater
0030         model: LightDM.ScreensModel{}
0031         delegate : delegateItem
0032     }
0033 
0034     Component.onCompleted: {
0035         activeScreen = manager.children[0]
0036     }
0037 
0038     Component {
0039         id: delegateItem
0040 
0041         Item {
0042             x: geometry.x
0043             width: geometry.width
0044             y: geometry.y
0045             height: geometry.height
0046 
0047             MouseArea {
0048                 id: mouseArea
0049                 anchors.fill: parent
0050                 hoverEnabled: true
0051                 onEntered: {
0052                     screenManager.activeScreen = parent
0053                 }
0054             }
0055 
0056             Loader {
0057                 sourceComponent: manager.delegate
0058                 anchors.fill: parent
0059             }
0060         }
0061     }
0062 }