Bans list: Remove vertical header, make horizontal header non-clickable
authorWuzzy <Wuzzy2@mail.ru>
Thu, 18 Jul 2019 19:33:40 +0200
changeset 15255 2dc98f688c65
parent 15254 ebb86ed1b785
child 15256 f7b33ad8d502
Bans list: Remove vertical header, make horizontal header non-clickable
QTfrontend/ui/page/pageadmin.cpp
--- a/QTfrontend/ui/page/pageadmin.cpp	Thu Jul 18 19:26:13 2019 +0200
+++ b/QTfrontend/ui/page/pageadmin.cpp	Thu Jul 18 19:33:40 2019 +0200
@@ -101,6 +101,8 @@
                               << tr("Reason")
                     );
         twBans->horizontalHeader()->setSectionResizeMode(2, QHeaderView::Stretch);
+        twBans->horizontalHeader()->setSectionsClickable(false);
+        twBans->verticalHeader()->hide();
         twBans->setEditTriggers(QAbstractItemView::NoEditTriggers);
         twBans->setSelectionBehavior(QAbstractItemView::SelectRows);
         twBans->setSelectionMode(QAbstractItemView::SingleSelection);