diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
commit | ffe8a83e053396df448e9413828527613ca3bd46 (patch) | |
tree | a73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /khtml/java/kjavaappletwidget.cpp | |
parent | 682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff) | |
download | tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'khtml/java/kjavaappletwidget.cpp')
-rw-r--r-- | khtml/java/kjavaappletwidget.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/khtml/java/kjavaappletwidget.cpp b/khtml/java/kjavaappletwidget.cpp index 31ce8b5e6..1299ce7e8 100644 --- a/khtml/java/kjavaappletwidget.cpp +++ b/khtml/java/kjavaappletwidget.cpp @@ -26,7 +26,7 @@ #include <kdebug.h> #include <klocale.h> -#include <qlabel.h> +#include <tqlabel.h> // For future expansion @@ -34,12 +34,12 @@ class KJavaAppletWidgetPrivate { friend class KJavaAppletWidget; private: - QLabel* tmplabel; + TQLabel* tmplabel; }; int KJavaAppletWidget::appletCount = 0; -KJavaAppletWidget::KJavaAppletWidget( QWidget* parent, const char* name ) +KJavaAppletWidget::KJavaAppletWidget( TQWidget* parent, const char* name ) : QXEmbed ( parent, name) { setProtocol(QXEmbed::XPLAIN); @@ -48,10 +48,10 @@ KJavaAppletWidget::KJavaAppletWidget( QWidget* parent, const char* name ) d = new KJavaAppletWidgetPrivate; m_kwm = new KWinModule( this ); - d->tmplabel = new QLabel( this ); + d->tmplabel = new TQLabel( this ); d->tmplabel->setText( KJavaAppletServer::getAppletLabel() ); d->tmplabel->setAlignment( Qt::AlignCenter | Qt::WordBreak ); - d->tmplabel->setFrameStyle( QFrame::StyledPanel | QFrame::Sunken ); + d->tmplabel->setFrameStyle( TQFrame::StyledPanel | TQFrame::Sunken ); d->tmplabel->show(); m_swallowTitle.sprintf( "KJAS Applet - Ticket number %u", appletCount++ ); @@ -66,8 +66,8 @@ KJavaAppletWidget::~KJavaAppletWidget() void KJavaAppletWidget::showApplet() { - connect( m_kwm, SIGNAL( windowAdded( WId ) ), - this, SLOT( setWindow( WId ) ) ); + connect( m_kwm, TQT_SIGNAL( windowAdded( WId ) ), + this, TQT_SLOT( setWindow( WId ) ) ); m_kwm->doNotManage( m_swallowTitle ); @@ -89,8 +89,8 @@ void KJavaAppletWidget::setWindow( WId w ) d->tmplabel = 0; // disconnect from KWM events - disconnect( m_kwm, SIGNAL( windowAdded( WId ) ), - this, SLOT( setWindow( WId ) ) ); + disconnect( m_kwm, TQT_SIGNAL( windowAdded( WId ) ), + this, TQT_SLOT( setWindow( WId ) ) ); embed( w ); @@ -98,16 +98,16 @@ void KJavaAppletWidget::setWindow( WId w ) } } -QSize KJavaAppletWidget::sizeHint() const +TQSize KJavaAppletWidget::sizeHint() const { kdDebug(6100) << "KJavaAppletWidget::sizeHint()" << endl; - QSize rval = QXEmbed::sizeHint(); + TQSize rval = QXEmbed::sizeHint(); if( rval.width() == 0 || rval.height() == 0 ) { if( width() != 0 && height() != 0 ) { - rval = QSize( width(), height() ); + rval = TQSize( width(), height() ); } } @@ -121,13 +121,13 @@ void KJavaAppletWidget::resize( int w, int h ) if( d->tmplabel ) { d->tmplabel->resize( w, h ); - m_applet->setSize( QSize( w, h ) ); + m_applet->setSize( TQSize( w, h ) ); } QXEmbed::resize( w, h ); } -void KJavaAppletWidget::showEvent (QShowEvent * e) { +void KJavaAppletWidget::showEvent (TQShowEvent * e) { QXEmbed::showEvent(e); if (!applet()->isCreated() && !applet()->appletClass().isEmpty()) { // delayed showApplet |