-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
LiaoCheng
authored and
LiaoCheng
committed
Jan 28, 2023
1 parent
1bdd466
commit 2883fdc
Showing
7 changed files
with
138 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#include "AboutDlg.h" | ||
#include "ui_AboutDlg.h" | ||
|
||
#include <QMessageBox> | ||
|
||
AboutDlg::AboutDlg(QWidget *parent) : | ||
QDialog(parent), | ||
ui(new Ui::AboutDlg) | ||
{ | ||
ui->setupUi(this); | ||
} | ||
|
||
AboutDlg::~AboutDlg() | ||
{ | ||
delete ui; | ||
} | ||
|
||
void AboutDlg::on_toolButton_AboutQt_clicked() | ||
{ | ||
QMessageBox::aboutQt(this); | ||
} | ||
|
||
void AboutDlg::on_pushButton_Ok_clicked() | ||
{ | ||
accept(); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#ifndef ABOUTDLG_H | ||
#define ABOUTDLG_H | ||
|
||
#include <QDialog> | ||
|
||
namespace Ui { | ||
class AboutDlg; | ||
} | ||
|
||
class AboutDlg : public QDialog | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
explicit AboutDlg(QWidget *parent = nullptr); | ||
~AboutDlg(); | ||
|
||
private slots: | ||
void on_toolButton_AboutQt_clicked(); | ||
|
||
void on_pushButton_Ok_clicked(); | ||
|
||
private: | ||
Ui::AboutDlg *ui; | ||
}; | ||
|
||
#endif // ABOUTDLG_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ui version="4.0"> | ||
<class>AboutDlg</class> | ||
<widget class="QDialog" name="AboutDlg"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>0</y> | ||
<width>600</width> | ||
<height>200</height> | ||
</rect> | ||
</property> | ||
<property name="windowTitle"> | ||
<string>关于软件</string> | ||
</property> | ||
<layout class="QVBoxLayout" name="verticalLayout"> | ||
<item> | ||
<widget class="QPlainTextEdit" name="plainTextEdit"> | ||
<property name="plainText"> | ||
<string>Email: [email protected] | ||
https://github.com/CharlesLiaoO/EncodingConverter | ||
Build with Qt/C++</string> | ||
</property> | ||
<property name="textInteractionFlags"> | ||
<set>Qt::LinksAccessibleByKeyboard|Qt::LinksAccessibleByMouse|Qt::TextBrowserInteraction|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<layout class="QHBoxLayout" name="horizontalLayout"> | ||
<item> | ||
<widget class="QToolButton" name="toolButton_AboutQt"> | ||
<property name="text"> | ||
<string>About Qt</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<spacer name="horizontalSpacer"> | ||
<property name="orientation"> | ||
<enum>Qt::Horizontal</enum> | ||
</property> | ||
<property name="sizeHint" stdset="0"> | ||
<size> | ||
<width>40</width> | ||
<height>20</height> | ||
</size> | ||
</property> | ||
</spacer> | ||
</item> | ||
<item> | ||
<widget class="QPushButton" name="pushButton_Ok"> | ||
<property name="text"> | ||
<string>确认</string> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</item> | ||
</layout> | ||
</widget> | ||
<resources/> | ||
<connections/> | ||
</ui> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters