[calamares] Restore text on debug- and about-buttons

This commit is contained in:
Adriaan de Groot 2022-06-03 12:08:09 +02:00
parent 13153df484
commit e6960ceec1

View File

@ -144,6 +144,8 @@ getWidgetSidebar( Calamares::DebugWindowManager* debug,
2 * QSize( defaultFontHeight, defaultFontHeight ) ) ); 2 * QSize( defaultFontHeight, defaultFontHeight ) ) );
CALAMARES_RETRANSLATE_FOR( CALAMARES_RETRANSLATE_FOR(
aboutDialog, aboutDialog,
aboutDialog->setText(
QCoreApplication::translate( CalamaresWindow::staticMetaObject.className(), "About" ) );
aboutDialog->setToolTip( QCoreApplication::translate( CalamaresWindow::staticMetaObject.className(), aboutDialog->setToolTip( QCoreApplication::translate( CalamaresWindow::staticMetaObject.className(),
"Show information about Calamares" ) ); ); "Show information about Calamares" ) ); );
extraButtons->addWidget( aboutDialog ); extraButtons->addWidget( aboutDialog );
@ -158,6 +160,8 @@ getWidgetSidebar( Calamares::DebugWindowManager* debug,
debugWindowBtn->setIcon( CalamaresUtils::defaultPixmap( debugWindowBtn->setIcon( CalamaresUtils::defaultPixmap(
CalamaresUtils::Bugs, CalamaresUtils::Original, 2 * QSize( defaultFontHeight, defaultFontHeight ) ) ); CalamaresUtils::Bugs, CalamaresUtils::Original, 2 * QSize( defaultFontHeight, defaultFontHeight ) ) );
CALAMARES_RETRANSLATE_FOR( debugWindowBtn, CALAMARES_RETRANSLATE_FOR( debugWindowBtn,
debugWindowBtn->setText( QCoreApplication::translate(
CalamaresWindow::staticMetaObject.className(), "Debug" ) );
debugWindowBtn->setToolTip( QCoreApplication::translate( debugWindowBtn->setToolTip( QCoreApplication::translate(
CalamaresWindow::staticMetaObject.className(), "Show debug information" ) ); ); CalamaresWindow::staticMetaObject.className(), "Show debug information" ) ); );
extraButtons->addWidget( debugWindowBtn ); extraButtons->addWidget( debugWindowBtn );