diff options
author | Ali Can Demiralp <ali.demiralp@qt.io> | 2025-04-15 13:27:59 +0200 |
---|---|---|
committer | Ali Can Demiralp <ali.demiralp@qt.io> | 2025-04-15 11:52:05 +0000 |
commit | 5962568dcd99e015d605858ddc126dd570f90b4d (patch) | |
tree | 76a456cc498544ad576497546addfae6f143e1e7 | |
parent | 242ff0e1bb8febfeebc249b890225a716bad5cf3 (diff) |
Use full variable names in console and gui templates
Renamed a to app, and w to window. This also makes them consistent with
the qml template.
Change-Id: Ib83a86fac39df1f1a191d1664d9fc04bca0fc513
Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
-rw-r--r-- | Templates/console/main.cpp | 4 | ||||
-rw-r--r-- | Templates/gui/main.cpp | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/Templates/console/main.cpp b/Templates/console/main.cpp index 8d033d6a..40566b0a 100644 --- a/Templates/console/main.cpp +++ b/Templates/console/main.cpp @@ -2,7 +2,7 @@ $include$ int main(int argc, char *argv[]) { - QCoreApplication a(argc, argv); + QCoreApplication app(argc, argv); - return a.exec(); + return app.exec(); } diff --git a/Templates/gui/main.cpp b/Templates/gui/main.cpp index a386d101..dda7bcd5 100644 --- a/Templates/gui/main.cpp +++ b/Templates/gui/main.cpp @@ -3,8 +3,8 @@ $include$ int main(int argc, char *argv[]) { - QApplication a(argc, argv); - $namespace$$classname$ w; - w.show(); - return a.exec(); + QApplication app(argc, argv); + $namespace$$classname$ window; + window.show(); + return app.exec(); } |