Changeset View
Changeset View
Standalone View
Standalone View
src/core/kfileitem.h
Show First 20 Lines • Show All 481 Lines • ▼ Show 20 Line(s) | 453 | #endif | |||
---|---|---|---|---|---|
482 | bool operator==(const KFileItem &other) const; | 482 | bool operator==(const KFileItem &other) const; | ||
483 | 483 | | |||
484 | /** | 484 | /** | ||
485 | * Returns true if both items do not share the same URL. | 485 | * Returns true if both items do not share the same URL. | ||
486 | */ | 486 | */ | ||
487 | bool operator!=(const KFileItem &other) const; | 487 | bool operator!=(const KFileItem &other) const; | ||
488 | 488 | | |||
489 | /** | 489 | /** | ||
490 | * Returns true if this item's URL is lexically less than other's URL; otherwise returns false | ||||
dfaure: "this item's URL" | |||||
491 | * @since 5.48 | ||||
492 | */ | ||||
493 | bool operator<(const KFileItem &other) const; | ||||
dfaure: This one looks good. | |||||
494 | | ||||
495 | /** | ||||
496 | * Returns true if this item's URL is lexically less than url other; otherwise returns false | ||||
dfaure: "than this item's URL", then | |||||
497 | * @since 5.48 | ||||
498 | */ | ||||
499 | bool operator<(const QUrl &other) const; | ||||
This operator seems strange to me, it's comparing a KFileItem and a QUrl, which are two different kinds of objects... What's the use case? dfaure: This operator seems strange to me, it's comparing a KFileItem and a QUrl, which are two… | |||||
500 | | ||||
501 | /** | ||||
490 | * Converts this KFileItem to a QVariant, this allows to use KFileItem | 502 | * Converts this KFileItem to a QVariant, this allows to use KFileItem | ||
491 | * in QVariant() constructor | 503 | * in QVariant() constructor | ||
492 | */ | 504 | */ | ||
493 | operator QVariant() const; | 505 | operator QVariant() const; | ||
494 | 506 | | |||
495 | /** | 507 | /** | ||
496 | * @deprecated simply use '=' | 508 | * @deprecated simply use '=' | ||
497 | */ | 509 | */ | ||
▲ Show 20 Lines • Show All 96 Lines • Show Last 20 Lines |
"this item's URL"