diff --git a/sources/newelementwizard.cpp b/sources/newelementwizard.cpp index c5358902a..c2acfd03b 100644 --- a/sources/newelementwizard.cpp +++ b/sources/newelementwizard.cpp @@ -40,6 +40,9 @@ NewElementWizard::NewElementWizard(QWidget *parent, Qt::WindowFlags f) : chosen_category(0) { setOptions(options() & ~QWizard::NoCancelButton); +#ifdef Q_WS_MAC + setWindowFlags(Qt::Sheet); +#endif setPixmap(LogoPixmap, QPixmap(":/ico/256x256/qelectrotech.png").scaled(64, 64, Qt::KeepAspectRatio, Qt::SmoothTransformation)); setWindowTitle(tr("Cr\351er un nouvel \351l\351ment : Assistant", "window title")); setButtonText(QWizard::NextButton, tr("&Suivant >")); @@ -211,7 +214,7 @@ bool NewElementWizard::validStep1() { if (!step1_ok) { QET::MessageBox::critical( - this, + parentWidget(), tr("Erreur", "message box title"), tr("Vous devez s\351lectionner une cat\351gorie.", "message box content") );