From f195cfb8a11a0b5ef6fd397cc835af59b4266c8c Mon Sep 17 00:00:00 2001 From: drw Date: Sat, 12 Mar 2005 17:23:56 +0000 Subject: Scale close tab button icon --- (limited to 'noncore/net/opieirc/irctab.cpp') 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 @@ -2,6 +2,8 @@ #include "mainwindow.h" #include + +#include #include @@ -42,9 +44,11 @@ IRCTab::IRCTab(QWidget *parent, const char *name, WFlags f) : QWidget(parent, na QWhatsThis::add(m_description, tr("Description of the tab's content")); descLayout->addWidget(m_description); descLayout->setStretchFactor(m_description, 5); - QPushButton *close = new QPushButton(this); + QPixmap pic; + pic.convertFromImage( Resource::loadImage( "close" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); + QPushButton *close = new QPushButton(pic, QString::null, this); + close->setMaximumWidth( close->height() ); QWhatsThis::add(close, tr("Close this tab")); - close->setPixmap(Resource::loadPixmap("close")); connect(close, SIGNAL(clicked()), this, SLOT(remove())); descLayout->addWidget(close); descLayout->setStretchFactor(m_description, 1); -- cgit v0.9.0.2