VirtualBox

Ignore:
Timestamp:
Jun 30, 2016 3:56:12 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
108407
Message:

FE/Qt: Use the system configured fixed-width font for the log viewer on Solaris hosts as our hardcoded Courier font
family renders quite poorly on Solaris making the log harder to read.

File:
1 edited

Legend:

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

    r60362 r61961  
    2626# include <QDir>
    2727# include <QFileDialog>
     28#if defined(RT_OS_SOLARIS)
     29#  include <QFontDatabase>
     30# endif
    2831# include <QKeyEvent>
    2932# include <QLabel>
     
    11771180        {
    11781181            /* Configure Log-Viewer: */
     1182#if defined(RT_OS_SOLARIS)
     1183            /* Use system fixed-width font on Solaris hosts as the Courier family fonts don't render well. */
     1184            QFont font = QFontDatabase::systemFont(QFontDatabase::FixedFont);
     1185#else
    11791186            QFont font = pLogViewer->currentFont();
    11801187            font.setFamily("Courier New,courier");
     1188#endif
    11811189            pLogViewer->setFont(font);
    11821190            pLogViewer->setWordWrapMode(QTextOption::NoWrap);
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