From ad2fa44a81c57bb92389226406693f130a873205 Mon Sep 17 00:00:00 2001 From: defnax Date: Sat, 26 Dec 2020 16:30:24 +0100 Subject: [PATCH] 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 --- retroshare-gui/src/gui/chat/ChatLobbyDialog.cpp | 2 +- retroshare-gui/src/gui/qss/stylesheet/Standard.qss | 4 ---- retroshare-gui/src/gui/statistics/BwCtrlWindow.cpp | 2 +- retroshare-gui/src/gui/statistics/DhtWindow.cpp | 2 +- 4 files changed, 3 insertions(+), 7 deletions(-) diff --git a/retroshare-gui/src/gui/chat/ChatLobbyDialog.cpp b/retroshare-gui/src/gui/chat/ChatLobbyDialog.cpp index 66ebb8e9e..3b92883e8 100644 --- a/retroshare-gui/src/gui/chat/ChatLobbyDialog.cpp +++ b/retroshare-gui/src/gui/chat/ChatLobbyDialog.cpp @@ -696,7 +696,7 @@ void ChatLobbyDialog::participantsTreeWidgetDoubleClicked(QTreeWidgetItem *item, if(column == COLUMN_NAME) { - getChatWidget()->pasteText("@" + RsHtml::plainText(item->text(COLUMN_NAME))) ; + getChatWidget()->pasteText("@" + RsHtml::plainText(item->text(COLUMN_NAME)) + " ") ; return ; } diff --git a/retroshare-gui/src/gui/qss/stylesheet/Standard.qss b/retroshare-gui/src/gui/qss/stylesheet/Standard.qss index b968eed6c..75bc0d0f4 100644 --- a/retroshare-gui/src/gui/qss/stylesheet/Standard.qss +++ b/retroshare-gui/src/gui/qss/stylesheet/Standard.qss @@ -1113,7 +1113,3 @@ PulseTopLevel QFrame#frame, PulseViewGroup QFrame#frame, PulseReply QFrame#frame ChatLobbyWidget QTreeWidget#lobbyTreeWidget{ font-size: 10pt; } - -NewFriendList QTreeView#peerTreeWidget { - font-size: 12pt; -} diff --git a/retroshare-gui/src/gui/statistics/BwCtrlWindow.cpp b/retroshare-gui/src/gui/statistics/BwCtrlWindow.cpp index f006d7f5b..44f606318 100644 --- a/retroshare-gui/src/gui/statistics/BwCtrlWindow.cpp +++ b/retroshare-gui/src/gui/statistics/BwCtrlWindow.cpp @@ -192,7 +192,7 @@ BwCtrlWindow::BwCtrlWindow(QWidget *parent) /* Set header resize modes and initial section sizes Peer TreeView*/ QHeaderView * _header = bwTreeWidget->header () ; // _header->resizeSection ( COLUMN_RSNAME, 170*fact ); - QHeaderView_setSectionResizeMode(_header, QHeaderView::ResizeToContents); + QHeaderView_setSectionResizeMode(_header, QHeaderView::Interactive); } BwCtrlWindow::~BwCtrlWindow() diff --git a/retroshare-gui/src/gui/statistics/DhtWindow.cpp b/retroshare-gui/src/gui/statistics/DhtWindow.cpp index 27ea76e63..a2661955e 100644 --- a/retroshare-gui/src/gui/statistics/DhtWindow.cpp +++ b/retroshare-gui/src/gui/statistics/DhtWindow.cpp @@ -109,7 +109,7 @@ void DhtWindow::updateDisplay() 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.relayTreeWidget->header(), QHeaderView::ResizeToContents); }