VirtualBox

Ignore:
Timestamp:
Apr 11, 2016 10:56:08 AM (9 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:8249: Few style fixes for r106412, s.a. r106481.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageBasic2.cpp

    r60395 r60419  
    4040
    4141/*********************************************************************************************************************************
    42 *   Class UIApplianceCertificateViewer.                                                                                          *
     42*   Class UIApplianceUnverifiedCertificateViewer implementation.                                                                 *
    4343*********************************************************************************************************************************/
    4444
    45 UIApplianceUnverifiedCertificate::UIApplianceUnverifiedCertificate(QWidget *pParent, const CCertificate &certificate)
     45UIApplianceUnverifiedCertificateViewer::UIApplianceUnverifiedCertificateViewer(QWidget *pParent, const CCertificate &certificate)
    4646    : QIWithRetranslateUI<QIDialog>(pParent)
    4747    , m_certificate(certificate)
    48     , m_pTextLabel(NULL)
    49     , m_pTextBrowser(NULL)
     48    , m_pTextLabel(0)
     49    , m_pTextBrowser(0)
    5050{
    5151    /* Prepare: */
     
    5353}
    5454
    55 void UIApplianceUnverifiedCertificate::prepare()
     55void UIApplianceUnverifiedCertificateViewer::prepare()
    5656{
    5757    /* Create layout: */
     
    8585            /* Configure button-box: */
    8686            pButtonBox->setStandardButtons(QDialogButtonBox::Yes | QDialogButtonBox::No);
    87 
    8887            pButtonBox->button(QDialogButtonBox::Yes)->setShortcut(Qt::Key_Enter);
     88            //pButtonBox->button(QDialogButtonBox::No)->setShortcut(Qt::Key_Esc);
    8989            connect(pButtonBox, SIGNAL(accepted()), this, SLOT(accept()));
    90 
    91             //pButtonBox->button(QDialogButtonBox::No)->setShortcut(Qt::Key_Esc);
    9290            connect(pButtonBox, SIGNAL(rejected()), this, SLOT(reject()));
    93 
    9491            /* Add button-box into layout: */
    9592            pLayout->addWidget(pButtonBox);
     
    10097}
    10198
    102 void UIApplianceUnverifiedCertificate::retranslateUi()
     99void UIApplianceUnverifiedCertificateViewer::retranslateUi()
    103100{
    104101    /* Translate dialog title: */
     
    223220        m_strSignedBy = certificate.GetFriendlyName();
    224221
    225         /*
    226          * If trusted, just select the right message.
    227          */
     222        /* If trusted, just select the right message: */
    228223        if (certificate.GetTrusted())
    229224        {
     
    235230        else
    236231        {
    237             /*
    238              * Not trusted!  Must ask the user whether to continue in this case.
    239              */
     232            /* Not trusted!  Must ask the user whether to continue in this case: */
    240233            m_enmCertText = !certificate.GetExpired() ? kCertText_SelfSignedUnverified : kCertText_SelfSignedUnverified;
     234
     235            /* Translate page early: */
    241236            retranslateUi();
    242237
    243238            /* Instantiate the dialog: */
    244             QPointer<UIApplianceUnverifiedCertificate> pDialog = new UIApplianceUnverifiedCertificate(this, certificate);
     239            QPointer<UIApplianceUnverifiedCertificateViewer> pDialog = new UIApplianceUnverifiedCertificateViewer(this, certificate);
    245240            AssertPtrReturnVoid(pDialog.data());
    246241
     
    250245            /* Leave if destroyed prematurely: */
    251246            if (!pDialog)
    252                 return; /** @todo r=bird: what happened to this dialog in that case??, will check this case later. */
     247                return;
    253248            /* Delete viewer: */
    254249            if (pDialog)
    255250            {
    256251                delete pDialog;
    257                 pDialog = NULL;
     252                pDialog = 0;
    258253            }
    259254
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageBasic2.h

    r60341 r60419  
    8282};
    8383
    84 /**
    85  * Dialog for asking consent to continue with unverifiable certificate.
    86  */
    87 class UIApplianceUnverifiedCertificate : public QIWithRetranslateUI<QIDialog>
     84/** QIDialog extension
     85  * asking for consent to continue with unverifiable certificate. */
     86class UIApplianceUnverifiedCertificateViewer : public QIWithRetranslateUI<QIDialog>
    8887{
    8988    Q_OBJECT;
    9089
    9190public:
     91
    9292    /** Constructs appliance @a certificate viewer for passed @a pParent. */
    93     UIApplianceUnverifiedCertificate(QWidget *pParent, const CCertificate &certificate);
     93    UIApplianceUnverifiedCertificateViewer(QWidget *pParent, const CCertificate &certificate);
    9494
    9595protected:
     96
    9697    /** Prepares all. */
    9798    void prepare();
     
    101102
    102103private:
     104
    103105    /** Holds the certificate reference. */
    104106    const CCertificate &m_certificate;
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