author | waspe <waspe> | 2003-06-05 06:48:39 (UTC) |
---|---|---|
committer | waspe <waspe> | 2003-06-05 06:48:39 (UTC) |
commit | 2f3202871135e2efc67c0cdef9b93d4c4953f372 (patch) (unidiff) | |
tree | a988198fdf08bd48d98a961a2194b59177af7013 /noncore | |
parent | b72cce3813dfb64fd6d1920961b236c8e27bd27b (diff) | |
download | opie-2f3202871135e2efc67c0cdef9b93d4c4953f372.zip opie-2f3202871135e2efc67c0cdef9b93d4c4953f372.tar.gz opie-2f3202871135e2efc67c0cdef9b93d4c4953f372.tar.bz2 |
backround of canvas now in syscolor
-rw-r--r-- | noncore/games/backgammon/backgammon.cpp | 2 | ||||
-rw-r--r-- | noncore/games/backgammon/backgammon.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/noncore/games/backgammon/backgammon.cpp b/noncore/games/backgammon/backgammon.cpp index 06523f1..db1a058 100644 --- a/noncore/games/backgammon/backgammon.cpp +++ b/noncore/games/backgammon/backgammon.cpp | |||
@@ -134,8 +134,10 @@ BackGammon::BackGammon(QWidget* parent, const char* name, WFlags fl) | |||
134 | setCentralWidget(mainarea); | 134 | setCentralWidget(mainarea); |
135 | //the main area | 135 | //the main area |
136 | QBoxLayout* layout=new QBoxLayout(mainarea,QBoxLayout::TopToBottom); | 136 | QBoxLayout* layout=new QBoxLayout(mainarea,QBoxLayout::TopToBottom); |
137 | area=new QCanvas(235,235); | 137 | area=new QCanvas(235,235); |
138 | QColor bgColor=palette().color(QPalette::Normal,QColorGroup::Background); | ||
139 | area->setBackgroundColor(bgColor); | ||
138 | boardview=new BackGammonView(area,mainarea); | 140 | boardview=new BackGammonView(area,mainarea); |
139 | boardview->setMaximumHeight(240); | 141 | boardview->setMaximumHeight(240); |
140 | layout->addWidget(boardview); | 142 | layout->addWidget(boardview); |
141 | connect(boardview,SIGNAL(mouse(int,int)),this,SLOT(mouse(int,int))); | 143 | connect(boardview,SIGNAL(mouse(int,int)),this,SLOT(mouse(int,int))); |
diff --git a/noncore/games/backgammon/backgammon.h b/noncore/games/backgammon/backgammon.h index e3276f1..d803489 100644 --- a/noncore/games/backgammon/backgammon.h +++ b/noncore/games/backgammon/backgammon.h | |||
@@ -17,9 +17,8 @@ | |||
17 | class BackGammon : public QMainWindow | 17 | class BackGammon : public QMainWindow |
18 | { | 18 | { |
19 | Q_OBJECT | 19 | Q_OBJECT |
20 | private: | 20 | private: |
21 | //GUI | ||
22 | //the "status" bar | 21 | //the "status" bar |
23 | QLabel* message; | 22 | QLabel* message; |
24 | //the main drawing area | 23 | //the main drawing area |
25 | QCanvas* area; | 24 | QCanvas* area; |