QTfrontend/ui/page/pageroomslist.cpp
changeset 6165 6fe3e922246e
parent 6146 c7c2dd71ced4
child 6172 809e1076ffe2
equal deleted inserted replaced
6164:62aa418ed214 6165:6fe3e922246e
    85     filterLayout->addWidget(searchLabel);
    85     filterLayout->addWidget(searchLabel);
    86     filterLayout->addWidget(searchText);
    86     filterLayout->addWidget(searchText);
    87 
    87 
    88     pageLayout->addLayout(filterLayout, 4, 0, 1, 2);
    88     pageLayout->addLayout(filterLayout, 4, 0, 1, 2);
    89 
    89 
    90     chatWidget = new HWChatWidget(this, m_gameSettings, m_sdli, false);
    90     chatWidget = new HWChatWidget(this, m_gameSettings, false);
    91     pageLayout->addWidget(chatWidget, 5, 0, 1, 3);
    91     pageLayout->addWidget(chatWidget, 5, 0, 1, 3);
    92     pageLayout->setRowStretch(5, 350);
    92     pageLayout->setRowStretch(5, 350);
    93 
    93 
    94     BtnCreate = addButton(tr("Create"), pageLayout, 0, 2);
    94     BtnCreate = addButton(tr("Create"), pageLayout, 0, 2);
    95     BtnJoin = addButton(tr("Join"), pageLayout, 1, 2);
    95     BtnJoin = addButton(tr("Join"), pageLayout, 1, 2);
   138     connect(searchText, SIGNAL(textChanged (const QString &)), this, SLOT(onRefreshClick()));
   138     connect(searchText, SIGNAL(textChanged (const QString &)), this, SLOT(onRefreshClick()));
   139     connect(this, SIGNAL(askJoinConfirmation (const QString &)), this, SLOT(onJoinConfirmation(const QString &)), Qt::QueuedConnection);
   139     connect(this, SIGNAL(askJoinConfirmation (const QString &)), this, SLOT(onJoinConfirmation(const QString &)), Qt::QueuedConnection);
   140 }
   140 }
   141 
   141 
   142 
   142 
   143 PageRoomsList::PageRoomsList(QWidget* parent, QSettings * gameSettings, SDLInteraction * sdli) :
   143 PageRoomsList::PageRoomsList(QWidget* parent, QSettings * gameSettings) :
   144   AbstractPage(parent)
   144   AbstractPage(parent)
   145 {
   145 {
   146     m_gameSettings = gameSettings;
   146     m_gameSettings = gameSettings;
   147     m_sdli = sdli;
       
   148 
   147 
   149     initPage();
   148     initPage();
   150 
   149 
   151     // not the most elegant solution but it works
   150     // not the most elegant solution but it works
   152     ammoSchemeModel = new AmmoSchemeModel(this, NULL);
   151     ammoSchemeModel = new AmmoSchemeModel(this, NULL);