!6 Correct typos error in headerbar.cpp
From: @tanyulong2021 Reviewed-by: @ Signed-off-by: @peijiankang
This commit is contained in:
commit
5e9f218c7c
27
0002-Correct-typos-error-in-headerbar.cpp.patch
Normal file
27
0002-Correct-typos-error-in-headerbar.cpp.patch
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
From 3327a4ac08288aa99914c962f4f9fd418798b188 Mon Sep 17 00:00:00 2001
|
||||||
|
From: tanyulong2021 <tanyulong@kylinos.cn>
|
||||||
|
Date: Tue, 2 Aug 2022 11:32:22 +0800
|
||||||
|
Subject: [PATCH] Correct typos error in headerbar.cpp
|
||||||
|
|
||||||
|
---
|
||||||
|
src/headerbar.cpp | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/headerbar.cpp b/src/headerbar.cpp
|
||||||
|
index d87a849..970cd2d 100644
|
||||||
|
--- a/src/headerbar.cpp
|
||||||
|
+++ b/src/headerbar.cpp
|
||||||
|
@@ -119,8 +119,8 @@ int HeaderBarStyle::pixelMetric(QStyle::PixelMetric metric, const QStyleOption *
|
||||||
|
|
||||||
|
void HeaderBarStyle::drawComplexControl(QStyle::ComplexControl control, const QStyleOptionComplex *option, QPainter *painter, const QWidget *widget) const
|
||||||
|
{
|
||||||
|
- //This is a "lie". We want to use instant popup menu for tool button, and we aslo
|
||||||
|
- //want use popup menu style with this tool button, so we change the related flags
|
||||||
|
+ //This is a "lie". We want to use instant popup menu for tool button, and we also
|
||||||
|
+ //want to use popup menu style with this tool button, so we change the related flags
|
||||||
|
//to draw in our expected.
|
||||||
|
if (control == CC_ToolButton) {
|
||||||
|
QStyleOptionToolButton button = *qstyleoption_cast<const QStyleOptionToolButton *>(option);
|
||||||
|
--
|
||||||
|
2.33.0
|
||||||
|
|
||||||
@ -1,7 +1,7 @@
|
|||||||
%define debug_package %{nil}
|
%define debug_package %{nil}
|
||||||
Name: ukui-notebook
|
Name: ukui-notebook
|
||||||
Version: 3.1.0
|
Version: 3.1.0
|
||||||
Release: 3
|
Release: 4
|
||||||
Summary: A component of the ukui desktop environment that provides convenient text
|
Summary: A component of the ukui desktop environment that provides convenient text
|
||||||
License: GPL-2+
|
License: GPL-2+
|
||||||
URL: http://www.ukui.org
|
URL: http://www.ukui.org
|
||||||
@ -26,6 +26,7 @@ BuildRequires: libXcursor-devel
|
|||||||
BuildRequires: ukui-sidebar
|
BuildRequires: ukui-sidebar
|
||||||
|
|
||||||
patch0: 0001-Modify-segment-fault-error.patch
|
patch0: 0001-Modify-segment-fault-error.patch
|
||||||
|
patch1: 0002-Correct-typos-error-in-headerbar.cpp.patch
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -34,6 +35,7 @@ A component of the ukui desktop environment that provides convenient text record
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
mkdir build && cd build
|
mkdir build && cd build
|
||||||
@ -60,6 +62,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_datadir}/ukui-notebook/ukui-notebook_zh_CN.qm
|
%{_datadir}/ukui-notebook/ukui-notebook_zh_CN.qm
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Aug 02 2022 tanyulong <tanyulong@kylinos.cn> - 3.1.0-4
|
||||||
|
- Correct typos error in headerbar.cpp
|
||||||
|
|
||||||
* Tue Aug 02 2022 tanyulong <tanyulong@kylinos.cn> - 3.1.0-3
|
* Tue Aug 02 2022 tanyulong <tanyulong@kylinos.cn> - 3.1.0-3
|
||||||
- Modify segment fault error
|
- Modify segment fault error
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user