Add possibility to change colors in runtime.

This commit is contained in:
Patryk Stępień
2011-09-21 18:22:38 +02:00
parent 2a88e790df
commit 1d27fa9c03
4 changed files with 35 additions and 2 deletions

View File

@@ -50,6 +50,8 @@ private:
// background color
int bg_color;
// border color
int border_color;
// complete piece color
int piece_color;
// incomplete piece color
@@ -76,6 +78,8 @@ public:
void updatePieceColors();
void clear();
void setColors(int background, int border, int complete, int incomplete);
protected:
void paintEvent(QPaintEvent *);
};