Added some fixes from RetroPooh

* Append space after nick paste on click at chat participant list
* Allow tabs resize in bw stats
* Remove freezes caused by resizing each update
This commit is contained in:
defnax 2020-12-26 16:30:24 +01:00
parent 9963310a94
commit ad2fa44a81
4 changed files with 3 additions and 7 deletions

View file

@ -696,7 +696,7 @@ void ChatLobbyDialog::participantsTreeWidgetDoubleClicked(QTreeWidgetItem *item,
if(column == COLUMN_NAME) if(column == COLUMN_NAME)
{ {
getChatWidget()->pasteText("@" + RsHtml::plainText(item->text(COLUMN_NAME))) ; getChatWidget()->pasteText("@" + RsHtml::plainText(item->text(COLUMN_NAME)) + " ") ;
return ; return ;
} }

View file

@ -1113,7 +1113,3 @@ PulseTopLevel QFrame#frame, PulseViewGroup QFrame#frame, PulseReply QFrame#frame
ChatLobbyWidget QTreeWidget#lobbyTreeWidget{ ChatLobbyWidget QTreeWidget#lobbyTreeWidget{
font-size: 10pt; font-size: 10pt;
} }
NewFriendList QTreeView#peerTreeWidget {
font-size: 12pt;
}

View file

@ -192,7 +192,7 @@ BwCtrlWindow::BwCtrlWindow(QWidget *parent)
/* Set header resize modes and initial section sizes Peer TreeView*/ /* Set header resize modes and initial section sizes Peer TreeView*/
QHeaderView * _header = bwTreeWidget->header () ; QHeaderView * _header = bwTreeWidget->header () ;
// _header->resizeSection ( COLUMN_RSNAME, 170*fact ); // _header->resizeSection ( COLUMN_RSNAME, 170*fact );
QHeaderView_setSectionResizeMode(_header, QHeaderView::ResizeToContents); QHeaderView_setSectionResizeMode(_header, QHeaderView::Interactive);
} }
BwCtrlWindow::~BwCtrlWindow() BwCtrlWindow::~BwCtrlWindow()

View file

@ -109,7 +109,7 @@ void DhtWindow::updateDisplay()
RsAutoUpdatePage::unlockAllEvents() ; RsAutoUpdatePage::unlockAllEvents() ;
QHeaderView_setSectionResizeMode(ui.peerTreeWidget->header(), QHeaderView::ResizeToContents); //QHeaderView_setSectionResizeMode(ui.peerTreeWidget->header(), QHeaderView::ResizeToContents);
QHeaderView_setSectionResizeMode(ui.dhtTreeWidget->header(), QHeaderView::ResizeToContents); QHeaderView_setSectionResizeMode(ui.dhtTreeWidget->header(), QHeaderView::ResizeToContents);
QHeaderView_setSectionResizeMode(ui.relayTreeWidget->header(), QHeaderView::ResizeToContents); QHeaderView_setSectionResizeMode(ui.relayTreeWidget->header(), QHeaderView::ResizeToContents);
} }