QTfrontend/pages.cpp
changeset 1522 6794cf8f1e6f
parent 1487 b4cc59a6d50a
child 1576 a02353129a41
equal deleted inserted replaced
1521:971f523d7c01 1522:6794cf8f1e6f
   681 	roomsList->setColumnCount(3);
   681 	roomsList->setColumnCount(3);
   682 	roomsList->setSelectionBehavior(QAbstractItemView::SelectRows);
   682 	roomsList->setSelectionBehavior(QAbstractItemView::SelectRows);
   683 	roomsList->verticalHeader()->setVisible(false);
   683 	roomsList->verticalHeader()->setVisible(false);
   684 	roomsList->horizontalHeader()->setResizeMode(QHeaderView::Interactive);
   684 	roomsList->horizontalHeader()->setResizeMode(QHeaderView::Interactive);
   685 	roomsList->horizontalHeader()->setResizeMode(0, QHeaderView::Stretch);
   685 	roomsList->horizontalHeader()->setResizeMode(0, QHeaderView::Stretch);
   686 	
       
   687 	pageLayout->addWidget(roomsList, 1, 0, 3, 1);
   686 	pageLayout->addWidget(roomsList, 1, 0, 3, 1);
       
   687 	pageLayout->setRowStretch(2, 125);
       
   688 	
   688 	serverMessage = new QTextBrowser(this);
   689 	serverMessage = new QTextBrowser(this);
   689 	serverMessage->setOpenExternalLinks(true);
   690 	serverMessage->setOpenExternalLinks(true);
   690 	pageLayout->addWidget(serverMessage, 4, 0, 1, 2);
   691 	pageLayout->addWidget(serverMessage, 4, 0, 1, 2);
   691 	
   692 	pageLayout->setRowStretch(4, 100);
   692 	BtnBack = addButton(":/res/Exit.png", pageLayout, 5, 0, true);
   693 
       
   694 	chatWidget = new HWChatWidget(this);
       
   695 	pageLayout->addWidget(chatWidget, 5, 0, 1, 2);
       
   696 	pageLayout->setRowStretch(5, 200);
       
   697 
       
   698 	BtnBack = addButton(":/res/Exit.png", pageLayout, 6, 0, true);
   693 	BtnCreate = addButton(tr("Create"), pageLayout, 0, 1);
   699 	BtnCreate = addButton(tr("Create"), pageLayout, 0, 1);
   694 	BtnJoin = addButton(tr("Join"), pageLayout, 1, 1);
   700 	BtnJoin = addButton(tr("Join"), pageLayout, 1, 1);
   695 	BtnRefresh = addButton(tr("Refresh"), pageLayout, 2, 1);
   701 	BtnRefresh = addButton(tr("Refresh"), pageLayout, 3, 1);
   696 
   702 
   697 	connect(BtnCreate, SIGNAL(clicked()), this, SLOT(onCreateClick()));
   703 	connect(BtnCreate, SIGNAL(clicked()), this, SLOT(onCreateClick()));
   698 	connect(BtnJoin, SIGNAL(clicked()), this, SLOT(onJoinClick()));
   704 	connect(BtnJoin, SIGNAL(clicked()), this, SLOT(onJoinClick()));
   699 	connect(BtnRefresh, SIGNAL(clicked()), this, SLOT(onRefreshClick()));
   705 	connect(BtnRefresh, SIGNAL(clicked()), this, SLOT(onRefreshClick()));
   700 	connect(roomsList, SIGNAL(doubleClicked (const QModelIndex &)), this, SLOT(onJoinClick()));
   706 	connect(roomsList, SIGNAL(doubleClicked (const QModelIndex &)), this, SLOT(onJoinClick()));