Michaël Lemaire
c0db22b200
git-svn-id: https://subversion.assembla.com/svn/thunderk/paysages@333 b1fd45b6-86a6-48da-8261-f70d1f35bdcc
18 lines
324 B
C++
18 lines
324 B
C++
#include "tools.h"
|
|
|
|
#include <QEvent>
|
|
#include "basepreview.h"
|
|
|
|
DialogWithPreview::DialogWithPreview(QWidget* parent) : QDialog(parent)
|
|
{
|
|
}
|
|
|
|
bool DialogWithPreview::event(QEvent* event)
|
|
{
|
|
if (event->type() == QEvent::WindowActivate)
|
|
{
|
|
BasePreview::reviveAll();
|
|
}
|
|
|
|
return QDialog::event(event);
|
|
}
|