~ximilian/igotu2gpx/bugfixing

« back to all changes in this revision

Viewing changes to src/programs/igotugui/iconstorage.cpp

  • Committer: Michael Hofmann
  • Date: 2011-05-28 20:26:13 UTC
  • Revision ID: mh21@piware.de-20110528202613-1jyl7s707nwv97ja
Cleanups.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#include "igotu/paths.h"
20
20
 
21
21
#include "iconstorage.h"
22
 
#include "qticonloader.h"
23
22
 
24
23
#include <QDir>
25
24
#include <QFile>
55
54
 
56
55
    const QString freeDesktopBaseName = fileName(name).replace
57
56
        (QRegExp(QLatin1String(".*//")), QString());
58
 
    if (!(cache[name] = QtIconLoader::icon(freeDesktopBaseName)).isNull())
 
57
    if (!(cache[name] = QIcon::fromTheme(freeDesktopBaseName)).isNull())
59
58
        return cache.value(name);
60
59
 
61
60
    const QString rbaBaseName = fileName(name).replace