summaryrefslogtreecommitdiff
authorcniehaus <cniehaus>2003-08-12 16:15:32 (UTC)
committer cniehaus <cniehaus>2003-08-12 16:15:32 (UTC)
commit713725e85c03c3bbbc0358301ed84241c6d0dd5b (patch) (unidiff)
tree84aea38721724403e688bdd1e987be392459d4d1
parentd16aa943a04b1e630e913cc55789bb876cd0f42f (diff)
downloadopie-713725e85c03c3bbbc0358301ed84241c6d0dd5b.zip
opie-713725e85c03c3bbbc0358301ed84241c6d0dd5b.tar.gz
opie-713725e85c03c3bbbc0358301ed84241c6d0dd5b.tar.bz2
now it will even compile
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/games/oyatzee/main.cpp2
-rw-r--r--noncore/games/oyatzee/oyatzee.cpp10
-rw-r--r--noncore/games/oyatzee/oyatzee.h1
3 files changed, 10 insertions, 3 deletions
diff --git a/noncore/games/oyatzee/main.cpp b/noncore/games/oyatzee/main.cpp
index 6e5002c..1fd51f6 100644
--- a/noncore/games/oyatzee/main.cpp
+++ b/noncore/games/oyatzee/main.cpp
@@ -1,2 +1,2 @@
1#include "wordgame.h" 1#include "oyatzee.h"
2 2
diff --git a/noncore/games/oyatzee/oyatzee.cpp b/noncore/games/oyatzee/oyatzee.cpp
index 7940b89..85d9616 100644
--- a/noncore/games/oyatzee/oyatzee.cpp
+++ b/noncore/games/oyatzee/oyatzee.cpp
@@ -43,3 +43,2 @@ OYatzee::OYatzee( QWidget *parent , const char *name, WFlags fl ) : QMainWindow(
43 dw = new DiceWidget( thing , "dw" ); 43 dw = new DiceWidget( thing , "dw" );
44
45 44
@@ -124,3 +123,7 @@ void Dice::slotSelected()
124{ 123{
125 qDebug( QString::number( Value ) ); 124 if ( isSelected )
125 isSelected = false;
126 else isSelected = true;
127
128 update();
126} 129}
@@ -152,2 +155,5 @@ void Dice::paintEvent( QPaintEvent * )
152 155
156 if ( isSelected )
157 p.drawRect( 20,20, 10,10 );
158
153 paintNumber( &p ); 159 paintNumber( &p );
diff --git a/noncore/games/oyatzee/oyatzee.h b/noncore/games/oyatzee/oyatzee.h
index 7be9407..01ab36d 100644
--- a/noncore/games/oyatzee/oyatzee.h
+++ b/noncore/games/oyatzee/oyatzee.h
@@ -49,2 +49,3 @@ class Dice : public QFrame
49 int Value; 49 int Value;
50 bool isSelected;
50 51