Project Manager: Added Per Project Template Previews and Icon Overlays (#1994)

* Project Manager: Added Per Project Template Previews and Icon Overlays

Signed-off-by: nggieber <nggieber@amazon.com>

* Remove template icon overlays and bake them into template preview

Signed-off-by: nggieber <nggieber@amazon.com>

* Remove unused variables and headers

Signed-off-by: nggieber <nggieber@amazon.com>
This commit is contained in:
AMZN-nggieber
2021-07-09 08:15:34 -07:00
committed by GitHub
parent 097dc25424
commit 5b44ea9b9a
6 changed files with 12 additions and 8 deletions
@@ -6,6 +6,7 @@
*/
#include <TemplateButtonWidget.h>
#include <ProjectManagerDefs.h>
#include <QVBoxLayout>
#include <QLabel>
@@ -16,7 +17,6 @@
namespace O3DE::ProjectManager
{
TemplateButton::TemplateButton(const QString& imagePath, const QString& labelText, QWidget* parent)
: QPushButton(parent)
{
@@ -31,8 +31,8 @@ namespace O3DE::ProjectManager
QLabel* image = new QLabel(this);
image->setObjectName("templateImage");
image->setPixmap(
QPixmap(imagePath).scaled(QSize(s_templateImageWidth,s_templateImageHeight) , Qt::KeepAspectRatio, Qt::SmoothTransformation));
image->setPixmap(QPixmap(imagePath).scaled(
QSize(ProjectTemplateImageWidth, ProjectTemplateImageWidth), Qt::KeepAspectRatio, Qt::SmoothTransformation));
vLayout->addWidget(image);
QLabel* label = new QLabel(labelText, this);