summaryrefslogtreecommitdiffstats
path: root/addon/doxywizard
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2021-01-31 12:43:51 (GMT)
committeralbert-github <albert.tests@gmail.com>2021-01-31 12:43:51 (GMT)
commitab17091385be6ddb41715e6b27fd6de6a8b2941d (patch)
tree116dd4ca73b81e7a66c9f976d62684b7eaa1f176 /addon/doxywizard
parent6a7201851a1667da40b4e2a1cf7b481c2d386803 (diff)
downloadDoxygen-ab17091385be6ddb41715e6b27fd6de6a8b2941d.zip
Doxygen-ab17091385be6ddb41715e6b27fd6de6a8b2941d.tar.gz
Doxygen-ab17091385be6ddb41715e6b27fd6de6a8b2941d.tar.bz2
Remove deprecated warnings for endl in doxywizard
Qt made `endl` deprecated (as of version 5.15) in favor of `Qt:endl`, to compile with Qt4 and (all) Qt5 we use the more system independent `\n`.
Diffstat (limited to 'addon/doxywizard')
-rw-r--r--addon/doxywizard/expert.cpp16
-rw-r--r--addon/doxywizard/inputstrlist.cpp2
2 files changed, 9 insertions, 9 deletions
diff --git a/addon/doxywizard/expert.cpp b/addon/doxywizard/expert.cpp
index 7fd7df3..a50ff2b 100644
--- a/addon/doxywizard/expert.cpp
+++ b/addon/doxywizard/expert.cpp
@@ -760,13 +760,13 @@ void Expert::saveTopic(QTextStream &t,QDomElement &elem,QTextCodec *codec,
{
if (!brief)
{
- t << endl;
+ t << "\n";
}
if (!condensed)
{
- t << "#---------------------------------------------------------------------------" << endl;
- t << "# " << elem.attribute(SA("docs")) << endl;
- t << "#---------------------------------------------------------------------------" << endl;
+ t << "#---------------------------------------------------------------------------\n";
+ t << "# " << elem.attribute(SA("docs")) << "\n";
+ t << "#---------------------------------------------------------------------------\n";
}
// write options...
QDomElement childElem = elem.firstChildElement();
@@ -783,9 +783,9 @@ void Expert::saveTopic(QTextStream &t,QDomElement &elem,QTextCodec *codec,
Input *option = i.value();
if (option && !brief)
{
- t << endl;
+ t << "\n";
t << convertToComment(option->templateDocs());
- t << endl;
+ t << "\n";
}
bool toPrint = true;
if (option && condensed) toPrint = !option->isDefault();
@@ -797,7 +797,7 @@ void Expert::saveTopic(QTextStream &t,QDomElement &elem,QTextCodec *codec,
t << " ";
option->writeValue(t,codec);
}
- t << endl;
+ t << "\n";
}
}
}
@@ -808,7 +808,7 @@ void Expert::saveTopic(QTextStream &t,QDomElement &elem,QTextCodec *codec,
bool Expert::writeConfig(QTextStream &t,bool brief, bool condensed)
{
// write global header
- t << "# Doxyfile " << getDoxygenVersion() << endl << endl;
+ t << "# Doxyfile " << getDoxygenVersion() << "\n\n";
if (!brief && !condensed)
{
t << convertToComment(m_header);
diff --git a/addon/doxywizard/inputstrlist.cpp b/addon/doxywizard/inputstrlist.cpp
index cdc7d14..9d0bd66 100644
--- a/addon/doxywizard/inputstrlist.cpp
+++ b/addon/doxywizard/inputstrlist.cpp
@@ -250,7 +250,7 @@ void InputStrList::writeValue(QTextStream &t,QTextCodec *codec)
{
if (!first)
{
- t << " \\" << endl;
+ t << " \\\n";
t << " ";
}
first=false;