Changeset View
Changeset View
Standalone View
Standalone View
src/filewidgets/kfilewidget.h
Show First 20 Lines • Show All 137 Lines • ▼ Show 20 Line(s) | 60 | public: | |||
---|---|---|---|---|---|
138 | * Sets the directory to view. | 138 | * Sets the directory to view. | ||
139 | * | 139 | * | ||
140 | * @param url URL to show. | 140 | * @param url URL to show. | ||
141 | * @param clearforward Indicates whether the forward queue | 141 | * @param clearforward Indicates whether the forward queue | ||
142 | * should be cleared. | 142 | * should be cleared. | ||
143 | */ | 143 | */ | ||
144 | void setUrl(const QUrl &url, bool clearforward = true); | 144 | void setUrl(const QUrl &url, bool clearforward = true); | ||
145 | 145 | | |||
146 | #if !defined(KIOFILEWIDGETS_NO_DEPRECATED) && !defined(DOXYGEN_SHOULD_SKIP_THIS) | 146 | #if KIOFILEWIDGETS_ENABLE_DEPRECATED_SINCE(5, 33) | ||
147 | /** | 147 | /** | ||
148 | * Sets the file to preselect to @p pathOrUrl | 148 | * Sets the file to preselect to @p pathOrUrl | ||
149 | * | 149 | * | ||
150 | * This method handles absolute paths (on Unix, but probably not correctly on Windows) | 150 | * This method handles absolute paths (on Unix, but probably not correctly on Windows) | ||
151 | * and absolute URLs as strings (but for those you should use setSelectedUrl instead). | 151 | * and absolute URLs as strings (but for those you should use setSelectedUrl instead). | ||
152 | * | 152 | * | ||
153 | * This method does not work with relative paths (filenames) | 153 | * This method does not work with relative paths (filenames) | ||
154 | * (it would misinterpret a ':' or a '#' in the filename). | 154 | * (it would misinterpret a ':' or a '#' in the filename). | ||
155 | * | 155 | * | ||
156 | * @deprecated since 5.33, use setSelectedUrl instead, after ensuring that | 156 | * @deprecated since 5.33, use setSelectedUrl instead, after ensuring that | ||
157 | * construct the QUrl correctly (e.g. use fromLocalFile for local paths). | 157 | * construct the QUrl correctly (e.g. use fromLocalFile for local paths). | ||
158 | */ | 158 | */ | ||
159 | KIOFILEWIDGETS_DEPRECATED void setSelection(const QString &pathOrUrl); | 159 | KIOFILEWIDGETS_DEPRECATED_VERSION(5, 33, "Use KFileWidget::setSelectedUrl(const QUrl &)") | ||
160 | void setSelection(const QString &pathOrUrl); | ||||
160 | #endif | 161 | #endif | ||
161 | 162 | | |||
162 | /** | 163 | /** | ||
163 | * Sets the URL to preselect to @p url | 164 | * Sets the URL to preselect to @p url | ||
164 | * | 165 | * | ||
165 | * This method handles absolute URLs (remember to use fromLocalFile for local paths). | 166 | * This method handles absolute URLs (remember to use fromLocalFile for local paths). | ||
166 | * It also handles relative URLs, which you should construct like this: | 167 | * It also handles relative URLs, which you should construct like this: | ||
167 | * QUrl relativeUrl; relativeUrl.setPath(fileName); | 168 | * QUrl relativeUrl; relativeUrl.setPath(fileName); | ||
▲ Show 20 Lines • Show All 452 Lines • Show Last 20 Lines |