Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
PIM MailCommon
Commits
55511484
Commit
55511484
authored
Sep 22, 2020
by
Laurent Montel
😁
Browse files
Start to extract widget
parent
befa0604
Pipeline
#35264
passed with stage
in 61 minutes and 32 seconds
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
55511484
cmake_minimum_required
(
VERSION 3.5
)
set
(
PIM_VERSION
"5.15.4
5
"
)
set
(
PIM_VERSION
"5.15.4
6
"
)
project
(
mailcommon VERSION
${
PIM_VERSION
}
)
...
...
src/CMakeLists.txt
View file @
55511484
...
...
@@ -101,6 +101,7 @@ set(libmailcommon_collection_SRCS
collectionpage/collectionexpiryjob.cpp
collectionpage/collectiontemplateswidget.cpp
collectionpage/collectionviewwidget.cpp
collectionpage/collectiongeneralwidget.cpp
)
set
(
libmailcommon_folder_SRCS
...
...
@@ -402,6 +403,7 @@ ecm_generate_headers(MailCommon_Camelcasecollectionpage_HEADERS
CollectionExpiryWidget
CollectionTemplatesWidget
CollectionViewWidget
CollectionGeneralWidget
REQUIRED_HEADERS MailCommon_collectionpage_HEADERS
PREFIX MailCommon
RELATIVE collectionpage
...
...
src/collectionpage/collectiongeneralwidget.cpp
0 → 100644
View file @
55511484
/*
SPDX-FileCopyrightText: 2020 Laurent Montel <montel@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "collectiongeneralwidget.h"
using
namespace
MailCommon
;
CollectionGeneralWidget
::
CollectionGeneralWidget
(
QWidget
*
parent
)
:
QWidget
(
parent
)
{
}
CollectionGeneralWidget
::~
CollectionGeneralWidget
()
{
}
void
CollectionGeneralWidget
::
save
(
Akonadi
::
Collection
&
col
)
{
}
void
CollectionGeneralWidget
::
load
(
const
Akonadi
::
Collection
&
col
)
{
}
src/collectionpage/collectiongeneralwidget.h
0 → 100644
View file @
55511484
/*
SPDX-FileCopyrightText: 2020 Laurent Montel <montel@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef COLLECTIONGENERALWIDGET_H
#define COLLECTIONGENERALWIDGET_H
#include <QWidget>
#include "mailcommon_export.h"
#include <AkonadiCore/Collection>
class
QCheckBox
;
namespace
MailCommon
{
class
MAILCOMMON_EXPORT
CollectionGeneralWidget
:
public
QWidget
{
Q_OBJECT
public:
explicit
CollectionGeneralWidget
(
QWidget
*
parent
=
nullptr
);
~
CollectionGeneralWidget
();
void
save
(
Akonadi
::
Collection
&
);
void
load
(
const
Akonadi
::
Collection
&
col
);
private:
QCheckBox
*
mNotifyOnNewMailCheckBox
=
nullptr
;
QCheckBox
*
mKeepRepliesInSameFolderCheckBox
=
nullptr
;
QCheckBox
*
mHideInSelectionDialogCheckBox
=
nullptr
;
QCheckBox
*
mUseDefaultIdentityCheckBox
=
nullptr
;
};
}
#endif // COLLECTIONGENERALWIDGET_H
src/collectionpage/collectiontemplateswidget.cpp
View file @
55511484
...
...
@@ -55,7 +55,7 @@ CollectionTemplatesWidget::~CollectionTemplatesWidget()
}
void
CollectionTemplatesWidget
::
save
(
const
Akonadi
::
Collection
&
)
void
CollectionTemplatesWidget
::
save
(
Akonadi
::
Collection
&
)
{
if
(
mChanged
&&
!
mCollectionId
.
isEmpty
())
{
TemplateParser
::
Templates
t
(
mCollectionId
);
...
...
src/collectionpage/collectiontemplateswidget.h
View file @
55511484
...
...
@@ -26,7 +26,7 @@ class MAILCOMMON_EXPORT CollectionTemplatesWidget : public QWidget
public:
explicit
CollectionTemplatesWidget
(
QWidget
*
parent
=
nullptr
);
~
CollectionTemplatesWidget
();
void
save
(
const
Akonadi
::
Collection
&
);
void
save
(
Akonadi
::
Collection
&
);
void
load
(
const
Akonadi
::
Collection
&
col
);
private:
void
slotCopyGlobal
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment