Changeset 154 in tspsg-svn for trunk/src/mainwindow.cpp
- Timestamp:
- Mar 13, 2011, 9:23:53 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mainwindow.cpp
r151 r154 617 617 #endif // HANDHELD 618 618 619 #ifndef HANDHELD 619 620 dlg->resize(450, 350); 621 #endif 620 622 QApplication::restoreOverrideCursor(); 621 623 … … 1136 1138 } 1137 1139 if (step->price != INFINITY) { 1138 pic.drawText(QRectF(x - r, y - r, r * 2, r * 2), Qt::AlignCenter, isInteger(step->price) ? 1140 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())); 1139 1141 } else { 1140 1142 pic.drawText(QRectF(x - r, y - r, r * 2, r * 2), Qt::AlignCenter, "\n"INFSTR); … … 1579 1581 //! \hack HACK: A little hack for toolbar icons to have a sane size. 1580 1582 #if defined(HANDHELD) && !defined(Q_WS_MAEMO_5) 1583 #ifdef Q_WS_S60 1584 toolBarMain->setIconSize(QSize(logicalDpiX() / 5, logicalDpiY() / 5)); 1585 #else 1581 1586 toolBarMain->setIconSize(QSize(logicalDpiX() / 4, logicalDpiY() / 4)); 1582 #endif // HANDHELD 1587 #endif // Q_WS_S60 1588 #endif // HANDHELD && !Q_WS_MAEMO_5 1583 1589 QToolButton *tb = static_cast<QToolButton *>(toolBarMain->widgetForAction(actionFileSave)); 1584 if (tb != NULL) 1590 if (tb != NULL) { 1585 1591 tb->setMenu(menuFileSaveAs); 1586 1592 tb->setPopupMode(QToolButton::MenuButtonPopup);
Note: See TracChangeset
for help on using the changeset viewer.