From 2ac9b4d0e7592ec3c9674a668e507133a413c3ef Mon Sep 17 00:00:00 2001 From: fourtf <tf.four@gmail.com> Date: Thu, 24 May 2018 10:07:31 +0200 Subject: [PATCH] minor addition to the last commit --- src/widgets/helper/splitheader.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/widgets/helper/splitheader.cpp b/src/widgets/helper/splitheader.cpp index 72d8b07a3..0dc58e4ec 100644 --- a/src/widgets/helper/splitheader.cpp +++ b/src/widgets/helper/splitheader.cpp @@ -66,7 +66,7 @@ SplitHeader::SplitHeader(Split *_split) // mode button auto mode = layout.emplace<RippleEffectLabel>(this).assign(&this->modeButton); - mode->getLabel().setText("dank\nmemes"); + mode->hide(); // QObject::connect(mode.getElement(), &RippleEffectButton::clicked, this, [this] // { @@ -230,6 +230,7 @@ void SplitHeader::updateModes() { TwitchChannel *tc = dynamic_cast<TwitchChannel *>(this->split->getChannel().get()); if (tc == nullptr) { + this->modeButton->hide(); return; } @@ -310,6 +311,7 @@ void SplitHeader::mouseReleaseEvent(QMouseEvent *event) widget->setAttribute(Qt::WA_DeleteOnClose); widget->move(pos); widget->show(); + widget->raise(); QTimer::singleShot(3000, widget, [this, widget] { widget->close();