Rename two more pre-processor variables

This commit is contained in:
Simon Hausmann 2022-02-02 13:38:44 +01:00
parent 1a0a495bc5
commit b45433951a
3 changed files with 7 additions and 7 deletions

View file

@ -202,9 +202,9 @@ inline vtable::Layout drop_in_place(ComponentRef component)
// so we have a relocation to a function that returns the address we seek. That
// relocation will be resolved to the locally linked stub library, the implementation of
// which will be patched.
# define SIXTYFPS_GET_ITEM_VTABLE(VTableName) slint::private_api::slint_get_##VTableName()
# define SLINT_GET_ITEM_VTABLE(VTableName) slint::private_api::slint_get_##VTableName()
# else
# define SIXTYFPS_GET_ITEM_VTABLE(VTableName) (&slint::private_api::VTableName)
# define SLINT_GET_ITEM_VTABLE(VTableName) (&slint::private_api::VTableName)
# endif
#endif // !defined(DOXYGEN)

View file

@ -10,10 +10,10 @@
#include <optional>
#if !defined(DOXYGEN)
# define SIXTYFPS_QT_INTEGRATION // In the future, should be defined by cmake only if this is
// enabled
# define SLINT_QT_INTEGRATION // In the future, should be defined by cmake only if this is
// enabled
#endif
#ifdef SIXTYFPS_QT_INTEGRATION
#ifdef SLINT_QT_INTEGRATION
class QWidget;
#endif
@ -569,7 +569,7 @@ public:
cbindgen_private::slint_run_event_loop();
hide();
}
#if defined(SIXTYFPS_QT_INTEGRATION) || defined(DOXYGEN)
#if defined(SLINT_QT_INTEGRATION) || defined(DOXYGEN)
/// Return a QWidget for this instance.
/// This function is only available if the qt graphical backend was compiled in, and
/// it may return nullptr if the Qt backend is not used at runtime.