QTfrontend/ui/page/pagenetgame.cpp
changeset 11812 92b3b0fcb41f
parent 11811 f9a4f4d11c3a
child 11818 b421923c2577
equal deleted inserted replaced
11811:f9a4f4d11c3a 11812:92b3b0fcb41f
    47     QHBoxLayout * roomConfigLayout = new QHBoxLayout();
    47     QHBoxLayout * roomConfigLayout = new QHBoxLayout();
    48     pageLayout->addLayout(roomConfigLayout, 0, 0, 1, 2);
    48     pageLayout->addLayout(roomConfigLayout, 0, 0, 1, 2);
    49     roomConfigLayout->setSpacing(0);
    49     roomConfigLayout->setSpacing(0);
    50 
    50 
    51     leRoomName = new HistoryLineEdit(this, 10);
    51     leRoomName = new HistoryLineEdit(this, 10);
       
    52     leRoomName->setWhatsThis(tr("Room name"));
    52     leRoomName->setMaxLength(60);
    53     leRoomName->setMaxLength(60);
    53     leRoomName->setMinimumWidth(400);
    54     leRoomName->setMinimumWidth(400);
    54     leRoomName->setMaximumWidth(600);
    55     leRoomName->setMaximumWidth(600);
    55     leRoomName->setFixedHeight(30);
    56     leRoomName->setFixedHeight(30);
    56     leRoomName->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
    57     leRoomName->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
    57     leRoomName->setStyleSheet("border-right: 0; padding-left: 4px; border-top-right-radius: 0px; border-bottom-right-radius: 0px;");
    58     leRoomName->setStyleSheet("border-right: 0; padding-left: 4px; border-top-right-radius: 0px; border-bottom-right-radius: 0px;");
    58     roomConfigLayout->addWidget(leRoomName, 100);
    59     roomConfigLayout->addWidget(leRoomName, 100);
    59 
    60 
    60     BtnUpdate = new QPushButton();
    61     BtnUpdate = new QPushButton();
       
    62     BtnUpdate->setWhatsThis(tr("Update the room name"));
    61     BtnUpdate->setEnabled(false);
    63     BtnUpdate->setEnabled(false);
    62     BtnUpdate->setText(tr("Update"));
    64     BtnUpdate->setText(tr("Update"));
    63     BtnUpdate->setFixedHeight(leRoomName->height() - 0);
    65     BtnUpdate->setFixedHeight(leRoomName->height() - 0);
    64     BtnUpdate->setStyleSheet("border-top-left-radius: 0px; border-bottom-left-radius: 0px; padding: auto 4px;");
    66     BtnUpdate->setStyleSheet("border-top-left-radius: 0px; border-bottom-left-radius: 0px; padding: auto 4px;");
    65     roomConfigLayout->addWidget(BtnUpdate, 0);
    67     roomConfigLayout->addWidget(BtnUpdate, 0);
   124 
   126 
   125     // Ready button
   127     // Ready button
   126 
   128 
   127     BtnGo = new QPushButton(this);
   129     BtnGo = new QPushButton(this);
   128     BtnGo->setIconSize(QSize(25, 34));
   130     BtnGo->setIconSize(QSize(25, 34));
   129     BtnGo->setWhatsThis(tr("Turn on the lightbulb to show the other players when you're ready to fight."));
   131     BtnGo->setWhatsThis(tr("Turn on the lightbulb to show the other players when you're ready to fight"));
   130     setReadyStatus(false);
   132     setReadyStatus(false);
   131     BtnGo->setMinimumWidth(50);
   133     BtnGo->setMinimumWidth(50);
   132     BtnGo->setMinimumHeight(50);
   134     BtnGo->setMinimumHeight(50);
   133 
   135 
   134     bottomLayout->addStretch();
   136     bottomLayout->addStretch();
   138 
   140 
   139     const QIcon& lp = QIcon(":/res/Start.png");
   141     const QIcon& lp = QIcon(":/res/Start.png");
   140     QSize sz = lp.actualSize(QSize(65535, 65535));
   142     QSize sz = lp.actualSize(QSize(65535, 65535));
   141     BtnStart = new QPushButton();
   143     BtnStart = new QPushButton();
   142     BtnStart->setText(tr("Start"));
   144     BtnStart->setText(tr("Start"));
       
   145     BtnStart->setWhatsThis(tr("Start fighting (requires at least 2 teams)"));
   143     BtnStart->setMinimumWidth(sz.width() + 60);
   146     BtnStart->setMinimumWidth(sz.width() + 60);
   144     BtnStart->setIcon(lp);
   147     BtnStart->setIcon(lp);
   145     BtnStart->setFixedHeight(50);
   148     BtnStart->setFixedHeight(50);
   146     BtnStart->setIconSize(sz);
   149     BtnStart->setIconSize(sz);
   147     BtnStart->setFlat(true);
   150     BtnStart->setFlat(true);