author | drw <drw> | 2005-03-12 17:23:56 (UTC) |
---|---|---|
committer | drw <drw> | 2005-03-12 17:23:56 (UTC) |
commit | f195cfb8a11a0b5ef6fd397cc835af59b4266c8c (patch) (unidiff) | |
tree | 329e9d2f260c38c4d77e6da0b878e29ad4b01b31 | |
parent | ced8831cd48879e33fa11d45035cc7ff94180897 (diff) | |
download | opie-f195cfb8a11a0b5ef6fd397cc835af59b4266c8c.zip opie-f195cfb8a11a0b5ef6fd397cc835af59b4266c8c.tar.gz opie-f195cfb8a11a0b5ef6fd397cc835af59b4266c8c.tar.bz2 |
Scale close tab button icon
-rw-r--r-- | noncore/net/opieirc/irctab.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/noncore/net/opieirc/irctab.cpp b/noncore/net/opieirc/irctab.cpp index fbbf303..aee33c4 100644 --- a/noncore/net/opieirc/irctab.cpp +++ b/noncore/net/opieirc/irctab.cpp | |||
@@ -3,4 +3,6 @@ | |||
3 | 3 | ||
4 | #include <opie2/okeyconfigmanager.h> | 4 | #include <opie2/okeyconfigmanager.h> |
5 | |||
6 | #include <qpe/applnk.h> | ||
5 | #include <qpe/resource.h> | 7 | #include <qpe/resource.h> |
6 | 8 | ||
@@ -43,7 +45,9 @@ IRCTab::IRCTab(QWidget *parent, const char *name, WFlags f) : QWidget(parent, na | |||
43 | descLayout->addWidget(m_description); | 45 | descLayout->addWidget(m_description); |
44 | descLayout->setStretchFactor(m_description, 5); | 46 | descLayout->setStretchFactor(m_description, 5); |
45 | QPushButton *close = new QPushButton(this); | 47 | QPixmap pic; |
48 | pic.convertFromImage( Resource::loadImage( "close" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); | ||
49 | QPushButton *close = new QPushButton(pic, QString::null, this); | ||
50 | close->setMaximumWidth( close->height() ); | ||
46 | QWhatsThis::add(close, tr("Close this tab")); | 51 | QWhatsThis::add(close, tr("Close this tab")); |
47 | close->setPixmap(Resource::loadPixmap("close")); | ||
48 | connect(close, SIGNAL(clicked()), this, SLOT(remove())); | 52 | connect(close, SIGNAL(clicked()), this, SLOT(remove())); |
49 | descLayout->addWidget(close); | 53 | descLayout->addWidget(close); |