Changeset d45b48efe9 in tspsg for src/mainwindow.cpp


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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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));
Note: See TracChangeset for help on using the changeset viewer.