mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 01:04:06 +02:00
rename 'target' to 'targetOverride' to indicate that parameter overrides default target
This commit is contained in:
parent
871b169128
commit
8b39c56aa1
2 changed files with 3 additions and 3 deletions
|
@ -987,8 +987,8 @@ static bool equals(const QByteArray& byteArray, const uint8_t* ptr) {
|
|||
return ptr[i] == 0x00;
|
||||
}
|
||||
|
||||
void OffscreenQmlSurface::synthesizeKeyPress(QString key, QObject* target) {
|
||||
auto eventHandler = target ? target : getEventHandler();
|
||||
void OffscreenQmlSurface::synthesizeKeyPress(QString key, QObject* targetOverride) {
|
||||
auto eventHandler = targetOverride ? targetOverride : getEventHandler();
|
||||
if (eventHandler) {
|
||||
auto utf8Key = key.toUtf8();
|
||||
|
||||
|
|
|
@ -79,7 +79,7 @@ public:
|
|||
bool eventFilter(QObject* originalDestination, QEvent* event) override;
|
||||
|
||||
void setKeyboardRaised(QObject* object, bool raised, bool numeric = false);
|
||||
Q_INVOKABLE void synthesizeKeyPress(QString key, QObject* target = nullptr);
|
||||
Q_INVOKABLE void synthesizeKeyPress(QString key, QObject* targetOverride = nullptr);
|
||||
|
||||
using TextureAndFence = std::pair<uint32_t, void*>;
|
||||
// Checks to see if a new texture is available. If one is, the function returns true and
|
||||
|
|
Loading…
Reference in a new issue