Using QGraphicsScene instead of VMainGraphicsScene caused a crash.
--HG-- branch : release
This commit is contained in:
parent
bb053e03f4
commit
ce88024313
|
@ -1,4 +1,5 @@
|
||||||
# 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.
|
||||||
|
|
|
@ -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"
|
||||||
|
@ -441,7 +441,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) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -507,7 +507,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));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user