From 3adc58bb870616e3b6abb48a93440258ed92f7ae Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Fri, 14 Jan 2011 17:36:09 +0000 Subject: [PATCH] Added comment --- src/iconprovider.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/iconprovider.cpp b/src/iconprovider.cpp index 9e85547e5..83ecb7922 100644 --- a/src/iconprovider.cpp +++ b/src/iconprovider.cpp @@ -73,6 +73,10 @@ void IconProvider::useSystemIconTheme(bool enable) m_useSystemTheme = enable; } +// Makes sure the icon is at least available in 16px and 24px size +// It scales the icon from the theme if necessary +// Otherwise, the UI looks broken if the icon is not available +// in the correct size. QIcon IconProvider::generateDifferentSizes(const QIcon &icon) { QIcon new_icon;