QTfrontend/ui/widget/chatwidget.cpp
changeset 6167 728cabee2c9f
parent 6165 6fe3e922246e
child 6177 5eba8970e8ae
equal deleted inserted replaced
6166:701c5b8fac56 6167:728cabee2c9f
   120   QWidget(parent),
   120   QWidget(parent),
   121   mainLayout(this)
   121   mainLayout(this)
   122 {
   122 {
   123     this->gameSettings = gameSettings;
   123     this->gameSettings = gameSettings;
   124     this->notify = notify;
   124     this->notify = notify;
   125     if(notify && gameSettings->value("frontend/sound", true).toBool()) {
   125     if(notify && gameSettings->value("frontend/sound", true).toBool())
   126         QFile * tmpFile = HWDataManager::instance().findFileForRead(
   126         helloSound = HWDataManager::instance().findFileForRead(
   127                                             "Sounds/voices/Classic/Hello.ogg");
   127                         "Sounds/voices/Classic/Hello.ogg");
   128 
       
   129         helloSound = tmpFile->fileName();
       
   130 
       
   131         // this QFile isn't needed any further
       
   132         delete tmpFile;
       
   133     }
       
   134 
   128 
   135     mainLayout.setSpacing(1);
   129     mainLayout.setSpacing(1);
   136     mainLayout.setMargin(1);
   130     mainLayout.setMargin(1);
   137     mainLayout.setSizeConstraint(QLayout::SetMinimumSize);
   131     mainLayout.setSizeConstraint(QLayout::SetMinimumSize);
   138     mainLayout.setColumnStretch(0, 76);
   132     mainLayout.setColumnStretch(0, 76);