diff options
| author | David Faure <[email protected]> | 2012-07-20 12:09:04 +0200 |
|---|---|---|
| committer | Emmanuel Pescosta <[email protected]> | 2012-08-13 22:25:49 +0200 |
| commit | eb14263c480ea37c306a9ae6a7fda64875cfe418 (patch) | |
| tree | 33f99e846e49379919d1829e84c156d301cbe58f /src/kitemviews/kstandarditemlistwidget.h | |
| parent | 5fbe52c1518037ad3dbb89ba18f2a318aee114f4 (diff) | |
Fix bug 303375 - Dots in directory names treated as file extension.
Patch by Emmanuel Pescosta <[email protected]>
BUG: 303375
REVIEW: 105575
FIXED-IN: 4.9.0
Diffstat (limited to 'src/kitemviews/kstandarditemlistwidget.h')
| -rw-r--r-- | src/kitemviews/kstandarditemlistwidget.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/kitemviews/kstandarditemlistwidget.h b/src/kitemviews/kstandarditemlistwidget.h index f559f3d22..462d83d0f 100644 --- a/src/kitemviews/kstandarditemlistwidget.h +++ b/src/kitemviews/kstandarditemlistwidget.h @@ -133,6 +133,19 @@ protected: */ QString roleText(const QByteArray& role, const QHash<QByteArray, QVariant>& values) const; + /** + * Fixes: + * Select the text without MIME-type extension + * This is file-item-specific and should be moved + * into KFileItemListWidget. + * + * Inherited classes can define, if the MIME-type extension + * should be selected or not. + * + * @return Selection length (with or without MIME-type extension) + */ + virtual int selectionLength(const QString& text) const; + virtual void dataChanged(const QHash<QByteArray, QVariant>& current, const QSet<QByteArray>& roles = QSet<QByteArray>()); virtual void visibleRolesChanged(const QList<QByteArray>& current, const QList<QByteArray>& previous); virtual void columnWidthChanged(const QByteArray& role, qreal current, qreal previous); |
