Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Unmaintained
KDE Pim
Commits
baf04030
Commit
baf04030
authored
Dec 19, 2014
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show it just when it's a imap folder
parent
fcc71931
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
mailcommon/collectionpage/collectiongeneralpage.cpp
mailcommon/collectionpage/collectiongeneralpage.cpp
+10
-10
No files found.
mailcommon/collectionpage/collectiongeneralpage.cpp
View file @
baf04030
...
@@ -229,18 +229,18 @@ void CollectionGeneralPage::init( const Akonadi::Collection &collection )
...
@@ -229,18 +229,18 @@ void CollectionGeneralPage::init( const Akonadi::Collection &collection )
mContentsComboBox
->
setEnabled
(
false
);
mContentsComboBox
->
setEnabled
(
false
);
}
}
}
// Kolab incidences-for annotation.
// Show incidences-for combobox if the contents type can be changed (new folder),
// or if it's set to calendar or task (existing folder)
const
bool
folderTypeComboboxEnabled
=
(
folderType
==
CollectionTypeUtil
::
ContentsTypeCalendar
||
folderType
==
CollectionTypeUtil
::
ContentsTypeTask
);
++
row
;
mIncidencesForComboBox
=
new
ContentsTypeComboBox
(
this
);
gl
->
addWidget
(
mIncidencesForComboBox
,
row
,
0
,
1
,
1
);
// Kolab incidences-for annotation.
mIncidencesForComboBox
->
setCurrentIndex
(
incidencesFor
);
// Show incidences-for combobox if the contents type can be changed (new folder),
mIncidencesForComboBox
->
setEnabled
(
folderTypeComboboxEnabled
);
// or if it's set to calendar or task (existing folder)
}
const
bool
folderTypeComboboxEnabled
=
(
folderType
==
CollectionTypeUtil
::
ContentsTypeCalendar
||
folderType
==
CollectionTypeUtil
::
ContentsTypeTask
);
++
row
;
mIncidencesForComboBox
=
new
ContentsTypeComboBox
(
this
);
gl
->
addWidget
(
mIncidencesForComboBox
,
row
,
0
,
1
,
1
);
mIncidencesForComboBox
->
setCurrentIndex
(
incidencesFor
);
mIncidencesForComboBox
->
setEnabled
(
folderTypeComboboxEnabled
);
if
(
PimCommon
::
Util
::
isImapResource
(
collection
.
resource
())
)
{
if
(
PimCommon
::
Util
::
isImapResource
(
collection
.
resource
())
)
{
mSharedSeenFlagsCheckBox
=
new
QCheckBox
(
this
);
mSharedSeenFlagsCheckBox
=
new
QCheckBox
(
this
);
...
...
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