Share View::setObjectName() implementation between qtwidgets/qtquick
This commit is contained in:
@@ -53,6 +53,12 @@ QObject *View_qt::thisObject() const
|
||||
return m_thisObj;
|
||||
}
|
||||
|
||||
void View_qt::setObjectName(const QString &name)
|
||||
{
|
||||
if (m_thisObj)
|
||||
m_thisObj->setObjectName(name);
|
||||
}
|
||||
|
||||
/*static*/
|
||||
QObject *View_qt::asObject(View *view)
|
||||
{
|
||||
|
||||
@@ -33,6 +33,8 @@ public:
|
||||
|
||||
QObject *thisObject() const;
|
||||
|
||||
void setObjectName(const QString &name) override;
|
||||
|
||||
/// TODOm3: Rename to asQObject once View::asQObject is gone
|
||||
static QObject *asObject(View *);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user