|
From: <cn...@us...> - 2021-11-30 14:44:15
|
Revision: 1217
http://sourceforge.net/p/seq/svn/1217
Author: cn187
Date: 2021-11-30 14:44:12 +0000 (Tue, 30 Nov 2021)
Log Message:
-----------
[Qt5] More QVariant enum fixes
Modified Paths:
--------------
showeq/trunk/src/spawnlistcommon.cpp
showeq/trunk/src/spawnpointlist.cpp
showeq/trunk/src/xmlconv.cpp
Modified: showeq/trunk/src/spawnlistcommon.cpp
===================================================================
--- showeq/trunk/src/spawnlistcommon.cpp 2021-11-30 14:44:05 UTC (rev 1216)
+++ showeq/trunk/src/spawnlistcommon.cpp 2021-11-30 14:44:12 UTC (rev 1217)
@@ -108,7 +108,7 @@
case Qt::ForegroundRole:
if (filterFlags & FILTER_FLAG_FILTERED)
// color filtered spawns grey
- return Qt::gray;
+ return QColor(Qt::gray);
else
return m_textColor;
Modified: showeq/trunk/src/spawnpointlist.cpp
===================================================================
--- showeq/trunk/src/spawnpointlist.cpp 2021-11-30 14:44:05 UTC (rev 1216)
+++ showeq/trunk/src/spawnpointlist.cpp 2021-11-30 14:44:12 UTC (rev 1217)
@@ -124,7 +124,7 @@
case Qt::ForegroundRole:
if (m_spawnPoint->age() > 220)
- return Qt::red;
+ return QColor(Qt::red);
else
return treeWidget()->foregroundRole();
Modified: showeq/trunk/src/xmlconv.cpp
===================================================================
--- showeq/trunk/src/xmlconv.cpp 2021-11-30 14:44:05 UTC (rev 1216)
+++ showeq/trunk/src/xmlconv.cpp 2021-11-30 14:44:12 UTC (rev 1217)
@@ -256,7 +256,7 @@
else if (e.tagName() == "cursor")
{
if (e.hasAttribute("shape"))
- v = QVariant(QCursor(e.attribute("shape").toInt(&ok, 10)));
+ v = QVariant(QCursor(static_cast<Qt::CursorShape>(e.attribute("shape").toInt(&ok, 10))));
else
qWarning("%s element without value!", e.tagName().toLatin1().data());
}
@@ -517,7 +517,7 @@
case QVariant::KeySequence:
e.setTagName("key");
- e.setAttribute("sequence", (QString)v.value<QKeySequence>());
+ e.setAttribute("sequence", (QString)v.value<QKeySequence>().toString());
break;
case QVariant::ByteArray: // this is only for [u]int64_t
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|