This commit is contained in:
Max-Wilhelm Bruker 2010-03-09 17:53:34 +01:00
parent 7bf3ff1ff4
commit cb74c734f2
4 changed files with 3 additions and 22 deletions

View file

@ -8,6 +8,7 @@
PhaseButton::PhaseButton(const QIcon &icon, QAction *_doubleClickAction)
: QPushButton(icon, QString()), active(false), doubleClickAction(_doubleClickAction), activePixmap(50, 50), inactivePixmap(50, 50)
{
setFocusPolicy(Qt::NoFocus);
setFixedSize(50, 50);
updatePixmap(activePixmap, true);
@ -79,6 +80,7 @@ PhasesToolbar::PhasesToolbar(QWidget *parent)
connect(buttonList[i], SIGNAL(clicked()), this, SLOT(phaseButtonClicked()));
QPushButton *nextTurnButton = new QPushButton(QIcon(":/resources/icon_nextturn.svg"), QString());
nextTurnButton->setFocusPolicy(Qt::NoFocus);
nextTurnButton->setIconSize(QSize(40, 40));
nextTurnButton->setFixedSize(50, 50);
connect(nextTurnButton, SIGNAL(clicked()), this, SLOT(actNextTurn()));