Back to index

scribus-ng  1.3.4.dfsg+svn20071115
Functions | Variables
missing.cpp File Reference
#include <qimage.h>
#include <qpixmap.h>
#include <qlabel.h>
#include <qlayout.h>
#include <qpushbutton.h>
#include "missing.h"
#include "missing.moc"
#include "fontcombo.h"
#include "scribusdoc.h"
#include "page.h"
#include "prefsmanager.h"
#include "commonstrings.h"

Go to the source code of this file.


QPixmap loadIcon (QString nam)


static const char *const image100_data []

Function Documentation

QPixmap loadIcon ( QString  nam)

Definition at line 224 of file util.cpp.

       static ScPixmapCache<QString> pxCache;
       if (pxCache.contains(nam))
              return *pxCache[nam];

       QString iconFilePath(QString("%1%2").arg(ScPaths::instance().iconDir()).arg(nam));
       QPixmap *pm = new QPixmap();
       if (!QFile::exists(iconFilePath))
              qWarning("Unable to load icon %s: File not found", iconFilePath.ascii());
              if (pm->isNull())
                     qWarning("Unable to load icon %s: Got null pixmap", iconFilePath.ascii());
       pxCache.insert(nam, pm);
       return *pm;

Variable Documentation

const char* const image100_data[] [static]

Definition at line 24 of file missing.cpp.