Correct typos error in headerbar.cpp

This commit is contained in:
tanyulong2021 2022-08-02 11:47:30 +08:00
parent eaee9bca74
commit f3933bff1e
2 changed files with 33 additions and 1 deletions

View 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

View File

@ -1,7 +1,7 @@
%define debug_package %{nil}
Name: ukui-notebook
Version: 3.1.0
Release: 3
Release: 4
Summary: A component of the ukui desktop environment that provides convenient text
License: GPL-2+
URL: http://www.ukui.org
@ -26,6 +26,7 @@ BuildRequires: libXcursor-devel
BuildRequires: ukui-sidebar
patch0: 0001-Modify-segment-fault-error.patch
patch1: 0002-Correct-typos-error-in-headerbar.cpp.patch
%description
@ -34,6 +35,7 @@ A component of the ukui desktop environment that provides convenient text record
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%build
mkdir build && cd build
@ -60,6 +62,9 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/ukui-notebook/ukui-notebook_zh_CN.qm
%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
- Modify segment fault error