Changeset 159 in tspsg-svn for trunk/src/mainwindow.cpp
- Timestamp:
- Apr 9, 2011, 2:53:25 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mainwindow.cpp
r158 r159 492 492 about += QString("%1: <b>%2</b> (%3)<br>").arg(tr("Qt library"), QT_VERSION_STR, tr("static")); 493 493 #endif // STATIC_BUILD 494 about.append(QString("%1: <b>%2x%3</b><br>").arg("Logical DPI").arg(logicalDpiX()).arg(logicalDpiY())); 494 495 about += tr("Buid <b>%1</b>, built on <b>%2</b> at <b>%3</b> with <b>%4</b> compiler.").arg(BUILD_NUMBER).arg(__DATE__).arg(__TIME__).arg(COMPILER) + "<br>"; 495 496 about += QString("%1: <b>%2</b><br>").arg(tr("Algorithm"), CTSPSolver::getVersionId()); … … 1126 1127 else 1127 1128 r = logicalDpiX() / 2.54; 1129 #ifdef Q_WS_S60 1130 /*! \hack HACK: Solution graph on Symbian is visually larger than on 1131 * Windows Mobile. This coefficient makes it about the same size. 1132 */ 1133 r /= 1.3; 1134 #endif 1135 1128 1136 qreal x, y; 1129 1137 if (step != NULL) … … 1496 1504 actionHelpAbout->setStatusTip(tr("About %1").arg(QCoreApplication::applicationName())); 1497 1505 #endif // QT_NO_STATUSTIP 1506 1507 #ifdef Q_WS_S60 1508 actionRightSoftKey->setText(tr("E&xit")); 1509 #endif 1498 1510 } 1499 1511 … … 1599 1611 #if defined(HANDHELD) && !defined(Q_WS_MAEMO_5) 1600 1612 #ifdef Q_WS_S60 1601 toolBarMain->setIconSize(QSize(logicalDpiX() / 5 , logicalDpiY() / 5));1613 toolBarMain->setIconSize(QSize(logicalDpiX() / 5.2, logicalDpiY() / 5.2)); 1602 1614 #else 1603 1615 toolBarMain->setIconSize(QSize(logicalDpiX() / 4, logicalDpiY() / 4)); … … 1678 1690 #endif // HANDHELD 1679 1691 1692 #ifdef Q_WS_S60 1693 // Replace Exit on the right soft key with our own exit action. 1694 // This makes it translatable. 1695 actionRightSoftKey = new QAction(this); 1696 actionRightSoftKey->setSoftKeyRole(QAction::NegativeSoftKey); 1697 connect(actionRightSoftKey, SIGNAL(triggered()), SLOT(close())); 1698 addAction(actionRightSoftKey); 1699 #endif 1700 1680 1701 retranslateUi(false); 1681 1702
Note: See TracChangeset
for help on using the changeset viewer.