diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-03-21 19:00:45 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-03-21 19:44:57 +0530 |
| commit | 7ec8336431787156826185628ad3ee05dc327d2a (patch) | |
| tree | 0b984450aa1ee09f6592eadb898b17ffddd45219 /templates/qclass.sh | |
| parent | fdeb33d34a97d062a120f72da919f81d7b1d45bf (diff) | |
| download | null-browser-7ec8336431787156826185628ad3ee05dc327d2a.tar.gz null-browser-7ec8336431787156826185628ad3ee05dc327d2a.zip | |
Add event loop with uv
Diffstat (limited to '')
| -rwxr-xr-x | templates/qwidget.sh (renamed from templates/qclass.sh) | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/templates/qclass.sh b/templates/qwidget.sh index 8ad085a..6706e19 100755 --- a/templates/qclass.sh +++ b/templates/qwidget.sh @@ -7,8 +7,9 @@ path="$2" [ -z "$class_name" ] && exit 1 -mkdir -p "./include/$path"; -mkdir -p "./src/$path"; +if ! [ -z "$path" ]; then + mkdir -p "./src/$path" +fi # Header echo "#pragma once @@ -22,7 +23,7 @@ class $class_name : public QWidget { public: $class_name(); }; -" > "./include/$path/$class_name.hpp" +" > "./src/$path/$class_name.hpp" # Implementation echo "#include <QtCore> |
