QTfrontend/ui/page/pagegamestats.cpp
changeset 9039 24e1ccd9326f
parent 8901 505307b9735d
child 9080 9b42757d7e71
equal deleted inserted replaced
9038:8c74d93e4e88 9039:24e1ccd9326f
    99 
    99 
   100 //TODO button placement, image etc
   100 //TODO button placement, image etc
   101 QLayout * PageGameStats::footerLayoutDefinition()
   101 QLayout * PageGameStats::footerLayoutDefinition()
   102 {
   102 {
   103     QHBoxLayout * bottomLayout = new QHBoxLayout();
   103     QHBoxLayout * bottomLayout = new QHBoxLayout();
   104 
   104     
   105     btnRestart = addButton(":/res/Start.png", bottomLayout, 0, true);
   105     mainNote = new QLabel(this);
   106     btnSave = addButton(":/res/Save.png", bottomLayout, 0, true);
   106     mainNote->setAlignment(Qt::AlignHCenter | Qt::AlignVCenter);
       
   107     mainNote->setWordWrap(true);
       
   108     
       
   109     bottomLayout->addWidget(mainNote, 0);
       
   110     bottomLayout->setStretch(0,1);
       
   111 
       
   112     btnRestart = addButton(":/res/Start.png", bottomLayout, 1, true);
       
   113     btnRestart->setWhatsThis(tr("Play again"));
       
   114     btnRestart->setFixedWidth(58);
       
   115     btnRestart->setFixedHeight(81);
       
   116     btnRestart->setStyleSheet("QPushButton{margin-top:24px}");
       
   117     btnSave = addButton(":/res/Save.png", bottomLayout, 2, true);
       
   118     btnSave->setWhatsThis(tr("Save"));
   107     btnSave->setStyleSheet("QPushButton{margin: 24px 0 0 0;}");
   119     btnSave->setStyleSheet("QPushButton{margin: 24px 0 0 0;}");
   108     bottomLayout->setAlignment(btnSave, Qt::AlignRight | Qt::AlignBottom);
       
   109 
   120 
   110     return bottomLayout;
   121     return bottomLayout;
   111 }
   122 }
   112 
   123 
   113 void PageGameStats::connectSignals()
   124 void PageGameStats::connectSignals()