Changeset 51 in tspsg-svn for trunk


Ignore:
Timestamp:
Aug 3, 2009, 11:39:07 PM (15 years ago)
Author:
laleppa
Message:

Fixed wrong signal sender in mainwindow.ce.ui.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/mainwindow.cpp

    r50 r51  
    9292                setFileName();
    9393                spinCities->setValue(settings->value("NumCities",DEF_NUM_CITIES).toInt());
     94                tspmodel->setNumCities(spinCities->value());
    9495        }
    9596        taskView->setModel(tspmodel);
     
    280281                return;
    281282        selectedFile = files.first();
     283        QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
    282284#if QT_VERSION >= 0x040500
    283285QTextDocumentWriter dw(selectedFile);
     
    288290        // Qt < 4.5 has no QTextDocumentWriter class
    289291QFile file(selectedFile);
    290         if (!file.open(QFile::WriteOnly))
    291                 return;
     292        if (!file.open(QFile::WriteOnly)) {
     293                QApplication::restoreOverrideCursor();
     294                return;
     295        }
    292296QTextStream ts(&file);
    293297        ts.setCodec(QTextCodec::codecForName("UTF-8"));
    294298        ts << solutionText->document()->toHtml("UTF-8");
     299        file.close();
    295300#endif // QT_VERSION >= 0x040500
     301        QApplication::restoreOverrideCursor();
    296302}
    297303
  • trunk/ui/mainwindow.ce.ui

    r50 r51  
    644644  </connection>
    645645  <connection>
    646    <sender>buttonBackToTask</sender>
     646   <sender>buttonSaveSolution</sender>
    647647   <signal>clicked()</signal>
    648648   <receiver>actionFileSaveAsSolution</receiver>
     
    650650   <hints>
    651651    <hint type="sourcelabel">
    652      <x>172</x>
    653      <y>299</y>
     652     <x>102</x>
     653     <y>785</y>
    654654    </hint>
    655655    <hint type="destinationlabel">
Note: See TracChangeset for help on using the changeset viewer.