MapButton Class Reference

A simple class for icon button. More...

#include <mapbutton.h>

List of all members.

Public Member Functions

 MapButton (QString fileName)
 Constructor.
void draw (QPainter *painter, int x, int y)
 Draws the button.
void setMode (QIcon::Mode mode)
 Sets the button icon mode.

Private Attributes

QIcon::Mode m_buttonMode
 Button mode (Normal, Selected etc...).
int m_buttonWidth
 Button width.
int m_buttonHeight
 Button height.

Detailed Description

A simple class for icon button.

Author:
Pekka Nissinen - pekka.nissinen (at) ixonos.com

Constructor & Destructor Documentation

MapButton::MapButton ( QString  fileName  ) 

Constructor.

Parameters:
fileName Icon image file name

Member Function Documentation

void MapButton::draw ( QPainter *  painter,
int  x,
int  y 
)

Draws the button.

Parameters:
painter Painter
x Button x coordinate
y Button y coordinate
void MapButton::setMode ( QIcon::Mode  mode  ) 

Sets the button icon mode.

Parameters:
mode Button icon mode

The documentation for this class was generated from the following files:

Generated on Fri May 14 11:57:16 2010 for Situare client for Maemo by  doxygen 1.6.1