Changeset 86848 in vbox
- Timestamp:
- Nov 10, 2020 4:49:42 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.cpp
r86846 r86848 135 135 /** Prepares all. */ 136 136 void prepare(); 137 /** Prepares widgets. */ 138 void prepareWidgets(); 139 /** Prepare editor contents. */ 140 void prepareEditorContents(); 137 141 138 142 /** Loads file contents. … … 203 207 void UIAcquirePublicKeyDialog::prepare() 204 208 { 209 /* Prepare widgets: */ 210 prepareWidgets(); 211 /* Prepare editor contents: */ 212 prepareEditorContents(); 213 /* Apply language settings: */ 214 retranslateUi(); 215 216 /* Resize to suitable size: */ 217 const int iMinimumHeightHint = minimumSizeHint().height(); 218 resize(iMinimumHeightHint * 2, iMinimumHeightHint); 219 } 220 221 void UIAcquirePublicKeyDialog::prepareWidgets() 222 { 205 223 /* Prepare layout: */ 206 224 QVBoxLayout *pLayout = new QVBoxLayout(this); … … 224 242 } 225 243 } 226 227 /* Apply language settings: */ 228 retranslateUi(); 229 230 /* Load last remembered file contents: */ 244 } 245 246 void UIAcquirePublicKeyDialog::prepareEditorContents() 247 { 231 248 loadFileContents(gEDataManager->cloudConsolePublicKeyPath(), true /* ignore errors */); 232 233 /* Resize to suitable size: */234 const int iMinimumHeightHint = minimumSizeHint().height();235 resize(iMinimumHeightHint * 2, iMinimumHeightHint);236 249 } 237 250
Note:
See TracChangeset
for help on using the changeset viewer.

