From 37d883535366f03e3ee4044a59569942864af0a5 Mon Sep 17 00:00:00 2001 From: Joe Robinson Date: Wed, 19 Apr 2017 14:32:48 +0100 Subject: Add topic handling --- IrcWindow.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'IrcWindow.py') diff --git a/IrcWindow.py b/IrcWindow.py index 4dc0d4c..ec5537a 100644 --- a/IrcWindow.py +++ b/IrcWindow.py @@ -49,6 +49,11 @@ class IrcWindow(QQuickWindow): channel_chat_area = channel_tab.findChild(QQuickItem, "chat_area") channel_chat_area.append(text) + def update_topic(self, channel, topic): + print(channel.get_view()) + topic_field = channel.get_view().findChild(QQuickItem, "topic") + topic_field.setProperty("text", topic) + def dumpQMLComponents(self, root): children = root.findChildren(QObject) for item in children: -- cgit v1.2.3