Changeset 23ad8db4a5 in tspsg
- Timestamp:
- Apr 9, 2011, 2:53:25 AM (14 years ago)
- Branches:
- 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
- Children:
- 144fbe6b96
- Parents:
- a885c3d9d2
- git-author:
- Oleksii Serdiuk <contacts@…> (04/09/11 02:53:25)
- git-committer:
- Oleksii Serdiuk <contacts@…> (06/29/12 19:45:58)
- Location:
- src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main.cpp
ra885c3d9d2 r23ad8db4a5 77 77 78 78 MainWindow mainwindow; 79 #ifdef Q_WS_S60 80 //! \hack HACK: A workaround to hide Actions menu item in Symbian. 81 QWidgetList widgets = QApplication::allWidgets(); 82 QWidget *w = 0; 83 foreach(w, widgets) { 84 w->setContextMenuPolicy(Qt::NoContextMenu); 85 } 86 #endif 87 79 88 #ifdef HANDHELD 80 89 mainwindow.showMaximized(); -
src/mainwindow.cpp
ra885c3d9d2 r23ad8db4a5 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 -
src/mainwindow.h
ra885c3d9d2 r23ad8db4a5 112 112 #endif // QT_NO_PRINTER 113 113 QAction *actionHelpCheck4Updates; 114 #ifdef Q_WS_S60 115 QAction *actionRightSoftKey; 116 #endif 114 117 QSettings *settings; 115 118 CTSPModel *tspmodel;
Note: See TracChangeset
for help on using the changeset viewer.