Commit 7675441f authored by Laurent Montel's avatar Laurent Montel 😁

Astyle kdelibs

parent a8059a80
......@@ -27,7 +27,6 @@
#include <entitytreemodel.h>
#include <KComboBox>
#include <QtCore/QTimer>
#include <QIcon>
#include <QAbstractItemView>
......@@ -155,7 +154,7 @@ QWidget *ContactGroupEditorDelegate::createEditor(QWidget *parent, const QStyleO
return comboBox;
} else {
auto edit = new ContactLineEdit(isReference, ContactCompletionModel::EmailColumn, parent);
connect(edit, static_cast<void(ContactLineEdit::*)(QWidget*)>(&ContactLineEdit::completed),
connect(edit, static_cast<void(ContactLineEdit::*)(QWidget *)>(&ContactLineEdit::completed),
this, &ContactGroupEditorDelegate::completed);
return edit;
}
......
......@@ -89,7 +89,7 @@ ContactGroupEditorDialog::ContactGroupEditorDialog(Mode mode, QWidget *parent)
setWindowTitle(mode == CreateMode ? i18n("New Contact Group") : i18n("Edit Contact Group"));
QVBoxLayout *mainLayout = new QVBoxLayout(this);
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel,this);
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, this);
d->okButton = buttonBox->button(QDialogButtonBox::Ok);
d->okButton->setDefault(true);
d->okButton->setShortcut(Qt::CTRL | Qt::Key_Return);
......
......@@ -19,7 +19,6 @@
02110-1301, USA.
*/
#ifndef AKONADICONTACTSELECTTYPECOMBOBOXTEST_H
#define AKONADICONTACTSELECTTYPECOMBOBOXTEST_H
......
......@@ -32,7 +32,6 @@
#include <KComboBox>
#include <KLocalizedString>
// Tries to guess the display type that is used for the passed contact
static DisplayNameEditWidget::DisplayType guessedDisplayType(const KContacts::Addressee &contact)
{
......
......@@ -42,7 +42,6 @@ MessagingWidgetLister::~MessagingWidgetLister()
}
void MessagingWidgetLister::loadContact(const KContacts::Addressee &contact)
{
IMAddress::List imaddresses;
......
......@@ -58,10 +58,8 @@ NameEditDialog::NameEditDialog(QWidget *parent)
mSuffixCombo->setDuplicatesEnabled(false);
mSuffixCombo->setEditable(true);
mDisplayNameEdit = new DisplayNameEditWidget(this);
layout->addRow(i18n("Honorific prefixes:"), mPrefixCombo);
layout->addRow(i18n("Given name:"), mGivenNameEdit);
layout->addRow(i18n("Additional names:"), mAdditionalNameEdit);
......
......@@ -41,7 +41,7 @@ IMProtocols::IMProtocols()
QMap<QString, QString>::const_iterator sortedIt = sortingMap.cbegin();
const QMap<QString, QString>::const_iterator sortedItEnd = sortingMap.cend();
for (;sortedIt != sortedItEnd; ++sortedIt) {
for (; sortedIt != sortedItEnd; ++sortedIt) {
mSortedProtocols.append(sortedIt.value());
}
}
......
......@@ -25,7 +25,6 @@
#include <kdatepicker.h>
#include <QContextMenuEvent>
#include <QHBoxLayout>
#include <QToolButton>
......
......@@ -114,7 +114,6 @@ void KDatePickerPopup::setDate(const QDate &date)
mDatePicker->setDate(date);
}
void KDatePickerPopup::slotDateChanged(const QDate &date)
{
if (date != mDate) {
......
......@@ -19,7 +19,6 @@
02110-1301, USA.
*/
#include "emailaddressselectionmodel.h"
#include <AkonadiCore/Session>
#include <AkonadiCore/ItemFetchScope>
......@@ -29,7 +28,6 @@
#include <KContacts/Addressee>
#include <KContacts/ContactGroup>
using namespace Akonadi;
EmailAddressSelectionModel::EmailAddressSelectionModel(QObject *parent)
......
......@@ -19,7 +19,6 @@
02110-1301, USA.
*/
#ifndef EMAILADDRESSSELECTIONMODEL_H
#define EMAILADDRESSSELECTIONMODEL_H
......
......@@ -24,7 +24,6 @@
#include "contactactionssettings.h"
#include <kaboutdata.h>
#include <kconfigdialogmanager.h>
#include <kpluginfactory.h>
......
......@@ -582,7 +582,6 @@ QAction *StandardContactActionManager::createAction(Type type)
return action;
}
switch (type) {
case CreateContact:
action = new QAction(d->mParentWidget);
......
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