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"?>
|
||||
<!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>
|
||||
<data>
|
||||
<variable>EnvironmentId</variable>
|
||||
@ -8,7 +8,7 @@
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.ActiveTarget</variable>
|
||||
<value type="qlonglong">0</value>
|
||||
<value type="qlonglong">1</value>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.EditorSettings</variable>
|
||||
|
||||
@ -11,7 +11,6 @@
|
||||
#include <QDir>
|
||||
#include <QDateTime>
|
||||
#include <QFontDatabase>
|
||||
#include <QStringList>
|
||||
|
||||
#define BG_MIX_PATH ":/NameCreater/resource/background.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);
|
||||
if (!font_res.open(QIODevice::ReadOnly)) {
|
||||
QMessageBox msgBox;
|
||||
msgBox.setText("Can not load font file!");
|
||||
msgBox.setText("Can not load font file!" + font_path);
|
||||
msgBox.exec();
|
||||
font_res.close();
|
||||
return 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user