KHTML
Go to the documentation of this file.
29 #include <QtGui/QLabel>
32 #define QXEmbed QWidget
36 class KJavaAppletWidgetPrivate
47 d(new KJavaAppletWidgetPrivate)
53 d->tmplabel =
new QLabel(
this );
55 d->tmplabel->setAlignment( Qt::AlignCenter );
56 d->tmplabel->setWordWrap(
true );
57 d->tmplabel->setFrameStyle( QFrame::StyledPanel | QFrame::Sunken );
60 m_swallowTitle.sprintf(
"KJAS Applet - Ticket number %u",
appletCount++ );
87 if ( m_swallowTitle == w_info.
name() ||
91 kDebug(6100) <<
"swallowing our window: " << m_swallowTitle
92 <<
", window id = " << w << endl;
110 kDebug(6100) <<
"KJavaAppletWidget::sizeHint()";
111 QSize rval = QX11EmbedContainer::sizeHint();
113 if( rval.width() == 0 || rval.height() == 0 )
115 if( width() != 0 && height() != 0 )
117 rval =
QSize( width(), height() );
121 kDebug(6100) <<
"returning: (" << rval.width() <<
", " << rval.height() <<
")";
130 d->tmplabel->resize( w, h );
134 QX11EmbedContainer::resize( w, h );
138 QX11EmbedContainer::showEvent(e);
139 if (!
applet()->isCreated() && !
applet()->appletClass().isEmpty()) {
141 if (
applet()->size().width() <= 0)
147 #include "kjavaappletwidget.moc"
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Sep 23 2014 10:01:09 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.