Changeset 94168 in vbox
- Timestamp:
- Mar 11, 2022 11:46:56 AM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 150424
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.cpp
r94089 r94168 20 20 #include <QClipboard> 21 21 #include <QFile> 22 #include <QFontDatabase> 22 23 #include <QGuiApplication> 23 24 #include <QMenuBar> … … 1521 1522 { 1522 1523 /* Prepare dialog: */ 1523 Q Dialog *pDialog = new QDialog(this);1524 if (p Dialog)1525 { 1526 p Dialog->setAttribute(Qt::WA_DeleteOnClose);1527 p Dialog->setWindowTitle(QString("%1 - Console Log").arg(strName));1528 1529 QVBoxLayout *pLayout = new QVBoxLayout(p Dialog);1524 QWidget *pWindow = new QWidget(this, Qt::Window); 1525 if (pWindow) 1526 { 1527 pWindow->setAttribute(Qt::WA_DeleteOnClose); 1528 pWindow->setWindowTitle(QString("%1 - Console Log").arg(strName)); 1529 1530 QVBoxLayout *pLayout = new QVBoxLayout(pWindow); 1530 1531 if (pLayout) 1531 1532 { 1532 QTextEdit *pTextEdit = new QTextEdit(p Dialog);1533 QTextEdit *pTextEdit = new QTextEdit(pWindow); 1533 1534 if (pTextEdit) 1534 1535 { 1536 pTextEdit->setFont(QFontDatabase::systemFont(QFontDatabase::FixedFont)); 1537 pTextEdit->setReadOnly(true); 1535 1538 pTextEdit->setText(strLog); 1536 1539 pLayout->addWidget(pTextEdit); … … 1540 1543 1541 1544 /* Show dialog: */ 1542 p Dialog->show();1545 pWindow->show(); 1543 1546 } 1544 1547
Note:
See TracChangeset
for help on using the changeset viewer.