diff options
author | Joe Robinson <joe@grabyo.com> | 2017-04-19 14:32:48 +0100 |
---|---|---|
committer | Joe Robinson <joe@grabyo.com> | 2017-04-19 14:32:48 +0100 |
commit | 37d883535366f03e3ee4044a59569942864af0a5 (patch) | |
tree | fa7cf527d2defb6291e45f932abc5ba55c57e01a /IrcWindow.py | |
parent | 5422ca830c2d5f2845c837cccf00a42f4e310fa6 (diff) |
Add topic handling
Diffstat (limited to 'IrcWindow.py')
-rw-r--r-- | IrcWindow.py | 5 |
1 files changed, 5 insertions, 0 deletions
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: |