Disable/enable mods with checkboxes. Needs testing.
A lot of testing!
This commit is contained in:
		| @@ -30,7 +30,7 @@ void MCModInfoFrame::updateWithMod(Mod &m) | ||||
|  | ||||
| 	QString text = ""; | ||||
| 	QString name = ""; | ||||
| 	if(m.name().isEmpty()) name = m.id(); | ||||
| 	if(m.name().isEmpty()) name = m.mmc_id(); | ||||
| 	else name = m.name(); | ||||
|  | ||||
| 	if(m.homeurl().isEmpty()) text = name; | ||||
|   | ||||
| @@ -44,8 +44,9 @@ void ModListView::setModel ( QAbstractItemModel* model ) | ||||
| 	QTreeView::setModel ( model ); | ||||
| 	auto head = header(); | ||||
| 	head->setStretchLastSection(false); | ||||
| 	head->setSectionResizeMode(0, QHeaderView::Stretch); | ||||
| 	for(int i = 1; i < head->count(); i++) | ||||
| 	head->setSectionResizeMode(0, QHeaderView::ResizeToContents); | ||||
| 	head->setSectionResizeMode(1, QHeaderView::Stretch); | ||||
| 	for(int i = 2; i < head->count(); i++) | ||||
| 		head->setSectionResizeMode(i, QHeaderView::ResizeToContents); | ||||
| 	dropIndicatorPosition(); | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user