diff options
| author | Lukáš Tinkl <[email protected]> | 2014-10-21 21:18:43 +0200 |
|---|---|---|
| committer | Lukáš Tinkl <[email protected]> | 2014-10-21 21:19:14 +0200 |
| commit | 1b4572dac9fb529d31b786f93e4f02c6f8aeeb21 (patch) | |
| tree | cf88750183dbc93db5357be4a359c421c29d049c /src/panels/panel.cpp | |
| parent | 3653c8ad6bfb21a4b098f4e89d5ff34ed6df2901 (diff) | |
port Dolphin from KUrl to QUrl
REVIEW: 120688
Diffstat (limited to 'src/panels/panel.cpp')
| -rw-r--r-- | src/panels/panel.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/panels/panel.cpp b/src/panels/panel.cpp index 767313445..348191c98 100644 --- a/src/panels/panel.cpp +++ b/src/panels/panel.cpp @@ -19,7 +19,7 @@ ***************************************************************************/ #include "panel.h" -#include <KUrl> +#include <QUrl> Panel::Panel(QWidget* parent) : QWidget(parent), @@ -32,7 +32,7 @@ Panel::~Panel() { } -KUrl Panel::url() const +QUrl Panel::url() const { return m_url; } @@ -57,13 +57,13 @@ QSize Panel::sizeHint() const return QSize(180, 180); } -void Panel::setUrl(const KUrl& url) +void Panel::setUrl(const QUrl& url) { - if (url.equals(m_url, KUrl::CompareWithoutTrailingSlash)) { + if (url.matches(m_url, QUrl::StripTrailingSlash)) { return; } - const KUrl oldUrl = m_url; + const QUrl oldUrl = m_url; m_url = url; const bool accepted = urlChanged(); if (!accepted) { |
