From daa9f9fbea2894b9d0ca6e36365e7d7b2b48c05a Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Thu, 8 Oct 2015 18:21:12 +0300 Subject: [PATCH] Show tooltip "author name" and "book name". --HG-- branch : develop --- .../configpages/tapeconfigurationpage.cpp | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/app/tape/dialogs/configpages/tapeconfigurationpage.cpp b/src/app/tape/dialogs/configpages/tapeconfigurationpage.cpp index 36edd1053..b3b7789a7 100644 --- a/src/app/tape/dialogs/configpages/tapeconfigurationpage.cpp +++ b/src/app/tape/dialogs/configpages/tapeconfigurationpage.cpp @@ -106,8 +106,12 @@ void TapeConfigurationPage::LangChanged() void TapeConfigurationPage::SystemChanged() { systemChanged = true; - systemAuthorValueLabel->setText(qApp->TrVars()->PMSystemAuthor(systemCombo->currentData().toString())); - systemBookValueLabel->setText(qApp->TrVars()->PMSystemBook(systemCombo->currentData().toString())); + QString text = qApp->TrVars()->PMSystemAuthor(systemCombo->currentData().toString()); + systemAuthorValueLabel->setText(text); + systemAuthorValueLabel->setToolTip(text); + text = qApp->TrVars()->PMSystemBook(systemCombo->currentData().toString()); + systemBookValueLabel->setText(text); + systemBookValueLabel->setToolTip(text); } //--------------------------------------------------------------------------------------------------------------------- @@ -325,8 +329,12 @@ void TapeConfigurationPage::RetranslateUi() systemAuthorLabel->setText(tr("Author:")); systemBookLabel->setText(tr("Book:")); - systemAuthorValueLabel->setText(qApp->TrVars()->PMSystemAuthor(systemCombo->currentData().toString())); - systemBookValueLabel->setText(qApp->TrVars()->PMSystemBook(systemCombo->currentData().toString())); + QString text = qApp->TrVars()->PMSystemAuthor(systemCombo->currentData().toString()); + systemAuthorValueLabel->setText(text); + systemAuthorValueLabel->setToolTip(text); + text = qApp->TrVars()->PMSystemBook(systemCombo->currentData().toString()); + systemBookValueLabel->setText(text); + systemBookValueLabel->setToolTip(text); separatorLabel->setText(tr("Decimal separator parts")); osOptionCheck = new QCheckBox(tr("With OS options (%1)").arg(QLocale::system().decimalPoint().toLatin1()));