* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
***************************************************************************/
#include "bookmarkssidebarpage.h"
***************************************************************************/
#include "bookmarkssidebarpage.h"
layout->addWidget(m_bookmarksList);
connect(m_bookmarksList, SIGNAL(mouseButtonClicked(int, Q3ListBoxItem*, const QPoint&)),
layout->addWidget(m_bookmarksList);
connect(m_bookmarksList, SIGNAL(mouseButtonClicked(int, Q3ListBoxItem*, const QPoint&)),
KBookmark bookmark = root.first();
while (!bookmark.isNull()) {
QPixmap icon(iconLoader.loadIcon(bookmark.icon(),
KBookmark bookmark = root.first();
while (!bookmark.isNull()) {
QPixmap icon(iconLoader.loadIcon(bookmark.icon(),
BookmarkItem* item = new BookmarkItem(icon, bookmark.text());
m_bookmarksList->insertItem(item);
BookmarkItem* item = new BookmarkItem(icon, bookmark.text());
m_bookmarksList->insertItem(item);
const int index = m_bookmarksList->index(item);
KBookmark bookmark = DolphinSettings::instance().bookmark(index);
const int index = m_bookmarksList->index(item);
KBookmark bookmark = DolphinSettings::instance().bookmark(index);
"bookmark");
if (!newBookmark.isNull()) {
root.addBookmark(manager, newBookmark);
"bookmark");
if (!newBookmark.isNull()) {
root.addBookmark(manager, newBookmark);
"bookmark");
if (!bookmark.isNull()) {
root.addBookmark(manager, bookmark);
"bookmark");
if (!bookmark.isNull()) {
root.addBookmark(manager, bookmark);
{
// TODO (remarked in dolphin/TODO): the following code is quite equal
// to BookmarkSelector::updateSelection().
{
// TODO (remarked in dolphin/TODO): the following code is quite equal
// to BookmarkSelector::updateSelection().
- // 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.
- 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();
m_bookmarksList->setSelected(selectedIndex, true);
}
m_bookmarksList->blockSignals(block);
}
m_bookmarksList->setSelected(selectedIndex, true);
}
m_bookmarksList->blockSignals(block);
}
- connect(view, SIGNAL(signalURLChanged(const KURL&)),
- this, SLOT(slotURLChanged(const KURL&)));
+ connect(view, SIGNAL(urlChanged(const KUrl&)),
+ this, SLOT(slotUrlChanged(const KUrl&)));