1.1 --- a/adaptormodel.cpp Tue Mar 09 08:29:09 2010 +0000
1.2 +++ b/adaptormodel.cpp Tue Mar 09 09:37:57 2010 +0000
1.3 @@ -3,9 +3,11 @@
1.4 #include <QtCore/QString>
1.5 #include <QtCore/QVariant>
1.6
1.7 +#include "mainwindow.h"
1.8 #include "vymmodel.h"
1.9
1.10 extern QString vymInstanceName;
1.11 +extern Main *mainWindow;
1.12
1.13 AdaptorModel::AdaptorModel(QObject *obj)
1.14 : QDBusAbstractAdaptor(obj)
1.15 @@ -45,6 +47,11 @@
1.16 return QDBusVariant (s);
1.17 }
1.18
1.19 +QDBusVariant AdaptorModel::getCurrentModelID()
1.20 +{
1.21 + return QDBusVariant (mainWindow->currentModelID());
1.22 +}
1.23 +
1.24 QDBusVariant AdaptorModel::getHeading()
1.25 {
1.26 QString s;