author | mickeyl <mickeyl> | 2002-12-14 18:30:49 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2002-12-14 18:30:49 (UTC) |
commit | 57918323f3b2e1377d9cf97ed6466e31b260d24a (patch) (side-by-side diff) | |
tree | de2cc333e1239464d3af1f23fbe5a6006bcc8e85 /noncore/net/wellenreiter/gui/resource.cpp | |
parent | ade8c5fddf3f125ee276c4c19d1646a9ef4cab08 (diff) | |
download | opie-57918323f3b2e1377d9cf97ed6466e31b260d24a.zip opie-57918323f3b2e1377d9cf97ed6466e31b260d24a.tar.gz opie-57918323f3b2e1377d9cf97ed6466e31b260d24a.tar.bz2 |
- support compilation for Qt/X11
Diffstat (limited to 'noncore/net/wellenreiter/gui/resource.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/gui/resource.cpp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/noncore/net/wellenreiter/gui/resource.cpp b/noncore/net/wellenreiter/gui/resource.cpp new file mode 100644 index 0000000..58c6bed --- a/dev/null +++ b/noncore/net/wellenreiter/gui/resource.cpp @@ -0,0 +1,35 @@ +/********************************************************************** +** Copyright (C) 2002 Michael 'Mickey' Lauer. All rights reserved. +** +** This file is part of Opie Environment. +** +** This file may be distributed and/or modified under the terms of the +** GNU General Public License version 2 as published by the Free Software +** Foundation and appearing in the file LICENSE.GPL included in the +** packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +**********************************************************************/ + +#include "resource.h" + +#define PIXMAPPATH "/home/mickey/work/opie/pics" + +namespace Resource +{ + +QPixmap loadPixmap( const QString& pix ) +{ + QString filename; + filename.sprintf( "%s/%s.png", (const char*) PIXMAPPATH, (const char*) pix ); + QPixmap pixmap( filename ); + if ( pixmap.isNull() ) + { + qDebug( "Wellenreiter::Resource: can't find pixmap " + filename ); + } + return pixmap; +}; + +}; |