┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/views/viewproperties.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2012-06-08 22:07:59 +0200
committerPeter Penz <[email protected]>2012-06-08 22:08:29 +0200
commitb2f5de974463f54023905e0979102d179eed0a00 (patch)
tree1e257594f43ea496aa3ac8c5f74a82d589844ac7 /src/views/viewproperties.cpp
parent98a4aa10ef09087ce6498d09461036cb0ab9cb4d (diff)
Krazy fixes
Diffstat (limited to 'src/views/viewproperties.cpp')
-rw-r--r--src/views/viewproperties.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/views/viewproperties.cpp b/src/views/viewproperties.cpp
index 96a00dc1d..ff0c274be 100644
--- a/src/views/viewproperties.cpp
+++ b/src/views/viewproperties.cpp
@@ -284,7 +284,7 @@ QList<QByteArray> ViewProperties::visibleRoles() const
roles.append("text");
// Iterate through all stored keys and append all roles that match to
- // the curren view mode.
+ // the current view mode.
const QString prefix = viewModePrefix();
const int prefixLength = prefix.length();
@@ -426,7 +426,7 @@ void ViewProperties::convertNameRoleToTextRole()
{
QStringList visibleRoles = m_node->visibleRoles();
for (int i = 0; i < visibleRoles.count(); ++i) {
- if (visibleRoles[i].endsWith("_name")) {
+ if (visibleRoles[i].endsWith(QLatin1String("_name"))) {
const int leftLength = visibleRoles[i].length() - 5;
visibleRoles[i] = visibleRoles[i].left(leftLength) + "_text";
}