Example #1
0
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");
        }
    }
}
Example #2
0
/*!
    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);
}
Example #3
0
void WBoxLayout::addLayout(WLayout *layout, int stretch,
			   WFlags<AlignmentFlag> alignment)
{
  insertLayout(count(), layout, stretch, alignment);
}