Commit graph

30 commits

Author SHA1 Message Date
Ivailo Monev
b24622f35d kdeui: use QDir::exists() to check for icon directory existence
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-01-13 04:01:04 +00:00
Ivailo Monev
956151a106 kdeui: let QCache decide the cost and when to trim
the problem is that even 128x128 pixmaps would trigger cache trim with the
w*h+1 formula because the max cost is set to 10240 and as noted in the
icon loaded source comments some applications use it to load icons with
size greater than that

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-05-28 16:44:55 +00:00
Ivailo Monev
4a0c21e15b kdeui: improve icon cache colisions check
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-05-28 16:18:45 +00:00
Ivailo Monev
d543f77e67 kdeui: clear the icon cache upon reconfigure/init
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-05-28 15:59:03 +00:00
Ivailo Monev
fdfa8de248 kdeui: optimize icon loader
pixmap data is explicity shared and there is no need to insert multiple
pixmaps with the same key into the cache

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-05-28 15:09:14 +00:00
Ivailo Monev
61333c4671 generic: namespaced Qt4/Katie build fixes
most of the changes were done trought Katie's namefsck script which
convertes forward class declarations to include directives, however
other fixes here and there were needed as well as some questionable
changes to Q_DECLARE_TYPEINFO() macro calls because they most likely
have to do the namespacing themselfs (QT_BEGIN/END_NAMESPACE, and
probably will be in Katie) meaning that some of the changes may be
temporary and reverted later.

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2017-08-04 09:24:39 +00:00
Ivailo Monev
fbf3973d05 generic: replace QLatin1Literal with QLatin1String
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-10-30 02:26:10 +00:00
Ivailo Monev
1e3b872a26 generic: get rid of the QStringBuilder requirement
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-10-29 05:06:31 +00:00
Ivailo Monev
972baa3d86 kdeui: minor KIconLoader::iconPath() optimization
the benefit from QStringBuilder is better than the static QString access

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-09-16 05:57:05 +00:00
Ivailo Monev
a15eff9116 Revert "kdeui: ease identification of invalid icon groups"
note to self: this breaks the icons in systemsettings and requires
a bit more poking into the source than I've initially put into it

This reverts commit 170da9afc4.
2016-04-06 11:53:04 +00:00
Ivailo Monev
170da9afc4 kdeui: ease identification of invalid icon groups
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-05 12:37:36 +00:00
Ivailo Monev
c6f33f23aa generic: get rid of KImageCache and KSharedDataCache
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-05 03:48:27 +00:00
Ivailo Monev
ef15158907 kdeui: do not use disk storage for icon cache
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-05 00:50:42 +00:00
Ivailo Monev
14f89b73a3 kdeui: do not hardcode the pixmaps directory
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-02-12 20:53:00 +02:00
Ivailo Monev
82dbf8202b generic: remove redundant classes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-01-23 04:31:52 +02:00
Ivailo Monev
114af2916c kdeui: minor movie path lookup optimization
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2015-11-22 16:55:34 +02:00
Ivailo Monev
af1824d08c generic: stop using obsolete code paths
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2015-10-27 18:47:05 +02:00
Ivailo Monev
636f904183 generic: optimize standard directories lookup
by caching results and storing them in a hash the results should
flow faster, a limit should probably be set on this but for now
there isn't. exists() and realPath() now cannot be called without
object!
2015-10-17 18:53:50 +03:00
Ivailo Monev
7c5c34940c kdeui: code shrinks
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2015-10-17 18:24:46 +03:00
Ivailo Monev
39b9ee37b2 generic: misc cleanups 2015-10-03 12:35:27 +03:00
Ivailo Monev
9c7b41e8f4 generic: misc cleanups 2015-09-21 20:30:05 +00:00
Ivailo Monev
e7133114e1 generic: misc cleanups 2015-09-05 05:16:46 +00:00
Ivailo Monev
21ad0df488 generic: make changes required for building against katie 2015-08-11 05:56:07 +03:00
Ivailo Monev
bf501e6429 generic: remove redudant virtual_hook definitions 2015-04-23 14:50:12 +00:00
Ivailo Monev
5333e9917d generic: remove deprecated API 2015-02-28 03:27:54 +00:00
Ivailo Monev
82fc15f54b generic: use CMake moc instead of automoc4 by default
for compatibilty reasons automoc4 support is not removed but it
shall be in the future. automoc4 has not been maintained for a
while (last commit is from 2011) and the stable release is from
2009.

CMake version >= 2.8.6 provides the functionality for mocking so
I see no reason to not make use of it.
2015-02-27 07:40:26 +00:00
Ivailo Monev
4b6ed773c7 change default icon theme 2014-11-28 22:25:07 +00:00
Ivailo Monev
3f0dd268de remove win and mac cruft 2014-11-27 18:22:42 +00:00
Ivailo Monev
c3f3bcb965 windows code remove 2014-11-19 15:17:14 +00:00
Ivailo Monev
814163a8dc initial import 2014-11-13 01:04:59 +02:00