make some performance improvements to event rendering

This commit is contained in:
garakmon
2020-08-06 19:46:23 -04:00
committed by garak
parent 2a11760afd
commit 1151f9fc26
6 changed files with 52 additions and 52 deletions

View File

@@ -21,13 +21,12 @@ enum CommandId {
ID_MagicFillCollision,
ID_ResizeMap,
ID_PaintBorder,
ID_ScriptEditMap,
ID_EventMove,
ID_EventShift,
ID_EventCreate,
ID_EventDelete,
ID_EventDuplicate,
ID_EventSetData,
ID_ScriptEditMap,
};

View File

@@ -110,7 +110,6 @@ private:
signals:
void mapChanged(Map *map);
void mapNeedsRedrawing();
void objectsChanged();
};
#endif // MAP_H

View File

@@ -101,7 +101,7 @@ public:
void updateSelectedEvents();
void duplicateSelectedEvents();
void redrawObject(DraggablePixmapItem *item);
QList<DraggablePixmapItem *> *getObjects();
QList<DraggablePixmapItem *> getObjects();
QGraphicsScene *scene = nullptr;
QGraphicsPixmapItem *current_view = nullptr;
@@ -147,6 +147,8 @@ public:
bool selectingEvent = false;
void shouldReselectEvents();
private:
void setConnectionItemsVisible(bool);
void setBorderItemsVisible(bool, qreal = 1);