QTfrontend/ui/page/pageadmin.cpp
branchui-scaling
changeset 15283 c4fd2813b127
parent 15255 2dc98f688c65
equal deleted inserted replaced
13390:0135e64c6c66 15283:c4fd2813b127
    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);
       
   104         twBans->horizontalHeader()->setSectionsClickable(false);
       
   105         twBans->verticalHeader()->hide();
   102         twBans->setEditTriggers(QAbstractItemView::NoEditTriggers);
   106         twBans->setEditTriggers(QAbstractItemView::NoEditTriggers);
   103         twBans->setSelectionBehavior(QAbstractItemView::SelectRows);
   107         twBans->setSelectionBehavior(QAbstractItemView::SelectRows);
   104         twBans->setSelectionMode(QAbstractItemView::SingleSelection);
   108         twBans->setSelectionMode(QAbstractItemView::SingleSelection);
   105         twBans->setAlternatingRowColors(true);
   109         twBans->setAlternatingRowColors(true);
   106         tab2Layout->addWidget(twBans, 0, 1, 4, 1);
   110         tab2Layout->addWidget(twBans, 0, 1, 4, 1);