# HG changeset patch # User displacer # Date 1163371111 0 # Node ID 4040a1cbb0eebe56d5d5b60a9a03c530037dc83b # Parent 5c3fe8762edc7454e813200e72c948cb957cf5a7 back to static QIcon diff -r 5c3fe8762edc -r 4040a1cbb0ee QTfrontend/teamselhelper.cpp --- a/QTfrontend/teamselhelper.cpp Sun Nov 12 22:36:13 2006 +0000 +++ b/QTfrontend/teamselhelper.cpp Sun Nov 12 22:38:31 2006 +0000 @@ -36,14 +36,13 @@ mainLayout.setSpacing(1); mainLayout.setMargin(2); this->setMaximumHeight(35); - //QPixmap* px=new QPixmap(QPixmap(datadir->absolutePath() + "/Forts/" + m_team.Fort + "L.png").scaled(40, 40)); - QIcon* difficultyIcon=new QIcon(QString(":/res/botlevels/%1.png").arg(m_team.difficulty)); + QIcon difficultyIcon(QString(":/res/botlevels/%1.png").arg(m_team.difficulty)); QPalette newPalette = palette(); newPalette.setColor(QPalette::Button, palette().color(backgroundRole())); // team fort - QPushButton* butt=new QPushButton(*difficultyIcon, "", this); // *px + QPushButton* butt=new QPushButton(difficultyIcon, "", this); butt->setFlat(true); butt->setGeometry(0, 0, 30, 30); butt->setMaximumWidth(30);