summaryrefslogtreecommitdiff
path: root/noncore/net/opieirc/ircchannellist.cpp
Unidiff
Diffstat (limited to 'noncore/net/opieirc/ircchannellist.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/opieirc/ircchannellist.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/noncore/net/opieirc/ircchannellist.cpp b/noncore/net/opieirc/ircchannellist.cpp
index 8cf144e..3982f30 100644
--- a/noncore/net/opieirc/ircchannellist.cpp
+++ b/noncore/net/opieirc/ircchannellist.cpp
@@ -1,37 +1,37 @@
1#include <qpe/resource.h> 1#include <opie2/oresource.h>
2 2
3#include "ircchannellist.h" 3#include "ircchannellist.h"
4#include "ircchannelperson.h" 4#include "ircchannelperson.h"
5 5
6IRCChannelList::IRCChannelList(IRCChannel *channel, QWidget *parent, const char *name, WFlags f) : QListBox(parent, name, f) { 6IRCChannelList::IRCChannelList(IRCChannel *channel, QWidget *parent, const char *name, WFlags f) : QListBox(parent, name, f) {
7 m_channel = channel; 7 m_channel = channel;
8} 8}
9 9
10void IRCChannelList::update() { 10void IRCChannelList::update() {
11 QPixmap op = Resource::loadPixmap("opieirc/op"); 11 QPixmap op = Opie::Core::OResource::loadPixmap( "opieirc/op" );
12 QPixmap hop = Resource::loadPixmap("opieirc/hop"); 12 QPixmap hop = Opie::Core::OResource::loadPixmap( "opieirc/hop" );
13 QPixmap voice = Resource::loadPixmap("opieirc/voice"); 13 QPixmap voice = Opie::Core::OResource::loadPixmap( "opieirc/voice" );
14 QListIterator<IRCChannelPerson> it = m_channel->people(); 14 QListIterator<IRCChannelPerson> it = m_channel->people();
15 clear(); 15 clear();
16 for (; it.current(); ++it) { 16 for (; it.current(); ++it) {
17 IRCChannelPerson *person = it.current(); 17 IRCChannelPerson *person = it.current();
18 if (person->flags() & IRCChannelPerson::PERSON_FLAG_OP) { 18 if (person->flags() & IRCChannelPerson::PERSON_FLAG_OP) {
19 insertItem(op, "1" + person->nick()); 19 insertItem(op, "1" + person->nick());
20 } else if (person->flags() & IRCChannelPerson::PERSON_FLAG_HALFOP) { 20 } else if (person->flags() & IRCChannelPerson::PERSON_FLAG_HALFOP) {
21 insertItem(op, "2" + person->nick()); 21 insertItem(op, "2" + person->nick());
22 } else if (person->flags() & IRCChannelPerson::PERSON_FLAG_VOICE) { 22 } else if (person->flags() & IRCChannelPerson::PERSON_FLAG_VOICE) {
23 insertItem(voice, "3" + person->nick()); 23 insertItem(voice, "3" + person->nick());
24 } else { 24 } else {
25 insertItem("4" + person->nick()); 25 insertItem("4" + person->nick());
26 } 26 }
27 } 27 }
28 sort(); 28 sort();
29 adjustNicks(); 29 adjustNicks();
30} 30}
31 31
32 32
33bool IRCChannelList::hasPerson(QString nick) { 33bool IRCChannelList::hasPerson(QString nick) {
34 for (unsigned int i=0; i<count(); i++) { 34 for (unsigned int i=0; i<count(); i++) {
35 if (text(i) == nick) 35 if (text(i) == nick)
36 return TRUE; 36 return TRUE;
37 } 37 }