QTfrontend/pagegamestats.cpp
changeset 5906 ed9676dc8cb4
parent 5734 d710db47a1ef
child 5916 c76212c34192
equal deleted inserted replaced
5713:190d6bb075c5 5906:ed9676dc8cb4
    45     pageLayout->setColumnStretch(1, 1);
    45     pageLayout->setColumnStretch(1, 1);
    46 
    46 
    47     BtnBack = addButton(":/res/Exit.png", pageLayout, 3, 0, true);
    47     BtnBack = addButton(":/res/Exit.png", pageLayout, 3, 0, true);
    48     BtnBack->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
    48     BtnBack->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
    49 
    49 
       
    50     BtnSave = addButton(":/res/Save.png", pageLayout, 3, 2, true);
       
    51     BtnSave->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
       
    52     BtnSave->setStyleSheet("QPushButton{margin: 12px 0px 12px 0px;}");
       
    53     connect(BtnSave, SIGNAL(clicked()), this, SIGNAL(saveDemoRequested()));
       
    54 
    50     QGroupBox * gb = new QGroupBox(this);
    55     QGroupBox * gb = new QGroupBox(this);
    51     QVBoxLayout * gbl = new QVBoxLayout;
    56     QVBoxLayout * gbl = new QVBoxLayout;
    52 
    57 
    53     // details
    58     // details
    54     labelGameStats = new QLabel(this);
    59     labelGameStats = new QLabel(this);
    60     labelGameStats->setAlignment(Qt::AlignTop);
    65     labelGameStats->setAlignment(Qt::AlignTop);
    61     labelGameStats->setWordWrap(true);
    66     labelGameStats->setWordWrap(true);
    62     gbl->addWidget(l);
    67     gbl->addWidget(l);
    63     gbl->addWidget(labelGameStats);
    68     gbl->addWidget(labelGameStats);
    64     gb->setLayout(gbl);
    69     gb->setLayout(gbl);
    65     pageLayout->addWidget(gb, 1, 1);
    70     pageLayout->addWidget(gb, 1, 1, 1, 2);
    66     
    71     
    67     // graph
    72     // graph
    68     graphic = new FitGraphicsView(gb);
    73     graphic = new FitGraphicsView(gb);
    69     l = new QLabel(this);
    74     l = new QLabel(this);
    70     l->setTextFormat(Qt::RichText);
    75     l->setTextFormat(Qt::RichText);