mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Merge pull request #1108 from tsoding/1100
(#1100) Clean TooltipPreviewImage on SplitHeader enterEvent
This commit is contained in:
commit
fe69dfb5e0
1 changed files with 3 additions and 0 deletions
|
@ -10,6 +10,7 @@
|
||||||
#include "singletons/Resources.hpp"
|
#include "singletons/Resources.hpp"
|
||||||
#include "singletons/Settings.hpp"
|
#include "singletons/Settings.hpp"
|
||||||
#include "singletons/Theme.hpp"
|
#include "singletons/Theme.hpp"
|
||||||
|
#include "singletons/TooltipPreviewImage.hpp"
|
||||||
#include "singletons/WindowManager.hpp"
|
#include "singletons/WindowManager.hpp"
|
||||||
#include "util/LayoutCreator.hpp"
|
#include "util/LayoutCreator.hpp"
|
||||||
#include "util/LayoutHelper.hpp"
|
#include "util/LayoutHelper.hpp"
|
||||||
|
@ -599,6 +600,8 @@ void SplitHeader::enterEvent(QEvent *event)
|
||||||
{
|
{
|
||||||
if (!this->tooltipText_.isEmpty())
|
if (!this->tooltipText_.isEmpty())
|
||||||
{
|
{
|
||||||
|
TooltipPreviewImage::getInstance().setImage(nullptr);
|
||||||
|
|
||||||
auto tooltip = TooltipWidget::getInstance();
|
auto tooltip = TooltipWidget::getInstance();
|
||||||
tooltip->moveTo(this, this->mapToGlobal(this->rect().bottomLeft()),
|
tooltip->moveTo(this, this->mapToGlobal(this->rect().bottomLeft()),
|
||||||
false);
|
false);
|
||||||
|
|
Loading…
Reference in a new issue