diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-12-26 05:14:32 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-12-26 05:14:32 +0100 |
commit | acf25d8a33ef67b79d8e8a8859f5559e011373a5 (patch) | |
tree | 513fee2d62fb97b9d68c44f2a2a58f733f01a43c /gui | |
parent | 449f55c3e668c0e01eee0868226473f12d0b109f (diff) | |
download | MultiMC-acf25d8a33ef67b79d8e8a8859f5559e011373a5.tar MultiMC-acf25d8a33ef67b79d8e8a8859f5559e011373a5.tar.gz MultiMC-acf25d8a33ef67b79d8e8a8859f5559e011373a5.tar.lz MultiMC-acf25d8a33ef67b79d8e8a8859f5559e011373a5.tar.xz MultiMC-acf25d8a33ef67b79d8e8a8859f5559e011373a5.zip |
Disable/enable mods with checkboxes. Needs testing.
A lot of testing!
Diffstat (limited to 'gui')
-rw-r--r-- | gui/widgets/MCModInfoFrame.cpp | 2 | ||||
-rw-r--r-- | gui/widgets/ModListView.cpp | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/gui/widgets/MCModInfoFrame.cpp b/gui/widgets/MCModInfoFrame.cpp index ad167bc9..abcea6c6 100644 --- a/gui/widgets/MCModInfoFrame.cpp +++ b/gui/widgets/MCModInfoFrame.cpp @@ -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; diff --git a/gui/widgets/ModListView.cpp b/gui/widgets/ModListView.cpp index 838af75e..9d5950c3 100644 --- a/gui/widgets/ModListView.cpp +++ b/gui/widgets/ModListView.cpp @@ -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(); } |