void JKTetrisPiece::setBoard(int *board, int boardWidth, int boardHeight) { this->board=board; this->boardWidth=boardWidth; this->boardHeight=boardHeight; initTop(); }
ChessClockWidget::ChessClockWidget(bool white, QWidget *parent) : ChessClock(white, parent) { greenTime_ = 0; mainLayout = new QVBoxLayout; initPictures(); initLabels(); initTop(); initBottom(); setLayout( mainLayout ); }
DistViewGUI::DistViewGUI(representation::t type) : type(type) { // setup frame and its UI frame = new QWidget(); frame->setSizePolicy(QSizePolicy::Preferred, // hor QSizePolicy::Expanding); // ver ui = new Ui::DistViewGUI(); ui->setupUi(frame); connect(QApplication::instance(), SIGNAL(lastWindowClosed()), this, SLOT(saveState())); // create viewport initVP(); // create controller widget that will reside inside viewport initVC(type); // connect and initialize topBar initTop(); restoreState(); }