refactored Channel

This commit is contained in:
fourtf
2018-07-06 17:30:12 +02:00
parent b639604a47
commit aa3df2e6d8
14 changed files with 55 additions and 59 deletions
+5 -5
View File
@@ -84,7 +84,7 @@ AttachedWindow *AttachedWindow::get(void *target, const GetArgs &args)
}
if (show) {
window->updateWindowRect_(window->target_);
window->updateWindowRect(window->target_);
window->show();
}
@@ -107,10 +107,10 @@ void AttachedWindow::setChannel(ChannelPtr channel)
void AttachedWindow::showEvent(QShowEvent *)
{
this->attachToHwnd_(this->target_);
this->attachToHwnd(this->target_);
}
void AttachedWindow::attachToHwnd_(void *_attachedPtr)
void AttachedWindow::attachToHwnd(void *_attachedPtr)
{
#ifdef USEWINSDK
if (this->attached_) {
@@ -145,13 +145,13 @@ void AttachedWindow::attachToHwnd_(void *_attachedPtr)
this->validProcessName_ = true;
}
this->updateWindowRect_(attached);
this->updateWindowRect(attached);
});
this->timer_.start();
#endif
}
void AttachedWindow::updateWindowRect_(void *_attachedPtr)
void AttachedWindow::updateWindowRect(void *_attachedPtr)
{
#ifdef USEWINSDK
auto hwnd = HWND(this->winId());