1.1 --- a/mapeditor.h Tue Aug 05 07:36:53 2008 +0000
1.2 +++ b/mapeditor.h Mon Oct 06 11:10:20 2008 +0000
1.3 @@ -2,10 +2,10 @@
1.4 #define MAPEDITOR_H
1.5
1.6 #include <QGraphicsView>
1.7 +#include <QItemSelectionModel>
1.8
1.9 #include "attribute.h"
1.10 #include "ornamentedobj.h"
1.11 -#include "selection.h" // FIXME should not be needed
1.12 #include "settings.h"
1.13 #include "vymmodel.h"
1.14
1.15 @@ -92,8 +92,12 @@
1.16
1.17 QPoint exportOffset; // set before export, used in save
1.18
1.19 - Selection xelection; // FIXME only here to get rid of some gcc errors...
1.20 - QString getName(const LinkableMapObj*); // FIXME see above, renamed to getObjectName in VymModel...
1.21 +public:
1.22 + void setSelectionModel (QItemSelectionModel*);
1.23 + QItemSelectionModel* selectionModel();
1.24 +private:
1.25 + QItemSelectionModel* selModel; // we treat MapEditor as View here...
1.26 +
1.27 };
1.28 #endif
1.29