summaryrefslogtreecommitdiffstats
path: root/examples/widgets/pdfviewer/mainwindow.cpp
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@theqtcompany.com>2014-12-16 12:11:13 +0100
committerSimon Hausmann <simon.hausmann@theqtcompany.com>2014-12-16 12:11:13 +0100
commit61138411a87d1c155fcb33f1966387ebdeaae3e2 (patch)
treea9f3bd78249d942e26dc02a0e11119c7ae194248 /examples/widgets/pdfviewer/mainwindow.cpp
parent188d4a072bdca8facad1b1e0670ed440050384ae (diff)
WIP: network loadingwip/network-loading
Diffstat (limited to 'examples/widgets/pdfviewer/mainwindow.cpp')
-rw-r--r--examples/widgets/pdfviewer/mainwindow.cpp7
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);
}