Using QGraphicsScene instead of VMainGraphicsScene caused a crash.

(grafted from 32c7acbe1384dc3a8d284c938a8093d178095f87)

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2016-02-23 16:59:05 +02:00
parent 335a4db2d1
commit 7024df4ab2
2 changed files with 4 additions and 3 deletions

View File

@ -11,6 +11,7 @@
- [#385] Add 'Open Recent' option in Tape.exe, 'File' dropdown menu. - [#385] Add 'Open Recent' option in Tape.exe, 'File' dropdown menu.
# Version 0.4.3 # Version 0.4.3
- Using QGraphicsScene instead of VMainGraphicsScene caused a crash.
- Fixed bug disabling tool True darts. - Fixed bug disabling tool True darts.
- Fixed wrong calculation tool True darts. - Fixed wrong calculation tool True darts.
- [#405] Fixed crash after deleting first pattern piece in the list. - [#405] Fixed crash after deleting first pattern piece in the list.

View File

@ -32,7 +32,7 @@
#include "../vobj/vobjpaintdevice.h" #include "../vobj/vobjpaintdevice.h"
#include "../vdxf/vdxfpaintdevice.h" #include "../vdxf/vdxfpaintdevice.h"
#include "dialogs/dialoglayoutsettings.h" #include "dialogs/dialoglayoutsettings.h"
#include "../vwidgets/vmaingraphicsscene.h"
#include "../vlayout/vlayoutgenerator.h" #include "../vlayout/vlayoutgenerator.h"
#include "dialogs/dialoglayoutprogress.h" #include "dialogs/dialoglayoutprogress.h"
#include "dialogs/dialogsavelayout.h" #include "dialogs/dialogsavelayout.h"
@ -437,7 +437,7 @@ void MainWindowsNoGUI::PrepareDetailsForLayout(const QHash<quint32, VDetail> *de
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
void MainWindowsNoGUI::InitTempLayoutScene() void MainWindowsNoGUI::InitTempLayoutScene()
{ {
tempSceneLayout = new QGraphicsScene(); tempSceneLayout = new VMainGraphicsScene();
tempSceneLayout->setBackgroundBrush( QBrush(QColor(Qt::gray), Qt::SolidPattern) ); tempSceneLayout->setBackgroundBrush( QBrush(QColor(Qt::gray), Qt::SolidPattern) );
} }
@ -503,7 +503,7 @@ void MainWindowsNoGUI::CreateScenes()
{ {
for (int i=0; i<papers.size(); ++i) for (int i=0; i<papers.size(); ++i)
{ {
QGraphicsScene *scene = new QGraphicsScene(); QGraphicsScene *scene = new VMainGraphicsScene();
scene->setBackgroundBrush(QBrush(QColor(Qt::gray), Qt::SolidPattern)); scene->setBackgroundBrush(QBrush(QColor(Qt::gray), Qt::SolidPattern));
scene->addItem(shadows.at(i)); scene->addItem(shadows.at(i));
scene->addItem(papers.at(i)); scene->addItem(papers.at(i));