Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "modcontroller.h"
- #include <QDebug>
- modcontroller::modcontroller(QObject *parent) : QObject(parent)
- {
- m_dataList.append(new List("Test"));
- }
- QList<QObject *> modcontroller::getList()
- {
- return m_dataList;
- }
- void modcontroller::addList(const QString & nam)
- {
- m_dataList.append(new List(nam));
- qDebug() << "Function addList called";
- qDebug() << m_dataList;
- Q_EMIT listChanged();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement