Diffstat (limited to 'noncore/net/opieirc/ircchannellist.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opieirc/ircchannellist.cpp | 8 |
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 @@ -#include <qpe/resource.h> +#include <opie2/oresource.h> #include "ircchannellist.h" #include "ircchannelperson.h" IRCChannelList::IRCChannelList(IRCChannel *channel, QWidget *parent, const char *name, WFlags f) : QListBox(parent, name, f) { m_channel = channel; } void IRCChannelList::update() { - QPixmap op = Resource::loadPixmap("opieirc/op"); - QPixmap hop = Resource::loadPixmap("opieirc/hop"); - QPixmap voice = Resource::loadPixmap("opieirc/voice"); + QPixmap op = Opie::Core::OResource::loadPixmap( "opieirc/op" ); + QPixmap hop = Opie::Core::OResource::loadPixmap( "opieirc/hop" ); + QPixmap voice = Opie::Core::OResource::loadPixmap( "opieirc/voice" ); QListIterator<IRCChannelPerson> it = m_channel->people(); clear(); for (; it.current(); ++it) { IRCChannelPerson *person = it.current(); if (person->flags() & IRCChannelPerson::PERSON_FLAG_OP) { insertItem(op, "1" + person->nick()); } else if (person->flags() & IRCChannelPerson::PERSON_FLAG_HALFOP) { insertItem(op, "2" + person->nick()); } else if (person->flags() & IRCChannelPerson::PERSON_FLAG_VOICE) { insertItem(voice, "3" + person->nick()); } else { insertItem("4" + person->nick()); } } sort(); adjustNicks(); } bool IRCChannelList::hasPerson(QString nick) { for (unsigned int i=0; i<count(); i++) { if (text(i) == nick) return TRUE; } |