forked from quickshell/quickshell
core/generation: short circuit findObjectGeneration if only one exists
This commit is contained in:
parent
29d31f5d3b
commit
7db3772641
2 changed files with 7 additions and 5 deletions
|
@ -45,8 +45,8 @@ public:
|
|||
void registerExtension(const void* key, EngineGenerationExt* extension);
|
||||
EngineGenerationExt* findExtension(const void* key);
|
||||
|
||||
static EngineGeneration* findEngineGeneration(QQmlEngine* engine);
|
||||
static EngineGeneration* findObjectGeneration(QObject* object);
|
||||
static EngineGeneration* findEngineGeneration(const QQmlEngine* engine);
|
||||
static EngineGeneration* findObjectGeneration(const QObject* object);
|
||||
|
||||
// Returns the current generation if there is only one generation,
|
||||
// otherwise null.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue