Changeset View
Changeset View
Standalone View
Standalone View
toolboxes/desktoptoolbox/contents/ui/ToolBoxButton.qml
Show All 21 Lines | |||||
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 2.0 as PlasmaComponents | 23 | import org.kde.plasma.components 2.0 as PlasmaComponents | ||
24 | import org.kde.kquickcontrolsaddons 2.0 as KQuickControlsAddons | 24 | import org.kde.kquickcontrolsaddons 2.0 as KQuickControlsAddons | ||
25 | import org.kde.plasma.plasmoid 2.0 | 25 | import org.kde.plasma.plasmoid 2.0 | ||
26 | 26 | | |||
27 | Item { | 27 | Item { | ||
28 | id: toolBoxButton | 28 | id: toolBoxButton | ||
29 | 29 | | |||
30 | property string text: main.Plasmoid.activityName | 30 | property string text: main.Plasmoid.activityName == i18n("Default") ? i18n("Desktop Toolbox") : i18n("Desktop Toolbox - %1 Activity", main.Plasmoid.activityName) | ||
GB_2: I think we should use this dash "—" instead of "-" for consistency. | |||||
31 | property bool isCorner: !buttonMouse.dragging && | 31 | property bool isCorner: !buttonMouse.dragging && | ||
32 | ((state == "topleft") || (state == "topright") || | 32 | ((state == "topleft") || (state == "topright") || | ||
33 | (state == "bottomright") || (state == "bottomleft")) | 33 | (state == "bottomright") || (state == "bottomleft")) | ||
34 | property bool isHorizontal: (state != "left" && state != "right") | 34 | property bool isHorizontal: (state != "left" && state != "right") | ||
35 | 35 | | |||
36 | rotation: switch(state) { | 36 | rotation: switch(state) { | ||
37 | case "left": | 37 | case "left": | ||
38 | return -90; | 38 | return -90; | ||
▲ Show 20 Lines • Show All 271 Lines • Show Last 20 Lines |
I think we should use this dash "—" instead of "-" for consistency.