Changeset 119 in tspsg-svn for trunk/src/globals.h


Ignore:
Timestamp:
May 3, 2010, 4:35:38 PM (14 years ago)
Author:
laleppa
Message:
  • Improved the default font selection logic: The system default monospace (desktop systems)/sans-serif (handheld devices) font is now selected.
  • Two icons were mixed. Corrected this.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/globals.h

    r118 r119  
    108108}
    109109
     110/*!
     111 * \brief Returns the default font for solution output.
     112 * \return The family name of the default font.
     113 */
     114inline QString getDefaultFont()
     115{
     116QFont f;
     117#ifdef HANDHELD
     118        f.setStyleHint(QFont::SansSerif);
     119#else // HANDHELD
     120        f.setStyleHint(QFont::TypeWriter);
     121#endif // HANDHELD
     122        return f.defaultFamily();
     123}
     124
    110125#ifdef Q_OS_WIN32
    111126/*!
Note: See TracChangeset for help on using the changeset viewer.