Theme: cache the QIcon::fromTheme
authorOlivier Goffart <ogoffart@woboq.com>
Tue, 20 Oct 2015 11:24:11 +0000 (13:24 +0200)
committerOlivier Goffart <ogoffart@woboq.com>
Tue, 20 Oct 2015 11:24:11 +0000 (13:24 +0200)
commit407ff0a99d843e7de0725dc535b57436ef2b2ce4
treec5ad7b3851e2af996462fd129d7f0890b78a66ae
parent0b6d21e3d50fe4d832d56e5cf1607146b04cf632
Theme: cache the QIcon::fromTheme

We are calling that every time we draw the folder delegate.
Which is a lot when the sync is runing and the progress bar is moving
src/libsync/theme.cpp