***************************************************************************/
#include "treemodel.h"
+#include "global.h"
#include <QDebug>
#include <QCoreApplication>
rootItem = new SimpleTreeItem(data, 0);
connectItem(rootItem);
- if(QCoreApplication::instance()->arguments().contains("--debugmodel")) {
+ if(Global::parser.isSet("debugmodel")) {
connect(this, SIGNAL(rowsAboutToBeInserted(const QModelIndex &, int, int)),
this, SLOT(debug_rowsAboutToBeInserted(const QModelIndex &, int, int)));
connect(this, SIGNAL(rowsAboutToBeRemoved(const QModelIndex &, int, int)),