mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 13:30:34 +01:00
fix minor graphics bug with new element wizard
on windows vista and 7 with the Aero style. git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2577 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -39,9 +39,13 @@ NewElementWizard::NewElementWizard(QWidget *parent, Qt::WindowFlags f) :
|
|||||||
chosen_category(0)
|
chosen_category(0)
|
||||||
{
|
{
|
||||||
setOptions(options() & ~QWizard::NoCancelButton);
|
setOptions(options() & ~QWizard::NoCancelButton);
|
||||||
#ifdef Q_WS_MAC
|
|
||||||
setWindowFlags(Qt::Sheet);
|
#ifdef Q_WS_WIN
|
||||||
|
setWizardStyle(QWizard::AeroStyle);
|
||||||
|
#elif Q_WS_MAC
|
||||||
|
setWizardStyle(QWizard::MacStyle);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
setPixmap(LogoPixmap, QPixmap(":/ico/256x256/qelectrotech.png").scaled(64, 64, Qt::KeepAspectRatio, Qt::SmoothTransformation));
|
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"));
|
setWindowTitle(tr("Cr\351er un nouvel \351l\351ment : Assistant", "window title"));
|
||||||
setButtonText(QWizard::NextButton, tr("&Suivant >"));
|
setButtonText(QWizard::NextButton, tr("&Suivant >"));
|
||||||
|
|||||||
Reference in New Issue
Block a user