Fix return type errors
This commit is contained in:
parent
558d6d538f
commit
4fb817aeaa
32
0002-Fix-return-type-errors.patch
Normal file
32
0002-Fix-return-type-errors.patch
Normal file
@ -0,0 +1,32 @@
|
||||
From 63efc3ee8bb71fc840a0a33bb708a548fdb88ad4 Mon Sep 17 00:00:00 2001
|
||||
From: tanyulong <tanyulong@kylinos.cn>
|
||||
Date: Tue, 2 Nov 2021 11:37:02 +0800
|
||||
Subject: [PATCH] Fix return type errors
|
||||
|
||||
---
|
||||
libqt5-ukui-style/gestures/ukui-two-finger-slide-gesture.cpp | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/libqt5-ukui-style/gestures/ukui-two-finger-slide-gesture.cpp b/libqt5-ukui-style/gestures/ukui-two-finger-slide-gesture.cpp
|
||||
index bbe5562..81ac373 100755
|
||||
--- a/libqt5-ukui-style/gestures/ukui-two-finger-slide-gesture.cpp
|
||||
+++ b/libqt5-ukui-style/gestures/ukui-two-finger-slide-gesture.cpp
|
||||
@@ -46,6 +46,7 @@ int TwoFingerSlideGesture::delta()
|
||||
case Invalid:
|
||||
return 0;
|
||||
}
|
||||
+ return 0;
|
||||
}
|
||||
|
||||
int TwoFingerSlideGesture::totalDelta()
|
||||
@@ -58,6 +59,7 @@ int TwoFingerSlideGesture::totalDelta()
|
||||
case Invalid:
|
||||
return 0;
|
||||
}
|
||||
+ return 0;
|
||||
}
|
||||
|
||||
TwoFingerSlideGestureRecognizer::TwoFingerSlideGestureRecognizer() : QGestureRecognizer()
|
||||
--
|
||||
2.30.0
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
%define debug_package %{nil}
|
||||
Name: qt5-ukui-platformtheme
|
||||
Version: 1.0.5
|
||||
Release: 2
|
||||
Release: 3
|
||||
Summary: Qt5 QPA platform theme of UKUI
|
||||
License: LGPL-3.0+ GPL-3.0+
|
||||
URL: http://www.ukui.org
|
||||
@ -22,6 +22,7 @@ Requires: libqt5-ukui-style1
|
||||
Requires: qt5-styles-ukui
|
||||
|
||||
patch0: 0001-change-libqt5-ukui-style-Requires-Qt5Widgets-Version.patch
|
||||
patch1: 0002-Fix-return-type-errors.patch
|
||||
|
||||
%description
|
||||
qt5-ukui-platformtheme is official platform theme of UKUI desktop
|
||||
@ -83,6 +84,7 @@ Provides: libqt5-ukui-style
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
|
||||
%build
|
||||
mkdir build && cd build
|
||||
@ -126,6 +128,9 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%{_libdir}/*.so
|
||||
|
||||
%changelog
|
||||
* Tue Nov 02 2021 tanyulong <tanyulong@kylinos.cn> - 1.0.5-3
|
||||
- add patch1: 0002-Fix-return-type-errors.patch
|
||||
|
||||
* Thu Oct 21 2021 douyan<douyan@kylinos.cn> - 1.0.5-2
|
||||
- add patch0: 0001-change-libqt5-ukui-style-Requires-Qt5Widgets-Version.patch
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user