Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

#325 win: don't show two tooltips #326

Merged
merged 1 commit into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/quick/quickstandardtitlebar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ void QuickStandardTitleBar::clickCloseButton()

void QuickStandardTitleBar::retranslateUi()
{
#if (!defined(Q_OS_MACOS) && FRAMELESSHELPER_CONFIG(system_button))
#if (FRAMELESSHELPER_CONFIG(system_button) && defined(Q_OS_LINUX))
qobject_cast<QQuickToolTipAttached *>(qmlAttachedPropertiesObject<QQuickToolTip>(m_minimizeButton))->setText(tr("Minimize"));
qobject_cast<QQuickToolTipAttached *>(qmlAttachedPropertiesObject<QQuickToolTip>(m_maximizeButton))->setText([this]() -> QString {
if (const QQuickWindow * const w = window()) {
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/standardtitlebar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ void StandardTitleBarPrivate::updateChromeButtonColor()

void StandardTitleBarPrivate::retranslateUi()
{
#if (!defined(Q_OS_MACOS) && FRAMELESSHELPER_CONFIG(system_button))
#if (FRAMELESSHELPER_CONFIG(system_button) && defined(Q_OS_LINUX))
minimizeButton->setToolTip(tr("Minimize"));
maximizeButton->setToolTip(window->isMaximized() ? tr("Restore") : tr("Maximize"));
closeButton->setToolTip(tr("Close"));
Expand Down
Loading