mirror of
https://github.com/webodf/WebODF.git
synced 2026-11-30 16:47:58 +01:00
Native client can now open odf files.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user