mirror of
https://github.com/logos-storage/logos-storage-app-skeleton.git
synced 2026-08-06 14:13:14 +00:00
Remove the about dialog from app
This commit is contained in:
parent
02ff71e116
commit
e0dc9344ea
@ -1,32 +0,0 @@
|
||||
// AboutDialog.cpp
|
||||
#include "AboutDialog.h"
|
||||
#include <QVBoxLayout>
|
||||
#include <QLabel>
|
||||
#include <QPixmap>
|
||||
|
||||
AboutDialog::AboutDialog(QWidget *parent)
|
||||
: QDialog(parent)
|
||||
{
|
||||
setWindowTitle("About Logos Storage UI");
|
||||
setFixedSize(300, 220);
|
||||
|
||||
auto *layout = new QVBoxLayout(this);
|
||||
|
||||
auto *logo = new QLabel(this);
|
||||
logo->setPixmap(
|
||||
QPixmap(":/images/assets/logos.png")
|
||||
.scaled(128, 128, Qt::KeepAspectRatio, Qt::SmoothTransformation)
|
||||
);
|
||||
logo->setAlignment(Qt::AlignCenter);
|
||||
|
||||
auto *text = new QLabel(
|
||||
"<b>Logos Storage UI</b><br>"
|
||||
"Version 1.0.0",
|
||||
this
|
||||
);
|
||||
text->setAlignment(Qt::AlignCenter);
|
||||
text->setTextFormat(Qt::RichText);
|
||||
|
||||
layout->addWidget(logo);
|
||||
layout->addWidget(text);
|
||||
}
|
||||
@ -1,8 +0,0 @@
|
||||
#pragma once
|
||||
#include <QDialog>
|
||||
|
||||
class AboutDialog : public QDialog {
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit AboutDialog(QWidget *parent = nullptr);
|
||||
};
|
||||
Loading…
x
Reference in New Issue
Block a user