diff options
| author | Peter Penz <[email protected]> | 2006-11-22 17:13:11 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2006-11-22 17:13:11 +0000 |
| commit | 7fec7ff9a096d288b66fce2699c7b8bc71f6fbbb (patch) | |
| tree | 48c9e04fccc22a57d0871273b610f2b5da8edd19 /src/bookmarkssidebarpage.cpp | |
| parent | 9075797f9b529d958fa1b6a2a4fe45bc00c4b69d (diff) | |
As KURL has been renamed to KUrl all classes and methods, which use the term 'URL', have been converted to use 'Url' instead (e. g. the class URLNavigator is called UrlNavigator now).
svn path=/trunk/playground/utils/dolphin/; revision=606991
Diffstat (limited to 'src/bookmarkssidebarpage.cpp')
| -rw-r--r-- | src/bookmarkssidebarpage.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/bookmarkssidebarpage.cpp b/src/bookmarkssidebarpage.cpp index 59ff607f8..b3861aa2f 100644 --- a/src/bookmarkssidebarpage.cpp +++ b/src/bookmarkssidebarpage.cpp @@ -98,7 +98,7 @@ void BookmarksSidebarPage::slotMouseButtonClicked(int button, Q3ListBoxItem* ite const int index = m_bookmarksList->index(item); KBookmark bookmark = DolphinSettings::instance().bookmark(index); - Dolphin::mainWin().activeView()->setURL(bookmark.url()); + Dolphin::mainWin().activeView()->setUrl(bookmark.url()); } void BookmarksSidebarPage::slotContextMenuRequested(Q3ListBoxItem* item, @@ -203,14 +203,14 @@ void BookmarksSidebarPage::adjustSelection(const KUrl& url) int maxLength = 0; int selectedIndex = -1; - // Search the bookmark which is equal to the URL or at least is a parent URL. - // If there are more than one possible parent URL candidates, choose the bookmark - // which covers the bigger range of the URL. + // Search the bookmark which is equal to the Url or at least is a parent Url. + // If there are more than one possible parent Url candidates, choose the bookmark + // which covers the bigger range of the Url. int i = 0; while (!bookmark.isNull()) { - const KUrl bookmarkURL = bookmark.url(); - if (bookmarkURL.isParentOf(url)) { - const int length = bookmarkURL.prettyUrl().length(); + const KUrl bookmarkUrl = bookmark.url(); + if (bookmarkUrl.isParentOf(url)) { + const int length = bookmarkUrl.prettyUrl().length(); if (length > maxLength) { selectedIndex = i; maxLength = length; @@ -228,13 +228,13 @@ void BookmarksSidebarPage::adjustSelection(const KUrl& url) m_bookmarksList->setSelected(currentIndex, false); } else { - // select the bookmark which is part of the current URL + // select the bookmark which is part of the current Url m_bookmarksList->setSelected(selectedIndex, true); } m_bookmarksList->blockSignals(block); } -void BookmarksSidebarPage::slotURLChanged(const KUrl& url) +void BookmarksSidebarPage::slotUrlChanged(const KUrl& url) { adjustSelection(url); } @@ -243,8 +243,8 @@ void BookmarksSidebarPage::connectToActiveView() { DolphinView* view = Dolphin::mainWin().activeView(); adjustSelection(view->url()); - connect(view, SIGNAL(signalURLChanged(const KUrl&)), - this, SLOT(slotURLChanged(const KUrl&))); + connect(view, SIGNAL(signalUrlChanged(const KUrl&)), + this, SLOT(slotUrlChanged(const KUrl&))); } BookmarksListBox::BookmarksListBox(QWidget* parent) : |
