Commit b9ea60ce authored by Stefano Crocco's avatar Stefano Crocco

Don't use a fixed size for icons in places module

parent 975f3486
......@@ -40,8 +40,8 @@ KonqSideBarPlacesModule::KonqSideBarPlacesModule(QWidget *parent,
m_placesView->setAutoResizeItemsEnabled(false);
// m_placesView->setResizeMode(QListView::Fixed);
m_placesView->setIconSize(QSize(16,16));
m_placesView->style()->pixelMetric(QStyle::PM_SmallIconSize); // this would best be done by detecting the size of icons for other widgets
int iconSize = m_placesView->style()->pixelMetric(QStyle::PM_SmallIconSize); // this would best be done by detecting the size of icons for other widgets
m_placesView->setIconSize(QSize(iconSize, iconSize));
connect(m_placesView, &KFilePlacesView::urlChanged, this, &KonqSideBarPlacesModule::slotPlaceUrlChanged);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment