Diffstat (limited to 'noncore/net/opieirc/ircchannellist.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/opieirc/ircchannellist.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/noncore/net/opieirc/ircchannellist.cpp b/noncore/net/opieirc/ircchannellist.cpp index c32c535..8cf144e 100644 --- a/noncore/net/opieirc/ircchannellist.cpp +++ b/noncore/net/opieirc/ircchannellist.cpp | |||
@@ -1,8 +1,10 @@ | |||
1 | #include <qpe/resource.h> | 1 | #include <qpe/resource.h> |
2 | |||
2 | #include "ircchannellist.h" | 3 | #include "ircchannellist.h" |
4 | #include "ircchannelperson.h" | ||
3 | 5 | ||
4 | IRCChannelList::IRCChannelList(IRCChannel *channel, QWidget *parent, const char *name, WFlags f) : QListBox(parent, name, f) { | 6 | IRCChannelList::IRCChannelList(IRCChannel *channel, QWidget *parent, const char *name, WFlags f) : QListBox(parent, name, f) { |
5 | m_channel = channel; | 7 | m_channel = channel; |
6 | } | 8 | } |
7 | 9 | ||
8 | void IRCChannelList::update() { | 10 | void IRCChannelList::update() { |
@@ -10,20 +12,20 @@ void IRCChannelList::update() { | |||
10 | QPixmap hop = Resource::loadPixmap("opieirc/hop"); | 12 | QPixmap hop = Resource::loadPixmap("opieirc/hop"); |
11 | QPixmap voice = Resource::loadPixmap("opieirc/voice"); | 13 | QPixmap voice = Resource::loadPixmap("opieirc/voice"); |
12 | QListIterator<IRCChannelPerson> it = m_channel->people(); | 14 | QListIterator<IRCChannelPerson> it = m_channel->people(); |
13 | clear(); | 15 | clear(); |
14 | for (; it.current(); ++it) { | 16 | for (; it.current(); ++it) { |
15 | IRCChannelPerson *person = it.current(); | 17 | IRCChannelPerson *person = it.current(); |
16 | if (person->flags & PERSON_FLAG_OP) { | 18 | if (person->flags() & IRCChannelPerson::PERSON_FLAG_OP) { |
17 | insertItem(op, "1" + person->person->nick()); | 19 | insertItem(op, "1" + person->nick()); |
18 | } else if (person->flags & PERSON_FLAG_HALFOP) { | 20 | } else if (person->flags() & IRCChannelPerson::PERSON_FLAG_HALFOP) { |
19 | insertItem(op, "2" + person->person->nick()); | 21 | insertItem(op, "2" + person->nick()); |
20 | } else if (person->flags & PERSON_FLAG_VOICE) { | 22 | } else if (person->flags() & IRCChannelPerson::PERSON_FLAG_VOICE) { |
21 | insertItem(voice, "3" + person->person->nick()); | 23 | insertItem(voice, "3" + person->nick()); |
22 | } else { | 24 | } else { |
23 | insertItem("4" + person->person->nick()); | 25 | insertItem("4" + person->nick()); |
24 | } | 26 | } |
25 | } | 27 | } |
26 | sort(); | 28 | sort(); |
27 | adjustNicks(); | 29 | adjustNicks(); |
28 | } | 30 | } |
29 | 31 | ||