VirtualBox

Ignore:
Timestamp:
Apr 24, 2008 4:11:40 PM (17 years ago)
Author:
vboxsync
Message:

FE/Qt4: QIMessageBox changes:

  • QIMessageBox uses QIDialog: So all warnings/errors/... are sheets on Mac OS X now.
  • use QDialogButtonBox for the bottom buttons
  • replaced some deprecated window flags
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/include/QIMessageBox.h

    r8170 r8369  
    66
    77/*
    8  * Copyright (C) 2006-2007 Sun Microsystems, Inc.
     8 * Copyright (C) 2006-2008 Sun Microsystems, Inc.
    99 *
    1010 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    2424#define __QIMessageBox_h__
    2525
     26#include "QIDialog.h"
     27
    2628/* Qt includes */
    27 #include <QDialog>
    2829#include <QMessageBox>
    2930#include <QCheckBox>
     
    3435class QPushButton;
    3536class QSpacerItem;
     37class QDialogButtonBox;
    3638
    37 class QIMessageBox : public QDialog
     39class QIMessageBox : public QIDialog
    3840{
    3941    Q_OBJECT
     
    6466    QIMessageBox (const QString &aCaption, const QString &aText,
    6567                  Icon aIcon, int aButton0, int aButton1 = 0, int aButton2 = 0,
    66                   QWidget *aParent = 0, const char *aName = 0, bool aModal = TRUE,
    67                   Qt::WFlags aFlags = Qt::WStyle_DialogBorder);
     68                  QWidget *aParent = 0, const char *aName = 0, bool aModal = TRUE);
    6869
    6970    QString buttonText (int aButton) const;
     
    108109    QTextEdit *mDetailsText;
    109110    QSpacerItem *mSpacer;
     111    QDialogButtonBox *mButtonBox;
    110112};
    111113
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette