Commit d14d0537 authored by Vincent Pinon's avatar Vincent Pinon

Krazy checks: explicit cstor

parent 3476ca03
......@@ -54,7 +54,7 @@ public:
MonitorManager *monitorManager();
private:
Core(MainWindow *mainWindow);
explicit Core(MainWindow *mainWindow);
static Core *m_self;
void init();
......
......@@ -30,7 +30,7 @@ class ProfilesDialog : public QDialog
Q_OBJECT
public:
ProfilesDialog(QWidget * parent = 0);
explicit ProfilesDialog(QWidget * parent = 0);
/** @brief Using this constructor, the dialog only allows editing one profile. */
explicit ProfilesDialog(QString profilePath, QWidget * parent = 0);
......
......@@ -39,7 +39,7 @@ class RenderViewDelegate : public QStyledItemDelegate
{
Q_OBJECT
public:
RenderViewDelegate(QWidget *parent) : QStyledItemDelegate(parent) {}
explicit RenderViewDelegate(QWidget *parent) : QStyledItemDelegate(parent) {}
void paint(QPainter *painter, const QStyleOptionViewItem &option,
const QModelIndex &index) const {
......
......@@ -38,7 +38,7 @@ class DvdScene : public QGraphicsScene
{
Q_OBJECT
public:
DvdScene(QObject * parent = 0): QGraphicsScene(parent) {
explicit DvdScene(QObject * parent = 0): QGraphicsScene(parent) {
m_width = 0; m_height = 0;
}
void setProfile(int width, int height) {
......@@ -69,7 +69,7 @@ class DvdButtonUnderline : public QGraphicsRectItem
{
public:
DvdButtonUnderline( const QRectF & rect, QGraphicsItem * parent = 0 ) : QGraphicsRectItem(rect, parent) {}
explicit DvdButtonUnderline( const QRectF & rect, QGraphicsItem * parent = 0 ) : QGraphicsRectItem(rect, parent) {}
int type() const {
// Enable the use of qgraphicsitem_cast with this item.
......
......@@ -57,7 +57,7 @@ class DvdViewDelegate : public QStyledItemDelegate
{
Q_OBJECT
public:
DvdViewDelegate(QWidget *parent) : QStyledItemDelegate(parent) {}
explicit DvdViewDelegate(QWidget *parent) : QStyledItemDelegate(parent) {}
void paint(QPainter *painter, const QStyleOptionViewItem &option,
const QModelIndex &index) const {
......
......@@ -39,7 +39,7 @@ namespace Kdenlive {
class EffectsList: public QDomDocument
{
public:
EffectsList(bool indexRequired = false);
explicit EffectsList(bool indexRequired = false);
~EffectsList();
/** @brief Returns the XML element of an effect.
......
......@@ -31,7 +31,7 @@ class AbstractCollapsibleWidget : public QWidget, public Ui::CollapsibleWidget_U
Q_OBJECT
public:
AbstractCollapsibleWidget(QWidget * parent = 0);
explicit AbstractCollapsibleWidget(QWidget * parent = 0);
virtual void setActive(bool activate) = 0;
virtual bool isGroup() const = 0;
......
......@@ -30,7 +30,7 @@ class GraphicsSceneRectMove: public QGraphicsScene
{
Q_OBJECT
public:
GraphicsSceneRectMove(QObject* parent = 0);
explicit GraphicsSceneRectMove(QObject* parent = 0);
void setSelectedItem(QGraphicsItem *item);
void setScale(double s);
......
......@@ -29,7 +29,7 @@ class AudioCorrelation : public QObject
Q_OBJECT
public:
/// AudioCorrelation will take ownership of mainTrackEnvelope
AudioCorrelation(AudioEnvelope *mainTrackEnvelope);
explicit AudioCorrelation(AudioEnvelope *mainTrackEnvelope);
~AudioCorrelation();
/**
......
......@@ -18,7 +18,7 @@ class AudioStreamInfo;
class AudioInfo
{
public:
AudioInfo(Mlt::Producer *producer);
explicit AudioInfo(Mlt::Producer *producer);
~AudioInfo();
int size() const;
......
......@@ -52,7 +52,7 @@ class Overlay : public QLabel
{
Q_OBJECT
public:
Overlay(QWidget* parent = 0);
explicit Overlay(QWidget* parent = 0);
void setOverlayText(const QString &, bool isZone = true);
protected:
......
......@@ -27,7 +27,7 @@ class VideoSurface : public QWidget
{
Q_OBJECT
public:
VideoSurface(QWidget *parent = 0);
explicit VideoSurface(QWidget *parent = 0);
signals:
void refreshMonitor();
......
......@@ -30,7 +30,7 @@ class OnMonitorCornersItem : public QObject, public QGraphicsPolygonItem
{
Q_OBJECT
public:
OnMonitorCornersItem(QGraphicsItem *parent = 0);
explicit OnMonitorCornersItem(QGraphicsItem *parent = 0);
enum cornersActions { Corner, Move, MoveSide, NoAction };
/** @brief Gets The action mode for the area @param pos +- 4. */
......
......@@ -35,7 +35,7 @@ class OnMonitorPathItem : public QObject, public QGraphicsPathItem
{
Q_OBJECT
public:
OnMonitorPathItem(QGraphicsItem *parent = 0);
explicit OnMonitorPathItem(QGraphicsItem *parent = 0);
void setPoints(Mlt::Geometry *geometry);
void getMode(const QPointF &pos);
void rebuildShape();
......
......@@ -69,7 +69,7 @@ class ClipManager: public QObject
{
Q_OBJECT public:
ClipManager(KdenliveDoc *doc);
explicit ClipManager(KdenliveDoc *doc);
virtual ~ ClipManager();
void addClip(DocClipBase *clip);
void deleteClip(const QString &clipId);
......
......@@ -32,7 +32,7 @@ class PropertiesViewDelegate : public QStyledItemDelegate
{
Q_OBJECT
public:
PropertiesViewDelegate(QWidget *parent)
explicit PropertiesViewDelegate(QWidget *parent)
: QStyledItemDelegate(parent)
{
m_height = parent->fontMetrics().height() * 1.2;
......
......@@ -57,8 +57,8 @@ class MyMessageWidget: public KMessageWidget
{
Q_OBJECT
public:
MyMessageWidget(QWidget *parent = 0);
MyMessageWidget(const QString &text, QWidget *parent = 0);
explicit MyMessageWidget(QWidget *parent = 0);
explicit MyMessageWidget(const QString &text, QWidget *parent = 0);
protected:
bool event(QEvent* ev);
......@@ -85,7 +85,7 @@ class SmallInfoLabel: public QPushButton
{
Q_OBJECT
public:
SmallInfoLabel(QWidget *parent = 0);
explicit SmallInfoLabel(QWidget *parent = 0);
static const QString getStyleSheet(const QPalette &p);
private:
enum ItemRole {
......@@ -109,7 +109,7 @@ class ProjectList : public QWidget
Q_OBJECT
public:
ProjectList(QWidget *parent = 0);
explicit ProjectList(QWidget *parent = 0);
virtual ~ProjectList();
QDomElement producersList();
......
......@@ -37,7 +37,7 @@ public:
UsageRole
};
ItemDelegate(QAbstractItemView* parent = 0)
explicit ItemDelegate(QAbstractItemView* parent = 0)
: QStyledItemDelegate(parent)
{
}
......@@ -53,7 +53,7 @@ class ProjectListView : public QTreeWidget
Q_OBJECT
public:
ProjectListView(QWidget *parent = 0);
explicit ProjectListView(QWidget *parent = 0);
~ProjectListView();
void processLayout();
void updateStyleSheet();
......
......@@ -85,7 +85,7 @@ struct requestClipInfo {
class MltErrorEvent : public QEvent
{
public:
MltErrorEvent(const QString &message)
explicit MltErrorEvent(const QString &message)
: QEvent(QEvent::User),
m_message(message)
{
......
......@@ -35,7 +35,7 @@ class Spectrogram : public AbstractAudioScopeWidget {
Q_OBJECT
public:
Spectrogram(QWidget *parent = 0);
explicit Spectrogram(QWidget *parent = 0);
~Spectrogram();
QString widgetName() const;
......
......@@ -25,7 +25,7 @@ class ColorPlaneExport_UI;
class ColorPlaneExport : public QDialog, public Ui::ColorPlaneExport_UI {
Q_OBJECT
public:
ColorPlaneExport(QWidget *parent = 0);
explicit ColorPlaneExport(QWidget *parent = 0);
~ColorPlaneExport();
enum COLOR_EXPORT_MODE { CPE_YUV, CPE_YUV_Y, CPE_YUV_MOD, CPE_RGB_CURVE, CPE_YPbPr, CPE_HSV_HUESHIFT, CPE_HSV_SATURATION };
......
......@@ -34,7 +34,7 @@ class AbstractGroupItem : public QObject , public QGraphicsItemGroup
{
Q_OBJECT
public:
AbstractGroupItem(double fps);
explicit AbstractGroupItem(double fps);
virtual int type() const;
CustomTrackScene* projectScene();
void addItem(QGraphicsItem * item);
......
......@@ -28,7 +28,7 @@ class TracksDelegate : public QItemDelegate
{
Q_OBJECT
public:
TracksDelegate(QObject *parent = 0);
explicit TracksDelegate(QObject *parent = 0);
QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const;
void setEditorData(QWidget *editor, const QModelIndex &index) const;
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) 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