Commit 817b69fd authored by -f's avatar -f

Scene objects no more indexed

parent d4d5d38c
......@@ -86,7 +86,6 @@ class UBSvgSubsetAdaptor
static const QString sFontWeightPrefix;
static const QString sFontStylePrefix;
static QString readTeacherGuideNode(int sceneIndex);
private:
static UBGraphicsScene* loadScene(UBDocumentProxy* proxy, const QByteArray& pArray);
......
......@@ -307,7 +307,6 @@ UBGraphicsScene::UBGraphicsScene(UBDocumentProxy* parent, bool enableUndoRedoSta
, mArcPolygonItem(0)
, mRenderingContext(Screen)
, mCurrentStroke(0)
, mShouldUseOMP(true)
, mItemCount(0)
, mUndoRedoStackEnabled(enableUndoRedoStack)
, magniferControlViewWidget(0)
......@@ -318,11 +317,7 @@ UBGraphicsScene::UBGraphicsScene(UBDocumentProxy* parent, bool enableUndoRedoSta
, mSelectionFrame(0)
{
UBCoreGraphicsScene::setObjectName("BoardScene");
#ifdef __ppc__
mShouldUseOMP = false;
#elif defined(Q_WS_MAC)
mShouldUseOMP = QSysInfo::MacintoshVersion >= QSysInfo::MV_10_5;
#endif
setItemIndexMethod(NoIndex);
setUuid(QUuid::createUuid());
setDocument(parent);
......
......@@ -413,13 +413,10 @@ public slots:
UBGraphicsStroke* mCurrentStroke;
bool mShouldUseOMP;
int mItemCount;
QList<QGraphicsItem*> mFastAccessItems; // a local copy as QGraphicsScene::items() is very slow in Qt 4.6
//int mMesure1Ms, mMesure2Ms;
bool mHasCache;
// tmp stub for divide addings scene objects from undo mechanism implementation
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment