• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kdeui
 

kdeui

Public Slots | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
KPopupTitle Class Reference

#include <kpopupmenu.h>

Inherits TQWidget.

Public Slots

void setText (const TQString &text)
 
void setIcon (const TQPixmap &pix)
 

Public Member Functions

 KPopupTitle (TQWidget *parent=0, const char *name=0)
 
 KPopupTitle (KPixmapEffect::GradientType gradient, const TQColor &color, const TQColor &textColor, TQWidget *parent=0, const char *name=0) KDE_DEPRECATED
 
 KPopupTitle (const KPixmap &background, const TQColor &color, const TQColor &textColor, TQWidget *parent=0, const char *name=0) KDE_DEPRECATED
 
void setTitle (const TQString &text, const TQPixmap *icon=0)
 
TQString title () const
 
TQPixmap icon () const
 
TQSize sizeHint () const
 

Protected Member Functions

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

Protected Attributes

KPixmapEffect::GradientType grType
 
TQString titleStr
 
KPixmap fill
 
TQPixmap miniicon
 
TQColor fgColor
 
TQColor bgColor
 
TQColor grHigh
 
TQColor grLow
 
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 mosfe.nosp@m.t@kd.nosp@m.e.org

Definition at line 38 of file kpopupmenu.h.

Constructor & Destructor Documentation

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

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

Definition at line 35 of file kpopupmenu.cpp.

KPopupTitle::KPopupTitle ( KPixmapEffect::GradientType  gradient,
const TQColor &  color,
const TQColor &  textColor,
TQWidget *  parent = 0,
const char *  name = 0 
)
Deprecated:
Constructs a title widget with the specified gradient and colors.

Definition at line 41 of file kpopupmenu.cpp.

KPopupTitle::KPopupTitle ( const KPixmap &  background,
const TQColor &  color,
const TQColor &  textColor,
TQWidget *  parent = 0,
const char *  name = 0 
)
Deprecated:
Constructs a title widget with the specified pixmap and colors.

Definition at line 49 of file kpopupmenu.cpp.

Member Function Documentation

TQPixmap KPopupTitle::icon ( ) const
inline

Returns the current icon.

Definition at line 75 of file kpopupmenu.h.

void KPopupTitle::setIcon ( const TQPixmap &  pix)
slot
Since
3.1

Definition at line 74 of file kpopupmenu.cpp.

void KPopupTitle::setText ( const TQString &  text)
slot
Since
3.1

Definition at line 68 of file kpopupmenu.cpp.

void KPopupTitle::setTitle ( const TQString &  text,
const TQPixmap *  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 57 of file kpopupmenu.cpp.

TQString KPopupTitle::title ( ) const
inline

Returns the current title.

Definition at line 71 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

kdeui

Skip menu "kdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kdeui by doxygen 1.8.3.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |