Changeset f44855d99e in tspsg for src


Ignore:
Timestamp:
Aug 3, 2009, 11:39:07 PM (15 years ago)
Author:
Oleksii Serdiuk
Branches:
0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
Children:
56dca709c9
Parents:
aaf2113307
Message:

Fixed wrong signal sender in mainwindow.ce.ui.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mainwindow.cpp

    raaf2113307 rf44855d99e  
    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
Note: See TracChangeset for help on using the changeset viewer.