Changeset cb1608daaf in tspsg for src/main.cpp


Ignore:
Timestamp:
Sep 3, 2010, 5:34:21 PM (14 years ago)
Author:
Oleksii Serdiuk
Branches:
0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
Children:
b81c0a73b7
Parents:
7cd6da5021
git-author:
Oleksii Serdiuk <contacts@…> (09/03/10 17:34:21)
git-committer:
Oleksii Serdiuk <contacts@…> (06/29/12 19:45:57)
Message:

+ Added DejaVu? fonts to credits.

  • Don't load the font if it is already available.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main.cpp

    r7cd6da5021 rcb1608daaf  
    5353        qsrand(QDateTime::currentDateTime().toTime_t() ^ QCursor::pos().x() ^ QCursor::pos().y());
    5454
    55         QFontDatabase::addApplicationFont(":/files/DejaVuLGCSansMono.ttf");
     55        // Don't load the font if it is already available
     56        if (!QFontDatabase().families().contains(DEF_FONT_FACE))
     57                QFontDatabase::addApplicationFont(":/files/DejaVuLGCSansMono.ttf");
    5658
    5759QTranslator en;
Note: See TracChangeset for help on using the changeset viewer.