making QVector happy

This commit is contained in:
Uwe Rathmann 2022-04-06 10:59:02 +02:00
parent a0f3a925ff
commit f1b32e5d45
1 changed files with 2 additions and 6 deletions

View File

@ -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();