From 197938ecc477593dcdc47a933900f4f4830871c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole-Andr=C3=A9=20Rodlie?= Date: Sun, 13 Oct 2024 16:12:43 +0200 Subject: [PATCH] Update welcomedialog.cpp --- src/ui/widgets/welcomedialog.cpp | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/ui/widgets/welcomedialog.cpp b/src/ui/widgets/welcomedialog.cpp index 8a3b53d99..5b53bcb0c 100644 --- a/src/ui/widgets/welcomedialog.cpp +++ b/src/ui/widgets/welcomedialog.cpp @@ -70,20 +70,28 @@ WelcomeDialog::WelcomeDialog(QMenu *recentMenu, const auto buttonLay = new QHBoxLayout(buttonWid); buttonLay->setMargin(0); - const auto newButton = new QPushButton(tr("New"), this); + const auto newButton = new QPushButton(QIcon::fromTheme("file_new"), + tr("New"), + this); + newButton->setFocusPolicy(Qt::NoFocus); newButton->setObjectName("WelcomeButton"); newButton->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Expanding); connect(newButton, &QPushButton::released, newFunc); - const auto openButton = new QPushButton(this); + const auto openButton = new QPushButton(QIcon::fromTheme("file_folder"), + tr("Open"), + this); + openButton->setFocusPolicy(Qt::NoFocus); openButton->setObjectName("WelcomeButton"); - openButton->setText(tr("Open")); openButton->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Expanding); connect(openButton, &QPushButton::released, openFunc); - mRecentButton = new QPushButton(tr("Open Recent"), this); + mRecentButton = new QPushButton(QIcon::fromTheme("file_folder"), + tr("Recent"), + this); + mRecentButton->setFocusPolicy(Qt::NoFocus); mRecentButton->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred); mRecentButton->setContentsMargins(0, 0, 0, 0);