Changeset cb1608daaf in tspsg for src


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.
Location:
src
Files:
2 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;
  • src/mainwindow.cpp

    r7cd6da5021 rcb1608daaf  
    501501                "Country flag icons used in %1 are part of the free "
    502502                "<b>Flag&nbsp;Icons</b> collection created by <b>IconDrawer</b>,<br>\n"
    503                 "see <a href=\"http://www.icondrawer.com/\">www.icondrawer.com</a>")
     503                "see <a href=\"http://www.icondrawer.com/\">www.icondrawer.com</a><br>\n"
     504                "<br>\n"
     505                "%1 comes with the default \"embedded\" font <b>DejaVu&nbsp;LGC&nbsp;Sans&nbsp;"
     506                "Mono</b> from the <b>DejaVu fonts</b> licensed under a Free license</a>,<br>\n"
     507                "see <a href=\"http://dejavu-fonts.org/\">dejavu-fonts.org</a>.")
    504508                        .arg(QApplication::applicationName());
    505509
Note: See TracChangeset for help on using the changeset viewer.