QTfrontend/ui/page/pageadmin.cpp
branchqt5transition
changeset 12897 fc47fc4af6bd
parent 11046 47a8c19ecb60
child 13676 05fde8e30041
equal deleted inserted replaced
12896:8869b5256720 12897:fc47fc4af6bd
    96         twBans->setHorizontalHeaderLabels(QStringList()
    96         twBans->setHorizontalHeaderLabels(QStringList()
    97                               << tr("IP/Nick")
    97                               << tr("IP/Nick")
    98                               << tr("Expiration")
    98                               << tr("Expiration")
    99                               << tr("Reason")
    99                               << tr("Reason")
   100                     );
   100                     );
   101         twBans->horizontalHeader()->setResizeMode(2, QHeaderView::Stretch);
   101         twBans->horizontalHeader()->setSectionResizeMode(2, QHeaderView::Stretch);
   102         twBans->setEditTriggers(QAbstractItemView::NoEditTriggers);
   102         twBans->setEditTriggers(QAbstractItemView::NoEditTriggers);
   103         twBans->setSelectionBehavior(QAbstractItemView::SelectRows);
   103         twBans->setSelectionBehavior(QAbstractItemView::SelectRows);
   104         twBans->setSelectionMode(QAbstractItemView::SingleSelection);
   104         twBans->setSelectionMode(QAbstractItemView::SingleSelection);
   105         twBans->setAlternatingRowColors(true);
   105         twBans->setAlternatingRowColors(true);
   106         tab2Layout->addWidget(twBans, 0, 1, 4, 1);
   106         tab2Layout->addWidget(twBans, 0, 1, 4, 1);