Changeset d45b48efe9 in tspsg for src/mainwindow.cpp
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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));
Note: See TracChangeset
for help on using the changeset viewer.