summaryrefslogtreecommitdiffstats
path: root/application/widgets/PageContainer.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2016-11-07 00:18:27 +0100
committerPetr Mrázek <peterix@gmail.com>2016-11-07 00:18:27 +0100
commit7cff5ba2e119ae675661c32811da85cf5efacea5 (patch)
tree9b7104693a1dfb92a00854eb20c09b6bb1d986d6 /application/widgets/PageContainer.cpp
parent1276ecdbb769a249a969e8d34749b8f245c3031e (diff)
downloadMultiMC-7cff5ba2e119ae675661c32811da85cf5efacea5.tar
MultiMC-7cff5ba2e119ae675661c32811da85cf5efacea5.tar.gz
MultiMC-7cff5ba2e119ae675661c32811da85cf5efacea5.tar.lz
MultiMC-7cff5ba2e119ae675661c32811da85cf5efacea5.tar.xz
MultiMC-7cff5ba2e119ae675661c32811da85cf5efacea5.zip
GH-1445 update page list when version and log pages need it
Diffstat (limited to 'application/widgets/PageContainer.cpp')
-rw-r--r--application/widgets/PageContainer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/application/widgets/PageContainer.cpp b/application/widgets/PageContainer.cpp
index 1f46ddfc..9e0d83f1 100644
--- a/application/widgets/PageContainer.cpp
+++ b/application/widgets/PageContainer.cpp
@@ -77,6 +77,7 @@ PageContainer::PageContainer(BasePageProviderPtr pageProvider, QString defaultId
m_pageList->setIconSize(QSize(pageIconSize, pageIconSize));
m_pageList->setSelectionMode(QAbstractItemView::SingleSelection);
m_pageList->setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
+ m_pageList->setSizeAdjustPolicy(QAbstractScrollArea::AdjustToContents);
m_pageList->setModel(m_proxyModel);
connect(m_pageList->selectionModel(), SIGNAL(currentRowChanged(QModelIndex, QModelIndex)),
this, SLOT(currentChanged(QModelIndex)));
@@ -106,7 +107,7 @@ bool PageContainer::selectPage(QString pageId)
return false;
}
-void PageContainer::refresh()
+void PageContainer::refreshContainer()
{
m_proxyModel->invalidate();
if(!m_currentPage->shouldDisplay())