void QtViewer_ViewPort::resetForeground()
{
- for (std::shared_ptr<QtViewer_PainterObject> obj : foregroundObjects)
+ for (QSharedPointer<QtViewer_PainterObject> obj : foregroundObjects)
obj.reset();
foregroundObjects.clear();
{
Q_UNUSED(rect);
- for (std::shared_ptr<QtViewer_PainterObject> obj : foregroundObjects)
+ for (QSharedPointer<QtViewer_PainterObject> obj : foregroundObjects)
obj->draw(painter);
}
QImage dumpView(bool theWholeScene = false, QSizeF theSize = QSizeF());
bool dumpViewToFormat(const QString& fileName, const QString& format);
- void addForegroundObject( std::shared_ptr<QtViewer_PainterObject> obj) { foregroundObjects.append(obj); }
+ void addForegroundObject( QSharedPointer<QtViewer_PainterObject> obj) { foregroundObjects.append(obj); }
void resetForeground();
signals:
QPoint previousPos;
QCursor* zoomCursor;
- QList<std::shared_ptr<QtViewer_PainterObject> > foregroundObjects;
+ QList<QSharedPointer<QtViewer_PainterObject> > foregroundObjects;
};
#endif