Skip to content
Snippets Groups Projects

Project view without .ui

Merged Wuttke, Joachim requested to merge j.ui1 into main
1 file
+ 3
3
Compare changes
  • Side-by-side
  • Inline
@@ -60,10 +60,10 @@ ProjectsView::ProjectsView(QWidget* parent)
for (const auto& file : pm->recentProjects()) {
auto* button = new QCommandLinkButton;
button->setText(QFileInfo(file).baseName());
button->setDescription(GUI::Base::Path::withTildeHomePath(QDir::toNativeSeparators(file)));
button->setDescription(
GUI::Base::Path::withTildeHomePath(QDir::toNativeSeparators(file)));
button->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Minimum);
connect(button, &QCommandLinkButton::clicked,
[pm, file] { pm->openProject(file); });
connect(button, &QCommandLinkButton::clicked, [pm, file] { pm->openProject(file); });
prjList->addWidget(button);
}
Loading