Skip to content

Commit

Permalink
Update welcomedialog.cpp
Browse files Browse the repository at this point in the history
Auto popup recent projects when hover
  • Loading branch information
rodlie committed Mar 11, 2024
1 parent 3c010d8 commit 8860009
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/app/GUI/welcomedialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include <QPainter>
#include <QLabel>

#include "toolbutton.h"
#include "appsupport.h"

WelcomeDialog::WelcomeDialog(QMenu *recentMenu,
Expand Down Expand Up @@ -80,11 +81,13 @@ WelcomeDialog::WelcomeDialog(QMenu *recentMenu,
QSizePolicy::Expanding);
connect(openButton, &QPushButton::released, openFunc);

const auto recentButton = new QPushButton(tr("Open Recent"), this);
const auto recentButton = new ToolButton(this, true);
const auto recentDefaultAct = new QAction(tr("Open Recent"), this);
recentButton->setDefaultAction(recentDefaultAct);
recentButton->setSizePolicy(QSizePolicy::Preferred,
QSizePolicy::Preferred);
recentButton->setContentsMargins(0, 0, 0, 0);
recentButton->setObjectName("WelcomeRecentButton");
recentButton->setObjectName("FlatButton");
recentButton->setMenu(recentMenu);

thisLay->addWidget(mainWid, 0, Qt::AlignHCenter | Qt::AlignVCenter);
Expand Down

0 comments on commit 8860009

Please sign in to comment.