org.kde.koala

Class KPopupTitle

public class KPopupTitle extends QWidget

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

UNKNOWN: KPopupMenu title widget.

Constructor Summary
protected KPopupTitle(Class dummy)
KPopupTitle(QWidget parent, String name)
Constructs a title widget with the user specified gradient, pixmap, and colors.
KPopupTitle(QWidget parent)
KPopupTitle()
Method Summary
protected voidcalcSize()
StringclassName()
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
protected voidfinalize()
Deletes the wrapped C++ instance
QPixmapicon()
Returns the current icon.
booleanisDisposed()
Has the wrapped C++ instance been deleted?
QMetaObjectmetaObject()
protected voidpaintEvent(QPaintEvent ev)
voidsetIcon(QPixmap pix)
voidsetText(String text)
voidsetTitle(String text, QPixmap icon)
Sets the title string and optional icon for the title widget.
voidsetTitle(String text)
QSizesizeHint()
Stringtitle()
Returns the current title.

Constructor Detail

KPopupTitle

protected KPopupTitle(Class dummy)

KPopupTitle

public KPopupTitle(QWidget parent, String name)
Constructs a title widget with the user specified gradient, pixmap, and colors.

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

KPopupTitle

public KPopupTitle(QWidget parent)

KPopupTitle

public KPopupTitle()

Method Detail

calcSize

protected void calcSize()

className

public String className()

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()

finalize

protected void finalize()
Deletes the wrapped C++ instance

icon

public QPixmap icon()
Returns the current icon.

UNKNOWN: Returns the current icon.

isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?

metaObject

public QMetaObject metaObject()

paintEvent

protected void paintEvent(QPaintEvent ev)

setIcon

public void setIcon(QPixmap pix)

setText

public void setText(String text)

setTitle

public void setTitle(String text, QPixmap icon)
Sets the title string and optional icon for the title widget. You will want to call this before inserting into a menu.

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

setTitle

public void setTitle(String text)

sizeHint

public QSize sizeHint()

title

public String title()
Returns the current title.

UNKNOWN: Returns the current title.