Compare commits

..

12 Commits

Author SHA1 Message Date
openeuler-ci-bot
0e13de33d3
!43 fix: change accessible URL
From: @zhuhong_bo 
Reviewed-by: @HelloWorld_lvcongqing 
Signed-off-by: @HelloWorld_lvcongqing
2024-11-08 12:11:12 +00:00
ut005731
5f0257d432 fix: change accessible URL 2024-09-30 18:10:35 +08:00
openeuler-ci-bot
9087bc1945
!29 [sync] PR-28: upgrade to version 5.9.14
From: @openeuler-sync-bot 
Reviewed-by: @leeffo 
Signed-off-by: @leeffo
2023-08-23 02:59:42 +00:00
leeffo
1a7b154e4a upgrade to version 5.9.14
(cherry picked from commit acde8120136396fccbeb1607a834026d3e992d81)
2023-08-17 10:15:48 +08:00
openeuler-ci-bot
0e0c541643
!26 update to 5.8.20.1
From: @leeffo 
Reviewed-by: @HelloWorld_lvcongqing 
Signed-off-by: @HelloWorld_lvcongqing
2023-04-07 09:31:52 +00:00
liweiganga
da4d9fad4c update: update to 5.8.20.1 2023-04-04 14:04:11 +08:00
openeuler-ci-bot
c0dcda380e
!16 update dde-calendar
From: @shilei_522 
Reviewed-by: @panchenbo 
Signed-off-by: @panchenbo
2022-08-04 02:37:12 +00:00
openeuler-ci-bot
9adc689f06
!21 [sync] PR-20: [update] update version to 5.8.10
From: @openeuler-sync-bot 
Reviewed-by: @yeqinglong01 
Signed-off-by: @yeqinglong01
2022-07-29 05:21:37 +00:00
konglidong
087dddcd6a update version to 5.8.10
(cherry picked from commit 13d2693d9971fcd0be4c53ba5543912c21581eb2)
2022-07-28 16:14:19 +08:00
openeuler-ci-bot
b5e5e42301
!13 fix build error
From: @ll3366 
Reviewed-by: @weidongkl 
Signed-off-by: @weidongkl
2022-04-18 02:55:29 +00:00
shilei
c566851c3d update dde-calendar
Signed-off-by: shilei <shileib@uniontech.com>
2022-02-16 14:30:31 +08:00
liweiganga
b460cb9bfc fix build error 2022-02-08 10:43:06 +08:00
7 changed files with 211 additions and 33 deletions

View File

