Commit 5ee798ae authored by Ray Lehtiniemi's avatar Ray Lehtiniemi

Reformat initializer lists in all constructors.

Use a consistent, readable format for all initializers. This
layout facilitates the next several patches, which implement
Effective C++ recommendations and remove compiler warnings.
The layout also works with the astyle settings in the reindent
script.
Signed-off-by: default avatarRay Lehtiniemi <rayl@mail.com>

svn path=/trunk/kdenlive/; revision=3225
parent f663f0d4
......@@ -36,7 +36,11 @@ public:
static QDBusConnection connection(QLatin1String(""));
RenderJob::RenderJob(bool erase, bool usekuiserver, const QString &renderer, const QString &profile, const QString &rendermodule, const QString &player, const QString &scenelist, const QString &dest, const QStringList &preargs, const QStringList &args, int in, int out) : QObject(), m_usekuiserver(usekuiserver), m_jobUiserver(NULL), m_kdenliveinterface(NULL)
RenderJob::RenderJob(bool erase, bool usekuiserver, const QString &renderer, const QString &profile, const QString &rendermodule, const QString &player, const QString &scenelist, const QString &dest, const QStringList &preargs, const QStringList &args, int in, int out) :
QObject(),
m_usekuiserver(usekuiserver),
m_jobUiserver(NULL),
m_kdenliveinterface(NULL)
{
m_scenelist = scenelist;
m_dest = dest;
......
......@@ -28,7 +28,13 @@
#include <QPainter>
#include <QToolTip>
AbstractClipItem::AbstractClipItem(const ItemInfo info, const QRectF& rect, double fps): QGraphicsRectItem(rect), m_track(0), m_fps(fps), m_editedKeyframe(-1), m_selectedKeyframe(0), m_keyframeFactor(1)
AbstractClipItem::AbstractClipItem(const ItemInfo info, const QRectF& rect, double fps) :
QGraphicsRectItem(rect),
m_track(0),
m_fps(fps),
m_editedKeyframe(-1),
m_selectedKeyframe(0),
m_keyframeFactor(1)
{
setFlags(/*QGraphicsItem::ItemClipsToShape | */QGraphicsItem::ItemIsMovable | QGraphicsItem::ItemIsSelectable);
setTrack(info.track);
......
......@@ -32,7 +32,9 @@
#include <QMimeData>
AbstractGroupItem::AbstractGroupItem(double fps): QGraphicsItemGroup(), m_fps(fps)
AbstractGroupItem::AbstractGroupItem(double fps) :
QGraphicsItemGroup(),
m_fps(fps)
{
setZValue(2);
setFlags(QGraphicsItem::ItemClipsToShape | QGraphicsItem::ItemIsMovable | QGraphicsItem::ItemIsSelectable);
......
......@@ -23,7 +23,12 @@
#include <KLocale>
AddClipCommand::AddClipCommand(KdenliveDoc *doc, const QDomElement &xml, const QString &id, bool doIt, QUndoCommand * parent) : QUndoCommand(parent), m_doc(doc), m_xml(xml), m_id(id), m_doIt(doIt)
AddClipCommand::AddClipCommand(KdenliveDoc *doc, const QDomElement &xml, const QString &id, bool doIt, QUndoCommand * parent) :
QUndoCommand(parent),
m_doc(doc),
m_xml(xml),
m_id(id),
m_doIt(doIt)
{
if (doIt) setText(i18n("Add clip"));
else setText(i18n("Delete clip"));
......
......@@ -23,7 +23,13 @@
#include <KLocale>
AddEffectCommand::AddEffectCommand(CustomTrackView *view, const int track, GenTime pos, QDomElement effect, bool doIt, QUndoCommand * parent) : QUndoCommand(parent), m_view(view), m_track(track), m_pos(pos), m_effect(effect), m_doIt(doIt)
AddEffectCommand::AddEffectCommand(CustomTrackView *view, const int track, GenTime pos, QDomElement effect, bool doIt, QUndoCommand * parent) :
QUndoCommand(parent),
m_view(view),
m_track(track),
m_pos(pos),
m_effect(effect),
m_doIt(doIt)
{
QString effectName;
QDomNode namenode = effect.elementsByTagName("name").item(0);
......
......@@ -23,7 +23,12 @@
#include <KLocale>
AddFolderCommand::AddFolderCommand(ProjectList *view, const QString folderName, const QString &clipId, bool doIt, QUndoCommand *parent) : QUndoCommand(parent), m_view(view), m_name(folderName), m_id(clipId), m_doIt(doIt)
AddFolderCommand::AddFolderCommand(ProjectList *view, const QString folderName, const QString &clipId, bool doIt, QUndoCommand *parent) :
QUndoCommand(parent),
m_view(view),
m_name(folderName),
m_id(clipId),
m_doIt(doIt)
{
if (doIt) setText(i18n("Add folder"));
else setText(i18n("Delete folder"));
......
......@@ -21,7 +21,13 @@
#include <KLocale>
AddMarkerCommand::AddMarkerCommand(CustomTrackView *view, const QString &oldcomment, const QString &comment, const QString &id, const GenTime &pos, QUndoCommand * parent) : QUndoCommand(parent), m_view(view), m_oldcomment(oldcomment), m_comment(comment), m_id(id), m_pos(pos)
AddMarkerCommand::AddMarkerCommand(CustomTrackView *view, const QString &oldcomment, const QString &comment, const QString &id, const GenTime &pos, QUndoCommand * parent) :
QUndoCommand(parent),
m_view(view),
m_oldcomment(oldcomment),
m_comment(comment),
m_id(id),
m_pos(pos)
{
if (m_comment.isEmpty()) setText(i18n("Delete marker"));
else if (m_oldcomment.isEmpty()) setText(i18n("Add marker"));
......
......@@ -23,7 +23,15 @@
#include <KLocale>
AddTimelineClipCommand::AddTimelineClipCommand(CustomTrackView *view, QDomElement xml, const QString &clipId, ItemInfo info, EffectsList effects, bool doIt, bool doRemove, QUndoCommand * parent) : QUndoCommand(parent), m_view(view), m_xml(xml), m_clipId(clipId), m_clipInfo(info), m_effects(effects), m_doIt(doIt), m_remove(doRemove)
AddTimelineClipCommand::AddTimelineClipCommand(CustomTrackView *view, QDomElement xml, const QString &clipId, ItemInfo info, EffectsList effects, bool doIt, bool doRemove, QUndoCommand * parent) :
QUndoCommand(parent),
m_view(view),
m_xml(xml),
m_clipId(clipId),
m_clipInfo(info),
m_effects(effects),
m_doIt(doIt),
m_remove(doRemove)
{
if (!m_remove) setText(i18n("Add timeline clip"));
else setText(i18n("Delete timeline clip"));
......
......@@ -23,7 +23,12 @@
#include <KLocale>
AddTrackCommand::AddTrackCommand(CustomTrackView *view, int ix, TrackInfo info, bool addTrack, QUndoCommand * parent) : QUndoCommand(parent), m_view(view), m_ix(ix), m_info(info), m_addTrack(addTrack)
AddTrackCommand::AddTrackCommand(CustomTrackView *view, int ix, TrackInfo info, bool addTrack, QUndoCommand * parent) :
QUndoCommand(parent),
m_view(view),
m_ix(ix),
m_info(info),
m_addTrack(addTrack)
{
if (addTrack) setText(i18n("Add track"));
else setText(i18n("Delete track"));
......
......@@ -21,7 +21,14 @@
#include <KLocale>
AddTransitionCommand::AddTransitionCommand(CustomTrackView *view, ItemInfo info, int transitiontrack, QDomElement params, bool remove, bool doIt, QUndoCommand * parent) : QUndoCommand(parent), m_view(view), m_info(info), m_track(transitiontrack), m_params(params), m_remove(remove), m_doIt(doIt)
AddTransitionCommand::AddTransitionCommand(CustomTrackView *view, ItemInfo info, int transitiontrack, QDomElement params, bool remove, bool doIt, QUndoCommand * parent) :
QUndoCommand(parent),
m_view(view),
m_info(info),
m_track(transitiontrack),
m_params(params),
m_remove(remove),
m_doIt(doIt)
{
if (m_remove) setText(i18n("Delete transition from clip"));
else setText(i18n("Add transition to clip"));
......
......@@ -23,7 +23,15 @@
#include <KLocale>
ChangeClipTypeCommand::ChangeClipTypeCommand(CustomTrackView *view, const int track, const GenTime &pos, bool videoOnly, bool audioOnly, bool originalVideo, bool originalAudio, QUndoCommand * parent) : QUndoCommand(parent), m_view(view), m_track(track), m_pos(pos), m_videoOnly(videoOnly), m_audioOnly(audioOnly), m_originalVideoOnly(originalVideo), m_originalAudioOnly(originalAudio)
ChangeClipTypeCommand::ChangeClipTypeCommand(CustomTrackView *view, const int track, const GenTime &pos, bool videoOnly, bool audioOnly, bool originalVideo, bool originalAudio, QUndoCommand * parent) :
QUndoCommand(parent),
m_view(view),
m_track(track),
m_pos(pos),
m_videoOnly(videoOnly),
m_audioOnly(audioOnly),
m_originalVideoOnly(originalVideo),
m_originalAudioOnly(originalAudio)
{
setText(i18n("Change clip type"));
}
......
......@@ -23,7 +23,13 @@
#include <KLocale>
ChangeSpeedCommand::ChangeSpeedCommand(CustomTrackView *view, ItemInfo info, double old_speed, double new_speed, const QString &clipId, QUndoCommand * parent) : QUndoCommand(parent), m_view(view), m_clipInfo(info), m_old_speed(old_speed), m_new_speed(new_speed), m_clipId(clipId)
ChangeSpeedCommand::ChangeSpeedCommand(CustomTrackView *view, ItemInfo info, double old_speed, double new_speed, const QString &clipId, QUndoCommand * parent) :
QUndoCommand(parent),
m_view(view),
m_clipInfo(info),
m_old_speed(old_speed),
m_new_speed(new_speed),
m_clipId(clipId)
{
setText(i18n("Adjust clip length"));
}
......
......@@ -23,7 +23,12 @@
#include <KLocale>
ChangeTrackCommand::ChangeTrackCommand(CustomTrackView *view, int ix, TrackInfo oldInfo, TrackInfo newInfo, QUndoCommand * parent) : QUndoCommand(parent), m_view(view), m_ix(ix), m_oldinfo(oldInfo), m_newinfo(newInfo)
ChangeTrackCommand::ChangeTrackCommand(CustomTrackView *view, int ix, TrackInfo oldInfo, TrackInfo newInfo, QUndoCommand * parent) :
QUndoCommand(parent),
m_view(view),
m_ix(ix),
m_oldinfo(oldInfo),
m_newinfo(newInfo)
{
setText(i18n("Change track type"));
}
......
......@@ -26,7 +26,10 @@
#include <QWheelEvent>
ClipDurationDialog::ClipDurationDialog(AbstractClipItem *clip, Timecode tc, QWidget * parent): QDialog(parent), m_tc(tc), m_clip(clip)
ClipDurationDialog::ClipDurationDialog(AbstractClipItem *clip, Timecode tc, QWidget * parent):
QDialog(parent),
m_tc(tc),
m_clip(clip)
{
setFont(KGlobalSettings::toolBarFont());
m_fps = m_tc.fps();
......
......@@ -36,8 +36,30 @@
#include <QGraphicsScene>
#include <QMimeData>
ClipItem::ClipItem(DocClipBase *clip, ItemInfo info, double fps, double speed, bool generateThumbs)
: AbstractClipItem(info, QRectF(), fps), m_clip(clip), m_resizeMode(NONE), m_grabPoint(0), m_maxTrack(0), m_hasThumbs(false), startThumbTimer(NULL), endThumbTimer(NULL), audioThumbWasDrawn(false), m_opacity(1.0), m_timeLine(0), m_startThumbRequested(false), m_endThumbRequested(false), m_startFade(0), m_endFade(0), m_hover(false), m_selectedEffect(-1), m_speed(speed), framePixelWidth(0), m_startPix(QPixmap()), m_endPix(QPixmap()), m_videoOnly(false), m_audioOnly(false)
ClipItem::ClipItem(DocClipBase *clip, ItemInfo info, double fps, double speed, bool generateThumbs) :
AbstractClipItem(info, QRectF(), fps),
m_clip(clip),
m_resizeMode(NONE),
m_grabPoint(0),
m_maxTrack(0),
m_hasThumbs(false),
startThumbTimer(NULL),
endThumbTimer(NULL),
audioThumbWasDrawn(false),
m_opacity(1.0),
m_timeLine(0),
m_startThumbRequested(false),
m_endThumbRequested(false),
m_startFade(0),
m_endFade(0),
m_hover(false),
m_selectedEffect(-1),
m_speed(speed),
framePixelWidth(0),
m_startPix(QPixmap()),
m_endPix(QPixmap()),
m_videoOnly(false),
m_audioOnly(false)
{
setZValue(1);
setRect(0, 0, (info.endPos - info.startPos).frames(fps) - 0.02, (double)(KdenliveSettings::trackheight() - 2));
......
......@@ -34,7 +34,11 @@
#include <QGraphicsItemGroup>
ClipManager::ClipManager(KdenliveDoc *doc): m_doc(doc), m_audioThumbsEnabled(false), m_audioThumbsQueue(QList <QString> ()), m_generatingAudioId(QString())
ClipManager::ClipManager(KdenliveDoc *doc) :
m_doc(doc),
m_audioThumbsEnabled(false),
m_audioThumbsQueue(QList <QString> ()),
m_generatingAudioId(QString())
{
m_clipIdCounter = 1;
m_folderIdCounter = 1;
......
......@@ -43,7 +43,13 @@ static const int TYPE_PNG = 1;
static const int TYPE_BMP = 2;
static const int TYPE_GIF = 3;
ClipProperties::ClipProperties(DocClipBase *clip, Timecode tc, double fps, QWidget * parent): QDialog(parent), m_tc(tc), m_clip(clip), m_fps(fps), m_clipNeedsRefresh(false), m_count(0)
ClipProperties::ClipProperties(DocClipBase *clip, Timecode tc, double fps, QWidget * parent) :
QDialog(parent),
m_tc(tc),
m_clip(clip),
m_fps(fps),
m_clipNeedsRefresh(false),
m_count(0)
{
setFont(KGlobalSettings::toolBarFont());
m_view.setupUi(this);
......
......@@ -24,8 +24,8 @@
#include <QHeaderView>
#include <QMenu>
ComplexParameter::ComplexParameter(QWidget *parent)
: QWidget(parent)
ComplexParameter::ComplexParameter(QWidget *parent) :
QWidget(parent)
{
ui.setupUi(this);
//ui.effectlist->horizontalHeader()->setVisible(false);
......
......@@ -52,8 +52,12 @@ static int bigMarkDistance;
const int CustomRuler::comboScale[] = { 1, 2, 5, 10, 25, 50, 125, 250, 500, 725, 1500, 3000, 6000, 12000};
CustomRuler::CustomRuler(Timecode tc, CustomTrackView *parent)
: QWidget(parent), m_timecode(tc), m_view(parent), m_duration(0), m_offset(0)
CustomRuler::CustomRuler(Timecode tc, CustomTrackView *parent) :
QWidget(parent),
m_timecode(tc),
m_view(parent),
m_duration(0),
m_offset(0)
{
setFont(KGlobalSettings::toolBarFont());
m_scale = 3;
......
......@@ -22,8 +22,10 @@
#include <KStandardDirs>
CustomTrackScene::CustomTrackScene(KdenliveDoc *doc, QObject *parent)
: QGraphicsScene(parent), m_document(doc), m_scale(1.0)
CustomTrackScene::CustomTrackScene(KdenliveDoc *doc, QObject *parent) :
QGraphicsScene(parent),
m_document(doc),
m_scale(1.0)
{
m_transitionPixmap = QPixmap(KStandardDirs::locate("appdata", "transition.png"));
}
......
......@@ -81,8 +81,34 @@
// const bool animate = KGlobalSettings::graphicEffectsLevel() & KGlobalSettings::SimpleAnimationEffects;
// const int duration = animate ? 1500 : 1;
CustomTrackView::CustomTrackView(KdenliveDoc *doc, CustomTrackScene* projectscene, QWidget *parent)
: QGraphicsView(projectscene, parent), m_scene(projectscene), m_cursorPos(0), m_cursorLine(NULL), m_operationMode(NONE), m_dragItem(NULL), m_visualTip(NULL), m_moveOpMode(NONE), m_animation(NULL), m_projectDuration(0), m_clickPoint(QPoint()), m_document(doc), m_autoScroll(KdenliveSettings::autoscroll()), m_tracksHeight(KdenliveSettings::trackheight()), m_tool(SELECTTOOL), m_dragGuide(NULL), m_findIndex(0), m_menuPosition(QPoint()), m_blockRefresh(false), m_selectionGroup(NULL), m_selectedTrack(0), m_copiedItems(QList<AbstractClipItem *> ()), m_scrollOffset(0), m_changeSpeedAction(NULL), m_pasteEffectsAction(NULL), m_ungroupAction(NULL), m_clipDrag(false)
CustomTrackView::CustomTrackView(KdenliveDoc *doc, CustomTrackScene* projectscene, QWidget *parent) :
QGraphicsView(projectscene, parent),
m_scene(projectscene),
m_cursorPos(0),
m_cursorLine(NULL),
m_operationMode(NONE),
m_dragItem(NULL),
m_visualTip(NULL),
m_moveOpMode(NONE),
m_animation(NULL),
m_projectDuration(0),
m_clickPoint(QPoint()),
m_document(doc),
m_autoScroll(KdenliveSettings::autoscroll()),
m_tracksHeight(KdenliveSettings::trackheight()),
m_tool(SELECTTOOL),
m_dragGuide(NULL),
m_findIndex(0),
m_menuPosition(QPoint()),
m_blockRefresh(false),
m_selectionGroup(NULL),
m_selectedTrack(0),
m_copiedItems(QList<AbstractClipItem *> ()),
m_scrollOffset(0),
m_changeSpeedAction(NULL),
m_pasteEffectsAction(NULL),
m_ungroupAction(NULL),
m_clipDrag(false)
{
if (doc) m_commandStack = doc->commandStack();
else m_commandStack = NULL;
......
......@@ -33,8 +33,20 @@
#include <QCryptographicHash>
DocClipBase::DocClipBase(ClipManager *clipManager, QDomElement xml, const QString &id):
m_id(id), m_description(QString()), m_refcount(0), m_audioThumbCreated(false), m_duration(GenTime()), m_thumbProd(NULL), m_audioTimer(NULL), m_properties(QMap <QString, QString> ()), audioFrameChache(QMap<int, QMap<int, QByteArray> > ()), m_baseTrackProducers(QList <Mlt::Producer *>()), m_snapMarkers(QList < CommentedTime > ()), m_videoOnlyProducer(NULL), m_audioTrackProducers(QList <Mlt::Producer *>())
DocClipBase::DocClipBase(ClipManager *clipManager, QDomElement xml, const QString &id) :
m_id(id),
m_description(QString()),
m_refcount(0),
m_audioThumbCreated(false),
m_duration(GenTime()),
m_thumbProd(NULL),
m_audioTimer(NULL),
m_properties(QMap <QString, QString> ()),
audioFrameChache(QMap<int, QMap<int, QByteArray> > ()),
m_baseTrackProducers(QList <Mlt::Producer *>()),
m_snapMarkers(QList < CommentedTime > ()),
m_videoOnlyProducer(NULL),
m_audioTrackProducers(QList <Mlt::Producer *>())
{
int type = xml.attribute("type").toInt();
m_clipType = (CLIPTYPE) type;
......
......@@ -35,7 +35,11 @@
#include <QDomDocument>
DvdWizard::DvdWizard(const QString &url, const QString &profile, QWidget *parent): QWizard(parent), m_profile(profile), m_dvdauthor(NULL), m_mkiso(NULL)
DvdWizard::DvdWizard(const QString &url, const QString &profile, QWidget *parent) :
QWizard(parent),
m_profile(profile),
m_dvdauthor(NULL),
m_mkiso(NULL)
{
//setPixmap(QWizard::WatermarkPixmap, QPixmap(KStandardDirs::locate("appdata", "banner.png")));
setAttribute(Qt::WA_DeleteOnClose);
......
......@@ -22,7 +22,8 @@
#include <KDebug>
DvdWizardMenu::DvdWizardMenu(const QString &profile, QWidget *parent): QWizardPage(parent)
DvdWizardMenu::DvdWizardMenu(const QString &profile, QWidget *parent) :
QWizardPage(parent)
{
m_view.setupUi(this);
m_view.play_text->setText(i18n("Play"));
......
......@@ -26,7 +26,8 @@
#include <QHBoxLayout>
DvdWizardVob::DvdWizardVob(QWidget *parent): QWizardPage(parent)
DvdWizardVob::DvdWizardVob(QWidget *parent) :
QWizardPage(parent)
{
m_view.setupUi(this);
m_view.intro_vob->setEnabled(false);
......
......@@ -22,7 +22,13 @@
#include <KLocale>
EditClipCommand::EditClipCommand(ProjectList *list, const QString &id, QMap <QString, QString> oldparams, QMap <QString, QString> newparams, bool doIt, QUndoCommand * parent) : QUndoCommand(parent), m_list(list), m_id(id), m_oldparams(oldparams), m_newparams(newparams), m_doIt(doIt)
EditClipCommand::EditClipCommand(ProjectList *list, const QString &id, QMap <QString, QString> oldparams, QMap <QString, QString> newparams, bool doIt, QUndoCommand * parent) :
QUndoCommand(parent),
m_list(list),
m_id(id),
m_oldparams(oldparams),
m_newparams(newparams),
m_doIt(doIt)
{
setText(i18n("Edit clip"));
}
......
......@@ -23,8 +23,13 @@
#include <KLocale>
EditEffectCommand::EditEffectCommand(CustomTrackView *view, const int track, GenTime pos, QDomElement oldeffect, QDomElement effect, int stackPos, bool doIt)
: m_view(view), m_track(track), m_pos(pos), m_oldeffect(oldeffect), m_stackPos(stackPos), m_doIt(doIt)
EditEffectCommand::EditEffectCommand(CustomTrackView *view, const int track, GenTime pos, QDomElement oldeffect, QDomElement effect, int stackPos, bool doIt) :
m_view(view),
m_track(track),
m_pos(pos),
m_oldeffect(oldeffect),
m_stackPos(stackPos),
m_doIt(doIt)
{
m_effect = effect.cloneNode().toElement();
QString effectName;
......
......@@ -23,7 +23,13 @@
#include <KLocale>
EditFolderCommand::EditFolderCommand(ProjectList *view, const QString newfolderName, const QString oldfolderName, const QString &clipId, bool doIt, QUndoCommand *parent) : QUndoCommand(parent), m_view(view), m_name(newfolderName), m_oldname(oldfolderName), m_id(clipId), m_doIt(doIt)
EditFolderCommand::EditFolderCommand(ProjectList *view, const QString newfolderName, const QString oldfolderName, const QString &clipId, bool doIt, QUndoCommand *parent) :
QUndoCommand(parent),
m_view(view),
m_name(newfolderName),
m_oldname(oldfolderName),
m_id(clipId),
m_doIt(doIt)
{
setText(i18n("Rename folder"));
}
......
......@@ -21,7 +21,14 @@
#include <KLocale>
EditGuideCommand::EditGuideCommand(CustomTrackView *view, const GenTime oldPos, const QString &oldcomment, const GenTime pos, const QString &comment, bool doIt, QUndoCommand * parent) : QUndoCommand(parent), m_view(view), m_oldPos(oldPos), m_oldcomment(oldcomment), m_pos(pos), m_comment(comment), m_doIt(doIt)
EditGuideCommand::EditGuideCommand(CustomTrackView *view, const GenTime oldPos, const QString &oldcomment, const GenTime pos, const QString &comment, bool doIt, QUndoCommand * parent) :
QUndoCommand(parent),
m_view(view),
m_oldPos(oldPos),
m_oldcomment(oldcomment),
m_pos(pos),
m_comment(comment),
m_doIt(doIt)
{
if (m_oldcomment.isEmpty()) setText(i18n("Add guide"));
else if (m_oldPos == m_pos) setText(i18n("Edit guide"));
......
......@@ -21,7 +21,14 @@
#include <KLocale>
EditKeyFrameCommand::EditKeyFrameCommand(CustomTrackView *view, const int track, GenTime pos, const int effectIndex, const QString& oldkeyframes, const QString& newkeyframes, bool doIt) : m_view(view), m_track(track), m_pos(pos), m_index(effectIndex), m_oldkfr(oldkeyframes), m_newkfr(newkeyframes), m_doIt(doIt)
EditKeyFrameCommand::EditKeyFrameCommand(CustomTrackView *view, const int track, GenTime pos, const int effectIndex, const QString& oldkeyframes, const QString& newkeyframes, bool doIt) :
m_view(view),
m_track(track),
m_pos(pos),
m_index(effectIndex),
m_oldkfr(oldkeyframes),
m_newkfr(newkeyframes),
m_doIt(doIt)
{
int prev = m_oldkfr.split(';', QString::SkipEmptyParts).count();
int next = m_newkfr.split(';', QString::SkipEmptyParts).count();
......
......@@ -20,8 +20,12 @@
#include <KLocale>
EditTransitionCommand::EditTransitionCommand(CustomTrackView *view, const int track, GenTime pos, QDomElement oldeffect, QDomElement effect, bool doIt)
: m_view(view), m_track(track), m_pos(pos), m_oldeffect(oldeffect), m_doIt(doIt)
EditTransitionCommand::EditTransitionCommand(CustomTrackView *view, const int track, GenTime pos, QDomElement oldeffect, QDomElement effect, bool doIt) :
m_view(view),
m_track(track),
m_pos(pos),
m_oldeffect(oldeffect),
m_doIt(doIt)
{
m_effect = effect.cloneNode().toElement();
QString effectName;
......
......@@ -22,7 +22,7 @@
#include <KLocale>
EffectsList::EffectsList():
EffectsList::EffectsList() :
QList < QDomElement > ()
{
}
......
......@@ -30,8 +30,8 @@
#include <QMenu>
#include <QDir>
EffectsListView::EffectsListView(QWidget *parent)
: QWidget(parent)
EffectsListView::EffectsListView(QWidget *parent) :
QWidget(parent)
{
ui.setupUi(this);
......
......@@ -36,8 +36,9 @@ static const int EFFECT_CUSTOM = 3;
const int TypeRole = Qt::UserRole;
const int IdRole = TypeRole + 1;
EffectsListWidget::EffectsListWidget(QMenu *menu, QWidget *parent)
: KListWidget(parent), m_menu(menu)
EffectsListWidget::EffectsListWidget(QMenu *menu, QWidget *parent) :
KListWidget(parent),
m_menu(menu)
{
//setSelectionMode(QAbstractItemView::ExtendedSelection);
//setDragDropMode(QAbstractItemView::DragDrop);
......
......@@ -38,7 +38,10 @@
QMap<QString, QImage> EffectStackEdit::iconCache;
EffectStackEdit::EffectStackEdit(QWidget *parent): QWidget(parent), m_in(0), m_out(0)
EffectStackEdit::EffectStackEdit(QWidget *parent) :
QWidget(parent),
m_in(0),
m_out(0)
{
setSizePolicy(QSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding));
QVBoxLayout *vbox1 = new QVBoxLayout(parent);
......
......@@ -33,8 +33,8 @@
#include <QInputDialog>
EffectStackView::EffectStackView(QWidget *parent)
: QWidget(parent)
EffectStackView::EffectStackView(QWidget *parent) :
QWidget(parent)
{
ui.setupUi(this);
effectedit = new EffectStackEdit(ui.frame);
......
......@@ -27,7 +27,13 @@
#include <QMenu>
Geometryval::Geometryval(const MltVideoProfile profile, QWidget* parent): QWidget(parent), m_profile(profile), m_geom(NULL), m_path(NULL), paramRect(NULL), m_fixedMode(false)
Geometryval::Geometryval(const MltVideoProfile profile, QWidget* parent) :
QWidget(parent),
m_profile(profile),