Merge pull request #1973 from calamares/issue-1967

[calamares] Improve "about" and "debug" buttons
This commit is contained in:
Adriaan de Groot 2022-06-07 16:01:14 +02:00 committed by GitHub
commit 0141e681df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -138,12 +138,14 @@ getWidgetSidebar( Calamares::DebugWindowManager* debug,
if ( /* About-Calamares Button enabled */ true )
{
QPushButton* aboutDialog = new QPushButton;
aboutDialog->setObjectName( "aboutDialogButton" );
aboutDialog->setObjectName( "aboutButton" );
aboutDialog->setIcon( CalamaresUtils::defaultPixmap( CalamaresUtils::Information,
CalamaresUtils::Original,
2 * QSize( defaultFontHeight, defaultFontHeight ) ) );
CALAMARES_RETRANSLATE_FOR(
aboutDialog,
aboutDialog->setText(
QCoreApplication::translate( CalamaresWindow::staticMetaObject.className(), "About" ) );
aboutDialog->setToolTip( QCoreApplication::translate( CalamaresWindow::staticMetaObject.className(),
"Show information about Calamares" ) ); );
extraButtons->addWidget( aboutDialog );
@ -158,6 +160,8 @@ getWidgetSidebar( Calamares::DebugWindowManager* debug,
debugWindowBtn->setIcon( CalamaresUtils::defaultPixmap(
CalamaresUtils::Bugs, CalamaresUtils::Original, 2 * QSize( defaultFontHeight, defaultFontHeight ) ) );
CALAMARES_RETRANSLATE_FOR( debugWindowBtn,
debugWindowBtn->setText( QCoreApplication::translate(
CalamaresWindow::staticMetaObject.className(), "Debug" ) );
debugWindowBtn->setToolTip( QCoreApplication::translate(
CalamaresWindow::staticMetaObject.className(), "Show debug information" ) ); );
extraButtons->addWidget( debugWindowBtn );