From 7d3f88f6a5be45944d55d2f6fc26dbae1f5359aa Mon Sep 17 00:00:00 2001 From: gounux Date: Sun, 13 Oct 2024 11:16:54 +0200 Subject: [PATCH] ui(qchat): set qchat groupbox enabled --- qtribu/gui/dck_qchat.py | 8 ++++---- qtribu/gui/dck_qchat.ui | 7 +++++-- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/qtribu/gui/dck_qchat.py b/qtribu/gui/dck_qchat.py index 21cfdc54..c0c4a654 100644 --- a/qtribu/gui/dck_qchat.py +++ b/qtribu/gui/dck_qchat.py @@ -95,8 +95,8 @@ def __init__(self, iface: QgisInterface, parent: QWidget = None): ) # list users signal listener - self.bltn_list_users.pressed.connect(self.on_list_users_button_clicked) - self.bltn_list_users.setIcon( + self.btn_list_users.pressed.connect(self.on_list_users_button_clicked) + self.btn_list_users.setIcon( QIcon(QgsApplication.iconPath("processingResult.svg")) ) @@ -293,7 +293,7 @@ def on_ws_connected(self, room: str) -> None: self.btn_connect.setText(self.tr("Disconnect")) self.lbl_status.setText("Connected") self.grb_room.setTitle(self.tr("Room: {room}").format(room=room)) - self.grb_qchat.setEnabled(True) + self.btn_list_users.setEnabled(True) self.grb_user.setEnabled(True) self.current_room = room self.connected = True @@ -325,7 +325,7 @@ def disconnect_from_room(self, log: bool = True, close_ws: bool = True) -> None: self.lbl_status.setText("Disconnected") self.grb_room.setTitle(self.tr("Room")) self.grb_qchat.setTitle(self.tr("QChat")) - self.grb_qchat.setEnabled(False) + self.btn_list_users.setEnabled(False) self.grb_user.setEnabled(False) self.connected = False if close_ws: diff --git a/qtribu/gui/dck_qchat.ui b/qtribu/gui/dck_qchat.ui index 18a6de28..bbc29f9e 100644 --- a/qtribu/gui/dck_qchat.ui +++ b/qtribu/gui/dck_qchat.ui @@ -153,7 +153,7 @@ - false + true @@ -220,7 +220,10 @@ - + + + false + PointingHandCursor