[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [peruse/T9657-update-peruse-creator] src/creator/qml: Remove a warning by initialising variables pro
From:       Wolthera_van_Hövell_tot_Westerflier <null () kde ! org>
Date:       2018-09-17 14:07:01
Message-ID: E1g1uB3-0000lm-QC () code ! kde ! org
[Download RAW message or body]

Git commit 990a26ba558abd7410c8ae0fbc3ec8240a970983 by Wolthera van Hövell tot Westerflier.
Committed on 16/09/2018 at 09:51.
Pushed by woltherav into branch 'T9657-update-peruse-creator'.

Remove a warning by initialising variables properly.

M  +3    -2    src/creator/qml/BookPage.qml

https://commits.kde.org/peruse/990a26ba558abd7410c8ae0fbc3ec8240a970983

diff --git a/src/creator/qml/BookPage.qml b/src/creator/qml/BookPage.qml
index c339f90..877c73d 100644
--- a/src/creator/qml/BookPage.qml
+++ b/src/creator/qml/BookPage.qml
@@ -36,6 +36,7 @@ Kirigami.Page {
     property string pageTitle: "";
     signal save();
 
+
     onIndexChanged: {
         if (root.index===0) {
             root.currentPage = root.model.acbfData.metaData.bookInfo.coverpage();
@@ -155,8 +156,8 @@ Kirigami.Page {
         MouseArea {
             anchors.fill: parent;
             id: pointCatchArea;
-            property point startPoint:;
-            property point endPoint: ;
+            property point startPoint: Qt.point(0,0);
+            property point endPoint: Qt.point(0,0);
             property bool dragging: false;
             hoverEnabled: true;
 

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic