Commit 80828548 authored by Guy Maurel's avatar Guy Maurel

Only single empty lines, First line, last line(s)

may not be empty for akonadi,#109924
parent 38d11eb4
......@@ -4,7 +4,6 @@
Copyright (c) 2009 Tobias Koenig <tokoe@kde.org>
2010 Bjoern Ricks <bjoern.ricks@intevation.de>
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your
......
......@@ -107,7 +107,6 @@ bool QEkigaDialer::initializeEkiga()
return false;
}
return true;
}
......
......@@ -30,7 +30,6 @@ public:
explicit QEkigaDialer( const QString &applicationName );
~QEkigaDialer();
bool dialNumber( const QString &number );
bool sendSms( const QString &number, const QString &text );
private:
......
......@@ -50,8 +50,6 @@ static bool isSflPhoneServiceRegistered()
return false;
}
QSflPhoneDialer::QSflPhoneDialer( const QString &applicationName )
: QDialer( applicationName )
{
......
......@@ -29,7 +29,6 @@ public:
explicit QSflPhoneDialer( const QString &applicationName );
~QSflPhoneDialer();
bool dialNumber( const QString &number );
bool sendSms( const QString &number, const QString &text );
......
......@@ -110,7 +110,6 @@ bool QSkypeDialer::initializeSkype()
return false;
}
QDBusReply<QString> reply = mInterface->call( QLatin1String( "Invoke" ), QString::fromLatin1( "NAME %1" ).arg( mApplicationName ) );
if ( reply.value() != QLatin1String( "OK" ) ) {
delete mInterface;
......
......@@ -59,7 +59,6 @@ void SmsDialog::initUI()
topLayout->setSpacing( spacingHint() );
topLayout->setMargin( 0 );
QLabel *label = new QLabel( i18n( "Please insert SMS text for an SMS to the following number: %1", mNumber ), page );
topLayout->addWidget( label );
label->setWordWrap( true );
......
......@@ -25,7 +25,6 @@
#include <QPointer>
/**
* A QPointer which when destructed, deletes the object it points to.
*
......
......@@ -201,7 +201,6 @@ void ContactEditor::Private::setupMonitor()
mParent, SLOT(itemChanged(Akonadi::Item,QSet<QByteArray>)) );
}
ContactEditor::ContactEditor( Mode mode, QWidget *parent )
: QWidget( parent ), d( new Private( mode, FullMode, 0, this ) )
{
......@@ -217,7 +216,6 @@ ContactEditor::ContactEditor( Mode mode, DisplayMode displayMode, QWidget *paren
{
}
ContactEditor::~ContactEditor()
{
delete d;
......
......@@ -122,7 +122,6 @@ class AKONADI_CONTACT_EXPORT ContactEditor : public QWidget
*/
ContactEditor( Mode mode, DisplayMode displayMode, QWidget *parent = 0 );
/**
* Destroys the contact editor.
*/
......
......@@ -149,7 +149,6 @@ ContactEditor* ContactEditorDialog::editor() const
return d->mEditor;
}
void ContactEditorDialog::accept()
{
//Nothing
......
......@@ -41,7 +41,6 @@
#include <kmessagebox.h>
#include <KColorScheme>
#include <QtCore/QTimer>
#include <QGridLayout>
#include <QMessageBox>
......@@ -206,7 +205,6 @@ void ContactGroupEditor::Private::setReadOnly( bool readOnly )
mGui.membersView->setEnabled( !readOnly );
}
ContactGroupEditor::ContactGroupEditor( Mode mode, QWidget *parent )
: QWidget( parent ), d( new Private( this ) )
{
......
......@@ -101,7 +101,6 @@ class AddressTypeDialog : public KDialog
KABC::Address::TypeList mTypeList;
};
AddressSelectionWidget::AddressSelectionWidget( QWidget *parent )
: KComboBox( parent )
{
......@@ -149,8 +148,6 @@ void AddressSelectionWidget::updateView()
}
}
AddressTypeCombo::AddressTypeCombo( QWidget *parent )
: KComboBox( parent ),
mType( KABC::Address::Home ),
......@@ -231,7 +228,6 @@ void AddressTypeCombo::otherSelected()
update();
}
AddressEditWidget::AddressEditWidget( QWidget *parent )
: QWidget( parent ), mReadOnly( false )
{
......@@ -392,7 +388,6 @@ void AddressEditWidget::storeContact( KABC::Addressee &contact ) const
}
}
AddressEditDialog::AddressEditDialog( QWidget *parent )
: KDialog(parent)
{
......@@ -549,7 +544,6 @@ void AddressEditDialog::fillCountryCombo()
mCountryCombo->setCurrentIndex( mCountryCombo->findText( currentCountry ) );
}
AddressTypeDialog::AddressTypeDialog( KABC::Address::Type type, QWidget *parent )
: KDialog( parent)
{
......
......@@ -100,7 +100,6 @@ class ContactEditorWidget::Private
KComboBox* mMailPreferFormatting;
QCheckBox *mAllowRemoteContent;
// widgets from addresses group
AddressEditWidget *mAddressesWidget;
......@@ -568,7 +567,6 @@ void ContactEditorWidget::loadContact( const KABC::Addressee &contact, const Ako
// categories section
d->mCategoriesWidget->loadContact( contact );
const QString mailPreferedFormatting = d->loadCustom( contact, QLatin1String( "MailPreferedFormatting" ) );
if ( mailPreferedFormatting.isEmpty() ) {
d->mMailPreferFormatting->setCurrentIndex( 0 );
......@@ -648,8 +646,6 @@ void ContactEditorWidget::storeContact( KABC::Addressee &contact, Akonadi::Conta
// categories section
d->mCategoriesWidget->storeContact( contact );
QString mailPreferedFormatting;
const int index = d->mMailPreferFormatting->currentIndex();
if ( index == 0 ) {
......
......@@ -58,8 +58,6 @@ CustomFieldsEditWidget::CustomFieldsEditWidget( QWidget *parent )
QGridLayout *layout = new QGridLayout( this );
layout->setMargin( 0 );
mView = new QTreeView;
mView->setSortingEnabled(true);
mView->setRootIsDecorated( false );
......
......@@ -169,7 +169,6 @@ void EmailEditWidget::textChanged( const QString &text )
mEmailList.prepend( text );
}
EmailEditDialog::EmailEditDialog( const QStringList &list, QWidget *parent )
: KDialog( parent )
{
......
......@@ -90,7 +90,6 @@ class GeoMapWidget : public QWidget
KABC::Geo mCoordinates;
};
GeoEditWidget::GeoEditWidget( QWidget *parent )
: QWidget( parent )
{
......@@ -412,7 +411,6 @@ void GeoDialog::updateInputs( ExceptType type )
mLongitude->setValue( mCoordinates.longitude() );
}
if ( !(type & ExceptSexagesimal) ) {
int degrees, minutes, seconds;
double latitude = mCoordinates.latitude();
......
......@@ -66,7 +66,6 @@ bool IMAddress::preferred() const
return mPreferred;
}
IMModel::IMModel( QObject *parent )
: QAbstractItemModel( parent )
{
......
......@@ -51,7 +51,6 @@ IMProtocols::~IMProtocols()
{
}
IMProtocols* IMProtocols::self()
{
if ( !mSelf ) {
......
......@@ -51,7 +51,6 @@ class ImageLoader
QWidget *mParent;
};
ImageLoader::ImageLoader( QWidget *parent )
: mParent( parent )
{
......@@ -105,9 +104,6 @@ QImage ImageLoader::loadImage( const KUrl &url, bool *ok )
return image;
}
ImageWidget::ImageWidget( Type type, QWidget *parent )
: QPushButton( parent ),
mType( type ),
......
......@@ -33,7 +33,6 @@
#include <klineedit.h>
#include <klocalizedstring.h>
IMEditWidget::IMEditWidget( QWidget *parent )
: QWidget( parent )
{
......
......@@ -19,7 +19,6 @@
02110-1301, USA.
*/
#include "nameeditdialog.h"
#include <QFormLayout>
......
......@@ -19,7 +19,6 @@
02110-1301, USA.
*/
#ifndef PHONEEDITWIDGET_H
#define PHONEEDITWIDGET_H
......
......@@ -51,7 +51,6 @@ class SoundLoader
QWidget *mParent;
};
SoundLoader::SoundLoader( QWidget *parent )
: mParent( parent )
{
......@@ -95,9 +94,6 @@ QByteArray SoundLoader::loadSound( const KUrl &url, bool *ok )
return sound;
}
SoundEditWidget::SoundEditWidget( QWidget *parent )
: QToolButton( parent ),
mHasSound( false ),
......
......@@ -41,7 +41,6 @@ EmailAddressSelection::Private::Private( const Private &other )
mItem = other.mItem;
}
EmailAddressSelection::EmailAddressSelection()
: d( new Private )
{
......
......@@ -92,4 +92,3 @@ EmailAddressSelectionWidget* EmailAddressSelectionDialog::view() const
return d->mView;
}
......@@ -180,7 +180,6 @@ void EmailAddressSelectionWidget::Private::init()
QTimer::singleShot( 1000, mView, SLOT(expandAll()) );
}
EmailAddressSelectionWidget::EmailAddressSelectionWidget( QWidget * parent )
: QWidget( parent ),
d( new Private( this, 0 ) )
......
......@@ -151,7 +151,6 @@ class StandardContactActionManager::Private
StandardActionManager::DeleteCollections, StandardActionManager::ErrorMessageText,
ki18n( "Could not delete address book folder: %1" ) );
mGenericManager->setContextText(
StandardActionManager::DeleteCollections, StandardActionManager::ErrorMessageTitle,
i18n( "Address book folder deletion failed" ) );
......@@ -668,7 +667,6 @@ Akonadi::Item::List StandardContactActionManager::selectedItems() const
return d->mGenericManager->selectedItems();
}
void StandardContactActionManager::setCollectionPropertiesPageNames( const QStringList &names )
{
d->mGenericManager->setCollectionPropertiesPageNames( names );
......
......@@ -24,7 +24,6 @@
#include <klocalizedstring.h>
#include <KUrl>
#include <kmime/kmime_util.h>
#include <QAction>
......
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