Author: mir3x Date: Fri Nov 18 09:32:43 2016 New Revision: 34557 URL: http://svn.gna.org/viewcvs/freeciv?rev=34557&view=rev Log: Qt client - remove goto dialog stylesheet from code
See patch #8001 Modified: branches/S2_6/client/gui-qt/gotodlg.cpp Modified: branches/S2_6/client/gui-qt/gotodlg.cpp URL: http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/gui-qt/gotodlg.cpp?rev=34557&r1=34556&r2=34557&view=diff ============================================================================== --- branches/S2_6/client/gui-qt/gotodlg.cpp (original) +++ branches/S2_6/client/gui-qt/gotodlg.cpp Fri Nov 18 09:32:43 2016 @@ -41,29 +41,7 @@ { QStringList headers_lst; QHBoxLayout *hb; - setStyleSheet("QPushButton {background-color: transparent;}" - "QPushButton {color: #ffffff;}" - "QPushButton:enabled {color: #ffffff;}" - "QPushButton:disabled {color: grey;}" - "QPushButton:hover:disabled {color: transparent;}" - "QPushButton:hover {background-color: blue;}" - "QPushButton {min-width: 80px;}" - "QPushButton {border: noborder;}" - "QScrollBar:vertical " - "{border: 1px solid #90A4FF; background: transparent;}" - "QScrollBar::sub-line:vertical {width: 0px;height: 0px}" - "QScrollBar::sub-page:vertical {width: 0px;height: 0px}" - "QScrollBar::add-line:vertical {width: 0px;height: 0px}" - "QScrollBar::add-page:vertical {width: 0px;height: 0px}" - "QScrollBar::handle:vertical {background: #90A4FF;" - "min-height: 20px}" - "QTableWidget {background-color: transparent;}" - "QTableWidget:item {color: white;}" - "QTableCornerButton::section " - "{background-color: transparent;}" - "QLabel {color: grey;}" - "QHeaderView::section { background-color: " - "QColor(90,90,90,90);}"); + setParent(parent); headers_lst << QString(_("City")) << QString(_("Nation")) << QString(_("Airlift")); @@ -89,8 +67,9 @@ goto_tab->setSelectionMode(QAbstractItemView::SingleSelection); goto_tab->setColumnCount(3); goto_tab->setHorizontalHeaderLabels(headers_lst); - goto_tab->horizontalHeader()->setStretchLastSection(true); goto_tab->setSortingEnabled(true); + goto_tab->horizontalHeader()->setSectionResizeMode( + QHeaderView::ResizeToContents); layout->addWidget(goto_tab, 0, 0, 4, 4); layout->addItem(hb, 4, 0, 1, 2); _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits