158 QRectF r = contentsRect ();
165 if (
mode == SingleView)
167 for (
int i = 0; i < 4; i++)
170 }
else if (
mode == DoubleView) {
171 for (
int i = 0; i < 2; i++)
174 for (
int i = 2; i < 4; i++)
178 for (
int i = 0; i < 4; i++)
190 int width = (r.width() -
spacing_) / 2;
191 int height = r.height();
192 items_[0]->resize (width, height);
193 items_[1]->resize (width, height);
195 items_[0]->setPos(r.topLeft());
201 int width = (r.width() -
spacing_) / 2;
202 int height = (r.height() -
spacing_) / 2;
203 items_[0]->resize (width, height);
207 items_[0]->setPos (r.topLeft());
217 for (
unsigned int i = 0, j = 1; i < 4; i++)
220 int width = (r.width() -
spacing_) * 3 / 4;
221 int ewidth = r.width() -
spacing_ - width;
222 int eheight = (r.height() - (
spacing_ * 2)) / 3;
223 items_[order[0]]->resize (width, r.height());
224 items_[order[1]]->resize (ewidth, eheight);
225 items_[order[2]]->resize (ewidth, eheight);
226 items_[order[3]]->resize (ewidth, r.height() - ((eheight +
spacing_) * 2));
227 items_[order[0]]->setPos (r.topLeft());
231 r.y() + ((eheight +
spacing_) * 2));