Changeset 51 in tspsg-svn
- Timestamp:
- Aug 3, 2009, 11:39:07 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mainwindow.cpp
r50 r51 92 92 setFileName(); 93 93 spinCities->setValue(settings->value("NumCities",DEF_NUM_CITIES).toInt()); 94 tspmodel->setNumCities(spinCities->value()); 94 95 } 95 96 taskView->setModel(tspmodel); … … 280 281 return; 281 282 selectedFile = files.first(); 283 QApplication::setOverrideCursor(QCursor(Qt::WaitCursor)); 282 284 #if QT_VERSION >= 0x040500 283 285 QTextDocumentWriter dw(selectedFile); … … 288 290 // Qt < 4.5 has no QTextDocumentWriter class 289 291 QFile file(selectedFile); 290 if (!file.open(QFile::WriteOnly)) 291 return; 292 if (!file.open(QFile::WriteOnly)) { 293 QApplication::restoreOverrideCursor(); 294 return; 295 } 292 296 QTextStream ts(&file); 293 297 ts.setCodec(QTextCodec::codecForName("UTF-8")); 294 298 ts << solutionText->document()->toHtml("UTF-8"); 299 file.close(); 295 300 #endif // QT_VERSION >= 0x040500 301 QApplication::restoreOverrideCursor(); 296 302 } 297 303 -
trunk/ui/mainwindow.ce.ui
r50 r51 644 644 </connection> 645 645 <connection> 646 <sender>button BackToTask</sender>646 <sender>buttonSaveSolution</sender> 647 647 <signal>clicked()</signal> 648 648 <receiver>actionFileSaveAsSolution</receiver> … … 650 650 <hints> 651 651 <hint type="sourcelabel"> 652 <x>1 72</x>653 <y> 299</y>652 <x>102</x> 653 <y>785</y> 654 654 </hint> 655 655 <hint type="destinationlabel">
Note: See TracChangeset
for help on using the changeset viewer.