From f1b32e5d456196955cdc51908488fca6d5f5a5fd Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Wed, 6 Apr 2022 10:59:02 +0200 Subject: [PATCH] making QVector happy --- src/controls/QskMenu.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/controls/QskMenu.cpp b/src/controls/QskMenu.cpp index 387435f9..d33e6dbf 100644 --- a/src/controls/QskMenu.cpp +++ b/src/controls/QskMenu.cpp @@ -25,6 +25,8 @@ namespace class Option { public: + Option() = default; + Option( const QUrl& graphicSource, const QString& text ) : graphicSource( graphicSource ) , text( text ) @@ -118,13 +120,7 @@ QPointF QskMenu::origin() const void QskMenu::addOption( const QUrl& graphicSource, const QString& text ) { -#if 0 - // does not work with Qt 5.6 version of QVector. TODO ... m_data->options += Option( graphicSource, text ); -#else - Q_UNUSED( graphicSource ) - Q_UNUSED( text ) -#endif resetImplicitSize(); update();