Commit 3db3029f authored by Kevin Krammer's avatar Kevin Krammer

Several EBN Krazy fixes

Fixing various issues found by the EnglishBreakfastNetwork's
code checker Krazy.

Submitted by Mohammed Nafees <nafees.technocool@gmail.com>, completing
a Google Code-in task.

CCMAIL: nafees.technocool@gmail.com
REVIEW: 107734
DIGEST: Google Code-in contribution
parent 49efafed
......@@ -29,7 +29,7 @@
class QDialer
{
public:
QDialer( const QString &applicationName );
explicit QDialer( const QString &applicationName );
virtual ~QDialer();
virtual bool dialNumber( const QString &number );
......
......@@ -31,7 +31,7 @@ class QDBusInterface;
class QSkypeDialer: public QDialer
{
public:
QSkypeDialer( const QString &applicationName );
explicit QSkypeDialer( const QString &applicationName );
~QSkypeDialer();
bool dialNumber( const QString &number );
......
......@@ -29,7 +29,7 @@
class QWinCEDialer: public QDialer
{
public:
QWinCEDialer( const QString &applicationName );
explicit QWinCEDialer( const QString &applicationName );
~QWinCEDialer();
bool dialNumber( const QString &number );
......
......@@ -37,7 +37,7 @@ class SmsDialog : public KDialog
Q_OBJECT
public:
SmsDialog( const KABC::PhoneNumber &number );
explicit SmsDialog( const KABC::PhoneNumber &number );
~SmsDialog();
QString message() const;
......
......@@ -46,7 +46,7 @@ class CollectionFilterModel : public QSortFilterProxyModel
*
* @param parent The parent object.
*/
CollectionFilterModel( QObject *parent );
explicit CollectionFilterModel( QObject *parent );
/**
* Adds a mime type to the content mime type filter list.
......
......@@ -38,7 +38,7 @@ class ContactGroupLineEdit : public KLineEdit
Q_OBJECT
public:
ContactGroupLineEdit( QWidget *parent = 0 );
explicit ContactGroupLineEdit( QWidget *parent = 0 );
void setCompletionModel( QAbstractItemModel *model );
......
......@@ -39,7 +39,7 @@ class ContactGroupModel : public QAbstractItemModel
AllEmailsRole
};
ContactGroupModel( QObject *parent = 0 );
explicit ContactGroupModel( QObject *parent = 0 );
~ContactGroupModel();
void loadContactGroup( const KABC::ContactGroup &contactGroup );
......
......@@ -48,7 +48,7 @@ class AddressSelectionWidget : public KComboBox
*
* @param parent The parent widget.
*/
AddressSelectionWidget( QWidget *parent = 0 );
explicit AddressSelectionWidget( QWidget *parent = 0 );
/**
* Destroys the address selection widget.
......@@ -103,7 +103,7 @@ class AddressTypeCombo : public KComboBox
*
* @param parent The parent widget.
*/
AddressTypeCombo( QWidget *parent = 0 );
explicit AddressTypeCombo( QWidget *parent = 0 );
/**
* Destroys the address type combo.
......@@ -182,7 +182,7 @@ class AddressEditDialog : public KDialog
Q_OBJECT
public:
AddressEditDialog( QWidget *parent = 0 );
explicit AddressEditDialog( QWidget *parent = 0 );
~AddressEditDialog();
void setAddress( const KABC::Address &address );
......
......@@ -35,7 +35,7 @@ class CustomFieldEditorDialog : public KDialog
Q_OBJECT
public:
CustomFieldEditorDialog( QWidget *parent = 0 );
explicit CustomFieldEditorDialog( QWidget *parent = 0 );
void setCustomField( const CustomField &field );
CustomField customField() const;
......
......@@ -40,7 +40,7 @@ class CustomFieldsEditWidget : public QWidget
Q_OBJECT
public:
CustomFieldsEditWidget( QWidget *parent = 0 );
explicit CustomFieldsEditWidget( QWidget *parent = 0 );
~CustomFieldsEditWidget();
void loadContact( const KABC::Addressee &contact );
......
......@@ -35,7 +35,7 @@ class CustomFieldsModel : public QAbstractItemModel
ScopeRole
};
CustomFieldsModel( QObject *parent = 0 );
explicit CustomFieldsModel( QObject *parent = 0 );
~CustomFieldsModel();
void setCustomFields( const CustomField::List &addresses );
......
......@@ -36,7 +36,7 @@ class DateView : public QLabel
Q_OBJECT
public:
DateView( QWidget *parent = 0 );
explicit DateView( QWidget *parent = 0 );
Q_SIGNALS:
void resetDate();
......
......@@ -36,7 +36,7 @@ class FreeBusyEditWidget : public QWidget
Q_OBJECT
public:
FreeBusyEditWidget( QWidget *parent = 0 );
explicit FreeBusyEditWidget( QWidget *parent = 0 );
~FreeBusyEditWidget();
void loadContact( const KABC::Addressee &contact );
......
......@@ -46,7 +46,7 @@ class GeoEditWidget : public QWidget
Q_OBJECT
public:
GeoEditWidget( QWidget *parent = 0 );
explicit GeoEditWidget( QWidget *parent = 0 );
~GeoEditWidget();
void loadContact( const KABC::Addressee &contact );
......
......@@ -35,7 +35,7 @@ class IMEditorDialog : public KDialog
Q_OBJECT
public:
IMEditorDialog( QWidget *parent );
explicit IMEditorDialog( QWidget *parent );
~IMEditorDialog() {}
void setAddresses( const IMAddress::List &addresses );
......
......@@ -35,7 +35,7 @@ class IMItemDialog : public KDialog
Q_OBJECT
public:
IMItemDialog( QWidget *parent );
explicit IMItemDialog( QWidget *parent );
~IMItemDialog() {}
void setAddress( const IMAddress &address );
......
......@@ -56,7 +56,7 @@ class IMModel : public QAbstractItemModel
IsPreferredRole
};
IMModel( QObject *parent = 0 );
explicit IMModel( QObject *parent = 0 );
~IMModel();
void setAddresses( const IMAddress::List &addresses );
......
......@@ -40,7 +40,7 @@ class IMEditWidget : public QWidget
Q_OBJECT
public:
IMEditWidget( QWidget *parent = 0 );
explicit IMEditWidget( QWidget *parent = 0 );
~IMEditWidget();
void loadContact( const KABC::Addressee &contact );
......
......@@ -30,7 +30,7 @@ class KComboBox;
class NameEditDialog : public KDialog
{
public:
NameEditDialog( QWidget *parent = 0 );
explicit NameEditDialog( QWidget *parent = 0 );
void setFamilyName( const QString &name );
QString familyName() const;
......
......@@ -50,7 +50,7 @@ class PhoneTypeCombo : public KComboBox
*
* @param parent The parent widget.
*/
PhoneTypeCombo( QWidget *parent = 0 );
explicit PhoneTypeCombo( QWidget *parent = 0 );
/**
* Destroys the phone type combo.
......@@ -93,7 +93,7 @@ class PhoneNumberWidget : public QWidget
*
* @param parent The parent widget.
*/
PhoneNumberWidget( QWidget *parent = 0 );
explicit PhoneNumberWidget( QWidget *parent = 0 );
/**
* Sets the phone @p number of the widget.
......@@ -132,7 +132,7 @@ class PhoneNumberListWidget : public QWidget
*
* @param parent The parent widget.
*/
PhoneNumberListWidget( QWidget *parent = 0 );
explicit PhoneNumberListWidget( QWidget *parent = 0 );
/**
* Destroys the phone number list widget.
......
......@@ -37,7 +37,7 @@ class SoundEditWidget : public QToolButton
Q_OBJECT
public:
SoundEditWidget( QWidget *parent = 0 );
explicit SoundEditWidget( QWidget *parent = 0 );
~SoundEditWidget();
void loadContact( const KABC::Addressee &contact );
......
......@@ -39,7 +39,7 @@ class EmailAddressSelectionProxyModel : public Akonadi::LeafExtensionProxyModel
EmailAddressRole
};
EmailAddressSelectionProxyModel( QObject *parent = 0 );
explicit EmailAddressSelectionProxyModel( QObject *parent = 0 );
~EmailAddressSelectionProxyModel();
QVariant data( const QModelIndex &proxyIndex, int role = Qt::DisplayRole ) const;
......
......@@ -32,7 +32,7 @@ class LeafExtensionProxyModel : public QSortFilterProxyModel
Q_OBJECT
public:
LeafExtensionProxyModel( QObject *parent = 0 );
explicit LeafExtensionProxyModel( QObject *parent = 0 );
~LeafExtensionProxyModel();
QModelIndex index( int row, int column, const QModelIndex &parent = QModelIndex() ) const;
......
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