Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 27066bf8 authored by Nicolas Carion's avatar Nicolas Carion

fix typo and use QPersistentModelIndex where appropriate

parent c668fbac
......@@ -25,6 +25,7 @@
#include "assetparametermodel.hpp"
#include <QTime>
#include <QUndoCommand>
#include <QPersistentModelIndex>
class AssetCommand : public QUndoCommand
{
......@@ -37,7 +38,7 @@ public:
private:
std::shared_ptr<AssetParameterModel> m_model;
QModelIndex m_index;
QPersistentModelIndex m_index;
QString m_value;
QString m_name;
QString m_oldValue;
......
......@@ -97,7 +97,7 @@ AssetParameterModel::AssetParameterModel(Mlt::Properties *asset, const QDomEleme
m_params[name] = currentRow;
m_rows.push_back(name);
}
qDebug() << "END parsing of "<<name<<". Number of found parameters"<<m_rows.size();
qDebug() << "END parsing of "<<assetId<<". Number of found parameters"<<m_rows.size();
}
void AssetParameterModel::setParameter(const QString &name, const QString &value)
......
......@@ -23,7 +23,7 @@
#define ABSTRACTPARAMWIDGET_H
#include <QDebug>
#include <QModelIndex>
#include <QPersistentModelIndex>
#include <QWidget>
#include <memory>
......@@ -75,7 +75,7 @@ public slots:
protected:
std::shared_ptr<AssetParameterModel> m_model;
QModelIndex m_index;
QPersistentModelIndex m_index;
};
#endif
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