making QVector happy
This commit is contained in:
parent
a0f3a925ff
commit
f1b32e5d45
|
@ -25,6 +25,8 @@ namespace
|
||||||
class Option
|
class Option
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
Option() = default;
|
||||||
|
|
||||||
Option( const QUrl& graphicSource, const QString& text )
|
Option( const QUrl& graphicSource, const QString& text )
|
||||||
: graphicSource( graphicSource )
|
: graphicSource( graphicSource )
|
||||||
, text( text )
|
, text( text )
|
||||||
|
@ -118,13 +120,7 @@ QPointF QskMenu::origin() const
|
||||||
|
|
||||||
void QskMenu::addOption( const QUrl& graphicSource, const QString& text )
|
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 );
|
m_data->options += Option( graphicSource, text );
|
||||||
#else
|
|
||||||
Q_UNUSED( graphicSource )
|
|
||||||
Q_UNUSED( text )
|
|
||||||
#endif
|
|
||||||
|
|
||||||
resetImplicitSize();
|
resetImplicitSize();
|
||||||
update();
|
update();
|
||||||
|
|
Loading…
Reference in New Issue