|
Lines 278-284
QString QFileSelectorPrivate::select(const QString &filePath) const
Link Here
|
| 278 |
Q_Q(const QFileSelector); |
278 |
Q_Q(const QFileSelector); |
| 279 |
QFileInfo fi(filePath); |
279 |
QFileInfo fi(filePath); |
| 280 |
|
280 |
|
| 281 |
QString ret = selectionHelper(fi.path().isEmpty() ? QString() : fi.path() + QLatin1Char('/'), |
281 |
Qstring path = QString(); |
|
|
282 |
if (!fi.path().isEmpty()) { |
| 283 |
if (fi.path().endsWith('/')) { |
| 284 |
path = fi.path(); |
| 285 |
} else { |
| 286 |
path = fi.path() + QLatin1Char('/'); |
| 287 |
} |
| 288 |
} |
| 289 |
|
| 290 |
QString ret = selectionHelper(path, |
| 282 |
fi.fileName(), q->allSelectors()); |
291 |
fi.fileName(), q->allSelectors()); |
| 283 |
|
292 |
|
| 284 |
if (!ret.isEmpty()) |
293 |
if (!ret.isEmpty()) |