summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Whiting <[email protected]>2015-05-06 20:17:57 -0600
committerJeremy Whiting <[email protected]>2015-05-06 20:17:57 -0600
commit9bc7d3a32fbf6c776f57d91863ded50d9b0daf75 (patch)
treefbf4d98b76e614ec32e1d10fe720a415e981d4ae
parent2db5336f1049ce2f93bdd622aa678c35e2689236 (diff)
Fix some broken QUrl default ctor usages.
-rw-r--r--kmouth.cpp2
-rw-r--r--phrasebook/initialphrasebookwidget.cpp2
-rw-r--r--phrasebook/phrasebook.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/kmouth.cpp b/kmouth.cpp
index b2bcff3..81d9251 100644
--- a/kmouth.cpp
+++ b/kmouth.cpp
@@ -502,7 +502,7 @@ void KMouthApp::slotPhrasebookConfirmed()
QString standardBook = QStandardPaths::locate(QStandardPaths::DataLocation, QLatin1String("standard.phrasebook"));
if (!standardBook.isEmpty()) {
PhraseBook book;
- book.open(QUrl(standardBook));
+ book.open(QUrl::fromLocalFile(standardBook));
QString name = QLatin1String("phrasebooks");
QMenu *popup = (QMenu *)factory()->container(name, this);
KToolBar *toolbar = toolBar(QLatin1String("phrasebookBar"));
diff --git a/phrasebook/initialphrasebookwidget.cpp b/phrasebook/initialphrasebookwidget.cpp
index f828f89..353f1f8 100644
--- a/phrasebook/initialphrasebookwidget.cpp
+++ b/phrasebook/initialphrasebookwidget.cpp
@@ -131,7 +131,7 @@ void InitialPhraseBookWidget::addChildrenToBook(PhraseBook &book, QStandardItem
QStandardItem *child = item->child(i);
if (child->checkState() != Qt::Unchecked) {
PhraseBook localBook;
- if (localBook.open(QUrl(child->data().toString()))) {
+ if (localBook.open(QUrl::fromLocalFile(child->data().toString()))) {
book += localBook;
}
}
diff --git a/phrasebook/phrasebook.cpp b/phrasebook/phrasebook.cpp
index fc30951..12eae57 100644
--- a/phrasebook/phrasebook.cpp
+++ b/phrasebook/phrasebook.cpp
@@ -416,7 +416,7 @@ StandardBookList PhraseBook::standardPhraseBooks()
for (it = bookPaths.begin(); it != bookPaths.end(); ++it) {
PhraseBook pbook;
// Open the phrasebook.
- if (pbook.open(QUrl(*it))) {
+ if (pbook.open(QUrl::fromLocalFile(*it))) {
StandardBook book;
book.name = (*pbook.begin()).getPhrase().getPhrase();