VirtualBox

Changeset 94168 in vbox


Ignore:
Timestamp:
Mar 11, 2022 11:46:56 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
150424
Message:

FE/Qt: bugref:9722: VirtualBox Manager: Few fixes for cloud log browser implemented in r150334; Simple Window instead of Dialog, monospace font, read-only browser.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.cpp

    r94089 r94168  
    2020#include <QClipboard>
    2121#include <QFile>
     22#include <QFontDatabase>
    2223#include <QGuiApplication>
    2324#include <QMenuBar>
     
    15211522{
    15221523    /* Prepare dialog: */
    1523     QDialog *pDialog = new QDialog(this);
    1524     if (pDialog)
    1525     {
    1526         pDialog->setAttribute(Qt::WA_DeleteOnClose);
    1527         pDialog->setWindowTitle(QString("%1 - Console Log").arg(strName));
    1528 
    1529         QVBoxLayout *pLayout = new QVBoxLayout(pDialog);
     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);
    15301531        if (pLayout)
    15311532        {
    1532             QTextEdit *pTextEdit = new QTextEdit(pDialog);
     1533            QTextEdit *pTextEdit = new QTextEdit(pWindow);
    15331534            if (pTextEdit)
    15341535            {
     1536                pTextEdit->setFont(QFontDatabase::systemFont(QFontDatabase::FixedFont));
     1537                pTextEdit->setReadOnly(true);
    15351538                pTextEdit->setText(strLog);
    15361539                pLayout->addWidget(pTextEdit);
     
    15401543
    15411544    /* Show dialog: */
    1542     pDialog->show();
     1545    pWindow->show();
    15431546}
    15441547
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette