Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
97d76345
Commit
97d76345
authored
Jun 02, 2013
by
Laurent Montel
Browse files
Const'ref. Fix include/Forward declaration
parent
c80beeb5
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/kdenlivedoc.cpp
View file @
97d76345
...
...
@@ -50,6 +50,9 @@
#include
<QFile>
#include
<QInputDialog>
#include
<QDomImplementation>
#include
<QUndoGroup>
#include
<QTimer>
#include
<QUndoStack>
#include
<mlt++/Mlt.h>
...
...
@@ -577,7 +580,7 @@ QDomDocument KdenliveDoc::createEmptyDocument(const QList <TrackInfo> &tracks)
}
void
KdenliveDoc
::
syncGuides
(
QList
<
Guide
*>
guides
)
void
KdenliveDoc
::
syncGuides
(
const
QList
<
Guide
*>
&
guides
)
{
m_guidesXml
.
clear
();
QDomElement
guideNode
=
m_guidesXml
.
createElement
(
"guides"
);
...
...
@@ -886,8 +889,10 @@ MltVideoProfile KdenliveDoc::mltProfile() const
bool
KdenliveDoc
::
setProfilePath
(
QString
path
)
{
if
(
path
.
isEmpty
())
path
=
KdenliveSettings
::
default_profile
();
if
(
path
.
isEmpty
())
path
=
"dv_pal"
;
if
(
path
.
isEmpty
())
path
=
KdenliveSettings
::
default_profile
();
if
(
path
.
isEmpty
())
path
=
QLatin1String
(
"dv_pal"
);
m_profile
=
ProfilesDialog
::
getVideoProfile
(
path
);
double
current_fps
=
m_fps
;
if
(
m_profile
.
path
.
isEmpty
())
{
...
...
src/kdenlivedoc.h
View file @
97d76345
...
...
@@ -22,14 +22,10 @@
#define KDENLIVEDOC_H
#include
<qdom.h>
#include
<QString>
#include
<QMap>
#include
<QList>
#include
<QDir>
#include
<QObject>
#include
<QUndoGroup>
#include
<QUndoStack>
#include
<QTimer>
#include
<KUrl>
#include
<kautosavefile.h>
...
...
@@ -47,6 +43,9 @@ class TrackInfo;
class
KTextEdit
;
class
KProgressDialog
;
class
QUndoGroup
;
class
QTimer
;
class
QUndoStack
;
class
KdenliveDoc
:
public
QObject
{
...
...
@@ -107,7 +106,7 @@ public:
/** @brief Returns the project folder, used to store project files. */
KUrl
projectFolder
()
const
;
void
syncGuides
(
QList
<
Guide
*>
guides
);
void
syncGuides
(
const
QList
<
Guide
*>
&
guides
);
void
setZoom
(
int
horizontal
,
int
vertical
);
QPoint
zoom
()
const
;
double
dar
()
const
;
...
...
src/mainwindow.cpp
View file @
97d76345
...
...
@@ -113,6 +113,7 @@
#include
<QInputDialog>
#include
<QDesktopWidget>
#include
<QBitmap>
#include
<QUndoGroup>
#include
<stdlib.h>
#include
<locale.h>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment