diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-17 08:20:48 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-17 08:20:48 +0000 |
commit | aa0726b20f398264f0a2abc60215be044b106f9c (patch) | |
tree | 070fdbc19a1106cfdd7f651a8ce76bb1b89a513d /src/basket_part.cpp | |
parent | d3cf5b3e75aadc3b02d0b56f030d4c3f8c2c749d (diff) | |
download | basket-aa0726b20f398264f0a2abc60215be044b106f9c.tar.gz basket-aa0726b20f398264f0a2abc60215be044b106f9c.zip |
TQt4 port basket
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/basket@1232416 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/basket_part.cpp')
-rw-r--r-- | src/basket_part.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/basket_part.cpp b/src/basket_part.cpp index 0ba1e50..7c51696 100644 --- a/src/basket_part.cpp +++ b/src/basket_part.cpp @@ -35,19 +35,19 @@ typedef KParts::GenericFactory< BasketPart > BasketFactory; K_EXPORT_COMPONENT_FACTORY( libbasketpart, BasketFactory ) -BasketPart::BasketPart( QWidget *parentWidget, const char *, - QObject *parent, const char *name, const QStringList & ) - : KParts::ReadWritePart(parent, name) +BasketPart::BasketPart( TQWidget *tqparentWidget, const char *, + TQObject *tqparent, const char *name, const TQStringList & ) + : KParts::ReadWritePart(tqparent, name) { // we need an instance setInstance( BasketFactory::instance() ); BasketStatusBar* bar = new BasketStatusBar(new KParts::StatusBarExtension(this)); // this should be your custom internal widget - m_view = new BNPView(parentWidget, "BNPViewPart", this, actionCollection(), bar); - connect(m_view, SIGNAL(setWindowCaption(const QString &)), this, SLOT(setCaption(const QString &))); - connect(m_view, SIGNAL(showPart()), this, SIGNAL(showPart())); - m_view->setFocusPolicy(QWidget::ClickFocus); + m_view = new BNPView(tqparentWidget, "BNPViewPart", this, actionCollection(), bar); + connect(m_view, TQT_SIGNAL(setWindowCaption(const TQString &)), this, TQT_SLOT(setCaption(const TQString &))); + connect(m_view, TQT_SIGNAL(showPart()), this, TQT_SIGNAL(showPart())); + m_view->setFocusPolicy(TQ_ClickFocus); // notify the part that this is our internal widget setWidget(m_view); @@ -73,7 +73,7 @@ void BasketPart::setReadWrite(bool rw) void BasketPart::setModified(bool modified) { - // in any event, we want our parent to do it's thing + // in any event, we want our tqparent to do it's thing ReadWritePart::setModified(modified); } @@ -94,7 +94,7 @@ KAboutData *BasketPart::createAboutData() return new AboutData(); } -void BasketPart::setCaption(const QString &caption) +void BasketPart::setCaption(const TQString &caption) { emit setWindowCaption(caption); } |