From 121635865799d0becd01837b27ee28d0fdbbbbd0 Mon Sep 17 00:00:00 2001 From: shouchih_chen Date: Fri, 25 Mar 2022 22:36:28 +0800 Subject: [PATCH 1/2] commit build setting --- NameCreater/NameCreater.pro.user | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/NameCreater/NameCreater.pro.user b/NameCreater/NameCreater.pro.user index 5395f79..0a3177e 100644 --- a/NameCreater/NameCreater.pro.user +++ b/NameCreater/NameCreater.pro.user @@ -1,6 +1,6 @@ - + EnvironmentId @@ -92,7 +92,7 @@ Desktop Qt 5.15.2 clang 64bit Desktop Qt 5.15.2 clang 64bit qt.qt5.5152.clang_64_kit - 0 + 1 0 0 @@ -245,7 +245,7 @@ true false true - /Users/shouchih_chen/Documents/namecreater/build-NameCreater-Desktop_Qt_5_15_2_clang_64bit-Debug/NameCreater.app/Contents/MacOS + /Users/shouchih_chen/Documents/namecreater/build-NameCreater-Desktop_Qt_5_15_2_clang_64bit-Release/NameCreater.app/Contents/MacOS 1 From dd69403ee6b109418acfbc819966f2351a0aab92 Mon Sep 17 00:00:00 2001 From: shouchih_chen Date: Fri, 25 Mar 2022 22:53:47 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=B8=80=E4=BA=9B?= =?UTF-8?q?=E9=8C=AF=E8=AA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- NameCreater/main.cpp | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/NameCreater/main.cpp b/NameCreater/main.cpp index f3ac988..7e1a67d 100644 --- a/NameCreater/main.cpp +++ b/NameCreater/main.cpp @@ -55,20 +55,6 @@ static QPointF NAME_POS[] = { QPointF(1268, 2334), QPointF(2240, 2202), }; -static QPointF NAME_POS_TWO_WORD[] = { - QPointF(240, 510), QPointF(372, 1402), - QPointF(564, 430), QPointF(694, 1402), - QPointF(883, 430), QPointF(1014, 1402), - QPointF(1205, 430), QPointF(1337, 1402), - QPointF(1532, 430), QPointF(1663, 1402), - QPointF(1854, 430), QPointF(1987, 1402), - QPointF(2176, 430), QPointF(2309, 1402), - QPointF(2498, 430), QPointF(2629, 1402), - QPointF(2821, 430), QPointF(2952, 1402), - QPointF(3145, 430), QPointF(3276, 1402), - QPointF(1268, 2012), QPointF(2240, 1880), - QPointF(1268, 2334), QPointF(2240, 2202), -}; static int NAME_POS_COUNT = sizeof(NAME_POS) / sizeof(NAME_POS[0]); @@ -309,9 +295,7 @@ int main(int argc, char* argv[]) QString file_name = QString("%1_.jpg").arg(QString::number(export_times + 1)); saveToImage(file_name, &scene); export_times++; - view.show(); - break; - //scene.clear(); + scene.clear(); } } @@ -324,5 +308,5 @@ int main(int argc, char* argv[]) font_res.close(); - return a.exec(); + return 0; }