mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
parent
25add89b14
commit
485fc5cdb4
|
@ -54,7 +54,7 @@
|
|||
- Bugfix: Fixed some windows appearing between screens. (#4797)
|
||||
- Bugfix: Fixed a crash that could occur when using certain features in a Usercard after closing the split from which it was created. (#5034)
|
||||
- Bugfix: Fixed a crash that could occur when using certain features in a Reply popup after closing the split from which it was created. (#5036)
|
||||
- Bugfix: Fixed a bug on Wayland where tooltips would spawn as separate windows instead of behaving like tooltips. (#4998)
|
||||
- Bugfix: Fixed a bug on Wayland where tooltips would spawn as separate windows instead of behaving like tooltips. (#4998, #5040)
|
||||
- Bugfix: Fixes to section deletion in text input fields. (#5013)
|
||||
- Bugfix: Show user text input within watch streak notices. (#5029)
|
||||
- Dev: Run miniaudio in a separate thread, and simplify it to not manage the device ourselves. There's a chance the simplification is a bad idea. (#4978)
|
||||
|
|
|
@ -10,13 +10,34 @@
|
|||
// number of columns in grid mode
|
||||
#define GRID_NUM_COLS 3
|
||||
|
||||
namespace {
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
template <typename T>
|
||||
inline constexpr T *tooltipParentFor(T * /*desiredParent*/)
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
#else
|
||||
template <typename T>
|
||||
inline constexpr T *tooltipParentFor(T *desiredParent)
|
||||
{
|
||||
return desiredParent;
|
||||
}
|
||||
#endif
|
||||
|
||||
} // namespace
|
||||
|
||||
namespace chatterino {
|
||||
|
||||
TooltipWidget::TooltipWidget(BaseWidget *parent)
|
||||
: BaseWindow({BaseWindow::TopMost, BaseWindow::DontFocus,
|
||||
BaseWindow::DisableLayoutSave},
|
||||
parent)
|
||||
tooltipParentFor(parent))
|
||||
{
|
||||
assert(parent != nullptr);
|
||||
QObject::connect(parent, &QObject::destroyed, this, &QObject::deleteLater);
|
||||
|
||||
this->setStyleSheet("color: #fff; background: rgba(11, 11, 11, 0.8)");
|
||||
this->setAttribute(Qt::WA_TranslucentBackground);
|
||||
this->setWindowFlag(Qt::WindowStaysOnTopHint, true);
|
||||
|
|
Loading…
Reference in a new issue