Compare commits
10 Commits
8f20bdacf6
...
2248e1d82d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2248e1d82d | ||
|
|
2d4d0f2c81 | ||
|
|
6c498387d5 | ||
|
|
1d2d5d6946 | ||
|
|
a594b3d2f5 | ||
|
|
3d72533387 | ||
|
|
2ae76ae166 | ||
|
|
c566851c3d | ||
|
|
39bbaaf4a9 | ||
|
|
7c96858555 |
110
0001-fix-DDE.patch
Normal file
110
0001-fix-DDE.patch
Normal file
@ -0,0 +1,110 @@
|
|||||||
|
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
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
26
0001-fix-build-error.patch
Normal file
26
0001-fix-build-error.patch
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
From bbbbe0a6f69f7ca4fba2275963fca948988feb2f Mon Sep 17 00:00:00 2001
|
||||||
|
From: Super User <root@localhost.localdomain>
|
||||||
|
Date: Mon, 27 Mar 2023 14:14:37 +0800
|
||||||
|
Subject: [PATCH] fix build error
|
||||||
|
|
||||||
|
---
|
||||||
|
tests/third-party_stub/stub.h | 2 ++
|
||||||
|
1 file changed, 2 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/tests/third-party_stub/stub.h b/tests/third-party_stub/stub.h
|
||||||
|
index 76d6606..79bf963 100644
|
||||||
|
--- a/tests/third-party_stub/stub.h
|
||||||
|
+++ b/tests/third-party_stub/stub.h
|
||||||
|
@@ -16,6 +16,8 @@
|
||||||
|
#include <cstring>
|
||||||
|
//c++
|
||||||
|
#include <map>
|
||||||
|
+#include <iostream>
|
||||||
|
+using namespace std;
|
||||||
|
|
||||||
|
|
||||||
|
#define ADDR(CLASS_NAME,MEMBER_NAME) (&CLASS_NAME::MEMBER_NAME)
|
||||||
|
--
|
||||||
|
2.39.1
|
||||||
|
|
||||||
|
|
||||||
40
0002-fix-DDE.patch
Normal file
40
0002-fix-DDE.patch
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
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
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
12
README.en.md
12
README.en.md
@ -1,22 +1,20 @@
|
|||||||
# dde-calendar
|
# dde-calendar
|
||||||
|
|
||||||
#### Description
|
#### 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
|
||||||
Software architecture description
|
Software architecture description
|
||||||
|
|
||||||
#### Installation
|
#### Installation
|
||||||
|
|
||||||
1. xxxx
|
1. dnf install dde-calendar
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### Instructions
|
#### Instructions
|
||||||
|
|
||||||
1. xxxx
|
1. Select **standard ** to switch to the standard mode screen and perform basic addition, subtraction, multiplication and division operations.
|
||||||
2. xxxx
|
2. Select **science **, switch to the Science mode interface, and perform advanced operations such as functions, exponentials, and roots.
|
||||||
3. xxxx
|
3. Select **programmer **, switch to programmer mode interface, perform binary, octal, decimal, hexadecimal and other complex operations.
|
||||||
|
|
||||||
#### Contribution
|
#### Contribution
|
||||||
|
|
||||||
|
|||||||
12
README.md
12
README.md
@ -1,7 +1,7 @@
|
|||||||
# dde-calendar
|
# dde-calendar
|
||||||
|
|
||||||
#### 介绍
|
#### 介绍
|
||||||
dde calendar
|
dde calendar:计算器是一款功能强大的桌面计算器,支持标准模式、科学模式和程序员模式。完美支持键盘输入,在键盘输入时还支持符号容错及计算结果联动
|
||||||
|
|
||||||
#### 软件架构
|
#### 软件架构
|
||||||
软件架构说明
|
软件架构说明
|
||||||
@ -9,15 +9,13 @@ dde calendar
|
|||||||
|
|
||||||
#### 安装教程
|
#### 安装教程
|
||||||
|
|
||||||
1. xxxx
|
1. dnf install dde-calendar
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### 使用说明
|
#### 使用说明
|
||||||
|
|
||||||
1. xxxx
|
1. 选择 **标准**,切换到标准模式界面,执行基本的加减乘除运算。
|
||||||
2. xxxx
|
2. 选择 **科学**,切换到科学模式界面,执行函数、指数、方根等高级运算。
|
||||||
3. xxxx
|
3. 选择 **程序员**,切换到程序员模式界面,执行二进制、八进制、十进制、十六进制等复杂运算。
|
||||||
|
|
||||||
#### 参与贡献
|
#### 参与贡献
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
BIN
dde-calendar-5.9.14.tar.gz
Normal file
BIN
dde-calendar-5.9.14.tar.gz
Normal file
Binary file not shown.
@ -1,37 +1,36 @@
|
|||||||
Name: dde-calendar
|
Name: dde-calendar
|
||||||
Version: 5.7.0.5
|
Version: 5.9.14
|
||||||
|
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: Calendar for Deepin Desktop Environment
|
Summary: Calendar is a smart daily planner to schedule all things in life
|
||||||
License: GPLv3+
|
License: GPLv3
|
||||||
URL: https://github.com/linuxdeepin/%{name}
|
URL: https://github.com/linuxdeepin/dde-calendarr
|
||||||
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
|
Source0: %{name}-%{version}.tar.gz
|
||||||
|
Patch0: 0001-fix-DDE.patch
|
||||||
|
Patch1: 0002-fix-DDE.patch
|
||||||
|
|
||||||
Provides: deepin-calendar
|
|
||||||
Obsoletes: deepin-calendar
|
|
||||||
|
|
||||||
BuildRequires: gcc-c++
|
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: qt5-devel
|
BuildRequires: qt5-devel
|
||||||
|
BuildRequires: qt5-qtbase-private-devel
|
||||||
BuildRequires: dtkcore-devel
|
BuildRequires: dtkgui-devel
|
||||||
BuildRequires: dtkwidget-devel
|
BuildRequires: dtkwidget-devel
|
||||||
BuildRequires: pkgconfig(dtkgui)
|
#BuildRequires: deepin-gettext-tools
|
||||||
BuildRequires: pkgconfig(dframeworkdbus)
|
BuildRequires: pkgconfig(dframeworkdbus)
|
||||||
|
BuildRequires: gtest-devel
|
||||||
|
BuildRequires: gmock
|
||||||
|
BuildRequires: libical-devel
|
||||||
|
|
||||||
%description
|
%description
|
||||||
%{summary}.
|
%{summary}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup
|
%autosetup -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# help find (and prefer) qt5 utilities, e.g. qmake, lrelease
|
|
||||||
export PATH=%{_qt5_bindir}:$PATH
|
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")
|
sed -i "s|^cmake_minimum_required.*|cmake_minimum_required(VERSION 3.0)|" $(find . -name "CMakeLists.txt")
|
||||||
mkdir build && pushd build
|
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
|
%make_build
|
||||||
popd
|
popd
|
||||||
|
|
||||||
@ -42,11 +41,29 @@ popd
|
|||||||
%doc README.md
|
%doc README.md
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{_bindir}/%{name}
|
%{_bindir}/%{name}
|
||||||
%{_datadir}/%{name}/translations/*.qm
|
|
||||||
%{_datadir}/dbus-1/services/com.deepin.Calendar.service
|
|
||||||
%{_datadir}/applications/%{name}.desktop
|
%{_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
|
%changelog
|
||||||
|
* 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
|
* Wed Jul 07 2021 weidong <weidong@uniontech.com> - 5.7.0.5-1
|
||||||
- Update to 5.7.0.5
|
- Update to 5.7.0.5
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user