Diffstat (limited to 'noncore/apps/opie-sheet/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-sheet/mainwindow.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/noncore/apps/opie-sheet/mainwindow.cpp b/noncore/apps/opie-sheet/mainwindow.cpp index 2f07bae..b9f8e57 100644 --- a/noncore/apps/opie-sheet/mainwindow.cpp +++ b/noncore/apps/opie-sheet/mainwindow.cpp | |||
@@ -192,12 +192,13 @@ void MainWindow::selectorFileNew(const DocLnk &lnkDoc) | |||
192 | { | 192 | { |
193 | selectorHide(); | 193 | selectorHide(); |
194 | 194 | ||
195 | if (documentModified && saveCurrentFile()==QMessageBox::Cancel) return; | 195 | if (documentModified && saveCurrentFile()==QMessageBox::Cancel) return; |
196 | if (currentDoc) delete currentDoc; | 196 | if (currentDoc) delete currentDoc; |
197 | currentDoc = new DocLnk(lnkDoc); | 197 | currentDoc = new DocLnk(lnkDoc); |
198 | editData->clear(); | ||
198 | listSheets.clear(); | 199 | listSheets.clear(); |
199 | comboSheets->clear(); | 200 | comboSheets->clear(); |
200 | 201 | ||
201 | typeSheet *newSheet=createNewSheet(); | 202 | typeSheet *newSheet=createNewSheet(); |
202 | newSheet->data.setAutoDelete(TRUE); | 203 | newSheet->data.setAutoDelete(TRUE); |
203 | sheet->setName(newSheet->name); | 204 | sheet->setName(newSheet->name); |
@@ -530,13 +531,13 @@ void MainWindow::slotHelpGeneral() | |||
530 | void MainWindow::slotHelpAbout() | 531 | void MainWindow::slotHelpAbout() |
531 | { | 532 | { |
532 | QDialog dialogAbout(this, 0, TRUE); | 533 | QDialog dialogAbout(this, 0, TRUE); |
533 | dialogAbout.resize(width()-40, height()-80); | 534 | dialogAbout.resize(width()-40, height()-80); |
534 | dialogAbout.setCaption(tr("About Opie Sheet")); | 535 | dialogAbout.setCaption(tr("About Opie Sheet")); |
535 | 536 | ||
536 | QLabel label(tr("Opie Sheet\nSpreadsheet Software for Opie\nQWDC Beta Winner (as Sheet/Qt)\n\nDeveloped by: Serdar Ozler\nRelease 1.0.1\nRelease Date: July 04, 2002\n\nThis product is licensed under GPL. It is freely distributable. If you want to get the latest version and also the source code, please visit the web site.\n\nhttp://qtopia.sitebest.com"), &dialogAbout); | 537 | QLabel label(tr("Opie Sheet\nSpreadsheet Software for Opie\nQWDC Beta Winner (as Sheet/Qt)\n\nDeveloped by: Serdar Ozler\nRelease 1.0.2\nRelease Date: October 08, 2002\n\nThis product is licensed under GPL. It is freely distributable. If you want to get the latest version and also the source code, please visit the web site.\n\nhttp://qtopia.sitebest.com"), &dialogAbout); |
537 | label.setGeometry(dialogAbout.rect()); | 538 | label.setGeometry(dialogAbout.rect()); |
538 | label.setAlignment(Qt::AlignCenter | Qt::WordBreak); | 539 | label.setAlignment(Qt::AlignCenter | Qt::WordBreak); |
539 | 540 | ||
540 | dialogAbout.exec(); | 541 | dialogAbout.exec(); |
541 | } | 542 | } |
542 | 543 | ||