task.cpp
//static pallete variables initialized before constructor
static pallete variables initialized before constructor
static pallete variables initialized before constructor
void Task::staticInit(){
    Task::redPal = QPalette();
    Task::yellowPal = QPalette();
    Task::greenPal = QPalette();
    Task::greenPal.setColor(QPalette::Foreground, Qt::green);
    Task::greenPal.setColor(QPalette::ButtonText, Qt::green);
    Task::redPal.setColor(QPalette::Foreground, Qt::red);
    Task::redPal.setColor(QPalette::ButtonText, Qt::red);
    Task::yellowPal.setColor(QPalette::Foreground, Qt::yellow);
    Task::yellowPal.setColor(QPalette::ButtonText, Qt::yellow);
    Task::statInitFlag = true;
}
void Task :: staticInit ( ) { Task :: redPal = QPalette ( ) ; Task :: yellowPal = QPalette ( ) ; Task :: greenPal = QPalette ( ) ; Task :: greenPal . setColor ( QPalette :: Foreground , Qt :: green ) ; Task :: greenPal . setColor ( QPalette :: ButtonText , Qt :: green ) ; Task :: redPal . setColor ( QPalette :: Foreground , Qt :: red ) ; Task :: redPal . setColor ( QPalette :: ButtonText , Qt :: red ) ; Task :: yellowPal . setColor ( QPalette :: Foreground , Qt :: yellow ) ; Task :: yellowPal . setColor ( QPalette :: ButtonText , Qt :: yellow ) ; Task :: statInitFlag = true ; }
static pallete variables initialized before constructor
static pallete variables initialized before constructor