QTfrontend/hwform.cpp
changeset 11863 35208f442daf
parent 11852 d7227dc3b397
child 11865 047be82b6f67
equal deleted inserted replaced
11862:fbe9bb9602eb 11863:35208f442daf
    44 #include <QApplication>
    44 #include <QApplication>
    45 #include <QInputDialog>
    45 #include <QInputDialog>
    46 #include <QPropertyAnimation>
    46 #include <QPropertyAnimation>
    47 #include <QSettings>
    47 #include <QSettings>
    48 #include <QSortFilterProxyModel>
    48 #include <QSortFilterProxyModel>
       
    49 #include <QIcon>
       
    50 #include <QImage>
    49 
    51 
    50 #if (QT_VERSION >= 0x040600)
    52 #if (QT_VERSION >= 0x040600)
    51 #include <QGraphicsEffect>
    53 #include <QGraphicsEffect>
    52 #include <QParallelAnimationGroup>
    54 #include <QParallelAnimationGroup>
    53 #endif
    55 #endif
   140 {
   142 {
   141     // set music track
   143     // set music track
   142     SDLInteraction::instance().setMusicTrack("/Music/main_theme.ogg");
   144     SDLInteraction::instance().setMusicTrack("/Music/main_theme.ogg");
   143 
   145 
   144     this->setStyleSheet(styleSheet);
   146     this->setStyleSheet(styleSheet);
       
   147 
       
   148 
       
   149     QIcon * hwIcon = new QIcon();
       
   150     hwIcon->addFile(":/res/hh_small.png");
       
   151     //hwIcon->addFile(":/res/hh25x25.png");
       
   152     // crop-workaround for the fact that hh25x25.png is actually 25x35
       
   153     QPixmap pm(":/res/hh25x25.png");
       
   154     hwIcon->addPixmap(pm.copy(0,(pm.height()-25)/2,25,25));
       
   155     hwIcon->addFile(":/res/teamicon.png");
       
   156     hwIcon->addFile(":/res/teamicon2.png");
       
   157 
       
   158     this->setWindowIcon(*hwIcon);
   145     ui.setupUi(this);
   159     ui.setupUi(this);
   146     setMinimumSize(760, 580);
   160     setMinimumSize(760, 580);
   147     //setFocusPolicy(Qt::StrongFocus);
   161     //setFocusPolicy(Qt::StrongFocus);
   148     CustomizePalettes();
   162     CustomizePalettes();
   149 
   163