VirtualBox

Changeset 36594 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Apr 6, 2011 4:22:58 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
71035
Message:

FE/Qt: Another polishing trigger for settings dialog pages.

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

Legend:

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

    r36593 r36594  
    184184            /* If such page present we should fetch internal page cache: */
    185185            if (m_pages.contains(iPageId))
     186            {
    186187                m_pages[iPageId]->getFromCache();
     188                m_pages[iPageId]->polishPage();
     189            }
    187190        }
    188191        /* If thats the page we are waiting for,
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsPage.cpp

    r36589 r36594  
    2626    , m_dialogType(SettingsDialogType_Wrong)
    2727    , m_cId(-1)
    28     , m_fPolished(false)
    2928    , m_fProcessed(false)
    3029    , m_fFailed(false)
    3130    , m_pFirstWidget(0)
    3231{
    33 }
    34 
    35 void UISettingsPage::showEvent(QShowEvent *pEvent)
    36 {
    37     /* Polish page if necessary: */
    38     if (!m_fPolished)
    39     {
    40         m_fPolished = true;
    41         polishPage();
    42     }
    43     /* Call for base-class: */
    44     QIWithRetranslateUI<QWidget>::showEvent(pEvent);
    4532}
    4633
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsPage.h

    r36589 r36594  
    118118    void setFailed(bool fFailed) { m_fFailed = fFailed; }
    119119
     120    /* Virtual function to polish page content: */
     121    virtual void polishPage() {}
     122
    120123protected:
    121124
    122125    /* Settings page constructor, hidden: */
    123126    UISettingsPage(UISettingsPageType type);
    124 
    125     /* Show event: */
    126     void showEvent(QShowEvent *pEvent);
    127 
    128     /* Virtual function to polish page content: */
    129     virtual void polishPage() {}
    130127
    131128private:
     
    135132    SettingsDialogType m_dialogType;
    136133    int m_cId;
    137     bool m_fPolished;
    138134    bool m_fProcessed;
    139135    bool m_fFailed;
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