summaryrefslogtreecommitdiffstats
path: root/kget/docking.cpp
diff options
context:
space:
mode:
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 );
}