Sous MacOS, integration de l'assistant de creation d'un nouvel element a la fenetre parente.

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@736 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavier
2009-08-15 12:48:45 +00:00
parent 38c07b7d23
commit 301139c7dd

View File

@@ -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")
);