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
cd065dc6
Commit
cd065dc6
authored
Sep 27, 2021
by
Laurent Montel
😁
Browse files
Not necessary to use qoverload here
parent
d0036182
Pipeline
#82937
passed with stage
in 33 minutes and 20 seconds
Changes
10
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/collectionpage/collectionexpirywidget.cpp
View file @
cd065dc6
...
...
@@ -70,10 +70,10 @@ CollectionExpiryWidget::CollectionExpiryWidget(QWidget *parent)
auto
formLayout
=
new
QFormLayout
(
this
);
formLayout
->
setContentsMargins
({});
connect
(
mExpireReadMailSB
,
qOverload
<
int
>
(
&
KPluralHandlingSpinBox
::
valueChanged
)
,
this
,
&
CollectionExpiryWidget
::
slotChanged
);
connect
(
mExpireReadMailSB
,
&
KPluralHandlingSpinBox
::
valueChanged
,
this
,
&
CollectionExpiryWidget
::
slotChanged
);
formLayout
->
addRow
(
i18n
(
"Expire read messages after:"
),
mExpireReadMailSB
);
connect
(
mExpireUnreadMailSB
,
qOverload
<
int
>
(
&
KPluralHandlingSpinBox
::
valueChanged
)
,
this
,
&
CollectionExpiryWidget
::
slotChanged
);
connect
(
mExpireUnreadMailSB
,
&
KPluralHandlingSpinBox
::
valueChanged
,
this
,
&
CollectionExpiryWidget
::
slotChanged
);
formLayout
->
addRow
(
i18n
(
"Expire unread messages after:"
),
mExpireUnreadMailSB
);
connect
(
mExpireMailWithInvalidDateCB
,
&
QCheckBox
::
toggled
,
this
,
&
CollectionExpiryWidget
::
slotChanged
);
...
...
src/filter/dialog/selectthunderbirdfilterfileswidget.cpp
View file @
cd065dc6
...
...
@@ -19,7 +19,7 @@ SelectThunderbirdFilterFilesWidget::SelectThunderbirdFilterFilesWidget(const QSt
{
ui
->
setupUi
(
this
);
connect
(
ui
->
buttonGroup
,
&
QButtonGroup
::
buttonClicked
,
this
,
&
SelectThunderbirdFilterFilesWidget
::
slotButtonClicked
);
connect
(
ui
->
profiles
,
qOverload
<
int
>
(
&
KComboBox
::
currentIndexChanged
)
,
this
,
&
SelectThunderbirdFilterFilesWidget
::
slotProfileChanged
);
connect
(
ui
->
profiles
,
&
KComboBox
::
currentIndexChanged
,
this
,
&
SelectThunderbirdFilterFilesWidget
::
slotProfileChanged
);
ui
->
listFiles
->
setSelectionMode
(
QAbstractItemView
::
MultiSelection
);
QString
defaultProfile
;
...
...
src/filter/filteractions/filteractionaddheader.cpp
View file @
cd065dc6
...
...
@@ -85,7 +85,7 @@ QWidget *FilterActionAddHeader::createParamWidget(QWidget *parent) const
layout
->
addWidget
(
lineEdit
,
1
);
setParamWidgetValue
(
widget
);
connect
(
comboBox
,
qOverload
<
int
>
(
&
KComboBox
::
currentIndexChanged
)
,
this
,
&
FilterActionAddHeader
::
filterActionModified
);
connect
(
comboBox
,
&
KComboBox
::
currentIndexChanged
,
this
,
&
FilterActionAddHeader
::
filterActionModified
);
connect
(
comboBox
->
lineEdit
(),
&
QLineEdit
::
textChanged
,
this
,
&
FilterAction
::
filterActionModified
);
connect
(
lineEdit
,
&
QLineEdit
::
textChanged
,
this
,
&
FilterActionAddHeader
::
filterActionModified
);
...
...
src/filter/filteractions/filteractionaddtoaddressbook.cpp
View file @
cd065dc6
...
...
@@ -132,8 +132,8 @@ QWidget *FilterActionAddToAddressBook::createParamWidget(QWidget *parent) const
i18n
(
"This defines the preferred address book.
\n
"
"If it is not accessible, the filter will fallback to the default address book."
));
layout
->
addWidget
(
collectionComboBox
,
1
,
2
);
connect
(
headerCombo
,
qOverload
<
int
>
(
&
KComboBox
::
currentIndexChanged
)
,
this
,
&
FilterActionAddToAddressBook
::
filterActionModified
);
connect
(
collectionComboBox
,
qOverload
<
int
>
(
&
Akonadi
::
CollectionComboBox
::
activated
)
,
this
,
&
FilterActionAddToAddressBook
::
filterActionModified
);
connect
(
headerCombo
,
&
KComboBox
::
currentIndexChanged
,
this
,
&
FilterActionAddToAddressBook
::
filterActionModified
);
connect
(
collectionComboBox
,
&
Akonadi
::
CollectionComboBox
::
activated
,
this
,
&
FilterActionAddToAddressBook
::
filterActionModified
);
connect
(
categoryEdit
,
&
Akonadi
::
TagWidget
::
selectionChanged
,
this
,
&
FilterActionAddToAddressBook
::
filterActionModified
);
setParamWidgetValue
(
widget
);
...
...
@@ -202,10 +202,7 @@ void FilterActionAddToAddressBook::applyParamWidgetValue(QWidget *paramWidget)
// we use the previously 'stored' value from the 'collectionId' property
if
(
collection
.
isValid
())
{
mCollectionId
=
collection
.
id
();
connect
(
collectionComboBox
,
qOverload
<
int
>
(
&
Akonadi
::
CollectionComboBox
::
currentIndexChanged
),
this
,
&
FilterActionAddToAddressBook
::
filterActionModified
);
connect
(
collectionComboBox
,
&
Akonadi
::
CollectionComboBox
::
currentIndexChanged
,
this
,
&
FilterActionAddToAddressBook
::
filterActionModified
);
}
else
{
const
QVariant
value
=
collectionComboBox
->
property
(
"collectionId"
);
if
(
value
.
isValid
())
{
...
...
src/filter/filteractions/filteractionforward.cpp
View file @
cd065dc6
...
...
@@ -110,7 +110,7 @@ QWidget *FilterActionForward::createParamWidget(QWidget *parent) const
templateCombo
->
setEnabled
(
templateCombo
->
count
()
>
1
);
templateCombo
->
setToolTip
(
i18n
(
"The template used when forwarding"
));
templateCombo
->
setWhatsThis
(
i18n
(
"Set the forwarding template that will be used with this filter."
));
connect
(
templateCombo
,
qOverload
<
int
>
(
&
KComboBox
::
currentIndexChanged
)
,
this
,
&
FilterActionForward
::
filterActionModified
);
connect
(
templateCombo
,
&
KComboBox
::
currentIndexChanged
,
this
,
&
FilterActionForward
::
filterActionModified
);
connect
(
addressRequester
,
&
Akonadi
::
EmailAddressRequester
::
textChanged
,
this
,
&
FilterActionForward
::
filterActionModified
);
return
addressAndTemplate
;
...
...
src/filter/filteractions/filteractionremoveheader.cpp
View file @
cd065dc6
...
...
@@ -34,7 +34,7 @@ QWidget *FilterActionRemoveHeader::createParamWidget(QWidget *parent) const
comboBox
->
setMinimumWidth
(
50
);
comboBox
->
setInsertPolicy
(
QComboBox
::
InsertAtBottom
);
setParamWidgetValue
(
comboBox
);
connect
(
comboBox
,
qOverload
<
int
>
(
&
KComboBox
::
currentIndexChanged
)
,
this
,
&
FilterActionRemoveHeader
::
filterActionModified
);
connect
(
comboBox
,
&
KComboBox
::
currentIndexChanged
,
this
,
&
FilterActionRemoveHeader
::
filterActionModified
);
connect
(
comboBox
->
lineEdit
(),
&
QLineEdit
::
textChanged
,
this
,
&
FilterAction
::
filterActionModified
);
return
comboBox
;
...
...
src/filter/filteractions/filteractionrewriteheader.cpp
View file @
cd065dc6
...
...
@@ -130,7 +130,7 @@ QWidget *FilterActionRewriteHeader::createParamWidget(QWidget *parent) const
layout
->
addWidget
(
lineEdit
,
1
);
setParamWidgetValue
(
widget
);
connect
(
comboBox
,
qOverload
<
int
>
(
&
KComboBox
::
currentIndexChanged
)
,
this
,
&
FilterActionRewriteHeader
::
filterActionModified
);
connect
(
comboBox
,
&
KComboBox
::
currentIndexChanged
,
this
,
&
FilterActionRewriteHeader
::
filterActionModified
);
connect
(
comboBox
->
lineEdit
(),
&
QLineEdit
::
textChanged
,
this
,
&
FilterAction
::
filterActionModified
);
connect
(
regExpLineEdit
,
&
KLineEdit
::
textChanged
,
this
,
&
FilterActionRewriteHeader
::
filterActionModified
);
connect
(
lineEdit
,
&
KLineEdit
::
textChanged
,
this
,
&
FilterActionRewriteHeader
::
filterActionModified
);
...
...
src/filter/filteractions/filteractionsettransport.cpp
View file @
cd065dc6
...
...
@@ -28,7 +28,7 @@ QWidget *FilterActionSetTransport::createParamWidget(QWidget *parent) const
auto
transportCombobox
=
new
MailTransport
::
TransportComboBox
(
parent
);
transportCombobox
->
setObjectName
(
QStringLiteral
(
"transportcombobox"
));
setParamWidgetValue
(
transportCombobox
);
connect
(
transportCombobox
,
qOverload
<
int
>
(
&
MailTransport
::
TransportComboBox
::
currentIndexChanged
)
,
this
,
&
FilterActionSetTransport
::
filterActionModified
);
connect
(
transportCombobox
,
&
MailTransport
::
TransportComboBox
::
currentIndexChanged
,
this
,
&
FilterActionSetTransport
::
filterActionModified
);
return
transportCombobox
;
}
...
...
src/filter/tests/filterimporterexportergui.cpp
View file @
cd065dc6
...
...
@@ -56,7 +56,7 @@ FilterImporterExporterGui::FilterImporterExporterGui(QWidget *parent)
act
=
new
QAction
(
QStringLiteral
(
"GMail filters"
),
this
);
act
->
setData
(
QVariant
::
fromValue
(
MailCommon
::
FilterImporterExporter
::
GmailFilter
));
menuFilter
->
addAction
(
act
);
connect
(
menuFilter
,
qOverload
<
QAction
*>
(
&
QMenu
::
triggered
)
,
this
,
&
FilterImporterExporterGui
::
slotImportFilter
);
connect
(
menuFilter
,
&
QMenu
::
triggered
,
this
,
&
FilterImporterExporterGui
::
slotImportFilter
);
mTextEdit
=
new
QTextEdit
;
mTextEdit
->
setReadOnly
(
true
);
...
...
src/folder/folderselectiondialog.cpp
View file @
cd065dc6
...
...
@@ -109,10 +109,7 @@ FolderSelectionDialog::FolderSelectionDialog(QWidget *parent, SelectionFolderOpt
connect
(
d
->
folderTreeWidget
->
selectionModel
(),
&
QItemSelectionModel
::
selectionChanged
,
this
,
&
FolderSelectionDialog
::
slotSelectionChanged
);
connect
(
d
->
folderTreeWidget
->
folderTreeWidgetProxyModel
(),
&
QAbstractItemModel
::
rowsInserted
,
this
,
&
FolderSelectionDialog
::
rowsInserted
);
connect
(
d
->
folderTreeWidget
->
folderTreeView
(),
qOverload
<
const
QModelIndex
&>
(
&
QAbstractItemView
::
doubleClicked
),
this
,
&
FolderSelectionDialog
::
slotDoubleClick
);
connect
(
d
->
folderTreeWidget
->
folderTreeView
(),
&
QAbstractItemView
::
doubleClicked
,
this
,
&
FolderSelectionDialog
::
slotDoubleClick
);
d
->
mUseGlobalSettings
=
!
(
options
&
NotUseGlobalSettings
);
readConfig
();
...
...
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