Changeset 12 in tspsg-svn
- Timestamp:
- Oct 20, 2007, 9:16:42 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mainwindow.cpp
r11 r12 25 25 #include "mainwindow.h" 26 26 27 // TODO: Saving window state on close .27 // TODO: Saving window state on close 28 28 29 29 MainWindow::MainWindow(QWidget *parent) … … 83 83 // tableTask->setColumnWidth(k,tableTask->viewport()->width() / n); 84 84 // If number of cities increased we need to reset headers and set 85 // appropriate sizes for new column and row .85 // appropriate sizes for new column and row 86 86 if (increased) { 87 87 QTableWidgetItem *item = new QTableWidgetItem(trUtf8("Город ") + QVariant(n).toString()); … … 130 130 void MainWindow::Solve() 131 131 { 132 tabWidget->setCurrentIndex(1); 132 // tabWidget->setCurrentIndex(1); 133 CTSPSolver solver; 134 solver.solve(spinCities->value(),NULL); 133 135 // TODO: Task solving goes here :-) 134 136 } -
trunk/src/mainwindow.h
r11 r12 28 28 #include "ui_mainwindow.h" 29 29 #include "settingsdialog.h" 30 #include "tspsolver.h" 30 31 31 32 class MainWindow: public QMainWindow, Ui::MainWindow -
trunk/src/settingsdialog.h
r9 r12 41 41 }; 42 42 43 #endif // 43 #endif // SETTINGSDIALOG_H 44 44 -
trunk/tspsg.pro
r1 r12 1 1 ###################################################################### 2 # Automatically generated by qmake (2.01a) ?? 13. ??? 03:18:1020072 # Automatically generated by qmake (2.01a) ?? 20. ??? 18:37:06 2007 3 3 ###################################################################### 4 4 … … 9 9 10 10 # Input 11 HEADERS += src/mainwindow.h src/settingsdialog.h 11 HEADERS += src/mainwindow.h src/settingsdialog.h src/tspsolver.h 12 12 FORMS += ui/mainwindow.ui ui/settingsdialog.ui 13 SOURCES += src/main.cpp src/mainwindow.cpp src/settingsdialog.cpp 13 SOURCES += src/main.cpp \ 14 src/mainwindow.cpp \ 15 src/settingsdialog.cpp \ 16 src/tspsolver.cpp 14 17 RESOURCES += resources/tspsg.qrc 15 18 TRANSLATIONS += i18n/English.ts i18n/Ukrainian.ts
Note: See TracChangeset
for help on using the changeset viewer.