Skip to content

Commit 6c6c142

Browse files
committed
Add comments to main.cpp
1 parent fa186dc commit 6c6c142

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

main.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,22 @@
44
#include "UI/mainview.h"
55
#include <QApplication>
66

7+
//snippet storage is static cause
8+
//it it should be only created once
79
static Snippets *snip;
10+
11+
//main view is static so it can be shared
12+
//and only created once
813
static MainView *mainView;
14+
915
int main(int argc, char *argv[]) {
16+
17+
//need to set program details
1018
QCoreApplication::setOrganizationName("Bhathiya");
1119
QCoreApplication::setOrganizationDomain("simpll.info");
1220
QCoreApplication::setApplicationName("expressPython");
1321

22+
//non modified arguments must be passed
1423
QApplication app(argc, argv);
1524

1625
wchar_t name[] = L"expressPython";

0 commit comments

Comments
 (0)