Changeset bbac1ebb13 in tspsg for src/mainwindow.cpp
- Timestamp:
- Sep 5, 2010, 11:03:48 PM (14 years ago)
- Branches:
- 0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
- Children:
- 2a436ea693
- Parents:
- b2e8e7ec71
- git-author:
- Oleksii Serdiuk <contacts@…> (09/05/10 23:03:48)
- git-committer:
- Oleksii Serdiuk <contacts@…> (06/29/12 19:45:57)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mainwindow.cpp
rb2e8e7ec71 rbbac1ebb13 160 160 QString file; 161 161 if ((fileName == tr("Untitled") + ".tspt") && settings->value("SaveLastUsed", DEF_SAVE_LAST_USED).toBool()) 162 file = settings->value( "LastUsed/TaskLoadPath").toString();162 file = settings->value(OS"/LastUsed/TaskLoadPath").toString(); 163 163 else 164 164 file = QFileInfo(fileName).path(); … … 168 168 return; 169 169 if (settings->value("SaveLastUsed", DEF_SAVE_LAST_USED).toBool()) 170 settings->setValue( "LastUsed/TaskLoadPath", QFileInfo(file).path());170 settings->setValue(OS"/LastUsed/TaskLoadPath", QFileInfo(file).path()); 171 171 172 172 if (!tspmodel->loadTask(file)) … … 201 201 if (selectedFile.isEmpty()) { 202 202 if (settings->value("SaveLastUsed", DEF_SAVE_LAST_USED).toBool()) { 203 selectedFile = settings->value( "LastUsed/SolutionSavePath").toString();203 selectedFile = settings->value(OS"/LastUsed/SolutionSavePath").toString(); 204 204 } 205 205 } else … … 237 237 selectedFile = file; 238 238 if (settings->value("SaveLastUsed", DEF_SAVE_LAST_USED).toBool()) 239 settings->setValue( "LastUsed/SolutionSavePath", QFileInfo(selectedFile).path());239 settings->setValue(OS"/LastUsed/SolutionSavePath", QFileInfo(selectedFile).path()); 240 240 QApplication::setOverrideCursor(QCursor(Qt::WaitCursor)); 241 241 #ifndef QT_NO_PRINTER … … 454 454 455 455 QString title; 456 #ifdef HANDHELD457 title += QString("<b>TSPSG<br>TSP Solver and Generator</b><br>");458 #else459 456 title += QString("<b>%1</b><br>").arg(QApplication::applicationName()); 460 #endif // HANDHELD461 457 title += QString("%1: <b>%2</b><br>").arg(tr("Version"), QApplication::applicationVersion()); 462 458 #ifndef HANDHELD … … 466 462 467 463 QString about; 468 about += QString("%1: <b>%2</b><br>").arg(tr("Target OS (ARCH)"), OS);464 about += QString("%1: <b>%2</b><br>").arg(tr("Target OS (ARCH)"), PLATFROM); 469 465 #ifndef STATIC_BUILD 470 466 about += QString("%1 (%2):<br>").arg(tr("Qt library"), tr("shared")); … … 474 470 about += QString("%1: <b>%2</b> (%3)<br>").arg(tr("Qt library"), QT_VERSION_STR, tr("static")); 475 471 #endif // STATIC_BUILD 476 about += tr("Buid <b>%1</b>, built on <b>%2</b> at <b>%3</b> ").arg(BUILD_NUMBER).arg(__DATE__).arg(__TIME__) + "<br>";472 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>"; 477 473 about += QString("%1: <b>%2</b><br>").arg(tr("Algorithm"), CTSPSolver::getVersionId()); 478 474 about += "<br>"; … … 1448 1444 QString file; 1449 1445 if ((fileName == tr("Untitled") + ".tspt") && settings->value("SaveLastUsed", DEF_SAVE_LAST_USED).toBool()) { 1450 file = settings->value( "LastUsed/TaskSavePath").toString();1446 file = settings->value(OS"/LastUsed/TaskSavePath").toString(); 1451 1447 if (!file.isEmpty()) 1452 1448 file.append("/"); … … 1462 1458 return false; 1463 1459 else if (settings->value("SaveLastUsed", DEF_SAVE_LAST_USED).toBool()) 1464 settings->setValue( "LastUsed/TaskSavePath", QFileInfo(file).path());1460 settings->setValue(OS"/LastUsed/TaskSavePath", QFileInfo(file).path()); 1465 1461 1466 1462 if (tspmodel->saveTask(file)) {
Note: See TracChangeset
for help on using the changeset viewer.