Changeset 36594 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Apr 6, 2011 4:22:58 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 71035
- 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 184 184 /* If such page present we should fetch internal page cache: */ 185 185 if (m_pages.contains(iPageId)) 186 { 186 187 m_pages[iPageId]->getFromCache(); 188 m_pages[iPageId]->polishPage(); 189 } 187 190 } 188 191 /* If thats the page we are waiting for, -
trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsPage.cpp
r36589 r36594 26 26 , m_dialogType(SettingsDialogType_Wrong) 27 27 , m_cId(-1) 28 , m_fPolished(false)29 28 , m_fProcessed(false) 30 29 , m_fFailed(false) 31 30 , m_pFirstWidget(0) 32 31 { 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);45 32 } 46 33 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsPage.h
r36589 r36594 118 118 void setFailed(bool fFailed) { m_fFailed = fFailed; } 119 119 120 /* Virtual function to polish page content: */ 121 virtual void polishPage() {} 122 120 123 protected: 121 124 122 125 /* Settings page constructor, hidden: */ 123 126 UISettingsPage(UISettingsPageType type); 124 125 /* Show event: */126 void showEvent(QShowEvent *pEvent);127 128 /* Virtual function to polish page content: */129 virtual void polishPage() {}130 127 131 128 private: … … 135 132 SettingsDialogType m_dialogType; 136 133 int m_cId; 137 bool m_fPolished;138 134 bool m_fProcessed; 139 135 bool m_fFailed;
Note:
See TracChangeset
for help on using the changeset viewer.