Changeset e26679937d in tspsg for src/mainwindow.cpp
- Timestamp:
- Sep 1, 2010, 8:31:16 PM (14 years ago)
- Branches:
- 0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
- Children:
- ac76a6a753
- Parents:
- 672e522ba2
- git-author:
- Oleksii Serdiuk <contacts@…> (09/01/10 20:31:16)
- git-committer:
- Oleksii Serdiuk <contacts@…> (06/29/12 19:45:57)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mainwindow.cpp
r672e522ba2 re26679937d 480 480 481 481 QString credits; 482 credits += tr("This software was created using LGPL version of <b>Qt framework</b>,<br>\n" 482 credits += tr("%1 was created using <b>Qt framework</b> licensed " 483 "under the terms of the GNU Lesser General Public License,<br>\n" 483 484 "see <a href=\"http://qt.nokia.com/\">qt.nokia.com</a><br>\n" 484 485 "<br>\n" 485 "Most icons used in this software are part of <b>OxygenIcons</b> project "486 "Most icons used in %1 are part of <b>Oxygen Icons</b> project " 486 487 "licensed according to the GNU Lesser General Public License,<br>\n" 487 488 "see <a href=\"http://www.oxygen-icons.org/\">www.oxygen-icons.org</a><br>\n" 488 489 "<br>\n" 489 "Country flag icons used in this software are part of the free " 490 "<b>Flag Icons</b> collection created by <b>IconDrawer</b>,<br>\n" 491 "see <a href=\"http://www.icondrawer.com/\">www.icondrawer.com</a>"); 490 "Country flag icons used in %1 are part of the free " 491 "<b>Flag Icons</b> collection created by <b>IconDrawer</b>,<br>\n" 492 "see <a href=\"http://www.icondrawer.com/\">www.icondrawer.com</a>") 493 .arg(QApplication::applicationName()); 492 494 493 495 QFile f(":/files/COPYING"); … … 736 738 pic.setRenderHints(QPainter::Antialiasing | QPainter::SmoothPixmapTransform); 737 739 QFont font = settings->value("Output/Font", QFont(getDefaultFont(), 9)).value<QFont>(); 738 // font.setBold(true); 739 font.setPointSizeF(font.pointSizeF() * 2); 740 if (settings->value("Output/HQGraph", DEF_HQ_GRAPH).toBool()) { 741 font.setWeight(QFont::DemiBold); 742 font.setPointSizeF(font.pointSizeF() * 2); 743 } 740 744 pic.setFont(font); 741 745 pic.setBrush(QBrush(QColor(Qt::white))); 746 if (settings->value("Output/HQGraph", DEF_HQ_GRAPH).toBool()) { 742 747 QPen pen = pic.pen(); 743 pen.setWidth(2); 744 pic.setPen(pen); 748 pen.setWidth(2); 749 pic.setPen(pen); 750 } 745 751 pic.setBackgroundMode(Qt::OpaqueMode); 746 752 } … … 874 880 pic.end(); 875 881 876 QImage i(graph.width() + 2, graph.height() + 2, QImage::Format_ARGB32);877 i.fill(0 );882 QImage i(graph.width() + 1, graph.height() + 1, QImage::Format_RGB32); 883 i.fill(0xFFFFFF); 878 884 pic.begin(&i); 879 885 pic.drawPicture(1, 1, graph); … … 883 889 QTextImageFormat img; 884 890 img.setName("tspsg://graph.pic"); 885 img.setWidth(i.width() / 2); 886 img.setHeight(i.height() / 2); 891 if (settings->value("Output/HQGraph", DEF_HQ_GRAPH).toBool()) { 892 img.setWidth(i.width() / 2); 893 img.setHeight(i.height() / 2); 894 } else { 895 img.setWidth(i.width()); 896 img.setHeight(i.height()); 897 } 887 898 888 899 cur.setPosition(imgpos); … … 1048 1059 void MainWindow::drawNode(QPainter &pic, int nstep, bool left, SStep *step) 1049 1060 { 1050 const int r = 70; 1061 int r; 1062 if (settings->value("Output/HQGraph", DEF_HQ_GRAPH).toBool()) 1063 r = 70; 1064 else 1065 r = 35; 1051 1066 qreal x, y; 1052 1067 if (step != NULL)
Note: See TracChangeset
for help on using the changeset viewer.