# HG changeset patch # User sheepluva # Date 1475414139 -7200 # Node ID 35208f442daff3f8e916026ace93afbe8092b2a6 # Parent fbe9bb9602eba336660719f50fdcf84f88f114e4 Bug 115 - Application icon is missing diff -r fbe9bb9602eb -r 35208f442daf QTfrontend/hwform.cpp --- a/QTfrontend/hwform.cpp Sun Oct 02 12:42:16 2016 +0200 +++ b/QTfrontend/hwform.cpp Sun Oct 02 15:15:39 2016 +0200 @@ -46,6 +46,8 @@ #include #include #include +#include +#include #if (QT_VERSION >= 0x040600) #include @@ -142,6 +144,18 @@ SDLInteraction::instance().setMusicTrack("/Music/main_theme.ogg"); this->setStyleSheet(styleSheet); + + + QIcon * hwIcon = new QIcon(); + hwIcon->addFile(":/res/hh_small.png"); + //hwIcon->addFile(":/res/hh25x25.png"); + // crop-workaround for the fact that hh25x25.png is actually 25x35 + QPixmap pm(":/res/hh25x25.png"); + hwIcon->addPixmap(pm.copy(0,(pm.height()-25)/2,25,25)); + hwIcon->addFile(":/res/teamicon.png"); + hwIcon->addFile(":/res/teamicon2.png"); + + this->setWindowIcon(*hwIcon); ui.setupUi(this); setMinimumSize(760, 580); //setFocusPolicy(Qt::StrongFocus); diff -r fbe9bb9602eb -r 35208f442daf QTfrontend/ui/widget/hedgehogerWidget.cpp --- a/QTfrontend/ui/widget/hedgehogerWidget.cpp Sun Oct 02 12:42:16 2016 +0200 +++ b/QTfrontend/ui/widget/hedgehogerWidget.cpp Sun Oct 02 15:15:39 2016 +0200 @@ -83,7 +83,7 @@ { Q_UNUSED(event); - if (this->width() >= 11 * numItems + 26) + if ((this->width() >= 11 * numItems + 26) || (numItems == 1)) ItemNum::paintEvent(event); else {