• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kdeui

KPopupTitle Class Reference

KPopupMenu title widget. More...

#include <kpopupmenu.h>

Inheritance diagram for KPopupTitle:

Inheritance graph
[legend]

List of all members.


Public Slots

void setIcon (const QPixmap &pix)
void setText (const QString &text)

Public Member Functions

QPixmap icon () const
 KPopupTitle (const KPixmap &background, const QColor &color, const QColor &textColor, QWidget *parent=0, const char *name=0) KDE_DEPRECATED
 KPopupTitle (KPixmapEffect::GradientType gradient, const QColor &color, const QColor &textColor, QWidget *parent=0, const char *name=0) KDE_DEPRECATED
 KPopupTitle (QWidget *parent=0, const char *name=0)
void setTitle (const QString &text, const QPixmap *icon=0)
QSize sizeHint () const
QString title () const

Protected Member Functions

void calcSize ()
void paintEvent (QPaintEvent *ev)
virtual void virtual_hook (int id, void *data)

Protected Attributes

QColor bgColor
QColor fgColor
KPixmap fill
QColor grHigh
QColor grLow
KPixmapEffect::GradientType grType
QPixmap miniicon
QString titleStr
bool useGradient

Detailed Description

KPopupMenu title widget.

Title widget for use in KPopupMenu.

You usually don't have to create this manually since KPopupMenu::insertTitle will do it for you, but it is allowed if you wish to customize it's look.

Author:
Daniel M. Duley <mosfet@kde.org>

Definition at line 38 of file kpopupmenu.h.


Constructor & Destructor Documentation

KPopupTitle::KPopupTitle ( QWidget *  parent = 0,
const char *  name = 0 
)

Constructs a title widget with the user specified gradient, pixmap, and colors.

Definition at line 30 of file kpopupmenu.cpp.

KPopupTitle::KPopupTitle ( KPixmapEffect::GradientType  gradient,
const QColor &  color,
const QColor &  textColor,
QWidget *  parent = 0,
const char *  name = 0 
)

Deprecated:
Constructs a title widget with the specified gradient and colors.

Definition at line 36 of file kpopupmenu.cpp.

KPopupTitle::KPopupTitle ( const KPixmap &  background,
const QColor &  color,
const QColor &  textColor,
QWidget *  parent = 0,
const char *  name = 0 
)

Deprecated:
Constructs a title widget with the specified pixmap and colors.

Definition at line 44 of file kpopupmenu.cpp.


Member Function Documentation

void KPopupTitle::calcSize (  )  [protected]

Definition at line 75 of file kpopupmenu.cpp.

QPixmap KPopupTitle::icon (  )  const [inline]

Returns the current icon.

Reimplemented from QWidget.

Definition at line 75 of file kpopupmenu.h.

void KPopupTitle::paintEvent ( QPaintEvent *  ev  )  [protected]

Reimplemented from QWidget.

Definition at line 84 of file kpopupmenu.cpp.

void KPopupTitle::setIcon ( const QPixmap &  pix  )  [slot]

Since:
3.1

Reimplemented from QWidget.

Definition at line 69 of file kpopupmenu.cpp.

void KPopupTitle::setText ( const QString &  text  )  [slot]

Since:
3.1

Definition at line 63 of file kpopupmenu.cpp.

void KPopupTitle::setTitle ( const QString &  text,
const QPixmap *  icon = 0 
)

Sets the title string and optional icon for the title widget.

You will want to call this before inserting into a menu.

Definition at line 52 of file kpopupmenu.cpp.

QSize KPopupTitle::sizeHint ( void   )  const

Reimplemented from QWidget.

Definition at line 113 of file kpopupmenu.cpp.

QString KPopupTitle::title (  )  const [inline]

Returns the current title.

Definition at line 71 of file kpopupmenu.h.

void KPopupTitle::virtual_hook ( int  id,
void *  data 
) [protected, virtual]

Definition at line 683 of file kpopupmenu.cpp.


Member Data Documentation

QColor KPopupTitle::bgColor [protected]

Definition at line 95 of file kpopupmenu.h.

QColor KPopupTitle::fgColor [protected]

Definition at line 95 of file kpopupmenu.h.

KPixmap KPopupTitle::fill [protected]

Definition at line 93 of file kpopupmenu.h.

QColor KPopupTitle::grHigh [protected]

Definition at line 95 of file kpopupmenu.h.

QColor KPopupTitle::grLow [protected]

Definition at line 95 of file kpopupmenu.h.

KPixmapEffect::GradientType KPopupTitle::grType [protected]

Definition at line 90 of file kpopupmenu.h.

QPixmap KPopupTitle::miniicon [protected]

Definition at line 94 of file kpopupmenu.h.

QString KPopupTitle::titleStr [protected]

Definition at line 91 of file kpopupmenu.h.

bool KPopupTitle::useGradient [protected]

Definition at line 96 of file kpopupmenu.h.


The documentation for this class was generated from the following files:
  • kpopupmenu.h
  • kpopupmenu.cpp

kdeui

Skip menu "kdeui"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal