Commit fcc71931 authored by Laurent Montel's avatar Laurent Montel 😁

Allow to define "incidence for"

parent 4c227a17
......@@ -234,13 +234,13 @@ void CollectionGeneralPage::init( const Akonadi::Collection &collection )
// 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)
if ( folderType == CollectionTypeUtil::ContentsTypeCalendar || folderType == CollectionTypeUtil::ContentsTypeTask ) {
++row;
mIncidencesForComboBox = new ContentsTypeComboBox(this);
gl->addWidget(mIncidencesForComboBox, row, 0, 1, 1);
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->setCurrentIndex( incidencesFor );
mIncidencesForComboBox->setEnabled(folderTypeComboboxEnabled);
if ( PimCommon::Util::isImapResource(collection.resource()) ) {
mSharedSeenFlagsCheckBox = new QCheckBox( this );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment