Moved about dialog files.

This commit is contained in:
Leonardo Zide 2023-04-29 19:55:54 -07:00
parent 4ca78ec8ec
commit 4e474fb13d
6 changed files with 33 additions and 35 deletions

View file

@ -1,14 +1,13 @@
#include "lc_global.h" #include "lc_global.h"
#include "lc_qaboutdialog.h" #include "lc_aboutdialog.h"
#include "ui_lc_qaboutdialog.h" #include "ui_lc_aboutdialog.h"
#include "lc_mainwindow.h" #include "lc_mainwindow.h"
#include "lc_view.h" #include "lc_view.h"
#include "lc_glextensions.h" #include "lc_glextensions.h"
#include "lc_viewwidget.h" #include "lc_viewwidget.h"
lcQAboutDialog::lcQAboutDialog(QWidget *parent) : lcAboutDialog::lcAboutDialog(QWidget* Parent)
QDialog(parent), : QDialog(Parent), ui(new Ui::lcAboutDialog)
ui(new Ui::lcQAboutDialog)
{ {
ui->setupUi(this); ui->setupUi(this);
@ -42,7 +41,7 @@ lcQAboutDialog::lcQAboutDialog(QWidget *parent) :
ui->info->setText(QtVersion + Version + Buffers + Extensions); ui->info->setText(QtVersion + Version + Buffers + Extensions);
} }
lcQAboutDialog::~lcQAboutDialog() lcAboutDialog::~lcAboutDialog()
{ {
delete ui; delete ui;
} }

19
common/lc_aboutdialog.h Normal file
View file

@ -0,0 +1,19 @@
#pragma once
#include <QDialog>
namespace Ui {
class lcAboutDialog;
}
class lcAboutDialog : public QDialog
{
Q_OBJECT
public:
explicit lcAboutDialog(QWidget* Parent);
~lcAboutDialog();
private:
Ui::lcAboutDialog* ui;
};

View file

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0"> <ui version="4.0">
<class>lcQAboutDialog</class> <class>lcAboutDialog</class>
<widget class="QDialog" name="lcQAboutDialog"> <widget class="QDialog" name="lcAboutDialog">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>0</x> <x>0</x>
@ -110,7 +110,7 @@
<connection> <connection>
<sender>buttonBox</sender> <sender>buttonBox</sender>
<signal>accepted()</signal> <signal>accepted()</signal>
<receiver>lcQAboutDialog</receiver> <receiver>lcAboutDialog</receiver>
<slot>accept()</slot> <slot>accept()</slot>
<hints> <hints>
<hint type="sourcelabel"> <hint type="sourcelabel">
@ -126,7 +126,7 @@
<connection> <connection>
<sender>buttonBox</sender> <sender>buttonBox</sender>
<signal>rejected()</signal> <signal>rejected()</signal>
<receiver>lcQAboutDialog</receiver> <receiver>lcAboutDialog</receiver>
<slot>reject()</slot> <slot>reject()</slot>
<hints> <hints>
<hint type="sourcelabel"> <hint type="sourcelabel">

View file

@ -9,7 +9,7 @@
#include "lc_qpropertiestree.h" #include "lc_qpropertiestree.h"
#include "lc_qutils.h" #include "lc_qutils.h"
#include "lc_qupdatedialog.h" #include "lc_qupdatedialog.h"
#include "lc_qaboutdialog.h" #include "lc_aboutdialog.h"
#include "lc_setsdatabasedialog.h" #include "lc_setsdatabasedialog.h"
#include "lc_qhtmldialog.h" #include "lc_qhtmldialog.h"
#include "lc_renderdialog.h" #include "lc_renderdialog.h"
@ -1248,7 +1248,7 @@ void lcMainWindow::ShowUpdatesDialog()
void lcMainWindow::ShowAboutDialog() void lcMainWindow::ShowAboutDialog()
{ {
lcQAboutDialog Dialog(this); lcAboutDialog Dialog(this);
Dialog.exec(); Dialog.exec();
} }

View file

@ -172,6 +172,7 @@ SOURCES += \
common/object.cpp \ common/object.cpp \
common/minifig.cpp \ common/minifig.cpp \
common/light.cpp \ common/light.cpp \
common/lc_aboutdialog.cpp \
common/lc_application.cpp \ common/lc_application.cpp \
common/lc_bricklink.cpp \ common/lc_bricklink.cpp \
common/lc_category.cpp \ common/lc_category.cpp \
@ -216,7 +217,6 @@ SOURCES += \
qt/qtmain.cpp \ qt/qtmain.cpp \
qt/lc_qarraydialog.cpp \ qt/lc_qarraydialog.cpp \
qt/lc_qgroupdialog.cpp \ qt/lc_qgroupdialog.cpp \
qt/lc_qaboutdialog.cpp \
qt/lc_qeditgroupsdialog.cpp \ qt/lc_qeditgroupsdialog.cpp \
qt/lc_qselectdialog.cpp \ qt/lc_qselectdialog.cpp \
qt/lc_qpropertiesdialog.cpp \ qt/lc_qpropertiesdialog.cpp \
@ -240,6 +240,7 @@ HEADERS += \
common/object.h \ common/object.h \
common/minifig.h \ common/minifig.h \
common/light.h \ common/light.h \
common/lc_aboutdialog.h \
common/lc_application.h \ common/lc_application.h \
common/lc_array.h \ common/lc_array.h \
common/lc_bricklink.h \ common/lc_bricklink.h \
@ -285,7 +286,6 @@ HEADERS += \
common/camera.h \ common/camera.h \
qt/lc_qarraydialog.h \ qt/lc_qarraydialog.h \
qt/lc_qgroupdialog.h \ qt/lc_qgroupdialog.h \
qt/lc_qaboutdialog.h \
qt/lc_qeditgroupsdialog.h \ qt/lc_qeditgroupsdialog.h \
qt/lc_qselectdialog.h \ qt/lc_qselectdialog.h \
qt/lc_qpropertiesdialog.h \ qt/lc_qpropertiesdialog.h \
@ -304,7 +304,6 @@ HEADERS += \
FORMS += \ FORMS += \
qt/lc_qarraydialog.ui \ qt/lc_qarraydialog.ui \
qt/lc_qgroupdialog.ui \ qt/lc_qgroupdialog.ui \
qt/lc_qaboutdialog.ui \
qt/lc_qeditgroupsdialog.ui \ qt/lc_qeditgroupsdialog.ui \
qt/lc_qselectdialog.ui \ qt/lc_qselectdialog.ui \
qt/lc_qpropertiesdialog.ui \ qt/lc_qpropertiesdialog.ui \
@ -316,6 +315,7 @@ FORMS += \
qt/lc_qmodellistdialog.ui \ qt/lc_qmodellistdialog.ui \
qt/lc_renderdialog.ui \ qt/lc_renderdialog.ui \
qt/lc_setsdatabasedialog.ui \ qt/lc_setsdatabasedialog.ui \
common/lc_aboutdialog.ui \
common/lc_minifigdialog.ui \ common/lc_minifigdialog.ui \
common/lc_pagesetupdialog.ui \ common/lc_pagesetupdialog.ui \
common/lc_partpalettedialog.ui common/lc_partpalettedialog.ui

View file

@ -1,20 +0,0 @@
#pragma once
#include <QDialog>
namespace Ui {
class lcQAboutDialog;
}
class lcQAboutDialog : public QDialog
{
Q_OBJECT
public:
explicit lcQAboutDialog(QWidget *parent);
~lcQAboutDialog();
private:
Ui::lcQAboutDialog *ui;
};