summaryrefslogtreecommitdiff
path: root/noncore/net/opieirc/ircchannellist.cpp
authordrw <drw>2005-05-04 23:22:17 (UTC)
committer drw <drw>2005-05-04 23:22:17 (UTC)
commit11833e51efabe194db59640c2d0ccea0a33c11ce (patch) (unidiff)
treeee444e1da95b52f3f74bb8eb4d2c351002969f32 /noncore/net/opieirc/ircchannellist.cpp
parentd89cbf4ba511beaf228ce87d4e21a2a6a49767f2 (diff)
downloadopie-11833e51efabe194db59640c2d0ccea0a33c11ce.zip
opie-11833e51efabe194db59640c2d0ccea0a33c11ce.tar.gz
opie-11833e51efabe194db59640c2d0ccea0a33c11ce.tar.bz2
Resource -> OResource
Diffstat (limited to 'noncore/net/opieirc/ircchannellist.cpp') (more/less context) (ignore 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,25 +1,25 @@
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());