@ -0,0 +1,115 @@
From 5b8f9686e93998f05f6da6da753f0e41038c26f8 Mon Sep 17 00:00:00 2001
From: zhangguofu <zhangguofu@uniontech.com>
Date: Tue, 28 Feb 2023 14:46:32 +0800
Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E3=80=901060=E3=80=91=E3=80=90AE?=
=?UTF-8?q?=E3=80=91=E3=80=90RC1=E3=80=91=E3=80=90=E5=85=A8=E5=B9=B3?=
=?UTF-8?q?=E5=8F=B0=E3=80=91=E3=80=90DDE=E3=80=91=E3=80=90=E6=96=B0?=
=?UTF-8?q?=E9=9C=80=E6=B1=82=E3=80=91=E3=80=90=E6=97=A5=E5=8E=86=E3=80=91?=
=?UTF-8?q?=E6=96=B0=E5=BB=BA=E5=8D=95=E5=A4=A9=E6=97=A5=E7=A8=8B=E5=A4=B1?=
=?UTF-8?q?=E8=B4=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
【1060】【AE】【RC1】【全平台】【DDE】【新需求】【日历】新建单天日程失败
Log: 【1060】【AE】【RC1】【全平台】【DDE】【新需求】【日历】新建单天日程失败
Bug: https://pms.uniontech.com/bug-view-187697.html
Change-Id: I72c1fb2e8f92a8d37f91f7ad2073081f74e5271b
---
.../calendarDataManager/daccountmodule.cpp | 22 +++++++++----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/calendar-service/src/calendarDataManager/daccountmodule.cpp b/calendar-service/src/calendarDataManager/daccountmodule.cpp
index 94968744..4c2492ac 100644
--- a/calendar-service/src/calendarDataManager/daccountmodule.cpp
+++ b/calendar-service/src/calendarDataManager/daccountmodule.cpp
@@ -213,7 +213,7 @@ bool DAccountModule::deleteScheduleTypeByID(const QString &typeID)
m_accountDB->addUploadTask(uploadTask);
//如果颜色不为系统类型则删除
- if(scheduleType->typeColor().privilege() != DTypeColor::PriSystem){
+ if (scheduleType->typeColor().privilege() != DTypeColor::PriSystem) {
m_accountDB->deleteTypeColor(scheduleType->typeColor().colorID());
DUploadTaskData::Ptr uploadTask(new DUploadTaskData);
uploadTask->setTaskType(DUploadTaskData::TaskType::Delete);
@@ -226,7 +226,7 @@ bool DAccountModule::deleteScheduleTypeByID(const QString &typeID)
uploadNetWorkAccountData();
} else {
m_accountDB->deleteScheduleTypeByID(typeID, 1);
- if(scheduleType->typeColor().privilege() != DTypeColor::PriSystem){
+ if (scheduleType->typeColor().privilege() != DTypeColor::PriSystem) {
m_accountDB->deleteTypeColor(scheduleType->typeColor().colorID());
}
}
@@ -540,7 +540,7 @@ void DAccountModule::updateRemindSchedules(bool isClear)
{
//因为全天的当前提醒日程会在开始时间延后9小时提醒
QDateTime dtCurrent = QDateTime::currentDateTime();
- QDateTime dtStart = dtCurrent.addSecs(-9*60*60);
+ QDateTime dtStart = dtCurrent.addSecs(-9 * 60 * 60);
QDateTime dtEnd = dtCurrent.addMSecs(UPDATEREMINDJOBTIMEINTERVAL);
//获取未提醒的日程相关信息
@@ -688,7 +688,7 @@ void DAccountModule::removeDB()
m_accountDB->removeDB();
//如果为uid帐户退出则清空目录下所有关于uid的数据库文件
//解决在某些条件下数据库没有被移除的问题(自测未发现)
- if(account()->accountType() == DAccount::Type::Account_UnionID){
+ if (account()->accountType() == DAccount::Type::Account_UnionID) {
QString dbPatch = getHomeConfigPath().append(QString("/deepin/dde-calendar-service/"));
QDir dir(dbPatch);
if (dir.exists()) {
@@ -717,7 +717,7 @@ QMap<QDate, DSchedule::List> DAccountModule::getScheduleTimesOn(const QDateTime
//获取日程的开始结束时间差
qint64 interval = schedule->dtStart().secsTo(schedule->dtEnd());
//如果存在重复日程
- if (schedule->recurs()) {
+ if (schedule->recurs() && DSchedule::RRule_None != schedule->getRRuleType()) {
//如果为农历日程
if (schedule->lunnar()) {
//农历重复日程计算
@@ -763,8 +763,8 @@ QMap<QDate, DSchedule::List> DAccountModule::getScheduleTimesOn(const QDateTime
//如果在查询时间范围内
QDateTime queryDtStart = dtStart;
//如果日程为全天日程则查询的开始时间设置为0点因为全天日程的开始和结束时间都是0点
- if(schedule->allDay()){
- queryDtStart.setTime(QTime(0,0,0));
+ if (schedule->allDay()) {
+ queryDtStart.setTime(QTime(0, 0, 0));
}
if (!(schedule->dtEnd() < queryDtStart || schedule->dtStart() > dtEnd)) {
if (extend && schedule->isMultiDay()) {
@@ -772,7 +772,7 @@ QMap<QDate, DSchedule::List> DAccountModule::getScheduleTimesOn(const QDateTime
int extenddays = static_cast<int>(schedule->dtStart().daysTo(schedule->dtEnd()));
for (int i = 0; i <= extenddays; ++i) {
//如果扩展的日期在查询范围内则添加,否则退出
- if(m_scheduleMap.contains(schedule->dtStart().date().addDays(i))){
+ if (m_scheduleMap.contains(schedule->dtStart().date().addDays(i))) {
m_scheduleMap[schedule->dtStart().date().addDays(i)].append(schedule);
} else {
break;
@@ -816,8 +816,8 @@ void DAccountModule::extendRecurrence(DSchedule::Map &scheduleMap, const DSchedu
{
QDateTime queryDtStart = dtStart;
//如果日程为全天日程则查询的开始时间设置为0点因为全天日程的开始和结束时间都是0点
- if(schedule->allDay()){
- queryDtStart.setTime(QTime(0,0,0));
+ if (schedule->allDay()) {
+ queryDtStart.setTime(QTime(0, 0, 0));
}
if (schedule->recurs()) {
//获取日程的开始结束时间差
@@ -960,7 +960,7 @@ void DAccountModule::slotSyncState(const int syncState)
m_account->setSyncState(DAccount::Sync_StorageFull);
break;
default:
- qWarning()<<"syncState:"<<syncState<<"fun:"<<__FUNCTION__<<" line:"<<__LINE__;
+ qWarning() << "syncState:" << syncState << "fun:" << __FUNCTION__ << " line:" << __LINE__;
//默认服务器异常
m_account->setSyncState(DAccount::Sync_ServerException);
break;
--
2.20.1

View File

@ -0,0 +1,45 @@
From 488e2d821adb15ee9df65a9f1a2f9be35274c383 Mon Sep 17 00:00:00 2001
From: zhangguofu <zhangguofu@uniontech.com>
Date: Wed, 8 Mar 2023 10:32:19 +0800
Subject: [PATCH 2/2] =?UTF-8?q?fix:=20=E3=80=901060=E3=80=91=E3=80=90AE?=
=?UTF-8?q?=E3=80=91=E3=80=90RC1=E3=80=91=E3=80=90=E5=85=A8=E5=B9=B3?=
=?UTF-8?q?=E5=8F=B0=E3=80=91=E3=80=90DDE=E3=80=91=E3=80=90=E6=96=B0?=
=?UTF-8?q?=E9=9C=80=E6=B1=82=E3=80=91=E3=80=90=E6=97=A5=E5=8E=86=E3=80=91?=
=?UTF-8?q?=E6=96=B0=E5=BB=BA=E5=8D=95=E5=A4=A9=E6=97=A5=E7=A8=8B=E5=A4=B1?=
=?UTF-8?q?=E8=B4=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
【1060】【AE】【RC1】【全平台】【DDE】【新需求】【日历】新建单天日程失败
Log: 【1060】【AE】【RC1】【全平台】【DDE】【新需求】【日历】新建单天日程失败
Bug: https://pms.uniontech.com/bug-view-187697.html
Change-Id: I32c838c5b466854465c9325ecf2fae1a1c2990d1
---
calendar-client/src/dialog/scheduledlg.cpp | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/calendar-client/src/dialog/scheduledlg.cpp b/calendar-client/src/dialog/scheduledlg.cpp
index 3bceafba..b2d349d9 100644
--- a/calendar-client/src/dialog/scheduledlg.cpp
+++ b/calendar-client/src/dialog/scheduledlg.cpp
@@ -315,10 +315,11 @@ bool CScheduleDlg::createSchedule(const QString &scheduleTypeId)
}
schedule->recurrence()->setDuration(0);
schedule->recurrence()->setEndDateTime(endrpeattime);
- } else {
+ } /*else {
+ KCalendarCore中说明了不重复就不要setDuration传入错误的值会导致各个版本libical解析器结果不同
//永不
- schedule->recurrence()->setDuration(-1);
- }
+// schedule->recurrence()->setDuration(-1);
+ }*/
CScheduleOperation _scheduleOperation(m_accountItem, this);
--
2.20.1

View File

@ -1,22 +1,20 @@
# dde-calendar
#### Description
dde calendar
dde calendar:Calculator is a powerful desktop calculator that supports standard mode, Scientific mode and Programmer mode. Perfect support for keyboard input, in the keyboard input also support symbol fault tolerance and calculation result linkage.
#### Software Architecture
Software architecture description
#### Installation
1. xxxx
2. xxxx
3. xxxx
1. dnf install dde-calendar
#### Instructions
1. xxxx
2. xxxx
3. xxxx
1. Select **standard ** to switch to the standard mode screen and perform basic addition, subtraction, multiplication and division operations.
2. Select **science **, switch to the Science mode interface, and perform advanced operations such as functions, exponentials, and roots.
3. Select **programmer **, switch to programmer mode interface, perform binary, octal, decimal, hexadecimal and other complex operations.
#### Contribution

View File

@ -1,7 +1,7 @@
# dde-calendar
#### 介绍
dde calendar
dde calendar:计算器是一款功能强大的桌面计算器,支持标准模式、科学模式和程序员模式。完美支持键盘输入,在键盘输入时还支持符号容错及计算结果联动
#### 软件架构
软件架构说明
@ -9,15 +9,13 @@ dde calendar
#### 安装教程
1. xxxx
2. xxxx
3. xxxx
1. dnf install dde-calendar
#### 使用说明
1. xxxx
2. xxxx
3. xxxx
1. 选择 **标准**,切换到标准模式界面,执行基本的加减乘除运算。
2. 选择 **科学**,切换到科学模式界面,执行函数、指数、方根等高级运算。
3. 选择 **程序员**,切换到程序员模式界面,执行二进制、八进制、十进制、十六进制等复杂运算。
#### 参与贡献

Binary file not shown.

BIN
dde-calendar-5.9.14.tar.gz Normal file

Binary file not shown.

View File

@ -1,37 +1,38 @@
%define pkgrelease 2
Name: dde-calendar
Version: 5.7.0.5
Release: 1
Summary: Calendar for Deepin Desktop Environment
License: GPLv3+
URL: https://github.com/linuxdeepin/%{name}
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
Version: 5.9.14
Provides: deepin-calendar
Obsoletes: deepin-calendar
Release: %{pkgrelease}
Summary: Calendar is a smart daily planner to schedule all things in life
License: GPLv3
URL: https://github.com/linuxdeepin/dde-calendar
Source0: %{name}-%{version}.tar.gz
Patch0: 0001-fix-1060-AE-RC1-DDE.patch
Patch1: 0002-fix-1060-AE-RC1-DDE.patch
BuildRequires: gcc-c++
BuildRequires: cmake
BuildRequires: qt5-devel
BuildRequires: dtkcore-devel
BuildRequires: qt5-qtbase-private-devel
BuildRequires: dtkgui-devel
BuildRequires: dtkwidget-devel
BuildRequires: pkgconfig(dtkgui)
#BuildRequires: deepin-gettext-tools
BuildRequires: pkgconfig(dframeworkdbus)
BuildRequires: gtest-devel
BuildRequires: gmock
BuildRequires: libical-devel
%description
%{summary}.
%prep
%autosetup
%autosetup -p1
%build
# help find (and prefer) qt5 utilities, e.g. qmake, lrelease
export PATH=%{_qt5_bindir}:$PATH
# cmake_minimum_required version is too high
sed -i "s|^cmake_minimum_required.*|cmake_minimum_required(VERSION 3.0)|" $(find . -name "CMakeLists.txt")
mkdir build && pushd build
%cmake ../ -DCMAKE_BUILD_TYPE=Release -DAPP_VERSION=%{version} -DVERSION=%{version}
%cmake -DCMAKE_BUILD_TYPE=Release ../ -DAPP_VERSION=%{version} -DVERSION=%{version} -DCMAKE_SCHEDULE_PLUGIN_OFF="OFF"
%make_build
popd
@ -42,11 +43,32 @@ popd
%doc README.md
%license LICENSE
%{_bindir}/%{name}
%{_datadir}/%{name}/translations/*.qm
%{_datadir}/dbus-1/services/com.deepin.Calendar.service
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/translations/*.qm
%{_datadir}/deepin-manual/manual-assets/application/dde-calendar/calendar/*
%{_datadir}/dbus-1/services/*.service
/etc/xdg/autostart/dde-calendar-service.desktop
%{_datadir}/dde-calendar/data/*
/usr/lib/deepin-daemon/dde-calendar-service
%{_prefix}/lib/deepin-aiassistant/serivce-plugins/libuosschedulex-plugin.so
%{_prefix}/lib/systemd/user/
%changelog
* Sun Sep 29 2024 zhuhongbo <zhuhongbo@uniontech.com> - 5.9.14-2
- fix: change accessible URL
* Wed Aug 02 2023 leeffo <liweiganga@uniontech.com> - 5.9.14-1
- upgrade to version 5.9.14
* Mon Mar 27 2023 liweiganga <liweiganga@uniontech.com> - 5.8.20.1-1
- update: update to 5.8.20.1
* Mon Jul 18 2022 konglidong <konglidong@uniontech.com> - 5.8.10-1
- update to 5.8.10
* Tue Feb 08 2022 liweigang <liweiganga@uniontech.com> - 5.7.0.5-2
- fix build error
* Wed Jul 07 2021 weidong <weidong@uniontech.com> - 5.7.0.5-1
- Update to 5.7.0.5