void FieldGUIController::prepareField() { clearChildren(); insertLayout(); insertCell(0,0,":/Graph/White.png"); for (int i=1; i<=10; i++) { insertCell(i,0,":/Graph/Dig/"+QString::number(i)+".png"); } for (int i=1; i<=10; i++) { insertCell(0,i,":/Graph/Sum/"+QString::number(i)+".png"); } for(int i=1;i<=10;i++) { for(int j=1;j<=10;j++) { insertCell(i,j,":/Graph/Ships/Empty.png"); makeCellHoverSensitiveAndClicable(i,j,"red"); } } }
/*! Adds \a layout to the end of the box, with serial stretch factor \a stretch. \sa insertLayout(), addItem(), addWidget() */ void QBoxLayout::addLayout(QLayout *layout, int stretch) { insertLayout(-1, layout, stretch); }
void WBoxLayout::addLayout(WLayout *layout, int stretch, WFlags<AlignmentFlag> alignment) { insertLayout(count(), layout, stretch, alignment); }