mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-08-02 17:00:23 -04:00
27 lines
614 B
Modula-2
27 lines
614 B
Modula-2
|
|
|
|
native class QObject as Native.QObject
|
|
{
|
|
void deleteLater();
|
|
|
|
QString objectName();
|
|
void setObjectName(QString name);
|
|
|
|
inline void setParent( QObject parent )
|
|
{
|
|
((QObject*)self)->setParent( parent );
|
|
}
|
|
|
|
void setProperty( string key, bool value );
|
|
void setProperty( string key, float value );
|
|
void setProperty( string key, string value );
|
|
|
|
// Calling deleteLater via a singleShot with 0ms delay to avoid potential crashes
|
|
// when deleteLater is called from within certain event handlers.
|
|
inline void deleteMuchLater()
|
|
{
|
|
QTimer::singleShot( 0, (QObject*)self, &QObject::deleteLater );
|
|
}
|
|
}
|
|
|