QTfrontend/ui/page/pagenetserver.cpp
branchwebgl
changeset 9127 e350500c4edb
parent 9080 9b42757d7e71
child 9360 fc805fc427a6
equal deleted inserted replaced
8860:bde641cf53c8 9127:e350500c4edb
     1 /*
     1 /*
     2  * Hedgewars, a free turn based strategy game
     2  * Hedgewars, a free turn based strategy game
     3  * Copyright (c) 2004-2012 Andrey Korotaev <unC0Rr@gmail.com>
     3  * Copyright (c) 2004-2013 Andrey Korotaev <unC0Rr@gmail.com>
     4  *
     4  *
     5  * This program is free software; you can redistribute it and/or modify
     5  * This program is free software; you can redistribute it and/or modify
     6  * it under the terms of the GNU General Public License as published by
     6  * it under the terms of the GNU General Public License as published by
     7  * the Free Software Foundation; version 2 of the License
     7  * the Free Software Foundation; version 2 of the License
     8  *
     8  *
    77     BtnShare = new QPushButton(gb);
    77     BtnShare = new QPushButton(gb);
    78     BtnShare->setText(QPushButton::tr("Invite your friends to your server in just 1 click!"));
    78     BtnShare->setText(QPushButton::tr("Invite your friends to your server in just 1 click!"));
    79     BtnShare->setWhatsThis(QPushButton::tr("Click to copy your unique server URL in your clipboard. Send this link to your friends ands and they will be able to join you."));
    79     BtnShare->setWhatsThis(QPushButton::tr("Click to copy your unique server URL in your clipboard. Send this link to your friends ands and they will be able to join you."));
    80     gbLayout->addWidget(BtnShare, 2, 1);
    80     gbLayout->addWidget(BtnShare, 2, 1);
    81 
    81 
       
    82     labelURL = new QLabel(gb);
       
    83     labelURL->setText(
       
    84               "<style type=\"text/css\"> a { color: #ffcc00; } </style>"
       
    85               "<div align=\"center\">"
       
    86               "<a href=\"https://code.google.com/p/hedgewars/wiki/HWPlaySchemeSyntax\">" +
       
    87               tr("Click here for details") +
       
    88               "</a></div>");
       
    89     labelURL->setOpenExternalLinks(true);
       
    90     gbLayout->addWidget(labelURL, 3, 1);
       
    91 
    82     return pageLayout;
    92     return pageLayout;
    83 }
    93 }
    84 
    94 
    85 QLayout * PageNetServer::footerLayoutDefinition()
    95 QLayout * PageNetServer::footerLayoutDefinition()
    86 {
    96 {