QTfrontend/ui/page/pageroomslist.cpp
changeset 7769 1661680c6b59
parent 7011 f6f09a0954ea
child 7794 ab7b94c03bc9
equal deleted inserted replaced
7767:d1ea9b3f543e 7769:1661680c6b59
    99     pageLayout->addWidget(chatWidget, 5, 0, 1, 3);
    99     pageLayout->addWidget(chatWidget, 5, 0, 1, 3);
   100     pageLayout->setRowStretch(5, 350);
   100     pageLayout->setRowStretch(5, 350);
   101 
   101 
   102     BtnCreate = addButton(tr("Create"), pageLayout, 0, 2);
   102     BtnCreate = addButton(tr("Create"), pageLayout, 0, 2);
   103     BtnJoin = addButton(tr("Join"), pageLayout, 1, 2);
   103     BtnJoin = addButton(tr("Join"), pageLayout, 1, 2);
   104     BtnRefresh = addButton(tr("Refresh"), pageLayout, 3, 2);
       
   105     BtnClear = addButton(tr("Clear"), pageLayout, 4, 2);
   104     BtnClear = addButton(tr("Clear"), pageLayout, 4, 2);
   106 
   105 
   107     // strech all but the buttons column
   106     // strech all but the buttons column
   108     pageLayout->setColumnStretch(0, 1);
   107     pageLayout->setColumnStretch(0, 1);
   109     pageLayout->setColumnStretch(1, 1);
   108     pageLayout->setColumnStretch(1, 1);
   141 {
   140 {
   142     connect(chatWidget, SIGNAL(nickCountUpdate(const int)), this, SLOT(updateNickCounter(const int)));
   141     connect(chatWidget, SIGNAL(nickCountUpdate(const int)), this, SLOT(updateNickCounter(const int)));
   143 
   142 
   144     connect(BtnCreate, SIGNAL(clicked()), this, SLOT(onCreateClick()));
   143     connect(BtnCreate, SIGNAL(clicked()), this, SLOT(onCreateClick()));
   145     connect(BtnJoin, SIGNAL(clicked()), this, SLOT(onJoinClick()));
   144     connect(BtnJoin, SIGNAL(clicked()), this, SLOT(onJoinClick()));
   146     connect(BtnRefresh, SIGNAL(clicked()), this, SLOT(onRefreshClick()));
       
   147     connect(BtnClear, SIGNAL(clicked()), this, SLOT(onClearClick()));
   145     connect(BtnClear, SIGNAL(clicked()), this, SLOT(onClearClick()));
   148     connect(roomsList, SIGNAL(doubleClicked (const QModelIndex &)), this, SLOT(onJoinClick()));
   146     connect(roomsList, SIGNAL(doubleClicked (const QModelIndex &)), this, SLOT(onJoinClick()));
   149     connect(CBState, SIGNAL(currentIndexChanged (int)), this, SLOT(onFilterChanged()));
   147     connect(CBState, SIGNAL(currentIndexChanged (int)), this, SLOT(onFilterChanged()));
   150     connect(CBRules, SIGNAL(currentIndexChanged (int)), this, SLOT(onFilterChanged()));
   148     connect(CBRules, SIGNAL(currentIndexChanged (int)), this, SLOT(onFilterChanged()));
   151     connect(CBWeapons, SIGNAL(currentIndexChanged (int)), this, SLOT(onFilterChanged()));
   149     connect(CBWeapons, SIGNAL(currentIndexChanged (int)), this, SLOT(onFilterChanged()));