Changeset View
Changeset View
Standalone View
Standalone View
src/filewidgets/kfilewidget.h
Show First 20 Lines • Show All 488 Lines • ▼ Show 20 Line(s) | 160 | #endif | |||
---|---|---|---|---|---|
489 | */ | 489 | */ | ||
490 | void setViewMode(KFile::FileView mode); | 490 | void setViewMode(KFile::FileView mode); | ||
491 | 491 | | |||
492 | /** | 492 | /** | ||
493 | * Reimplemented | 493 | * Reimplemented | ||
494 | */ | 494 | */ | ||
495 | QSize sizeHint() const Q_DECL_OVERRIDE; | 495 | QSize sizeHint() const Q_DECL_OVERRIDE; | ||
496 | 496 | | |||
497 | /** | ||||
498 | * Set the URL schemes that the file widget should allow navigating to. | ||||
dfaure: All of these public methods should indicate that the default list is *empty* and that empty… | |||||
499 | * | ||||
500 | * If the returned list is empty, all schemes are supported. | ||||
501 | * | ||||
502 | * @sa QFileDialog::setSupportedSchemes | ||||
503 | * @since 5.43 | ||||
504 | */ | ||||
505 | void setSupportedSchemes(const QStringList &schemes); | ||||
506 | | ||||
507 | /** | ||||
508 | * Returns the URL schemes that the file widget should allow navigating to. | ||||
509 | * | ||||
510 | * If the returned list is empty, all schemes are supported. | ||||
511 | * | ||||
512 | * @sa QFileDialog::supportedSchemes | ||||
513 | * @since 5.43 | ||||
514 | */ | ||||
515 | QStringList supportedSchemes() const; | ||||
516 | | ||||
497 | public Q_SLOTS: | 517 | public Q_SLOTS: | ||
498 | /** | 518 | /** | ||
499 | * Called when clicking ok (when this widget is used in KFileDialog) | 519 | * Called when clicking ok (when this widget is used in KFileDialog) | ||
500 | * Might or might not call accept(). | 520 | * Might or might not call accept(). | ||
501 | */ | 521 | */ | ||
502 | void slotOk(); | 522 | void slotOk(); | ||
503 | void accept(); | 523 | void accept(); | ||
504 | void slotCancel(); | 524 | void slotCancel(); | ||
▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines |
All of these public methods should indicate that the default list is *empty* and that empty means "all schemes are supported".
I don't want to see people thinking they have to call this for anything to work, since that would only lead to unnecessarily limiting the amount of supported schemes in all cases where there's no reason to limit that.