main.cpp 830 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * developers of GUI version: acetone, Vort
  3. * developers team, 2021 (c) GPLv3
  4. *
  5. */
  6. #include "widget.h"
  7. #include "qtdownload.h"
  8. #include <fstream>
  9. #include <QApplication>
  10. #include <QString>
  11. #include <QIcon>
  12. const QString PRODUCT_VERSION = "5.1 flow";
  13. int main(int argc, char *argv[])
  14. {
  15. QApplication a(argc, argv);
  16. Widget w;
  17. w.setWindowTitle("syg-cpp " + PRODUCT_VERSION + " (Qt)");
  18. QFont defaultFont("PT Mono");
  19. defaultFont.setStyleHint(QFont::Monospace);
  20. a.setFont(defaultFont);
  21. QtDownload dl;
  22. dl.setTarget("https://raw.githubusercontent.com/acetoneRu/files/main/syg-cpp-banner.png");
  23. dl.download();
  24. QObject::connect(&dl, SIGNAL(done()), &w, SLOT(changeBanner()));
  25. w.setWindowIcon(QIcon(":/icon.png"));
  26. w.show();
  27. return a.exec();
  28. }