Fix open first start button translation

This commit is contained in:
qewer33
2024-08-05 13:36:39 +03:00
committed by Chris Hennes
parent 001cb880b2
commit ab79cf0b94
2 changed files with 4 additions and 1 deletions

View File

@@ -177,7 +177,7 @@ StartView::StartView(QWidget* parent)
auto footerLayout = gsl::owner<QHBoxLayout*>(new QHBoxLayout());
documentsMainLayout->addLayout(footerLayout);
auto _openFirstStart = gsl::owner<QPushButton*>(new QPushButton(tr("Open first start setup")));
_openFirstStart = gsl::owner<QPushButton*>(new QPushButton());
_openFirstStart->setIcon(QIcon(QLatin1String(":/icons/preferences-general.svg")));
connect(_openFirstStart, &QPushButton::clicked, this, &StartView::openFirstStartClicked);
@@ -481,6 +481,7 @@ void StartView::retranslateUi()
_recentFilesLabel->setText(h1Start + tr("Recent Files") + h1End);
QString application = QString::fromUtf8(App::Application::Config()["ExeName"].c_str());
_openFirstStart->setText(tr("Open first start setup"));
_showOnStartupCheckBox->setText(
tr("Don't show this Start page again (start with blank screen)"));
}

View File

@@ -39,6 +39,7 @@ class QLabel;
class QListView;
class QScrollArea;
class QStackedWidget;
class QPushButton;
namespace Gui
{
@@ -103,6 +104,7 @@ private:
QLabel* _newFileLabel;
QLabel* _examplesLabel;
QLabel* _recentFilesLabel;
QPushButton* _openFirstStart;
QCheckBox* _showOnStartupCheckBox;