Changeset d45b48efe9 in tspsg
- 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)
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
install.pri
r7fd1756f1e rd45b48efe9 94 94 # Symbian 95 95 symbian { 96 TARGET = TSPSG$${D} 97 96 98 # qmake for Symbian (as of Qt 4.6.2) has a bug: file masks doesn't work, so we need to specify all files manually 97 99 share.sources = $$share.files … … 101 103 # l10n.path = l10n 102 104 docs.sources = $$docs.files 103 docs.pkg_prerules = \104 "\"README.txt\" - \"\", FILETEXT, TEXTCONTINUE" \105 "\"COPYING\" - \"\", FILETEXT, TEXTEXIT"105 # docs.pkg_prerules = \ 106 # "\"README.txt\" - \"\", FILETEXT, TEXTCONTINUE" \ 107 # "\"COPYING\" - \"\", FILETEXT, TEXTEXIT" 106 108 DEPLOYMENT += share docs # l10n 107 # DEPLOYMENT_PLUGIN += qjpeg qtiff qsvgicon109 # DEPLOYMENT_PLUGIN += qjpeg qtiff # qsvgicon 108 110 109 111 ICON = resources/tspsg.svg 112 TARGET.EPOCHEAPSIZE = 0x20000 0x1100000 113 # OVI Publish - 0x2003AEFB, Self-signed - 0xA89FD7A3 114 TARGET.UID3 = 0xA89FD7A3 115 # TARGET.UID3 = 0x2003AEFB 110 116 111 appinfo = \ 112 "$$LITERAL_HASH{\"TSPSG\"},(0xEb9dce0e),$$BUILD_VERSION_MAJOR,$$BUILD_VERSION_MINOR,$$BUILD_RELEASE" 113 vendorinfo = \ 114 "%{\"l-homes.org\"}" \ 115 ":\"l-homes.org\"" 116 default_deployment.pkg_prerules = appinfo vendorinfo 117 DEPLOYMENT.installer_header = "$${LITERAL_HASH}{\"TSPSG Installer\"},(0xA000D7CE),1,0,0" 117 languages="&EN,RU,UK" 118 package_header = "$$LITERAL_HASH{" \ 119 " \"$$QMAKE_TARGET_PRODUCT\"," \ 120 " \"$$QMAKE_TARGET_PRODUCT\"," \ 121 " \"$$QMAKE_TARGET_PRODUCT\"" \ 122 "},($$TARGET.UID3),$$BUILD_VERSION_MAJOR,$${BUILD_VERSION_MINOR}$${BUILD_RELEASE},$$REVISION" 123 vendor = \ 124 "%{\"Oleksii Serdiuk\",\"Алексей Сердюк\",\"Олексій Сердюк\"}" \ 125 ":\"Oleksii Serdiuk\"" 126 # logo = \ 127 # "=\"resources/tspsg.png\",\"image/png\",\"\"" 128 dependencies = \ 129 "; Depend on Qt $${QT_MAJOR_VERSION}.$${QT_MINOR_VERSION}.$${QT_PATCH_VERSION}" \ 130 "(0x2001E61C),$${QT_MAJOR_VERSION},$${QT_MINOR_VERSION},$${QT_PATCH_VERSION},{\"Qt\",\"Qt\",\"Qt\"}" \ 131 "; Declare the supported platforms" \ 132 "; Symbian^1" \ 133 "[0x1028315F],0,0,0,{\"S60ProductID\",\"S60ProductID\",\"S60ProductID\"}" \ 134 "; Symbian^3" \ 135 "[0x20022E6D],0,0,0,{\"S60ProductID\",\"S60ProductID\",\"S60ProductID\"}" 136 137 default_deployment.pkg_prerules -= pkg_platform_dependencies pkg_depends_qt 138 default_deployment.pkg_prerules += languages package_header vendor dependencies 139 # default_deployment.pkg_prerules += languages package_header vendor logo dependencies 140 # OVI Publish - 0x2002CCCF, Self-signed - 0xA000D7CE 141 DEPLOYMENT.installer_header = "$${LITERAL_HASH}{" \ 142 "\"$$QMAKE_TARGET_PRODUCT Installer\"," \ 143 "\"Установщик $$QMAKE_TARGET_PRODUCT\"," \ 144 "\"Встановлювач $$QMAKE_TARGET_PRODUCT\"" \ 145 "},(0xA000D7CE),$$BUILD_VERSION_MAJOR,$${BUILD_VERSION_MINOR}$${BUILD_RELEASE},$$REVISION" 146 # "},(0x2002CCCF),$$BUILD_VERSION_MAJOR,$${BUILD_VERSION_MINOR}$${BUILD_RELEASE},$$REVISION" 118 147 } -
src/defaults.h
r7fd1756f1e rd45b48efe9 92 92 */ 93 93 #ifdef Q_WS_S60 94 #define DEF_FONT_SIZE 8 94 #define DEF_FONT_SIZE 6 95 95 #else 96 96 #define DEF_FONT_SIZE 10 -
src/main.cpp
r7fd1756f1e rd45b48efe9 41 41 int main(int argc, char *argv[]) 42 42 { 43 #ifdef Q_WS_S60 44 // No enough memory for solution graph generation with tasks 45 // of 20 and more cities if we use non-raster graphics system. 46 QApplication::setGraphicsSystem("raster"); 47 #endif 43 48 QApplication app(argc, argv); 44 49 app.setOverrideCursor(QCursor(Qt::WaitCursor)); -
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)); -
src/tspsolver.h
r7fd1756f1e rd45b48efe9 36 36 * \brief This value means infinity :-) 37 37 * 38 * Some libraries already have \c INFINITY defined. 39 * We need to redefine it for the \c INFINITY to always have the same value. 38 * Define \c INFINITY if it's not already defined. 40 39 */ 41 #if def INFINITY42 # undef INFINITY40 #ifndef INFINITY 41 #define INFINITY std::numeric_limits<double>::infinity() 43 42 #endif 44 #define INFINITY std::numeric_limits<double>::infinity()45 43 46 44 /*! -
tspsg.pro
r7fd1756f1e rd45b48efe9 64 64 PRL = $$[QT_INSTALL_LIBS] QtCore.framework QtCore.prl 65 65 } else:symbian { 66 PRL = $$[QT_INSTALL_LIBS] QtCore.prl66 # PRL = $$[QT_INSTALL_LIBS] QtCore.prl 67 67 } else:unix { 68 68 PRL = $$[QT_INSTALL_LIBS] libQtCore.prl … … 70 70 PRL = $$[QT_INSTALL_LIBS] QtCore.prl 71 71 } 72 include($$join(PRL, "/")) 73 contains(QMAKE_PRL_CONFIG, static) { 74 # We "embed" SVG icon support on static build 75 DEFINES += STATIC_BUILD 76 # !nosvg:QTPLUGIN += qsvgicon 72 !isEmpty(PRL) { 73 include($$join(PRL, "/")) 74 contains(QMAKE_PRL_CONFIG, static) { 75 # We "embed" SVG icon support on static build 76 DEFINES += STATIC_BUILD 77 # !nosvg:QTPLUGIN += qsvgicon 78 } 77 79 } 78 80
Note: See TracChangeset
for help on using the changeset viewer.