Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
KDE Pim
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Unmaintained
KDE Pim
Commits
29f02933
Commit
29f02933
authored
Jun 15, 2016
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't show "reindex" button when we use imap online
parent
5bf47a87
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
kmail/src/collectionpage/collectionmaintenancepage.cpp
kmail/src/collectionpage/collectionmaintenancepage.cpp
+9
-3
kmail/src/collectionpage/collectionmaintenancepage.h
kmail/src/collectionpage/collectionmaintenancepage.h
+2
-0
No files found.
kmail/src/collectionpage/collectionmaintenancepage.cpp
View file @
29f02933
...
...
@@ -39,8 +39,10 @@
#include <QFormLayout>
#include <QCheckBox>
#include <AkonadiCore/indexpolicyattribute.h>
#include <AkonadiCore/CachePolicy>
#include <KFormat>
#include <KConfigGroup>
#include <PimCommon/PimUtil>
using
namespace
Akonadi
;
...
...
@@ -87,8 +89,8 @@ void CollectionMaintenancePage::init(const Akonadi::Collection &col)
box
->
addRow
(
new
QLabel
(
i18n
(
"Unread messages:"
),
messagesGroup
),
mCollectionUnread
);
topLayout
->
addWidget
(
messagesGroup
);
QGroupBox
*
indexingGroup
=
new
QGroupBox
(
i18n
(
"Indexing"
),
this
);
QVBoxLayout
*
indexingLayout
=
new
QVBoxLayout
(
indexingGroup
);
indexingGroupBox
=
new
QGroupBox
(
i18n
(
"Indexing"
),
this
);
QVBoxLayout
*
indexingLayout
=
new
QVBoxLayout
(
indexingGroup
Box
);
mIndexingEnabled
=
new
QCheckBox
(
i18n
(
"Enable Full Text Indexing"
));
indexingLayout
->
addWidget
(
mIndexingEnabled
);
...
...
@@ -100,8 +102,12 @@ void CollectionMaintenancePage::init(const Akonadi::Collection &col)
connect
(
mReindexCollection
,
&
QPushButton
::
clicked
,
this
,
&
CollectionMaintenancePage
::
slotReindexCollection
);
mReindexCollection
->
setObjectName
(
QStringLiteral
(
"reindexbutton"
));
indexingLayout
->
addWidget
(
mReindexCollection
);
if
(
PimCommon
::
Util
::
isImapResource
(
col
.
resource
())
&&
!
col
.
cachePolicy
().
localParts
().
contains
(
QLatin1String
(
"RFC822"
)))
{
indexingGroupBox
->
hide
();
}
topLayout
->
addWidget
(
indexingGroup
);
topLayout
->
addWidget
(
indexingGroup
Box
);
topLayout
->
addStretch
(
100
);
}
...
...
kmail/src/collectionpage/collectionmaintenancepage.h
View file @
29f02933
...
...
@@ -25,6 +25,7 @@
class
QCheckBox
;
class
QLabel
;
class
QPushButton
;
class
QGroupBox
;
namespace
Akonadi
{
class
CollectionStatistics
;
...
...
@@ -59,6 +60,7 @@ private:
QCheckBox
*
mIndexingEnabled
;
QLabel
*
mLastIndexed
;
QPushButton
*
mReindexCollection
;
QGroupBox
*
indexingGroupBox
;
};
AKONADI_COLLECTION_PROPERTIES_PAGE_FACTORY
(
CollectionMaintenancePageFactory
,
CollectionMaintenancePage
)
...
...
Write
Preview
Markdown
is supported
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