QTfrontend/pagemain.cpp
branchhedgeroid
changeset 5824 2e5835130d9a
parent 5763 d7a887c7e2d0
child 6042 8b5345758f62
equal deleted inserted replaced
5733:5ab22736bdb6 5824:2e5835130d9a
    39     pageLayout->setRowStretch(0, 1);
    39     pageLayout->setRowStretch(0, 1);
    40     pageLayout->setRowStretch(1, 1);
    40     pageLayout->setRowStretch(1, 1);
    41     pageLayout->setRowStretch(2, 0);
    41     pageLayout->setRowStretch(2, 0);
    42     pageLayout->setRowStretch(3, 1);
    42     pageLayout->setRowStretch(3, 1);
    43     pageLayout->setRowStretch(4, 1);
    43     pageLayout->setRowStretch(4, 1);
       
    44     pageLayout->setRowStretch(5, 1);
    44 
    45 
    45     BtnSinglePlayer = addButton(":/res/LocalPlay.png", pageLayout, 2, 0, 1, 2, true);
    46     BtnSinglePlayer = addButton(":/res/LocalPlay.png", pageLayout, 2, 0, 1, 2, true);
    46     BtnSinglePlayer->setToolTip(tr("Local Game (Play a game on a single computer)"));
    47     BtnSinglePlayer->setToolTip(tr("Local Game (Play a game on a single computer)"));
    47     pageLayout->setAlignment(BtnSinglePlayer, Qt::AlignHCenter);
    48     pageLayout->setAlignment(BtnSinglePlayer, Qt::AlignHCenter);
    48 
    49 
    49     BtnNet = addButton(":/res/NetworkPlay.png", pageLayout, 2, 2, 1, 2, true);
    50     BtnNet = addButton(":/res/NetworkPlay.png", pageLayout, 2, 2, 1, 2, true);
    50     BtnNet->setToolTip(tr("Network Game (Play a game across a network)"));
    51     BtnNet->setToolTip(tr("Network Game (Play a game across a network)"));
    51     pageLayout->setAlignment(BtnNet, Qt::AlignHCenter);
    52     pageLayout->setAlignment(BtnNet, Qt::AlignHCenter);
       
    53 
       
    54     BtnDataDownload = addButton(tr("Downloadable Content"), pageLayout, 4, 0, 1, 4, false);
       
    55     pageLayout->setAlignment(BtnDataDownload, Qt::AlignHCenter);
    52 
    56 
    53     mainNote = new QLabel(this);
    57     mainNote = new QLabel(this);
    54     mainNote->setAlignment(Qt::AlignHCenter | Qt::AlignVCenter);
    58     mainNote->setAlignment(Qt::AlignHCenter | Qt::AlignVCenter);
    55     mainNote->setWordWrap(true);
    59     mainNote->setWordWrap(true);
    56     mainNote->setOpenExternalLinks(true);
    60     mainNote->setOpenExternalLinks(true);
   117         mainNote->setText(QLabel::tr("Tip: ") + Tips[QTime(0, 0, 0).secsTo(QTime::currentTime()) % Tips.length()]);
   121         mainNote->setText(QLabel::tr("Tip: ") + Tips[QTime(0, 0, 0).secsTo(QTime::currentTime()) % Tips.length()]);
   118     }
   122     }
   119     else
   123     else
   120         mainNote->setText(QLabel::tr("This development build is 'work in progress' and may not be compatible with other versions of the game. Some features might be broken or incomplete. Use at your own risk!"));
   124         mainNote->setText(QLabel::tr("This development build is 'work in progress' and may not be compatible with other versions of the game. Some features might be broken or incomplete. Use at your own risk!"));
   121 
   125 
   122     pageLayout->addWidget(mainNote, 4, 1, 1, 2);
   126     pageLayout->addWidget(mainNote, 5, 1, 1, 2);
   123 
   127 
   124     BtnSetup = addButton(":/res/Settings.png", pageLayout, 4, 3, true);
   128     BtnSetup = addButton(":/res/Settings.png", pageLayout, 5, 3, true);
   125 
   129 
   126     //BtnInfo = addButton(":/res/About.png", pageLayout, 3, 1, 1, 2, true);
   130     //BtnInfo = addButton(":/res/About.png", pageLayout, 3, 1, 1, 2, true);
   127     BtnInfo = addButton(":/res/HedgewarsTitle.png", pageLayout, 0, 0, 1, 4, true);
   131     BtnInfo = addButton(":/res/HedgewarsTitle.png", pageLayout, 0, 0, 1, 4, true);
   128     BtnInfo->setStyleSheet("border: transparent;background: transparent;");
   132     BtnInfo->setStyleSheet("border: transparent;background: transparent;");
   129     pageLayout->setAlignment(BtnInfo, Qt::AlignHCenter);
   133     pageLayout->setAlignment(BtnInfo, Qt::AlignHCenter);
   130     //pageLayout->setAlignment(BtnInfo, Qt::AlignHCenter);
   134     //pageLayout->setAlignment(BtnInfo, Qt::AlignHCenter);
   131 
   135 
   132     BtnExit = addButton(":/res/Exit.png", pageLayout, 4, 0, 1, 1, true);
   136     BtnExit = addButton(":/res/Exit.png", pageLayout, 5, 0, 1, 1, true);
   133     BtnExit->setFixedHeight(BtnSetup->height());
   137     BtnExit->setFixedHeight(BtnSetup->height());
   134     BtnExit->setStyleSheet("QPushButton{margin-top: 2px;}");
   138     BtnExit->setStyleSheet("QPushButton{margin-top: 2px;}");
   135 }
   139 }