Changeset View
Changeset View
Standalone View
Standalone View
sddm-theme/SessionButton.qml
Show All 16 Lines | |||||
17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | 17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | import QtQuick 2.6 | 20 | import QtQuick 2.6 | ||
21 | 21 | | |||
22 | import org.kde.plasma.core 2.0 as PlasmaCore | 22 | import org.kde.plasma.core 2.0 as PlasmaCore | ||
23 | import org.kde.plasma.components 3.0 as PlasmaComponents | 23 | import org.kde.plasma.components 3.0 as PlasmaComponents | ||
24 | 24 | | |||
25 | import QtQuick.Controls 2.5 as QQC2 | 25 | import QtQuick.Controls 2.5 as QQC2 | ||
26 | import QtGraphicalEffects 1.0 | 26 | import QtGraphicalEffects 1.0 | ||
ngraham: `import QtQuick.Controls 2.8 as QQC2` | |||||
27 | 27 | | |||
28 | PlasmaComponents.ToolButton { | 28 | PlasmaComponents.ToolButton { | ||
29 | id: sessionButton | 29 | id: sessionButton | ||
30 | property int currentIndex: -1 | 30 | property int currentIndex: -1 | ||
31 | 31 | | |||
32 | visible: sessionMenu.count > 1 | 32 | visible: sessionMenu.count > 1 | ||
33 | 33 | | |||
34 | text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Desktop Session: %1", instantiator.objectAt(currentIndex).name || "Error") | 34 | text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Desktop Session: %1", instantiator.objectAt(currentIndex).name || "Error") | ||
▲ Show 20 Lines • Show All 99 Lines • Show Last 20 Lines |
import QtQuick.Controls 2.8 as QQC2