Commit 94345f93 authored by Jan Möbius's avatar Jan Möbius

Fixed several warnings

parent 8e61266e
......@@ -73,7 +73,7 @@ class DLLEXPORT UpdateType {
UpdateType(const UpdateType& _type);
explicit UpdateType(UpdateTypeSet _set);
UpdateType(UpdateTypeSet _set);
/// Exact compare operator
bool operator==(const UpdateType& _type) const;
......
......@@ -85,7 +85,7 @@ class DLLEXPORT OpenFlipperThread : public QThread
Q_OBJECT
public:
OpenFlipperThread( QString _jobId );
explicit OpenFlipperThread( QString _jobId );
~OpenFlipperThread();
//===========================================================================
......@@ -251,7 +251,7 @@ class DLLEXPORT OpenFlipperJob : public QObject
Q_OBJECT
public:
OpenFlipperJob(const QString _jobId) : jobId_(_jobId) {}
explicit OpenFlipperJob(const QString _jobId) : jobId_(_jobId) {}
~OpenFlipperJob();
signals:
......
......@@ -62,7 +62,7 @@ class AboutWidget : public QMainWindow, public Ui::AboutWidget
Q_OBJECT
public:
AboutWidget(QWidget *parent = 0);
explicit AboutWidget(QWidget *parent = 0);
void keyPressEvent(QKeyEvent * event);
};
......
......@@ -58,7 +58,7 @@ class ColorStatusBar : public QStatusBar
Q_OBJECT
public:
ColorStatusBar(QWidget* parent = 0 );
explicit ColorStatusBar(QWidget* parent = 0 );
public slots:
void showMessage ( const QString& message, int timeout = 0 );
......
......@@ -83,7 +83,7 @@ class SideArea : public QWidget {
/** Create a SideElement
\param _parent Parent widget
*/
SideArea (QWidget *_parent = 0);
explicit SideArea (QWidget *_parent = 0);
/** Adds a plugin tool widget
\param _plugin plugin corresponding to the widget
......
......@@ -127,7 +127,7 @@ class SideElement : public QWidget
class TopArea : public QWidget
{
public:
TopArea (SideElement *_e);
explicit TopArea (SideElement *_e);
virtual void mousePressEvent (QMouseEvent *_event);
private:
......
......@@ -77,7 +77,7 @@ class DLLEXPORT CursorPainter : public QObject
public:
/// Constructor
CursorPainter (QObject *_parent = 0);
explicit CursorPainter (QObject *_parent = 0);
/// Destructor
~CursorPainter ();
......
......@@ -75,7 +75,7 @@ class DLLEXPORT QtGLGraphicsView : public QGraphicsView
Q_OBJECT
public:
QtGLGraphicsView(QWidget* _parent);
explicit QtGLGraphicsView(QWidget* _parent);
signals:
void sceneRectChanged(const QRectF &rect);
......
......@@ -73,7 +73,7 @@ class QtGLViewerLayout : public QGraphicsLayout
{
public:
QtGLViewerLayout (QGraphicsLayoutItem * _parent = 0);
explicit QtGLViewerLayout (QGraphicsLayoutItem * _parent = 0);
/// Add Wheel Widget to Layout
void addWheelX (QGraphicsWidget *_item);
......
......@@ -119,7 +119,7 @@ class DLLEXPORT QtMultiViewLayout : public QGraphicsLayout
HSplit
};
QtMultiViewLayout (QGraphicsLayoutItem * _parent = 0);
explicit QtMultiViewLayout (QGraphicsLayoutItem * _parent = 0);
/// Adds Widget to Layout
void addItem (QGraphicsWidget *_item, unsigned int _pos);
......
......@@ -73,7 +73,7 @@ class LoggerWidget : public QWidget
Q_OBJECT
public:
LoggerWidget( QWidget *parent = 0 );
explicit LoggerWidget( QWidget *parent = 0 );
~LoggerWidget();
......
......@@ -83,7 +83,7 @@ class ShortcutButton : public QPushButton
void mousePressEvent(QMouseEvent* event);
void mouseReleaseEvent(QMouseEvent* event);
public:
ShortcutButton(QWidget* _parent = 0);
explicit ShortcutButton(QWidget* _parent = 0);
void setCurrentShortcut(int _key, Qt::KeyboardModifiers _modifiers);
......
......@@ -67,7 +67,7 @@ class PostProcessorDialog : public QDialog, public Ui::PostProcessorWidget
void updateExaminer(unsigned _viewer);
public:
PostProcessorDialog(QWidget *_parent = 0);
explicit PostProcessorDialog(QWidget *_parent = 0);
/// return the names of all saved post processors
static QStringList getSavedPostProcessorNames(const unsigned _examiner);
......
......@@ -97,7 +97,7 @@ class ProcessManagerWidget : public QWidget, public Ui::ProcessManagerWidget
public:
ProcessManagerWidget(QWidget* parent = 0) : QWidget(parent) {
explicit ProcessManagerWidget(QWidget* parent = 0) : QWidget(parent) {
setupUi(this);
};
......
......@@ -97,7 +97,7 @@ class TextBrowserWidget : public QPlainTextEdit
public:
TextBrowserWidget(QWidget *parent = 0);
explicit TextBrowserWidget(QWidget *parent = 0);
void sideAreaPaintEvent(QPaintEvent *event);
int sideAreaWidth();
......@@ -147,7 +147,7 @@ class TextBrowserWidget : public QPlainTextEdit
class TextBrowserSideArea : public QWidget
{
public:
TextBrowserSideArea(TextBrowserWidget* _textBrowser) :
explicit TextBrowserSideArea(TextBrowserWidget* _textBrowser) :
QWidget(_textBrowser),
textBrowser_(_textBrowser)
{}
......
......@@ -61,8 +61,8 @@ class RenderObjectHighlighter : public QSyntaxHighlighter
Q_OBJECT
public:
RenderObjectHighlighter( QTextDocument* parent = 0);
RenderObjectHighlighter( QTextEdit* parent);
explicit RenderObjectHighlighter( QTextDocument* parent = 0);
explicit RenderObjectHighlighter( QTextEdit* parent);
/// Updates the highlighter with the current rule set defined in the patterns
void update();
......
......@@ -59,7 +59,7 @@ class RendererObjectWidget : public QDialog, public Ui::RendererObjectWidget
Q_OBJECT
public:
RendererObjectWidget(QWidget *parent = 0);
explicit RendererObjectWidget(QWidget *parent = 0);
protected:
......
......@@ -60,7 +60,7 @@ class RendererDialog : public QDialog, public Ui::RendererWidget
Q_OBJECT
public:
RendererDialog(QWidget *parent = 0);
explicit RendererDialog(QWidget *parent = 0);
......
......@@ -69,5 +69,5 @@ class StereoSettingsWidget : public QWidget, public Ui::StereoSettingsWidget
Q_OBJECT
public:
StereoSettingsWidget(QWidget *parent = 0);
explicit StereoSettingsWidget(QWidget *parent = 0);
};
......@@ -60,7 +60,7 @@ class VideoCaptureDialog : public QDialog, public Ui::VideoCaptureDialog
Q_OBJECT
public:
VideoCaptureDialog(QWidget *parent = 0);
explicit VideoCaptureDialog(QWidget *parent = 0);
private slots:
void slotStartVideoCapture();
......
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