ui: updated about window
This commit is contained in:
@@ -0,0 +1,23 @@
|
|||||||
|
* {
|
||||||
|
color: white;
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: 100;
|
||||||
|
}
|
||||||
|
|
||||||
|
#small {
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#closeButton {
|
||||||
|
background: transparent;
|
||||||
|
border: none;
|
||||||
|
color: white;
|
||||||
|
font-size: 14pt;
|
||||||
|
height: 20px;
|
||||||
|
width: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#closeButton:hover {
|
||||||
|
border: 2px solid white;
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 30 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
@@ -3,7 +3,11 @@
|
|||||||
#include <QFormLayout>
|
#include <QFormLayout>
|
||||||
#include <QLineEdit>
|
#include <QLineEdit>
|
||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
|
#include <QHBoxLayout>
|
||||||
|
#include <QVBoxLayout>
|
||||||
|
|
||||||
|
#include "qt/utility/QtDeviceScaledPixmap.h"
|
||||||
|
#include "qt/utility/utilityQt.h"
|
||||||
#include "utility/Version.h"
|
#include "utility/Version.h"
|
||||||
|
|
||||||
QtAbout::QtAbout(QWidget *parent)
|
QtAbout::QtAbout(QWidget *parent)
|
||||||
@@ -14,39 +18,84 @@ QtAbout::QtAbout(QWidget *parent)
|
|||||||
|
|
||||||
QSize QtAbout::sizeHint() const
|
QSize QtAbout::sizeHint() const
|
||||||
{
|
{
|
||||||
return QSize(500,500);
|
return QSize(370, 550);
|
||||||
}
|
}
|
||||||
|
|
||||||
void QtAbout::setup()
|
void QtAbout::setup()
|
||||||
{
|
{
|
||||||
setupForm();
|
m_window->setStyleSheet(
|
||||||
|
m_window->styleSheet() +
|
||||||
|
"#SettingWindow { "
|
||||||
|
"background: qlineargradient( x1:0 y1:0.4, x2:0 y2:1, stop:0 #2F3F86, stop:1 #1C7BBC );"
|
||||||
|
"border: none;"
|
||||||
|
"}"
|
||||||
|
);
|
||||||
|
|
||||||
updateTitle("About Coati");
|
setStyleSheet(utility::getStyleSheet("data/gui/about/about.css").c_str());
|
||||||
updateDoneButton("Ok");
|
|
||||||
hideCancelButton(true);
|
QtDeviceScaledPixmap coatiLogo("data/gui/about/logo.png");
|
||||||
}
|
coatiLogo.scaleToWidth(180);
|
||||||
|
QLabel* coatiLogoLabel = new QLabel(this);
|
||||||
|
coatiLogoLabel->setPixmap(coatiLogo.pixmap());
|
||||||
|
coatiLogoLabel->resize(coatiLogo.width(), coatiLogo.height());
|
||||||
|
coatiLogoLabel->move(8, 20);
|
||||||
|
|
||||||
|
QLabel* versionLabel = new QLabel(("Version " + Version::getApplicationVersion().toDisplayString()).c_str(), this);
|
||||||
|
versionLabel->move(210, 181);
|
||||||
|
|
||||||
|
QLabel* developerTitle = new QLabel("Developed by:", this);
|
||||||
|
developerTitle->move(30, 220);
|
||||||
|
|
||||||
|
QLabel* companyLabel = new QLabel(
|
||||||
|
"Coati Software OG\n"
|
||||||
|
"Schlossallee 7/1\n"
|
||||||
|
"5412 Puch bei Hallein\n"
|
||||||
|
"Austria\n"
|
||||||
|
"support@coati.io\n",
|
||||||
|
this
|
||||||
|
);
|
||||||
|
companyLabel->move(210, 250);
|
||||||
|
|
||||||
void QtAbout::populateForm(QFormLayout* layout)
|
|
||||||
{
|
|
||||||
QLabel* developerName = new QLabel("Developed by:");
|
|
||||||
developerName->setAlignment(Qt::AlignTop);
|
|
||||||
QLabel* developerLabel = new QLabel(
|
QLabel* developerLabel = new QLabel(
|
||||||
"Manuel Dobusch\n"
|
"Manuel Dobusch\n"
|
||||||
"Eberhard Gräther\n"
|
"Eberhard Gräther\n"
|
||||||
"Malte Langkabel\n"
|
"Malte Langkabel\n"
|
||||||
"Victoria Pfausler\n"
|
"Viktoria Pfausler\n"
|
||||||
"Andreas Stallinger\n");
|
"Andreas Stallinger\n",
|
||||||
developerLabel->setAlignment(Qt::AlignTop);
|
this
|
||||||
layout->addRow(developerName, developerLabel);
|
);
|
||||||
|
developerLabel->move(30, 250);
|
||||||
|
|
||||||
QLabel* acknowledgementsName = new QLabel("Acknowledgements:");
|
QLabel* acknowledgementsTitle = new QLabel("Acknowledgements:", this);
|
||||||
acknowledgementsName->setAlignment(Qt::AlignTop);
|
acknowledgementsTitle->setObjectName("small");
|
||||||
QLabel* acknowledgementsLabel = new QLabel("Coati 0.1 was created in the context of education at the University of Applied Sciences Salzburg\n");
|
acknowledgementsTitle->move(30, 355);
|
||||||
acknowledgementsLabel->setWordWrap(true);
|
|
||||||
acknowledgementsLabel->setAlignment(Qt::AlignTop);
|
|
||||||
layout->addRow(acknowledgementsName, acknowledgementsLabel);
|
|
||||||
|
|
||||||
layout->addRow(QString("Version:"), new QLabel(Version::getApplicationVersion().toDisplayString().c_str()));
|
QLabel* acknowledgementsLabel = new QLabel(
|
||||||
|
"Coati 0.1 was created in the context of education at",
|
||||||
|
this
|
||||||
|
);
|
||||||
|
acknowledgementsLabel->setObjectName("small");
|
||||||
|
acknowledgementsLabel->move(30, 385);
|
||||||
|
|
||||||
|
QtDeviceScaledPixmap fhsLogo("data/gui/about/logo_fhs.png");
|
||||||
|
fhsLogo.scaleToWidth(150);
|
||||||
|
QLabel* fhsLabel = new QLabel(this);
|
||||||
|
fhsLabel->setPixmap(fhsLogo.pixmap());
|
||||||
|
fhsLabel->resize(fhsLogo.width(), fhsLogo.height());
|
||||||
|
fhsLabel->move(115, 410);
|
||||||
|
|
||||||
|
QLabel* acknowledgementsLabel2 = new QLabel(
|
||||||
|
"Coati Software OG takes part in the Startup Salzburg\ninitiative.",
|
||||||
|
this
|
||||||
|
);
|
||||||
|
acknowledgementsLabel2->setObjectName("small");
|
||||||
|
acknowledgementsLabel2->move(30, 465);
|
||||||
|
|
||||||
|
QPushButton* closeButton = new QPushButton("X", this);
|
||||||
|
closeButton->setObjectName("closeButton");
|
||||||
|
closeButton->move(320, 20);
|
||||||
|
|
||||||
|
connect(closeButton, SIGNAL(clicked()), this, SLOT(handleDoneButtonPress()));
|
||||||
}
|
}
|
||||||
|
|
||||||
void QtAbout::handleCancelButtonPress()
|
void QtAbout::handleCancelButtonPress()
|
||||||
|
|||||||
@@ -16,8 +16,6 @@ public:
|
|||||||
QSize sizeHint() const Q_DECL_OVERRIDE;
|
QSize sizeHint() const Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
virtual void setup() override;
|
virtual void setup() override;
|
||||||
protected:
|
|
||||||
virtual void populateForm(QFormLayout* layout) override;
|
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void handleCancelButtonPress();
|
void handleCancelButtonPress();
|
||||||
|
|||||||
Reference in New Issue
Block a user