Commit 36dc441f authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

const'ify

parent 7eb7390b
......@@ -58,7 +58,7 @@
const double DOCUMENTVERSION = 0.88;
KdenliveDoc::KdenliveDoc(const KUrl &url, const KUrl &projectFolder, QUndoGroup *undoGroup, const QString &profileName, QMap <QString, QString> properties, QMap <QString, QString> metadata, const QPoint &tracks, Render *render, KTextEdit *notes, bool *openBackup, MainWindow *parent, KProgressDialog *progressDialog) :
KdenliveDoc::KdenliveDoc(const KUrl &url, const KUrl &projectFolder, QUndoGroup *undoGroup, const QString &profileName, const QMap <QString, QString>& properties, const QMap <QString, QString>& metadata, const QPoint &tracks, Render *render, KTextEdit *notes, bool *openBackup, MainWindow *parent, KProgressDialog *progressDialog) :
QObject(parent),
m_autosave(NULL),
m_url(url),
......
......@@ -52,7 +52,7 @@ class KdenliveDoc: public QObject
{
Q_OBJECT public:
KdenliveDoc(const KUrl &url, const KUrl &projectFolder, QUndoGroup *undoGroup, const QString &profileName, QMap <QString, QString> properties, QMap <QString, QString> metadata, const QPoint &tracks, Render *render, KTextEdit *notes, bool *openBackup, MainWindow *parent = 0, KProgressDialog *progressDialog = 0);
KdenliveDoc(const KUrl &url, const KUrl &projectFolder, QUndoGroup *undoGroup, const QString &profileName, const QMap <QString, QString>& properties, const QMap <QString, QString>& metadata, const QPoint &tracks, Render *render, KTextEdit *notes, bool *openBackup, MainWindow *parent = 0, KProgressDialog *progressDialog = 0);
~KdenliveDoc();
QDomNodeList producersList();
double fps() const;
......
......@@ -102,7 +102,7 @@ void MonitorEditWidget::resetProfile(Render* renderer)
m_scene->resetProfile();
}
MonitorScene* MonitorEditWidget::getScene()
MonitorScene* MonitorEditWidget::getScene() const
{
return m_scene;
}
......
......@@ -43,7 +43,7 @@ public:
void resetProfile(Render *renderer);
/** @brief Returns the on-monitor scene. */
MonitorScene *getScene();
MonitorScene *getScene() const;
/** @brief Returns the action toggling between the normal monitor and the editor. */
QAction *getVisibilityAction();
......
......@@ -39,7 +39,7 @@ MonitorManager::MonitorManager(QWidget *parent) :
{
}
Timecode MonitorManager::timecode()
Timecode MonitorManager::timecode() const
{
return m_timecode;
}
......@@ -76,9 +76,9 @@ void MonitorManager::removeMonitor(AbstractMonitor *monitor)
AbstractMonitor* MonitorManager::monitor(Kdenlive::MONITORID monitorName)
{
AbstractMonitor *monitor = NULL;
for (int i = 0; i < m_monitorsList.size(); i++) {
for (int i = 0; i < m_monitorsList.size(); ++i) {
if (m_monitorsList[i]->id() == monitorName) {
monitor = m_monitorsList[i];
monitor = m_monitorsList.at(i);
}
}
return monitor;
......
......@@ -36,7 +36,7 @@ public:
void initMonitors(Monitor *clipMonitor, Monitor *projectMonitor, RecMonitor *recMonitor);
void appendMonitor(AbstractMonitor *monitor);
void removeMonitor(AbstractMonitor *monitor);
Timecode timecode();
Timecode timecode() const;
void resetProfiles(Timecode tc);
void stopActiveMonitor();
AbstractRender *activeRenderer();
......
......@@ -78,7 +78,7 @@ void MonitorScene::cleanup()
void MonitorScene::setUp()
{
if (views().count() > 0) {
if (!views().isEmpty()) {
m_view = views().at(0);
m_view->setViewportUpdateMode(QGraphicsView::FullViewportUpdate);
} else {
......
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