From 68a5346fe51fb05eb9487f7a886aa0bcc4a98fc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=B0=91=E5=8B=87?= Date: Wed, 28 Sep 2022 17:03:42 +0800 Subject: [PATCH] =?UTF-8?q?label=E6=98=BE=E7=A4=BA=E8=B6=85=E9=95=BF?= =?UTF-8?q?=E7=9C=81=E7=95=A5=E6=97=B6=EF=BC=8C=E5=A2=9E=E5=8A=A0tooltips?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kybackup/leftsiderbarwidget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kybackup/leftsiderbarwidget.cpp b/kybackup/leftsiderbarwidget.cpp index fe3699b..0984a44 100755 --- a/kybackup/leftsiderbarwidget.cpp +++ b/kybackup/leftsiderbarwidget.cpp @@ -152,4 +152,6 @@ void LeftsiderbarWidget::paintEvent(QPaintEvent *event) style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this); m_titleLabel->setElidedText(tr("Backup & Restore")); + if (m_titleLabel->text() != tr("Backup & Restore")) + m_titleLabel->setToolTip(tr("Backup & Restore")); }