Commit 2d2e2a95 authored by Yuri Chornoivan's avatar Yuri Chornoivan

Fix minor EBN issues and typos

parent bc32fc3f
......@@ -136,4 +136,4 @@ Item {
}
}
}
}
\ No newline at end of file
}
......@@ -74,4 +74,4 @@ MenuBar {
onTriggered: root.zoomOut()
}
}
}
\ No newline at end of file
}
/***************************************************************************
* *
* Copyright 2014-2017 Sebastian Kügler <sebas@kde.org> *
* Copyrihgt 2019 Carson Black <uhhadd@gmail.com> *
* Copyright 2019 Carson Black <uhhadd@gmail.com> *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
......
/***************************************************************************
* *
* Copyright 2014-2017 Sebastian Kügler <sebas@kde.org> *
* Copyrihgt 2019 Carson Black <uhhadd@gmail.com> *
* Copyright 2019 Carson Black <uhhadd@gmail.com> *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
......
/***************************************************************************
* *
* Copyright 2014-2015 Sebastian Kügler <sebas@kde.org> *
* Copyrihgt 2019 Carson Black <uhhadd@gmail.com> *
* Copyright 2019 Carson Black <uhhadd@gmail.com> *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
......
......@@ -116,7 +116,7 @@ X-KDE-PluginInfo-Author=Sebastian Kügler
X-KDE-PluginInfo-Email=sebas@kde.org
X-KDE-PluginInfo-Name=org.kde.plasma.cuttlefish
X-KDE-PluginInfo-Version=0.1
X-KDE-PluginInfo-Website=http://kde.org
X-KDE-PluginInfo-Website=https://kde.org
X-KDE-PluginInfo-Category=Online Services
X-KDE-PluginInfo-Depends=
X-KDE-PluginInfo-License=GPL-2.0+
......
......@@ -144,12 +144,12 @@ void IconModel::add(const QFileInfo &info, const QString &cat)
const QString fname = info.fileName();
bool scalable = false;
QString icon = fname;
if (fname.endsWith(".png")) {
if (fname.endsWith(QLatin1String(".png"))) {
icon.remove(".png");
} else if (fname.endsWith(".svgz")) {
} else if (fname.endsWith(QLatin1String(".svgz"))) {
icon.remove(".svgz");
scalable = true;
} else if (fname.endsWith(".svg")) {
} else if (fname.endsWith(QLatin1String(".svg"))) {
icon.remove(".svg");
scalable = true;
}
......
......@@ -143,7 +143,7 @@ class KTreeViewSearchLine : public KLineEdit
/**
* When a search is active on a list that's organized into a tree view if
* a parent or ancesestor of an item is does not match the search then it
* a parent or ancestor of an item is does not match the search then it
* will be hidden and as such so too will any children that match.
*
* If this is set to true (the default) then the parents of matching items
......
......@@ -67,7 +67,7 @@ bool IconsParserHandler::startElement(const QString &namespaceURI, const QString
id != "base" && !id.contains("layer")) {
m_ids<<id;
}
if (id.endsWith("-center") && !id.contains("hint-")) {
if (id.endsWith(QLatin1String("-center")) && !id.contains("hint-")) {
//remove -center
m_prefixes << id.mid(0, id.length() - 7);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment