639 //pageLayout->setSpacing(1); |
639 //pageLayout->setSpacing(1); |
640 pageLayout->setColumnStretch(0, 50); |
640 pageLayout->setColumnStretch(0, 50); |
641 pageLayout->setColumnStretch(1, 50); |
641 pageLayout->setColumnStretch(1, 50); |
642 |
642 |
643 // chatwidget |
643 // chatwidget |
644 pChatWidget = new HWChatWidget(this, gameSettings, sdli); |
644 pChatWidget = new HWChatWidget(this, gameSettings, sdli, true); |
645 pageLayout->addWidget(pChatWidget, 1, 0, 1, 2); |
645 pageLayout->addWidget(pChatWidget, 1, 0, 1, 2); |
646 pageLayout->setRowStretch(1, 100); |
646 pageLayout->setRowStretch(1, 100); |
647 |
647 |
648 pGameCFG = new GameCFGWidget(this); |
648 pGameCFG = new GameCFGWidget(this); |
649 pageLayout->addWidget(pGameCFG, 0, 0); |
649 pageLayout->addWidget(pGameCFG, 0, 0); |
816 roomsList->horizontalHeader()->setResizeMode(QHeaderView::Interactive); |
816 roomsList->horizontalHeader()->setResizeMode(QHeaderView::Interactive); |
817 roomsList->setAlternatingRowColors(true); |
817 roomsList->setAlternatingRowColors(true); |
818 pageLayout->addWidget(roomsList, 1, 0, 3, 1); |
818 pageLayout->addWidget(roomsList, 1, 0, 3, 1); |
819 pageLayout->setRowStretch(2, 100); |
819 pageLayout->setRowStretch(2, 100); |
820 |
820 |
821 chatWidget = new HWChatWidget(this, gameSettings, sdli); |
821 chatWidget = new HWChatWidget(this, gameSettings, sdli, false); |
822 pageLayout->addWidget(chatWidget, 4, 0, 1, 2); |
822 pageLayout->addWidget(chatWidget, 4, 0, 1, 2); |
823 pageLayout->setRowStretch(4, 350); |
823 pageLayout->setRowStretch(4, 350); |
824 |
824 |
825 BtnCreate = addButton(tr("Create"), pageLayout, 0, 1); |
825 BtnCreate = addButton(tr("Create"), pageLayout, 0, 1); |
826 BtnJoin = addButton(tr("Join"), pageLayout, 1, 1); |
826 BtnJoin = addButton(tr("Join"), pageLayout, 1, 1); |