|
From: <cn...@us...> - 2025-09-17 19:26:16
|
Revision: 1605
http://sourceforge.net/p/seq/svn/1605
Author: cn187
Date: 2025-09-17 19:26:13 +0000 (Wed, 17 Sep 2025)
Log Message:
-----------
Fix qt4 compile error
Modified Paths:
--------------
showeq/branches/cn187_devel/src/map.cpp
Modified: showeq/branches/cn187_devel/src/map.cpp
===================================================================
--- showeq/branches/cn187_devel/src/map.cpp 2025-09-17 19:14:58 UTC (rev 1604)
+++ showeq/branches/cn187_devel/src/map.cpp 2025-09-17 19:26:13 UTC (rev 1605)
@@ -5809,9 +5809,15 @@
QColor color = QColor(m_color_user_table[i]);
+#if (QT_VERSION >= QT_VERSION_CHECK(5,5,0))
m_color_pb[i] = new QPushButton(
QString::asprintf("%d\n#%02x%02x%02x",
i,color.red(),color.green(),color.blue()), this);
+#else
+ QString button_label;
+ button_label.sprintf("%d\n#%02x%02x%02x", i,color.red(),color.green(),color.blue());
+ m_color_pb[i] = new QPushButton(button_label, this);
+#endif
m_color_pb[i]->setStyle(new QCommonStyle());
m_color_pb[i]->setPalette(QPalette(color));
m_color_pb[i]->setProperty("colorIndex", i);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|