author | drw <drw> | 2005-05-20 21:23:29 (UTC) |
---|---|---|
committer | drw <drw> | 2005-05-20 21:23:29 (UTC) |
commit | dfdc651b989550e30f2b72f535ce0cd3431fc9f4 (patch) (unidiff) | |
tree | 1f5e64509fe2ef75a14c1909a8f981779b7b5acb /noncore/games/zsame/StoneWidget.cpp | |
parent | 5e7bbe42671f565bef961b44862ddbf68beed774 (diff) | |
download | opie-dfdc651b989550e30f2b72f535ce0cd3431fc9f4.zip opie-dfdc651b989550e30f2b72f535ce0cd3431fc9f4.tar.gz opie-dfdc651b989550e30f2b72f535ce0cd3431fc9f4.tar.bz2 |
Resource -> OResource, remove some unnecessary includes
Diffstat (limited to 'noncore/games/zsame/StoneWidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/games/zsame/StoneWidget.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/noncore/games/zsame/StoneWidget.cpp b/noncore/games/zsame/StoneWidget.cpp index 5dd0252..f370714 100644 --- a/noncore/games/zsame/StoneWidget.cpp +++ b/noncore/games/zsame/StoneWidget.cpp | |||
@@ -15,18 +15,15 @@ | |||
15 | * You should have received a copy of the GNU General Public License | 15 | * You should have received a copy of the GNU General Public License |
16 | * along with this program; if not, write to the Free Software | 16 | * along with this program; if not, write to the Free Software |
17 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 17 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
18 | * | 18 | * |
19 | */ | 19 | */ |
20 | 20 | ||
21 | #include <stdio.h> | 21 | #include <opie2/oresource.h> |
22 | #include <stdlib.h> | ||
23 | 22 | ||
24 | 23 | #include <qbitmap.h> | |
25 | |||
26 | #include <qpe/resource.h> | ||
27 | 24 | ||
28 | #include <time.h> | 25 | #include <time.h> |
29 | #include <assert.h> | 26 | #include <assert.h> |
30 | 27 | ||
31 | #include "StoneWidget.h" | 28 | #include "StoneWidget.h" |
32 | 29 | ||
@@ -37,16 +34,13 @@ struct StoneSlice { | |||
37 | }; | 34 | }; |
38 | 35 | ||
39 | 36 | ||
40 | StoneWidget::StoneWidget( QWidget *parent, int x, int y ) | 37 | StoneWidget::StoneWidget( QWidget *parent, int x, int y ) |
41 | : QWidget(parent,"StoneWidget"), stonefield(x,y) | 38 | : QWidget(parent,"StoneWidget"), stonefield(x,y) |
42 | { | 39 | { |
43 | // setBackgroundPixmap(QPixmap(locate("wallpaper", "Time-For-Lunch-2.jpg"))); | 40 | QPixmap stonemap = Opie::Core::OResource::loadPixmap( "zsame/stones" ); |
44 | // QPixmap stonemap(locate("appdata", "stones.png")); | ||
45 | |||
46 | QPixmap stonemap = Resource::loadPixmap("zsame/stones" ); | ||
47 | assert(!stonemap.isNull()); | 41 | assert(!stonemap.isNull()); |
48 | 42 | ||
49 | slice=0; | 43 | slice=0; |
50 | maxslices=30; | 44 | maxslices=30; |
51 | maxcolors=4; | 45 | maxcolors=4; |
52 | 46 | ||