summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opieirc/ircchannellist.cpp8
-rw-r--r--noncore/net/opieirc/ircchanneltab.cpp14
-rw-r--r--noncore/net/opieirc/irctab.cpp10
-rw-r--r--noncore/net/opieirc/mainwindow.cpp12
4 files changed, 25 insertions, 19 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,3 +1,3 @@
1#include <qpe/resource.h> 1#include <opie2/oresource.h>
2 2
3#include "ircchannellist.h" 3#include "ircchannellist.h"
@@ -9,7 +9,7 @@ IRCChannelList::IRCChannelList(IRCChannel *channel, QWidget *parent, const char
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();
diff --git a/noncore/net/opieirc/ircchanneltab.cpp b/noncore/net/opieirc/ircchanneltab.cpp
index 3272a8a..707e17f 100644
--- a/noncore/net/opieirc/ircchanneltab.cpp
+++ b/noncore/net/opieirc/ircchanneltab.cpp
@@ -1,3 +1,3 @@
1#include <qpe/resource.h> 1#include <opie2/oresource.h>
2#include <qwhatsthis.h> 2#include <qwhatsthis.h>
3#include <qhbox.h> 3#include <qhbox.h>
@@ -44,9 +44,13 @@ IRCChannelTab::IRCChannelTab(IRCChannel *channel, IRCServerTab *parentTab, MainW
44 /* Construct the popup menu */ 44 /* Construct the popup menu */
45 //QPopupMenu *ctcpMenu = new QPopupMenu(m_list); 45 //QPopupMenu *ctcpMenu = new QPopupMenu(m_list);
46 m_popup->insertItem(Resource::loadPixmap("opieirc/query"), tr("Query"), this, SLOT(popupQuery())); 46 m_popup->insertItem(Opie::Core::OResource::loadPixmap("opieirc/query",Opie::Core::OResource::SmallIcon),
47 tr("Query"), this, SLOT(popupQuery()));
47 m_popup->insertSeparator(); 48 m_popup->insertSeparator();
48 m_popup->insertItem(Resource::loadPixmap("opieirc/ping"), tr("Ping"), this, SLOT(popupPing())); 49 m_popup->insertItem(Opie::Core::OResource::loadPixmap("opieirc/ping",Opie::Core::OResource::SmallIcon),
49 m_popup->insertItem(Resource::loadPixmap("opieirc/version"), tr("Version"), this, SLOT(popupVersion())); 50 tr("Ping"), this, SLOT(popupPing()));
50 m_popup->insertItem(Resource::loadPixmap("opieirc/whois"), tr("Whois"), this, SLOT(popupWhois())); 51 m_popup->insertItem(Opie::Core::OResource::loadPixmap("opieirc/version",Opie::Core::OResource::SmallIcon),
52 tr("Version"), this, SLOT(popupVersion()));
53 m_popup->insertItem(Opie::Core::OResource::loadPixmap("opieirc/whois",Opie::Core::OResource::SmallIcon),
54 tr("Whois"), this, SLOT(popupWhois()));
51 //m_popup->insertItem(ctcpMenu, "CTCP"); 55 //m_popup->insertItem(ctcpMenu, "CTCP");
52 connect(m_mainWindow, SIGNAL(updateScroll()), this, SLOT(scrolling())); 56 connect(m_mainWindow, SIGNAL(updateScroll()), this, SLOT(scrolling()));
diff --git a/noncore/net/opieirc/irctab.cpp b/noncore/net/opieirc/irctab.cpp
index aee33c4..2f459a9 100644
--- a/noncore/net/opieirc/irctab.cpp
+++ b/noncore/net/opieirc/irctab.cpp
@@ -3,8 +3,7 @@
3 3
4#include <opie2/okeyconfigmanager.h> 4#include <opie2/okeyconfigmanager.h>
5#include <opie2/oresource.h>
5 6
6#include <qpe/applnk.h> 7#include <qpe/applnk.h>
7#include <qpe/resource.h>
8
9 8
10#include <qpushbutton.h> 9#include <qpushbutton.h>
@@ -45,8 +44,7 @@ IRCTab::IRCTab(QWidget *parent, const char *name, WFlags f) : QWidget(parent, na
45 descLayout->addWidget(m_description); 44 descLayout->addWidget(m_description);
46 descLayout->setStretchFactor(m_description, 5); 45 descLayout->setStretchFactor(m_description, 5);
47 QPixmap pic; 46 QPushButton *close = new QPushButton( Opie::Core::OResource::loadPixmap( "close", Opie::Core::OResource::SmallIcon ),
48 pic.convertFromImage( Resource::loadImage( "close" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); 47 QString::null, this);
49 QPushButton *close = new QPushButton(pic, QString::null, this); 48 close->setFixedSize( AppLnk::smallIconSize(), AppLnk::smallIconSize() );
50 close->setMaximumWidth( close->height() );
51 QWhatsThis::add(close, tr("Close this tab")); 49 QWhatsThis::add(close, tr("Close this tab"));
52 connect(close, SIGNAL(clicked()), this, SLOT(remove())); 50 connect(close, SIGNAL(clicked()), this, SLOT(remove()));
diff --git a/noncore/net/opieirc/mainwindow.cpp b/noncore/net/opieirc/mainwindow.cpp
index 3d60107..5edcf66 100644
--- a/noncore/net/opieirc/mainwindow.cpp
+++ b/noncore/net/opieirc/mainwindow.cpp
@@ -1,7 +1,7 @@
1#include <qmenubar.h>
2#include <qpe/resource.h>
3 1
4#include <opie2/odebug.h> 2#include <opie2/odebug.h>
3#include <opie2/oresource.h>
5 4
5#include <qmenubar.h>
6#include <qwhatsthis.h> 6#include <qwhatsthis.h>
7 7
@@ -30,9 +30,13 @@ MainWindow::MainWindow(QWidget *parent, const char *name, WFlags) : QMainWindow(
30 QPopupMenu *irc = new QPopupMenu(this); 30 QPopupMenu *irc = new QPopupMenu(this);
31 menuBar->insertItem(tr("IRC"), irc); 31 menuBar->insertItem(tr("IRC"), irc);
32 QAction *a = new QAction(tr("New connection"), Resource::loadPixmap("pass"), QString::null, 0, this, 0); 32 QAction *a = new QAction( tr("New connection"),
33 Opie::Core::OResource::loadPixmap( "pass", Opie::Core::OResource::SmallIcon ),
34 QString::null, 0, this, 0 );
33 connect(a, SIGNAL(activated()), this, SLOT(newConnection())); 35 connect(a, SIGNAL(activated()), this, SLOT(newConnection()));
34 a->setWhatsThis(tr("Create a new connection to an IRC server")); 36 a->setWhatsThis(tr("Create a new connection to an IRC server"));
35 a->addTo(irc); 37 a->addTo(irc);
36 a = new QAction(tr("Settings"), Resource::loadPixmap("SettingsIcon"), QString::null, 0, this, 0); 38 a = new QAction( tr("Settings"),
39 Opie::Core::OResource::loadPixmap( "SettingsIcon", Opie::Core::OResource::SmallIcon ),
40 QString::null, 0, this, 0 );
37 a->setWhatsThis(tr("Configure OpieIRC's behavior and appearance")); 41 a->setWhatsThis(tr("Configure OpieIRC's behavior and appearance"));
38 connect(a, SIGNAL(activated()), this, SLOT(settings())); 42 connect(a, SIGNAL(activated()), this, SLOT(settings()));