summaryrefslogtreecommitdiffstats
path: root/kget/docking.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
commit69cac65817d949cda2672ec4f0aa73d5e66a0ba1 (patch)
tree073fde0496ea90eb5bf5cffe66a8da43a9f55fbc /kget/docking.cpp
parent3467e6464beac3a162839bf7078e22e3a74d73e7 (diff)
downloadtdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.tar.gz
tdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.zip
TQt4 port kdenetwork
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kget/docking.cpp')
-rw-r--r--kget/docking.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/kget/docking.cpp b/kget/docking.cpp
index eba2e8ad..1f4187a6 100644
--- a/kget/docking.cpp
+++ b/kget/docking.cpp
@@ -40,23 +40,23 @@
DockWidget::DockWidget(KMainWidget * _parent):KSystemTray(_parent)
{
- parent = _parent;
+ tqparent = _parent;
setPixmap( loadIcon( "kget_dock" ));
// popup menu for right mouse button
KPopupMenu *popupMenu = contextMenu();
- parent->action("paste_transfer")->plug(popupMenu);
- parent->action("drop_target")->plug(popupMenu);
- parent->action("konqueror_integration")->plug(popupMenu);
+ tqparent->action("paste_transfer")->plug(popupMenu);
+ tqparent->action("drop_target")->plug(popupMenu);
+ tqparent->action("konqueror_integration")->plug(popupMenu);
popupMenu->insertSeparator();
- parent->m_paPreferences->plug(popupMenu);
+ tqparent->m_paPreferences->plug(popupMenu);
// Enable dropping
setAcceptDrops(true);
dtip = new DynamicTip( this );
- dtip->setStatus( kapp->aboutData()->shortDescription() );
+ dtip->settqStatus( kapp->aboutData()->shortDescription() );
}
@@ -81,17 +81,17 @@ void DockWidget::dropEvent(TQDropEvent * event)
TQString str;
if (KURLDrag::decode(event, list)) {
- parent->addTransfers(list);
+ tqparent->addTransfers(list);
} else if (TQTextDrag::decode(event, str)) {
- parent->addTransfer(str);
+ tqparent->addTransfer(str);
}
}
void DockWidget::mousePressEvent(TQMouseEvent * e)
{
- if (e->button() == MidButton) {
- parent->slotPasteTransfer();
+ if (e->button() == Qt::MidButton) {
+ tqparent->slotPasteTransfer();
} else {
KSystemTray::mousePressEvent(e);
}
@@ -100,7 +100,7 @@ void DockWidget::mousePressEvent(TQMouseEvent * e)
void DockWidget::updateToolTip( const TQString& _status )
{
- dtip->setStatus( _status );
+ dtip->settqStatus( _status );
}
@@ -110,21 +110,21 @@ void DockWidget::changeIcon( const TQString& icon )
}
-DynamicTip::DynamicTip( TQWidget * parent )
- : TQToolTip( parent )
+DynamicTip::DynamicTip( TQWidget * tqparent )
+ : TQToolTip( tqparent )
{
// no explicit initialization needed
}
-void DynamicTip::setStatus( const TQString & _status )
+void DynamicTip::settqStatus( const TQString & _status )
{
status = _status;
}
void DynamicTip::maybeTip( const TQPoint & _pos )
{
- TQRect r( parentWidget()->rect() );
+ TQRect r( tqparentWidget()->rect() );
tip( r, status );
}