Native client can now open odf files.

This commit is contained in:
Jos van den Oever
2010-06-18 23:04:31 +02:00
parent 7b78c1c69d
commit 75c08bd0ce
7 changed files with 221 additions and 6 deletions
+6 -1
View File
@@ -15,6 +15,11 @@ MainWindow::MainWindow(QWidget *parent) :
setWindowTitle(tr("MDI"));
setUnifiedTitleAndToolBarOnMac(true);
OdfView *child = createOdfView();
if (child->loadFile("../kofficetests/odf/DanskTest01.odt")) {
child->showMaximized();
}
}
MainWindow::~MainWindow()
@@ -46,7 +51,7 @@ void MainWindow::open()
OdfView *child = createOdfView();
if (child->loadFile(fileName)) {
statusBar()->showMessage(tr("File loaded"), 2000);
child->show();
child->showMaximized();
} else {
child->close();
}