QTfrontend/ui/page/pageroomslist.cpp
changeset 13325 4a713e29a4da
parent 13201 25502e6b3e08
child 14836 b9437746bffb
equal deleted inserted replaced
13324:543ab994c9bc 13325:4a713e29a4da
   154 
   154 
   155     roomsList = new RoomTableView(this);
   155     roomsList = new RoomTableView(this);
   156     roomsList->setSelectionBehavior(QAbstractItemView::SelectRows);
   156     roomsList->setSelectionBehavior(QAbstractItemView::SelectRows);
   157     roomsList->verticalHeader()->setVisible(false);
   157     roomsList->verticalHeader()->setVisible(false);
   158     roomsList->horizontalHeader()->setSectionResizeMode(QHeaderView::Interactive);
   158     roomsList->horizontalHeader()->setSectionResizeMode(QHeaderView::Interactive);
       
   159 	roomsList->horizontalHeader()->stretchLastSection();
   159     roomsList->setAlternatingRowColors(true);
   160     roomsList->setAlternatingRowColors(true);
   160     roomsList->setShowGrid(false);
   161     roomsList->setShowGrid(false);
   161     roomsList->setSelectionMode(QAbstractItemView::SingleSelection);
   162     roomsList->setSelectionMode(QAbstractItemView::SingleSelection);
   162     roomsList->setStyleSheet("QTableView { border-top-left-radius: 0px; }");
   163     roomsList->setStyleSheet("QTableView { border-top-left-radius: 0px; }");
   163     roomsList->setFocusPolicy(Qt::NoFocus);
   164     roomsList->setFocusPolicy(Qt::NoFocus);