Changeset View
Changeset View
Standalone View
Standalone View
containments/panel/contents/ui/ConfigOverlay.qml
Show All 10 Lines | |||||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | * GNU General Public License for more details. | 12 | * GNU General Public License for more details. | ||
13 | * | 13 | * | ||
14 | * You should have received a copy of the GNU General Public License | 14 | * You should have received a copy of the GNU General Public License | ||
15 | * along with this program; if not, write to the Free Software | 15 | * along with this program; if not, write to the Free Software | ||
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 2.010-1301, USA. | 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 2.010-1301, USA. | ||
17 | */ | 17 | */ | ||
18 | 18 | | |||
19 | import QtQuick 2.1 | 19 | import QtQuick 2.5 | ||
20 | import QtQuick.Layouts 1.0 | 20 | import QtQuick.Layouts 1.0 | ||
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 2.0 as PlasmaComponents | 23 | import org.kde.plasma.components 2.0 as PlasmaComponents | ||
24 | import org.kde.plasma.extras 2.0 as PlasmaExtras | 24 | import org.kde.plasma.extras 2.0 as PlasmaExtras | ||
25 | import org.kde.kquickcontrolsaddons 2.0 | 25 | import org.kde.kquickcontrolsaddons 2.0 | ||
26 | 26 | | |||
27 | MouseArea { | 27 | MouseArea { | ||
Show All 31 Lines | 58 | } else { | |||
59 | if ((mouse.x - handle.x) < spacerHandleSize || | 59 | if ((mouse.x - handle.x) < spacerHandleSize || | ||
60 | (mouse.x - handle.x) > (handle.width - spacerHandleSize)) { | 60 | (mouse.x - handle.x) > (handle.width - spacerHandleSize)) { | ||
61 | configurationArea.cursorShape = Qt.SizeHorCursor; | 61 | configurationArea.cursorShape = Qt.SizeHorCursor; | ||
62 | } else { | 62 | } else { | ||
63 | configurationArea.cursorShape = Qt.ArrowCursor; | 63 | configurationArea.cursorShape = Qt.ArrowCursor; | ||
64 | } | 64 | } | ||
65 | } | 65 | } | ||
66 | } else { | 66 | } else { | ||
67 | configurationArea.cursorShape = Qt.ArrowCursor; | 67 | if (configurationArea.containsPress) { | ||
68 | configurationArea.cursorShape = Qt.ClosedHandCursor; | ||||
69 | } else { | ||||
70 | configurationArea.cursorShape = Qt.OpenHandCursor; | ||||
71 | } | ||||
68 | } | 72 | } | ||
69 | 73 | | |||
70 | if (pressed) { | 74 | if (pressed) { | ||
71 | if (currentApplet && currentApplet.applet.pluginName === "org.kde.plasma.panelspacer") { | 75 | if (currentApplet && currentApplet.applet.pluginName === "org.kde.plasma.panelspacer") { | ||
72 | 76 | | |||
73 | if (isResizingLeft) { | 77 | if (isResizingLeft) { | ||
74 | if (plasmoid.formFactor === PlasmaCore.Types.Vertical) { | 78 | if (plasmoid.formFactor === PlasmaCore.Types.Vertical) { | ||
75 | handle.y += (mouse.y - lastY); | 79 | handle.y += (mouse.y - lastY); | ||
▲ Show 20 Lines • Show All 339 Lines • Show Last 20 Lines |