# HG changeset patch # User sheepluva # Date 1335881769 -7200 # Node ID 6a2ecad333dabda1842238c580189d5b34790a04 # Parent ec6b4118e7b18cc388bca4028c5fff6405710575 adjust column widths fix a warning diff -r ec6b4118e7b1 -r 6a2ecad333da QTfrontend/ui/page/pageroomslist.cpp --- a/QTfrontend/ui/page/pageroomslist.cpp Tue May 01 16:20:12 2012 +0200 +++ b/QTfrontend/ui/page/pageroomslist.cpp Tue May 01 16:16:09 2012 +0200 @@ -479,11 +479,12 @@ roomsList->hideColumn(0); QHeaderView * h = roomsList->horizontalHeader(); - h->resizeSection(1, 200); - h->resizeSection(2, 50); - h->resizeSection(3, 50); + h->setResizeMode(1, QHeaderView::Stretch); + h->resizeSection(2, 16); + h->resizeSection(3, 16); h->resizeSection(4, 100); h->resizeSection(5, 100); h->resizeSection(6, 100); h->resizeSection(7, 100); + } diff -r ec6b4118e7b1 -r 6a2ecad333da QTfrontend/ui/widget/frameTeam.cpp --- a/QTfrontend/ui/widget/frameTeam.cpp Tue May 01 16:20:12 2012 +0200 +++ b/QTfrontend/ui/widget/frameTeam.cpp Tue May 01 16:16:09 2012 +0200 @@ -63,7 +63,10 @@ { int idx = availableColors.indexOf(currentColor); - idx = ++idx % availableColors.size(); + idx++; + + if (idx >= availableColors.size()) + idx = 0; return availableColors.at(idx); }