summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-03-17 20:07:26 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2020-03-17 20:07:26 (GMT)
commit7056d96f30d40e4b632adde13dbbc29a3ad82d61 (patch)
tree00707d37411897cf3c63f4239252dc4355d04ba0
parent39ba759f4dba837818f07451314b3612d438a1bd (diff)
parenta6383d9ed3381975337e1d100427f7c022f0a247 (diff)
downloadDoxygen-7056d96f30d40e4b632adde13dbbc29a3ad82d61.zip
Doxygen-7056d96f30d40e4b632adde13dbbc29a3ad82d61.tar.gz
Doxygen-7056d96f30d40e4b632adde13dbbc29a3ad82d61.tar.bz2
Merge branch 'albert-github-feature/bug_doxywizard_warnings'
-rwxr-xr-xaddon/doxywizard/doxywizard.cpp12
-rw-r--r--addon/doxywizard/wizard.cpp4
2 files changed, 8 insertions, 8 deletions
diff --git a/addon/doxywizard/doxywizard.cpp b/addon/doxywizard/doxywizard.cpp
index d0811d4..5f8b1bc 100755
--- a/addon/doxywizard/doxywizard.cpp
+++ b/addon/doxywizard/doxywizard.cpp
@@ -343,7 +343,7 @@ void MainWindow::clearRecent()
m_recentFiles.clear();
for (int i=0;i<MAX_RECENT_FILES;i++)
{
- m_settings.setValue(QString().sprintf("recent/config%d",i++),QString::fromLatin1(""));
+ m_settings.setValue(QString::fromLatin1("recent/config%1").arg(i++),QString::fromLatin1(""));
}
m_settings.sync();
}
@@ -389,7 +389,7 @@ void MainWindow::loadSettings()
/* due to prepend use list in reversed order */
for (int i=MAX_RECENT_FILES;i>=0;i--)
{
- QString entry = m_settings.value(QString().sprintf("recent/config%d",i)).toString();
+ QString entry = m_settings.value(QString::fromLatin1("recent/config%1").arg(i)).toString();
if (!entry.isEmpty() && QFileInfo(entry).exists())
{
addRecentFileList(entry);
@@ -448,11 +448,11 @@ void MainWindow::updateRecentFile(void)
foreach( QString str, m_recentFiles )
{
m_recentMenu->addAction(str);
- m_settings.setValue(QString().sprintf("recent/config%d",i++),str);
+ m_settings.setValue(QString::fromLatin1("recent/config%1").arg(i++),str);
}
for (;i<MAX_RECENT_FILES;i++)
{
- m_settings.setValue(QString().sprintf("recent/config%d",i++),QString::fromLatin1(""));
+ m_settings.setValue(QString::fromLatin1("recent/config%1").arg(i),QString::fromLatin1(""));
}
}
@@ -690,7 +690,7 @@ int main(int argc,char **argv)
if (!qstrcmp(argv[1],"--help"))
{
QMessageBox msgBox;
- msgBox.setText(QString().sprintf("Usage: %s [config file]",argv[0]));
+ msgBox.setText(QString::fromLatin1("Usage: %1 [config file]").arg(QString::fromLatin1(argv[0])));
msgBox.exec();
exit(0);
}
@@ -698,7 +698,7 @@ int main(int argc,char **argv)
if (argc > 2)
{
QMessageBox msgBox;
- msgBox.setText(QString().sprintf("Too many arguments specified\n\nUsage: %s [config file]",argv[0]));
+ msgBox.setText(QString::fromLatin1("Too many arguments specified\n\nUsage: %1 [config file]").arg(QString::fromLatin1(argv[0])));
msgBox.exec();
exit(1);
}
diff --git a/addon/doxywizard/wizard.cpp b/addon/doxywizard/wizard.cpp
index 2233379..c3c1b57 100644
--- a/addon/doxywizard/wizard.cpp
+++ b/addon/doxywizard/wizard.cpp
@@ -369,8 +369,8 @@ void ColorPicker::paintEvent(QPaintEvent*)
p.drawPixmap(1, coff, *m_pix);
const QPalette &g = palette();
qDrawShadePanel(&p, r, g, true);
- p.setPen(g.foreground().color());
- p.setBrush(g.foreground());
+ p.setPen(g.windowText().color());
+ p.setBrush(g.windowText());
QPolygon a;
int y = m_mode==Hue ? hue2y(m_hue) :
m_mode==Saturation ? sat2y(m_sat) :