author | drw <drw> | 2005-05-04 23:22:17 (UTC) |
---|---|---|
committer | drw <drw> | 2005-05-04 23:22:17 (UTC) |
commit | 11833e51efabe194db59640c2d0ccea0a33c11ce (patch) (unidiff) | |
tree | ee444e1da95b52f3f74bb8eb4d2c351002969f32 /noncore/net/opieirc/irctab.cpp | |
parent | d89cbf4ba511beaf228ce87d4e21a2a6a49767f2 (diff) | |
download | opie-11833e51efabe194db59640c2d0ccea0a33c11ce.zip opie-11833e51efabe194db59640c2d0ccea0a33c11ce.tar.gz opie-11833e51efabe194db59640c2d0ccea0a33c11ce.tar.bz2 |
Resource -> OResource
Diffstat (limited to 'noncore/net/opieirc/irctab.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opieirc/irctab.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
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 | |||
@@ -2,10 +2,9 @@ | |||
2 | #include "mainwindow.h" | 2 | #include "mainwindow.h" |
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> |
11 | #include <qwhatsthis.h> | 10 | #include <qwhatsthis.h> |
@@ -44,10 +43,9 @@ IRCTab::IRCTab(QWidget *parent, const char *name, WFlags f) : QWidget(parent, na | |||
44 | QWhatsThis::add(m_description, tr("Description of the tab's content")); | 43 | QWhatsThis::add(m_description, tr("Description of the tab's content")); |
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())); |
53 | descLayout->addWidget(close); | 51 | descLayout->addWidget(close); |