Changeset View
Changeset View
Standalone View
Standalone View
libdialogutil/recentsaver.h
Show First 20 Lines • Show All 86 Lines • ▼ Show 20 Line(s) | 68 | public: | |||
---|---|---|---|---|---|
87 | * file name (if required) into a URL to pass to a @c QFileDialog | 87 | * file name (if required) into a URL to pass to a @c QFileDialog | ||
88 | * which expects a URL. | 88 | * which expects a URL. | ||
89 | * | 89 | * | ||
90 | * @param suggestedName The suggested file name, or a null string | 90 | * @param suggestedName The suggested file name, or a null string | ||
91 | * if none is required. | 91 | * if none is required. | ||
92 | * @return The resolved URL, or a null URL if there is no saved | 92 | * @return The resolved URL, or a null URL if there is no saved | ||
93 | * history. | 93 | * history. | ||
94 | **/ | 94 | **/ | ||
95 | QUrl recentUrl(const QString &suggestedName = QString::null); | 95 | QUrl recentUrl(const QString &suggestedName = QString()); | ||
96 | 96 | | |||
97 | /** | 97 | /** | ||
98 | * Resolve the saved recent location (if there is one) and a suggested | 98 | * Resolve the saved recent location (if there is one) and a suggested | ||
99 | * file name (if required) into a path, to pass to a @c QFileDialog | 99 | * file name (if required) into a path, to pass to a @c QFileDialog | ||
100 | * which expects a pathname. | 100 | * which expects a pathname. | ||
101 | * | 101 | * | ||
102 | * @param suggestedName The suggested file name, or a null string | 102 | * @param suggestedName The suggested file name, or a null string | ||
103 | * if none is required. | 103 | * if none is required. | ||
104 | * @return The resolved file path, or a null string if there is no | 104 | * @return The resolved file path, or a null string if there is no | ||
105 | * saved history. | 105 | * saved history. | ||
106 | **/ | 106 | **/ | ||
107 | QString recentPath(const QString &suggestedName = QString::null); | 107 | QString recentPath(const QString &suggestedName = QString()); | ||
108 | 108 | | |||
109 | /** | 109 | /** | ||
110 | * Save the location selected by the file dialogue as a new recent location. | 110 | * Save the location selected by the file dialogue as a new recent location. | ||
111 | * | 111 | * | ||
112 | * @param url The URL returned from the file dialogue. | 112 | * @param url The URL returned from the file dialogue. | ||
113 | **/ | 113 | **/ | ||
114 | void save(const QUrl &url); | 114 | void save(const QUrl &url); | ||
115 | 115 | | |||
Show All 13 Lines |