2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Replace T_WIDGET macro with a template base class.

This commit is contained in:
John Preston
2017-02-11 14:24:37 +03:00
parent 61b55706ae
commit 25583fa813
63 changed files with 256 additions and 258 deletions

View File

@@ -792,7 +792,7 @@ bool Notification::unlinkHistory(History *history) {
return unlink;
}
void Notification::enterEvent(QEvent *e) {
void Notification::enterEventHook(QEvent *e) {
if (!_history) return;
if (auto manager = ManagerInstance.data()) {
manager->stopAllHiding();
@@ -802,7 +802,7 @@ void Notification::enterEvent(QEvent *e) {
}
}
void Notification::leaveEvent(QEvent *e) {
void Notification::leaveEventHook(QEvent *e) {
if (!_history) return;
if (auto manager = ManagerInstance.data()) {
manager->startAllHiding();
@@ -892,12 +892,12 @@ HideAllButton::~HideAllButton() {
}
}
void HideAllButton::enterEvent(QEvent *e) {
void HideAllButton::enterEventHook(QEvent *e) {
_mouseOver = true;
update();
}
void HideAllButton::leaveEvent(QEvent *e) {
void HideAllButton::leaveEventHook(QEvent *e) {
_mouseOver = false;
update();
}