rename 'target' to 'targetOverride' to indicate that parameter overrides default target

This commit is contained in:
beholder 2017-09-18 20:40:22 +03:00
parent 871b169128
commit 8b39c56aa1
2 changed files with 3 additions and 3 deletions

View file

@ -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();

View file

@ -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