diff options
| author | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2014-12-16 12:11:13 +0100 |
|---|---|---|
| committer | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2014-12-16 12:11:13 +0100 |
| commit | 61138411a87d1c155fcb33f1966387ebdeaae3e2 (patch) | |
| tree | a9f3bd78249d942e26dc02a0e11119c7ae194248 /examples/widgets/pdfviewer/mainwindow.cpp | |
| parent | 188d4a072bdca8facad1b1e0670ed440050384ae (diff) | |
WIP: network loadingwip/network-loading
Diffstat (limited to 'examples/widgets/pdfviewer/mainwindow.cpp')
| -rw-r--r-- | examples/widgets/pdfviewer/mainwindow.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/examples/widgets/pdfviewer/mainwindow.cpp b/examples/widgets/pdfviewer/mainwindow.cpp index f3fa000..0836012 100644 --- a/examples/widgets/pdfviewer/mainwindow.cpp +++ b/examples/widgets/pdfviewer/mainwindow.cpp @@ -45,12 +45,7 @@ MainWindow::~MainWindow() void MainWindow::open(const QUrl &docLocation) { - if (docLocation.isLocalFile()) - m_pageWidget->openDocument(docLocation); - else { - qCDebug(lcExample) << docLocation << "is not a valid local file"; - QMessageBox::critical(this, tr("Failed to open"), tr("%1 is not a valid local file").arg(docLocation.toString())); - } + m_pageWidget->openDocument(docLocation); qCDebug(lcExample) << docLocation; ui->scrollArea->ensureVisible(0, 0, 0, 0); } |
