Diffstat (limited to 'noncore/net/wellenreiter/gui/resource.cpp') (more/less context) (ignore 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 @@ | |||
1 | /********************************************************************** | ||
2 | ** Copyright (C) 2002 Michael 'Mickey' Lauer. All rights reserved. | ||
3 | ** | ||
4 | ** This file is part of Opie Environment. | ||
5 | ** | ||
6 | ** This file may be distributed and/or modified under the terms of the | ||
7 | ** GNU General Public License version 2 as published by the Free Software | ||
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | ||
9 | ** packaging of this file. | ||
10 | ** | ||
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | ||
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||
13 | ** | ||
14 | **********************************************************************/ | ||
15 | |||
16 | #include "resource.h" | ||
17 | |||
18 | #define PIXMAPPATH "/home/mickey/work/opie/pics" | ||
19 | |||
20 | namespace Resource | ||
21 | { | ||
22 | |||
23 | QPixmap loadPixmap( const QString& pix ) | ||
24 | { | ||
25 | QString filename; | ||
26 | filename.sprintf( "%s/%s.png", (const char*) PIXMAPPATH, (const char*) pix ); | ||
27 | QPixmap pixmap( filename ); | ||
28 | if ( pixmap.isNull() ) | ||
29 | { | ||
30 | qDebug( "Wellenreiter::Resource: can't find pixmap " + filename ); | ||
31 | } | ||
32 | return pixmap; | ||
33 | }; | ||
34 | |||
35 | }; | ||