Add explicit tag to more constructors

parent 4da3bcd4
......@@ -28,7 +28,7 @@ class ClickOnThat : public QObject
{
Q_OBJECT
public:
ClickOnThat( MarbleWidget *marbleWidget );
explicit ClickOnThat( MarbleWidget *marbleWidget );
~ClickOnThat();
/**
......
......@@ -30,7 +30,7 @@ class MARBLE_EXPORT CountryByFlag : public QObject
{
Q_OBJECT;
public:
CountryByFlag( MarbleWidget *marbleWidget );
explicit CountryByFlag( MarbleWidget *marbleWidget );
~CountryByFlag();
public Q_SLOTS:
......
......@@ -27,7 +27,7 @@ class MARBLE_EXPORT CountryByShape : public QObject
{
Q_OBJECT
public:
CountryByShape( MarbleWidget *widget );
explicit CountryByShape( MarbleWidget *widget );
~CountryByShape();
Q_SIGNALS:
......
......@@ -31,7 +31,7 @@ class MyPaintLayer : public QObject, public LayerInterface
public:
// Constructor
MyPaintLayer( MarbleWidget* widget );
explicit MyPaintLayer( MarbleWidget* widget );
// LayerInterface
QStringList renderPosition() const;
......
......@@ -53,7 +53,7 @@ class Window : public QWidget
{
Q_OBJECT
public:
Window(QWidget *parent = 0);
explicit Window(QWidget *parent = 0);
void startCars();
public slots:
......
......@@ -22,7 +22,7 @@ class MarbleMaps : public MarbleQuickItem
Q_PROPERTY( bool suspended READ isSuspended NOTIFY isSuspendedChanged )
public:
MarbleMaps(QQuickItem *parent = 0);
explicit MarbleMaps(QQuickItem *parent = 0);
bool isSuspended() const;
......
......@@ -18,7 +18,7 @@ class TextToSpeechClient : public QObject
Q_OBJECT
public:
TextToSpeechClient(QObject * parent = 0);
explicit TextToSpeechClient(QObject * parent = 0);
~TextToSpeechClient();
public slots:
......
......@@ -43,7 +43,7 @@ class ViewportParams;
void regionSelected(const QList<double>&);
public:
MarbleAbstractPresenter(MarbleMap *map, QObject *parent = 0);
explicit MarbleAbstractPresenter(MarbleMap *map, QObject *parent = 0);
virtual ~MarbleAbstractPresenter();
qreal moveStep() const;
......
......@@ -27,7 +27,7 @@ class RemoveItemEditWidget: public QWidget
Q_OBJECT
public:
RemoveItemEditWidget( const QModelIndex& index, QWidget* parent=0 );
explicit RemoveItemEditWidget( const QModelIndex& index, QWidget* parent=0 );
bool editable() const;
Q_SIGNALS:
......
......@@ -29,7 +29,7 @@ class SoundCueEditWidget: public QWidget
Q_OBJECT
public:
SoundCueEditWidget( const QModelIndex& index, QWidget* parent=0 );
explicit SoundCueEditWidget( const QModelIndex& index, QWidget* parent=0 );
bool editable() const;
Q_SIGNALS:
......
......@@ -29,7 +29,7 @@ class TourControlEditWidget: public QWidget
Q_OBJECT
public:
TourControlEditWidget( const QModelIndex& index, QWidget* parent=0 );
explicit TourControlEditWidget( const QModelIndex& index, QWidget* parent=0 );
bool editable() const;
Q_SIGNALS:
......
......@@ -29,7 +29,7 @@ class WaitEditWidget: public QWidget
Q_OBJECT
public:
WaitEditWidget( const QModelIndex& index, QWidget* parent=0 );
explicit WaitEditWidget( const QModelIndex& index, QWidget* parent=0 );
bool editable() const;
Q_SIGNALS:
......
......@@ -34,7 +34,7 @@ class MARBLE_EXPORT OsmRelationEditorDialog : public QDialog
Q_OBJECT
public:
OsmRelationEditorDialog( OsmPlacemarkData *relationData, QWidget *parent = 0 );
explicit OsmRelationEditorDialog( OsmPlacemarkData *relationData, QWidget *parent = 0 );
~OsmRelationEditorDialog();
private slots:
......
......@@ -22,7 +22,7 @@ class NodeModel : public QAbstractListModel
{
Q_OBJECT
public:
NodeModel( QObject *parent = 0 );
explicit NodeModel( QObject *parent = 0 );
int rowCount( const QModelIndex &parent ) const;
int columnCount( const QModelIndex &parent ) const;
QVariant data( const QModelIndex &index, int role ) const;
......
......@@ -29,7 +29,7 @@ public:
};
Q_DECLARE_FLAGS(PolyNodeFlags, PolyNodeFlag)
PolylineNode( QRegion region = QRegion() );
explicit PolylineNode( QRegion region = QRegion() );
~PolylineNode();
bool isSelected() const;
......
......@@ -25,7 +25,7 @@ class ElevationProfileFloatItem;
class ElevationProfileContextMenu : public QObject {
Q_OBJECT
public:
ElevationProfileContextMenu(ElevationProfileFloatItem* floatItem);
explicit ElevationProfileContextMenu(ElevationProfileFloatItem* floatItem);
QMenu* getMenu();
public slots:
void updateContextMenuEntries();
......
......@@ -37,7 +37,7 @@ class ElevationProfileDataSource : public QObject
Q_OBJECT
public:
ElevationProfileDataSource( QObject *parent = 0 );
explicit ElevationProfileDataSource( QObject *parent = 0 );
/**
* @brief isDataAvailable
......
......@@ -24,7 +24,7 @@ class PanoramioPlugin : public AbstractDataPlugin
MARBLE_PLUGIN( PanoramioPlugin )
public:
PanoramioPlugin( const MarbleModel *marbleModel = 0 );
explicit PanoramioPlugin( const MarbleModel *marbleModel = 0 );
QString nameId() 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