[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    How about new macro OPICON ?
From:       Michael Koch <m_koch () bigfoot ! de>
Date:       1999-07-29 9:57:38
[Download RAW message or body]

Hi,

While porting kdiagramm to use ICON I got the following idea:

I often used

OpenPartsUI::Pixmap_var pix;
pix = OPUIUtils::convertPixmap( ICON( "lines.xpm" ) );

Why not make this easier by writing

OpenPartsUI::Pixmap_var pix;
pix = OPICON( "lines.xpm" );

OPICON can be defined in opUIUtils.h:

#define OPICON OPUIUtils::convertPixmap( ICON( x ) )


What do you think ?


--
Michael Koch


KDE fan, enthusiast and developer

student of computer science at university of applied sciences of Darmstadt, Germany

koch@kde.org, m_koch@bigfoot.de, mkoch@mail.riednet.wh.tu-darmstadt.de
http://www.riednet.wh.tu-darmstadt.de/~mkoch

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic