#include "main.h" #include "mainwindow.h" #include "QApplication" #include "QImageReader" #include "QStandardPaths" #include "QSettings" QString gFileHome; QString gProgFile; JObj gProg; const QString UpdVerUrl; QGraphicsScene *gScene; QGraphicsView *gEditView; double gScale = 0.1; QPoint gOrigin{20, 20}; TableWidget *gTable, *gTableH, *gTableV; int gPlayinC = 0; //Tick *gTick; int gProgWidth, gProgHeight; int main(int argc, char *argv[]) { QImageReader::setAllocationLimit(0); QApplication::setOrganizationName("Sysolution"); QApplication::setStyle("Fusion"); QApplication a(argc, argv); { QSettings settings; gFileHome = settings.value("FileHome").toString(); if(gFileHome.isEmpty()) gFileHome = QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation); auto pal = a.palette(); // for(int rr=0; rr<22; rr++) for(int gg=0; gg<3; gg++) { // auto brush = pal.brush((QPalette::ColorGroup) gg, (QPalette::ColorRole) rr); // auto cr = brush.color(); // qDebug().nospace()<<"pal.setBrush("<<(QPalette::ColorGroup) gg<<", "<<(QPalette::ColorRole) rr<<", QBrush({"<