Commit 3bccedd3 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Use QString::compare(a, Qt::CaseInsensitive) over toLower() == a

GIT_SILENT
parent 996a3f8a
......@@ -188,7 +188,7 @@ QAction* MainWindow::createCustomElement(QWidget* parent, int index, const QDomE
//KDevelop needs to ensure that separators defined as <Separator style="visible" />
//are always shown in the menubar. For those, we create special disabled actions
//instead of calling QMenuBar::addSeparator() because menubar separators are ignored
if (element.tagName().toLower() == QLatin1String("separator")
if (element.tagName().compare(QLatin1String("separator"), Qt::CaseInsensitive) == 0
&& element.attribute(QStringLiteral("style")) == QLatin1String("visible")) {
if ( auto* bar = qobject_cast<QMenuBar*>( parent ) ) {
auto* separatorAction = new QAction(QStringLiteral("|"), this);
......
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