Changeset d45b48efe9 in tspsg for src


Ignore:
Timestamp:
Mar 12, 2011, 8:39:19 PM (14 years ago)
Author:
Oleksii Serdiuk
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)
Message:

Initial Symbian port.

Version 0.1.3.145-beta1, as published in the Nokia Ovi Store.

Location:
src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/defaults.h

    r7fd1756f1e rd45b48efe9  
    9292 */
    9393#ifdef Q_WS_S60
    94         #define DEF_FONT_SIZE 8
     94    #define DEF_FONT_SIZE 6
    9595#else
    9696        #define DEF_FONT_SIZE 10
  • src/main.cpp

    r7fd1756f1e rd45b48efe9  
    4141int main(int argc, char *argv[])
    4242{
     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
    4348QApplication app(argc, argv);
    4449        app.setOverrideCursor(QCursor(Qt::WaitCursor));
  • src/mainwindow.cpp

    r7fd1756f1e rd45b48efe9  
    622622#endif // Q_WS_WIN32
    623623
     624#ifndef HANDHELD
    624625        dlg->resize(450, 350);
     626#endif
    625627        QApplication::restoreOverrideCursor();
    626628
     
    11451147                }
    11461148                if (step->price != INFINITY) {
    1147                         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()));
     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()));
    11481150                } else {
    11491151                        pic.drawText(QRectF(x - r, y - r, r * 2, r * 2), Qt::AlignCenter, "\n"INFSTR);
     
    15891591        //! \hack HACK: A little hack for toolbar icons to have a sane size.
    15901592#if defined(HANDHELD) && !defined(Q_WS_MAEMO_5)
     1593#ifdef Q_WS_S60
     1594        toolBarMain->setIconSize(QSize(logicalDpiX() / 5, logicalDpiY() / 5));
     1595#else
    15911596        toolBarMain->setIconSize(QSize(logicalDpiX() / 4, logicalDpiY() / 4));
     1597#endif
    15921598#endif // HANDHELD
    15931599QToolButton *tb = static_cast<QToolButton *>(toolBarMain->widgetForAction(actionFileSave));
  • src/tspsolver.h

    r7fd1756f1e rd45b48efe9  
    3636 * \brief This value means infinity :-)
    3737 *
    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.
    4039 */
    41 #ifdef INFINITY
    42         #undef INFINITY
     40#ifndef INFINITY
     41        #define INFINITY std::numeric_limits<double>::infinity()
    4342#endif
    44 #define INFINITY std::numeric_limits<double>::infinity()
    4543
    4644/*!
Note: See TracChangeset for help on using the changeset viewer.