Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Workspace
Commits
5f8e051c
Verified
Commit
5f8e051c
authored
Jan 19, 2022
by
Eugene Popov
🇺🇦
Committed by
Fushan Wen
Mar 29, 2022
Browse files
Revert "klipper: Add FullTextRole to get untruncated text"
This reverts commit
5c9d8c2e
.
parent
efdcea70
Changes
2
Hide whitespace changes
Inline
Side-by-side
klipper/historymodel.cpp
View file @
5f8e051c
...
...
@@ -80,8 +80,6 @@ QVariant HistoryModel::data(const QModelIndex &index, int role) const
return
item
->
uuid
().
toBase64
();
case
TypeIntRole
:
return
int
(
type
);
case
FullTextRole
:
return
item
->
mimeData
()
->
text
();
}
return
QVariant
();
}
...
...
@@ -204,6 +202,5 @@ QHash<int, QByteArray> HistoryModel::roleNames() const
hash
.
insert
(
Qt
::
DecorationRole
,
QByteArrayLiteral
(
"DecorationRole"
));
hash
.
insert
(
Base64UuidRole
,
QByteArrayLiteral
(
"UuidRole"
));
hash
.
insert
(
TypeIntRole
,
QByteArrayLiteral
(
"TypeRole"
));
hash
.
insert
(
FullTextRole
,
QByteArrayLiteral
(
"FullTextRole"
));
return
hash
;
}
klipper/historymodel.h
View file @
5f8e051c
...
...
@@ -26,7 +26,6 @@ public:
TypeRole
,
Base64UuidRole
,
TypeIntRole
,
FullTextRole
,
};
Q_ENUM
(
RoleType
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment