- Timestamp:
- Apr 5, 2016 3:17:22 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageBasic2.cpp
r60338 r60339 193 193 } 194 194 } 195 else 196 { 197 /* Translate page: */ 198 retranslateUi(); 199 /* Create dialog: */ 200 QDialog *pDialog = new QDialog(this, Qt::Dialog); 201 AssertPtrReturnVoid(pDialog); 202 /* Create layout: */ 203 QVBoxLayout *pLayout = new QVBoxLayout(pDialog); 204 AssertPtrReturnVoid(pLayout); 195 } 196 else 197 { 198 /* Translate page: */ 199 retranslateUi(); 200 /* Create dialog: */ 201 QDialog *pDialog = new QDialog(this, Qt::Dialog); 202 AssertPtrReturnVoid(pDialog); 203 /* Create layout: */ 204 QVBoxLayout *pLayout = new QVBoxLayout(pDialog); 205 AssertPtrReturnVoid(pLayout); 206 { 207 /* Prepare dialog: */ 208 pDialog->resize(500, 100); 209 /*todo: show an error message and prohibit OVF import */ 205 210 { 206 /* Prepare dialog: */207 pDialog->resize(500, 100);208 /*todo: show an error message and prohibit OVF import */211 /* Create text-label: */ 212 QLabel *m_pTextLabel = new QLabel; 213 AssertPtrReturnVoid(m_pTextLabel); 209 214 { 210 /* Create text-label: */ 211 QLabel *m_pTextLabel = new QLabel; 212 AssertPtrReturnVoid(m_pTextLabel); 213 { 214 /* Configure text-label: */ 215 m_pTextLabel->setWordWrap(true); 216 m_pTextLabel->setText(tr("<b>The X509 certificate exists but hasn't been verified." 217 "You should stop here and interrupt the importing process.</b>")); 218 /* Add text-label into layout: */ 219 pLayout->addWidget(m_pTextLabel); 220 } 221 222 pLayout->addStretch(); 223 224 /* Create button-box: */ 225 QIDialogButtonBox *pButtonBox = new QIDialogButtonBox; 226 AssertPtrReturnVoid(pButtonBox); 227 { 228 /* Configure button-box: */ 229 pButtonBox->setStandardButtons(QDialogButtonBox::Ok); 230 pButtonBox->button(QDialogButtonBox::Ok)->setShortcut(Qt::Key_Enter); 231 connect(pButtonBox, SIGNAL(accepted()), this, SLOT(close())); 232 /* Add button-box into layout: */ 233 pLayout->addWidget(pButtonBox); 234 } 215 /* Configure text-label: */ 216 m_pTextLabel->setWordWrap(true); 217 m_pTextLabel->setText(tr("<b>The X509 certificate exists but hasn't been verified." 218 "You should stop here and interrupt the importing process.</b>")); 219 /* Add text-label into layout: */ 220 pLayout->addWidget(m_pTextLabel); 235 221 } 236 /* Show dialog in modal mode: */ 237 pDialog->exec(); 238 /* Delete dialog finally: */ 239 delete pDialog; 240 pDialog = 0; 222 223 pLayout->addStretch(); 224 225 /* Create button-box: */ 226 QIDialogButtonBox *pButtonBox = new QIDialogButtonBox; 227 AssertPtrReturnVoid(pButtonBox); 228 { 229 /* Configure button-box: */ 230 pButtonBox->setStandardButtons(QDialogButtonBox::Ok); 231 pButtonBox->button(QDialogButtonBox::Ok)->setShortcut(Qt::Key_Enter); 232 connect(pButtonBox, SIGNAL(accepted()), this, SLOT(close())); 233 /* Add button-box into layout: */ 234 pLayout->addWidget(pButtonBox); 235 } 241 236 } 237 /* Show dialog in modal mode: */ 238 pDialog->exec(); 239 /* Delete dialog finally: */ 240 delete pDialog; 241 pDialog = 0; 242 242 } 243 243 }
Note:
See TracChangeset
for help on using the changeset viewer.