Advertisement
Guest User

modcontroller.cpp

a guest
Mar 20th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include "modcontroller.h"
  2. #include <QDebug>
  3.  
  4. modcontroller::modcontroller(QObject *parent) : QObject(parent)
  5. {
  6.     m_dataList.append(new List("Test"));
  7. }
  8.  
  9. QList<QObject *> modcontroller::getList()
  10. {
  11.     return m_dataList;
  12. }
  13.  
  14. void modcontroller::addList(const QString & nam)
  15. {
  16.     m_dataList.append(new List(nam));
  17.     qDebug() << "Function addList called";
  18.  
  19.     qDebug() << m_dataList;
  20.  
  21.     Q_EMIT listChanged();
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement