Commit bd424881 authored by Christiaan Janssen's avatar Christiaan Janssen
Browse files

explicit constructors

parent b6c7c597
......@@ -51,7 +51,7 @@ class NavigatorTreeModel;
class IconCheckboxItemDelegate : public QStyledItemDelegate
{
public:
IconCheckboxItemDelegate(QObject *parent = 0, QString checkedPixmapURL="", QString uncheckedPixmapURL="", NavigatorTreeModel *treeModel=NULL)
explicit IconCheckboxItemDelegate(QObject *parent = 0, QString checkedPixmapURL="", QString uncheckedPixmapURL="", NavigatorTreeModel *treeModel=NULL)
: QStyledItemDelegate(parent),offPix(uncheckedPixmapURL),onPix(checkedPixmapURL),m_TreeModel(treeModel)
{}
......@@ -71,7 +71,7 @@ class IconCheckboxItemDelegate : public QStyledItemDelegate
class IdItemDelegate : public QStyledItemDelegate
{
public:
IdItemDelegate(QObject *parent=0, NavigatorTreeModel *treeModel=NULL) : QStyledItemDelegate(parent),m_TreeModel(treeModel) {}
explicit IdItemDelegate(QObject *parent=0, NavigatorTreeModel *treeModel=NULL) : QStyledItemDelegate(parent),m_TreeModel(treeModel) {}
void paint(QPainter *painter,
const QStyleOptionViewItem &option, const QModelIndex &index) const;
......
......@@ -54,7 +54,7 @@ class QBoxLayoutObject : public QLayoutObject
Q_CLASSINFO("DefaultProperty", "children")
public:
QBoxLayoutObject(QObject *parent=0);
QBoxLayoutObject(QBoxLayout *, QObject *parent=0);
explicit QBoxLayoutObject(QBoxLayout *, QObject *parent=0);
virtual QLayout *layout() const;
QmlList<QWidget *> *children() { return &_widgets; }
......
......@@ -42,7 +42,7 @@ class StatesEditorView : public QmlModelView {
Q_OBJECT
public:
StatesEditorView(StatesEditorModel *model, QObject *parent = 0);
explicit StatesEditorView(StatesEditorModel *model, QObject *parent = 0);
void setCurrentState(int index);
void setCurrentStateSilent(int index);
......
......@@ -45,7 +45,7 @@ class CORESHARED_EXPORT SubComponentManager : public QObject
{
Q_OBJECT
public:
SubComponentManager(MetaInfo metaInfo, QObject *parent = 0);
explicit SubComponentManager(MetaInfo metaInfo, QObject *parent = 0);
~SubComponentManager();
void update(const QUrl &fileUrl, const QByteArray &data);
......
......@@ -44,7 +44,7 @@ namespace Internal {
class ParsedQML
{
public:
ParsedQML(const QString &sourceCode, const QString &fileName = QString());
explicit ParsedQML(const QString &sourceCode, const QString &fileName = QString());
bool isValid() const { return m_ast != 0; }
QmlJS::AST::UiProgram *ast() const { return m_ast; }
......
......@@ -42,7 +42,7 @@ namespace Internal {
class QmlTextGenerator
{
public:
QmlTextGenerator(const QStringList &propertyOrder, int indentDepth = 0);
explicit QmlTextGenerator(const QStringList &propertyOrder, int indentDepth = 0);
QString operator()(const AbstractProperty &property) const
{ return toQml(property, m_indentDepth); }
......
......@@ -99,7 +99,7 @@ class DocumentWarningWidget : public QFrame
Q_OBJECT
Q_DISABLE_COPY(DocumentWarningWidget)
public:
DocumentWarningWidget(DocumentWidget *documentWidget, QWidget *parent = 0);
explicit DocumentWarningWidget(DocumentWidget *documentWidget, QWidget *parent = 0);
void setError(const RewriterView::Error &error);
......
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