KIO
11#ifndef KCOREURLNAVIGATOR_H
12#define KCOREURLNAVIGATOR_H
14#include "kiogui_export.h"
27class KCoreUrlNavigatorPrivate;
36class KIOGUI_EXPORT KCoreUrlNavigator :
public QObject
42 ~KCoreUrlNavigator()
override;
44 Q_PROPERTY(
QUrl currentLocationUrl READ currentLocationUrl WRITE setCurrentLocationUrl NOTIFY currentLocationUrlChanged)
46 QUrl currentLocationUrl()
const;
47 void setCurrentLocationUrl(
const QUrl &url);
48 Q_SIGNAL void currentLocationUrlChanged();
153 friend class KCoreUrlNavigatorPrivate;
154 std::unique_ptr<KCoreUrlNavigatorPrivate>
const d;
Q_SIGNAL void urlSelectionRequested(const QUrl &url)
When the URL is changed and the new URL (e.g. /home/user1/) is a parent of the previous URL (e....
Q_SIGNAL void currentUrlAboutToChange(const QUrl &newUrl)
Is emitted, before the location URL is going to be changed to newUrl.
int historyIndex
The history index of the current location, where 0 <= history index < KCoreUrlNavigator::historySize(...
Q_INVOKABLE bool goBack()
Goes back one step in the URL history.
Q_INVOKABLE bool goForward()
Goes forward one step in the URL history.
Q_SIGNAL void historyChanged()
Is emitted, if the history has been changed.
Q_INVOKABLE bool goUp()
Goes up one step of the URL path and remembers the old path in the history.
Q_INVOKABLE QVariant locationState(int historyIndex=-1) const
Q_INVOKABLE QUrl locationUrl(int historyIndex=-1) const
int historySize
The amount of locations in the history.
Q_INVOKABLE void saveLocationState(const QVariant &state)
Saves the location state described by state for the current location.
This class is a list view model.
This combobox shows a number of recent URLs/directories, as well as some default directories.
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:37 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.