MuseScore  3.4
Music composition and notation
Signals | Public Member Functions | Properties | Private Member Functions | Private Attributes | List of all members
Ms::QmlNativeMenu Class Reference

#include <nativemenu.h>

Inheritance diagram for Ms::QmlNativeMenu:
Inheritance graph
[legend]
Collaboration diagram for Ms::QmlNativeMenu:
Collaboration graph
[legend]

Signals

void visibleChanged ()
 

Public Member Functions

 QmlNativeMenu (QQuickItem *parent=nullptr)
 
int x () const
 
int y () const
 
void setX (int val)
 
void setY (int val)
 
bool visible () const
 
Q_INVOKABLE void open ()
 
Q_INVOKABLE void popup ()
 

Properties

QQmlListProperty< QObject > contentData
 

Private Member Functions

 Q_CLASSINFO ("DefaultProperty", "contentData") Q_PROPERTY(int x READ x WRITE setX) Q_PROPERTY(int y READ y WRITE setY) Q_PROPERTY(bool visible READ visible NOTIFY visibleChanged) QQmlListProperty< QObject > contentData()
 
QMenu * createMenu () const
 
void showMenu (QPoint p)
 

Private Attributes

QList< QObject * > _contentData
 
QPoint pos
 
bool _visible = false
 

Constructor & Destructor Documentation

◆ QmlNativeMenu()

Ms::QmlNativeMenu::QmlNativeMenu ( QQuickItem *  parent = nullptr)

Member Function Documentation

◆ createMenu()

QMenu * Ms::QmlNativeMenu::createMenu ( ) const
private

◆ open()

void Ms::QmlNativeMenu::open ( )

◆ popup()

void Ms::QmlNativeMenu::popup ( )

◆ Q_CLASSINFO()

Ms::QmlNativeMenu::Q_CLASSINFO ( "DefaultProperty"  ,
"contentData"   
)
inlineprivate

◆ setX()

void Ms::QmlNativeMenu::setX ( int  val)
inline

◆ setY()

void Ms::QmlNativeMenu::setY ( int  val)
inline

◆ showMenu()

void Ms::QmlNativeMenu::showMenu ( QPoint  p)
private

◆ visible()

bool Ms::QmlNativeMenu::visible ( ) const
inline

◆ visibleChanged

void Ms::QmlNativeMenu::visibleChanged ( )
signal

◆ x()

int Ms::QmlNativeMenu::x ( ) const
inline

◆ y()

int Ms::QmlNativeMenu::y ( ) const
inline

Member Data Documentation

◆ _contentData

QList<QObject*> Ms::QmlNativeMenu::_contentData
private

◆ _visible

bool Ms::QmlNativeMenu::_visible = false
private

◆ pos

QPoint Ms::QmlNativeMenu::pos
private

Property Documentation

◆ contentData

QQmlListProperty<QObject> Ms::QmlNativeMenu::contentData
read

The documentation for this class was generated from the following files: