diff --git a/NEWS.md b/NEWS.md index 043109728b..8eb4c23ed1 100644 --- a/NEWS.md +++ b/NEWS.md @@ -6,6 +6,7 @@ * Fixed tile stamp getting messed up on staggered maps in some cases (#3431) * JSON plugin: Fixed loading of empty tilesets created by script (#3542) * Improved Terrain Brush for Hexagonal (Staggered) maps with side length 0 (#3617) +* Removed "Add Folder to Project" button from the startup page * Qt 6: Increased the image allocation limit from 128 MB to 1 GB (#3616) * Qt 6 / Linux: Fixed long startup time for some icon themes * snap: Updated from core20 to core22 (now uses Qt 5.15) diff --git a/src/tiled/noeditorwidget.cpp b/src/tiled/noeditorwidget.cpp index 95b8f854cd..5a636c557e 100644 --- a/src/tiled/noeditorwidget.cpp +++ b/src/tiled/noeditorwidget.cpp @@ -26,7 +26,6 @@ #include "mainwindow.h" #include "stylehelper.h" #include "tiledproxystyle.h" -#include "utils.h" #include #include @@ -41,6 +40,8 @@ NoEditorWidget::NoEditorWidget(QWidget *parent) : { ui->setupUi(this); + ui->logo->setPixmap(QPixmap(QString::fromUtf8(":/images/about-tiled-logo.png"))); + auto opacityEffect = new QGraphicsOpacityEffect(this); opacityEffect->setOpacity(0.25); ui->logo->setGraphicsEffect(opacityEffect); @@ -48,7 +49,6 @@ NoEditorWidget::NoEditorWidget(QWidget *parent) : ui->versionLabel->setText(QStringLiteral("%1 %2").arg(QGuiApplication::applicationDisplayName(), QGuiApplication::applicationVersion())); connect(ui->newProjectButton, &QToolButton::clicked, ActionManager::action("NewProject"), &QAction::trigger); - connect(ui->addFolderToProjectButton, &QToolButton::clicked, ActionManager::action("AddFolderToProject"), &QAction::trigger); connect(ui->newMapButton, &QToolButton::clicked, this, &NoEditorWidget::newMap); connect(ui->newTilesetButton, &QToolButton::clicked, this, &NoEditorWidget::newTileset); @@ -100,7 +100,6 @@ void NoEditorWidget::openFile() void NoEditorWidget::retranslateUi() { ui->newProjectButton->setText(ActionManager::action("NewProject")->text()); - ui->addFolderToProjectButton->setText(ActionManager::action("AddFolderToProject")->text()); ui->openFileButton->setText(ActionManager::action("Open")->text()); } diff --git a/src/tiled/noeditorwidget.ui b/src/tiled/noeditorwidget.ui index f3b614dd3d..29f044fdfe 100644 --- a/src/tiled/noeditorwidget.ui +++ b/src/tiled/noeditorwidget.ui @@ -102,33 +102,6 @@ - - - - - - Add Folder to Project... - - - Qt::ToolButtonTextOnly - - - - - - - Qt::Horizontal - - - - 88 - 20 - - - - - - @@ -244,9 +217,6 @@ - - :/images/about-tiled-logo.png - Qt::AlignCenter @@ -256,8 +226,6 @@ - - - +