Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Make use of "All untagged" string consistent

Halla Rempteb6f1d55ae23
diff --git a/libs/resources/KisTagModel.h b/libs/resources/KisTagModel.h
index c2111351b6..4ba91edae3 100644
--- a/libs/resources/KisTagModel.h
+++ b/libs/resources/KisTagModel.h
@@ -90,7 +90,7 @@ public:
// TODO: they can be static const variables, too, if it's better than functions
static QString urlAll() { return "All"; }
- static QString urlAllUntagged() { return "All Untagged"; }
+ static QString urlAllUntagged() { return "All untagged"; }
private Q_SLOTS:
diff --git a/libs/resources/tests/TestTagModel.cpp b/libs/resources/tests/TestTagModel.cpp
index 07a7d43a82..31613456b6 100644
--- a/libs/resources/tests/TestTagModel.cpp
+++ b/libs/resources/tests/TestTagModel.cpp
@@ -109,10 +109,10 @@ void TestTagModel::testData()
QCOMPARE(v.toString(), "All");
v = tagModel.data(tagModel.index(1, 0), Qt::DisplayRole);
- QCOMPARE(v.toString(), "All Untagged");
+ QCOMPARE(v.toString(), "All untagged");
v = tagModel.data(tagModel.index(1, 0), Qt::UserRole + KisAllTagsModel::Url);
- QCOMPARE(v.toString(), "All Untagged");
+ QCOMPARE(v.toString(), "All untagged");
v = tagModel.data(tagModel.index(2, 0), Qt::DisplayRole);
QCOMPARE(v.toString(), "* Favorites");
@@ -141,7 +141,7 @@ void TestTagModel::testTagForIndex()
idx = tagModel.index(1, 0);
tag = tagModel.tagForIndex(idx);
- QCOMPARE(tag->url(), "All Untagged");
+ QCOMPARE(tag->url(), "All untagged");
idx = tagModel.index(2, 0);
tag = tagModel.tagForIndex(idx);
@@ -156,9 +156,9 @@ void TestTagModel::testTagForUrl()
QVERIFY(tag);
QCOMPARE(tag->url(), "All");
- tag = tagModel.tagForUrl("All Untagged");
+ tag = tagModel.tagForUrl("All untagged");
QVERIFY(tag);
- QCOMPARE(tag->url(), "All Untagged");
+ QCOMPARE(tag->url(), "All untagged");
tag = tagModel.tagForUrl(m_tag->url());
QVERIFY(tag);
diff --git a/plugins/extensions/resourcemanager/wdgtagpreview.cpp b/plugins/extensions/resourcemanager/wdgtagpreview.cpp
index 2124fce698..78630b2495 100644
--- a/plugins/extensions/resourcemanager/wdgtagpreview.cpp
+++ b/plugins/extensions/resourcemanager/wdgtagpreview.cpp
@@ -46,7 +46,7 @@ WdgTagPreview::WdgTagPreview(QString resourceType, KoResourceBundleSP bundle, QW
for (int i = 0; i < model->rowCount(); ++i) {
QModelIndex idx = model->index(i, 0);
QString name = model->data(idx, Qt::UserRole + KisAbstractResourceModel::Name).toString();
- if (name == "All" || name == "All Untagged") continue;
+ if (name == "All" || name == "All untagged") continue;
KisTagLabel *label = new KisTagLabel(name);
m_layout->addWidget(label);
}