76 Q_PROPERTY ( QString label READ label WRITE setLabel )
78 Q_PROPERTY ( Filters filters READ filters WRITE setFilters)
79 Q_PROPERTY ( QString currentPath READ currentPath WRITE setCurrentPath USER
true )
83#ifdef USE_QFILEDIALOG_OPTIONS
84 Q_PROPERTY(QFileDialog::Options options READ options WRITE setOptions)
86 Q_PROPERTY(Options options READ options WRITE setOptions)
87 Q_FLAGS(Option Options)
98 Q_PROPERTY(QString settingKey READ settingKey WRITE setSettingKey )
104 Q_PROPERTY(
bool showBrowseButton READ showBrowseButton WRITE setShowBrowseButton)
110 Q_PROPERTY(
bool showHistoryButton READ showHistoryButton WRITE setShowHistoryButton)
115 Q_PROPERTY(
SizeAdjustPolicy sizeAdjustPolicy READ sizeAdjustPolicy WRITE setSizeAdjustPolicy)
121 Q_PROPERTY(
int minimumContentsLength READ minimumContentsLength WRITE setMinimumContentsLength)
126 Q_PROPERTY(QStringList nameFilters READ nameFilters WRITE setNameFilters)
129 enum Filter { Dirs = 0x001,
133 AllEntries = Dirs | Files | Drives,
138 PermissionMask = 0x070,
144 CaseSensitive = 0x800,
145 NoDotAndDotDot = 0x1000,
150 Q_DECLARE_FLAGS(Filters, Filter)
152#ifndef USE_QFILEDIALOG_OPTIONS
156 ShowDirsOnly = 0x00000001,
157 DontResolveSymlinks = 0x00000002,
158 DontConfirmOverwrite = 0x00000004,
159 DontUseSheet = 0x00000008,
160 DontUseNativeDialog = 0x00000010,
161 ReadOnly = 0x00000020,
162 HideNameFilterDetails = 0x00000040
164 Q_DECLARE_FLAGS(Options, Option)
175 AdjustToMinimumContentsLength
180 Q_ENUM(SizeAdjustPolicy);
193 const QStringList& nameFilters,
194 Filters filters = PathLineEdit::AllEntries,
197 QString currentPath()
const;
199 void setLabel(
const QString &label);
200 const QString& label()
const;
202 void setNameFilters(
const QStringList &nameFilters);
203 const QStringList& nameFilters()
const;
205 void setFilters(
const Filters& filters);
206 Filters filters()
const;
210#ifdef USE_QFILEDIALOG_OPTIONS
211 void setOptions(
const QFileDialog::Options& options);
212 const QFileDialog::Options& options()
const;
214 void setOptions(
const Options& options);
215 const Options& options()
const;
220 void setCurrentFileExtension(
const QString& extension);
222 QString settingKey()
const;
223 void setSettingKey(
const QString& key);
225 bool showBrowseButton()
const;
226 void setShowBrowseButton(
bool visible);
228 bool showHistoryButton()
const;
229 void setShowHistoryButton(
bool visible);
237 SizeAdjustPolicy sizeAdjustPolicy()
const;
239 void setSizeAdjustPolicy(SizeAdjustPolicy policy);
241 int minimumContentsLength()
const;
242 void setMinimumContentsLength(
int length);
245 QComboBox* comboBox()
const;
249 virtual QSize minimumSizeHint()
const;
253 virtual QSize sizeHint()
const;
260 void currentPathChanged(
const QString& path);
263 void setCurrentPath(
const QString& path);
276 void retrieveHistory();
281 void addCurrentPathToHistory();
284 void setCurrentDirectory(
const QString& directory);
285 void updateHasValidInput();
288 QScopedPointer<PathLineEditPrivate> d_ptr;
294 Q_PRIVATE_SLOT(d_ptr,
void _q_recomputeCompleterPopupSize())