Changeset d45b48efe9 in tspsg for src
- Timestamp:
- Mar 12, 2011, 8:39:19 PM (14 years ago)
- Branches:
- 0.1.3.145-beta1-symbian
- Parents:
- 7fd1756f1e
- git-author:
- Oleksii Serdiuk <contacts@…> (03/12/11 20:39:19)
- git-committer:
- Oleksii Serdiuk <contacts@…> (06/29/12 19:45:58)
- Location:
- src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/defaults.h
r7fd1756f1e rd45b48efe9 92 92 */ 93 93 #ifdef Q_WS_S60 94 #define DEF_FONT_SIZE 8 94 #define DEF_FONT_SIZE 6 95 95 #else 96 96 #define DEF_FONT_SIZE 10 -
src/main.cpp
r7fd1756f1e rd45b48efe9 41 41 int main(int argc, char *argv[]) 42 42 { 43 #ifdef Q_WS_S60 44 // No enough memory for solution graph generation with tasks 45 // of 20 and more cities if we use non-raster graphics system. 46 QApplication::setGraphicsSystem("raster"); 47 #endif 43 48 QApplication app(argc, argv); 44 49 app.setOverrideCursor(QCursor(Qt::WaitCursor)); -
src/mainwindow.cpp
r7fd1756f1e rd45b48efe9 622 622 #endif // Q_WS_WIN32 623 623 624 #ifndef HANDHELD 624 625 dlg->resize(450, 350); 626 #endif 625 627 QApplication::restoreOverrideCursor(); 626 628 … … 1145 1147 } 1146 1148 if (step->price != INFINITY) { 1147 pic.drawText(QRectF(x - r, y - r, r * 2, r * 2), Qt::AlignCenter, isInteger(step->price) ? 1149 pic.drawText(QRectF(x - r, y - r, r * 2, r * 2), Qt::AlignCenter, isInteger(step->price) ? QString("\n%1").arg(step->price) : QString("\n%1").arg(step->price, 0, 'f', settings->value("Task/FractionalAccuracy", DEF_FRACTIONAL_ACCURACY).toInt())); 1148 1150 } else { 1149 1151 pic.drawText(QRectF(x - r, y - r, r * 2, r * 2), Qt::AlignCenter, "\n"INFSTR); … … 1589 1591 //! \hack HACK: A little hack for toolbar icons to have a sane size. 1590 1592 #if defined(HANDHELD) && !defined(Q_WS_MAEMO_5) 1593 #ifdef Q_WS_S60 1594 toolBarMain->setIconSize(QSize(logicalDpiX() / 5, logicalDpiY() / 5)); 1595 #else 1591 1596 toolBarMain->setIconSize(QSize(logicalDpiX() / 4, logicalDpiY() / 4)); 1597 #endif 1592 1598 #endif // HANDHELD 1593 1599 QToolButton *tb = static_cast<QToolButton *>(toolBarMain->widgetForAction(actionFileSave)); -
src/tspsolver.h
r7fd1756f1e rd45b48efe9 36 36 * \brief This value means infinity :-) 37 37 * 38 * Some libraries already have \c INFINITY defined. 39 * We need to redefine it for the \c INFINITY to always have the same value. 38 * Define \c INFINITY if it's not already defined. 40 39 */ 41 #if def INFINITY42 # undef INFINITY40 #ifndef INFINITY 41 #define INFINITY std::numeric_limits<double>::infinity() 43 42 #endif 44 #define INFINITY std::numeric_limits<double>::infinity()45 43 46 44 /*!
Note: See TracChangeset
for help on using the changeset viewer.