paysages: Fixed a possible segfault on exit.
git-svn-id: https://subversion.assembla.com/svn/thunderk/paysages@227 b1fd45b6-86a6-48da-8261-f70d1f35bdcc
This commit is contained in:
parent
8c33ce7143
commit
a88a0ddaac
3 changed files with 7 additions and 2 deletions
|
@ -87,6 +87,6 @@ void MainWindow::quickPreview()
|
||||||
{
|
{
|
||||||
DialogRender* dialog = new DialogRender(this);
|
DialogRender* dialog = new DialogRender(this);
|
||||||
dialog->startRender(3, 400, 300);
|
dialog->startRender(3, 400, 300);
|
||||||
|
|
||||||
delete dialog;
|
delete dialog;
|
||||||
}
|
}
|
||||||
|
|
|
@ -70,6 +70,11 @@ Preview::~Preview()
|
||||||
delete pixbuf;
|
delete pixbuf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QColor Preview::getColor(double x, double y)
|
||||||
|
{
|
||||||
|
return QColor(0, 0, 0);
|
||||||
|
}
|
||||||
|
|
||||||
void Preview::doRender()
|
void Preview::doRender()
|
||||||
{
|
{
|
||||||
if (this->alive)
|
if (this->alive)
|
||||||
|
|
|
@ -21,7 +21,7 @@ public:
|
||||||
protected:
|
protected:
|
||||||
void resizeEvent(QResizeEvent* event);
|
void resizeEvent(QResizeEvent* event);
|
||||||
void paintEvent(QPaintEvent* event);
|
void paintEvent(QPaintEvent* event);
|
||||||
virtual QColor getColor(double x, double y) = 0;
|
virtual QColor getColor(double x, double y);
|
||||||
|
|
||||||
void renderPixbuf();
|
void renderPixbuf();
|
||||||
void forceRender();
|
void forceRender();
|
||||||
|
|
Loading…
Reference in a new issue