equal
deleted
inserted
replaced
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); |