Changed to avoid initialization of static const variables in class definition.
svn path=/trunk/kdebase/kwin/; revision=198519
This commit is contained in:
parent
c273b4fa15
commit
c83fb9c2e2
1 changed files with 7 additions and 7 deletions
|
@ -66,13 +66,13 @@ private:
|
||||||
QSpacerItem* titlebar;
|
QSpacerItem* titlebar;
|
||||||
|
|
||||||
// Helpful constants for buttons in array
|
// Helpful constants for buttons in array
|
||||||
static const int CLOSE_IDX = 0;
|
enum { CLOSE_IDX = 0,
|
||||||
static const int HELP_IDX = 1;
|
HELP_IDX = 1,
|
||||||
static const int ICONIFY_IDX = 2;
|
ICONIFY_IDX = 2,
|
||||||
static const int MAXIMIZE_IDX = 3;
|
MAXIMIZE_IDX = 3,
|
||||||
static const int MENU_IDX = 4;
|
MENU_IDX = 4,
|
||||||
static const int STICKY_IDX = 5;
|
STICKY_IDX = 5,
|
||||||
static const int MAX_NUM_BUTTONS = STICKY_IDX + 1;
|
MAX_NUM_BUTTONS = STICKY_IDX + 1 };
|
||||||
|
|
||||||
// WARNING: button[i] may be null for any given i. Make sure you
|
// WARNING: button[i] may be null for any given i. Make sure you
|
||||||
// always check for null before doing button[i]->foo().
|
// always check for null before doing button[i]->foo().
|
||||||
|
|
Loading…
Reference in a new issue