Changeset 27 in tspsg-svn for trunk/src/mainwindow.cpp
- Timestamp:
- Jun 23, 2009, 7:56:29 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mainwindow.cpp
r26 r27 26 26 #include <QPrintDialog> 27 27 #endif // Q_OS_WINCE 28 #include "defines.h"29 28 #include "mainwindow.h" 30 29 … … 124 123 row[c] = tspmodel->index(r,c).data(Qt::UserRole).toDouble(&ok); 125 124 if (!ok) { 126 QMessageBox(QMessageBox::Critical,trUtf8(" Ошибка в данных"),QString(trUtf8("Ошибка в ячейке [Строка %1; Колонка %2]: Неверный формат данных.")).arg(r + 1).arg(c + 1),QMessageBox::Ok,this).exec();125 QMessageBox(QMessageBox::Critical,trUtf8("Data error"),QString(trUtf8("Error in cell [Row %1; Column %2]: Invalid data format.")).arg(r + 1).arg(c + 1),QMessageBox::Ok,this).exec(); 127 126 return; 128 127 } … … 133 132 sStep *root = solver.solve(spinCities->value(),matrix); 134 133 if (!root) 135 QMessageBox(QMessageBox::Critical,trUtf8(" Ошибка при решении"),trUtf8("Во время решения задачи возникла ошибка"),QMessageBox::Ok,this).exec();134 QMessageBox(QMessageBox::Critical,trUtf8("Solution error"),trUtf8("There was an error while solving the task."),QMessageBox::Ok,this).exec(); 136 135 // tabWidget->setCurrentIndex(1); 137 136 } … … 147 146 \n\ 148 147 TSPSG is licensed under the terms of the GNU General Public License. You should have received a copy of the GNU General Public License along with TSPSG.").arg(QDate().toString("%Y"),QT_VERSION_STR,qVersion()); 149 QMessageBox(QMessageBox::Information,"About",about ).exec();148 QMessageBox(QMessageBox::Information,"About",about,QMessageBox::Ok,this).exec(); 150 149 } 151 150
Note: See TracChangeset
for help on using the changeset viewer.