QTfrontend/ui/page/pageadmin.cpp
changeset 13676 05fde8e30041
parent 12897 fc47fc4af6bd
child 15255 2dc98f688c65
equal deleted inserted replaced
13675:d3a4cbba060e 13676:05fde8e30041
    71         sbProtocol = new QSpinBox(this);
    71         sbProtocol = new QSpinBox(this);
    72         tab1Layout->addWidget(sbProtocol, 3, 1);
    72         tab1Layout->addWidget(sbProtocol, 3, 1);
    73 
    73 
    74         // 4
    74         // 4
    75         QLabel * lblPreview = new QLabel(this);
    75         QLabel * lblPreview = new QLabel(this);
       
    76         //: MOTD = Message Of The Day, the message which is shown to players joining the server
    76         lblPreview->setText(tr("MOTD preview:"));
    77         lblPreview->setText(tr("MOTD preview:"));
    77         tab1Layout->addWidget(lblPreview, 4, 0);
    78         tab1Layout->addWidget(lblPreview, 4, 0);
    78 
    79 
    79         tb = new QTextBrowser(this);
    80         tb = new QTextBrowser(this);
    80         tb->setOpenExternalLinks(true);
    81         tb->setOpenExternalLinks(true);
    92     {
    93     {
    93         QGridLayout * tab2Layout = new QGridLayout(page2);
    94         QGridLayout * tab2Layout = new QGridLayout(page2);
    94         twBans = new QTableWidget(this);
    95         twBans = new QTableWidget(this);
    95         twBans->setColumnCount(3);
    96         twBans->setColumnCount(3);
    96         twBans->setHorizontalHeaderLabels(QStringList()
    97         twBans->setHorizontalHeaderLabels(QStringList()
       
    98                               //: IP = short for "IP address" (Internet Protocol). Nick = short for "nick name"
    97                               << tr("IP/Nick")
    99                               << tr("IP/Nick")
    98                               << tr("Expiration")
   100                               << tr("Expiration")
    99                               << tr("Reason")
   101                               << tr("Reason")
   100                     );
   102                     );
   101         twBans->horizontalHeader()->setSectionResizeMode(2, QHeaderView::Stretch);
   103         twBans->horizontalHeader()->setSectionResizeMode(2, QHeaderView::Stretch);