modify font load wrong message.
This commit is contained in:
parent
74c0a3246f
commit
7bab173cf1
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE QtCreatorProject>
|
<!DOCTYPE QtCreatorProject>
|
||||||
<!-- Written by QtCreator 6.0.2, 2022-02-16T12:27:32. -->
|
<!-- Written by QtCreator 6.0.2, 2022-02-16T15:41:01. -->
|
||||||
<qtcreator>
|
<qtcreator>
|
||||||
<data>
|
<data>
|
||||||
<variable>EnvironmentId</variable>
|
<variable>EnvironmentId</variable>
|
||||||
@ -8,7 +8,7 @@
|
|||||||
</data>
|
</data>
|
||||||
<data>
|
<data>
|
||||||
<variable>ProjectExplorer.Project.ActiveTarget</variable>
|
<variable>ProjectExplorer.Project.ActiveTarget</variable>
|
||||||
<value type="qlonglong">0</value>
|
<value type="qlonglong">1</value>
|
||||||
</data>
|
</data>
|
||||||
<data>
|
<data>
|
||||||
<variable>ProjectExplorer.Project.EditorSettings</variable>
|
<variable>ProjectExplorer.Project.EditorSettings</variable>
|
||||||
|
|||||||
@ -11,7 +11,6 @@
|
|||||||
#include <QDir>
|
#include <QDir>
|
||||||
#include <QDateTime>
|
#include <QDateTime>
|
||||||
#include <QFontDatabase>
|
#include <QFontDatabase>
|
||||||
#include <QStringList>
|
|
||||||
|
|
||||||
#define BG_MIX_PATH ":/NameCreater/resource/background.jpg"
|
#define BG_MIX_PATH ":/NameCreater/resource/background.jpg"
|
||||||
#define BG_BOY_PATH ":/NameCreater/resource/background_boy.jpg"
|
#define BG_BOY_PATH ":/NameCreater/resource/background_boy.jpg"
|
||||||
@ -152,7 +151,7 @@ int main(int argc, char* argv[])
|
|||||||
QFile font_res(font_path);
|
QFile font_res(font_path);
|
||||||
if (!font_res.open(QIODevice::ReadOnly)) {
|
if (!font_res.open(QIODevice::ReadOnly)) {
|
||||||
QMessageBox msgBox;
|
QMessageBox msgBox;
|
||||||
msgBox.setText("Can not load font file!");
|
msgBox.setText("Can not load font file!" + font_path);
|
||||||
msgBox.exec();
|
msgBox.exec();
|
||||||
font_res.close();
|
font_res.close();
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user