VirtualBox

Changeset 35103 in vbox for trunk/src


Ignore:
Timestamp:
Dec 14, 2010 4:33:26 PM (14 years ago)
Author:
vboxsync
Message:

FE/Qt4: use the correct parent for the license viewer

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxLicenseViewer.cpp

    r34812 r35103  
    3434#endif /* !VBOX_WITH_PRECOMPILED_HEADERS */
    3535
    36 VBoxLicenseViewer::VBoxLicenseViewer()
    37     : QIWithRetranslateUI<QDialog>()
     36VBoxLicenseViewer::VBoxLicenseViewer(QWidget *pParent /* = 0 */)
     37    : QIWithRetranslateUI2<QDialog>(pParent)
    3838    , mLicenseText (0)
    3939    , mAgreeButton (0)
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxLicenseViewer.h

    r34811 r35103  
    3131 *  This class is used to show a user license under linux.
    3232 */
    33 class VBoxLicenseViewer : public QIWithRetranslateUI<QDialog>
     33class VBoxLicenseViewer : public QIWithRetranslateUI2<QDialog>
    3434{
    3535    Q_OBJECT;
     
    3737public:
    3838
    39     VBoxLicenseViewer();
     39    VBoxLicenseViewer(QWidget *pParent = 0);
    4040
    4141    int showLicenseFromFile(const QString &strLicenseFileName);
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsExtension.cpp

    r35100 r35103  
    166166    {
    167167        QString strLicense = extPackFile.GetLicense();
    168         VBoxLicenseViewer licenseViewer;
     168        VBoxLicenseViewer licenseViewer(pParent);
    169169        if (licenseViewer.showLicenseFromString(strLicense) != QDialog::Accepted)
    170170            return;
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