summaryrefslogtreecommitdiffstats
path: root/src/urlbutton.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/urlbutton.cpp')
-rw-r--r--src/urlbutton.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/urlbutton.cpp b/src/urlbutton.cpp
index b674e5a..73f098a 100644
--- a/src/urlbutton.cpp
+++ b/src/urlbutton.cpp
@@ -20,9 +20,9 @@
#include "urlnavigatorbutton.h"
#include <kurl.h>
-#include <qtooltip.h>
-#include <qcursor.h>
-#include <qfontmetrics.h>
+#include <tqtooltip.h>
+#include <tqcursor.h>
+#include <tqfontmetrics.h>
#include <kurldrag.h>
#include <kpopupmenu.h>
#include <kiconloader.h>
@@ -32,18 +32,18 @@
#include "dolphin.h"
-URLButton::URLButton(URLNavigator* parent)
-: QPushButton(parent),
+URLButton::URLButton(URLNavigator* tqparent)
+: TQPushButton(tqparent),
m_displayHint(0),
- m_urlNavigator(parent)
+ m_urlNavigator(tqparent)
{
- setFocusPolicy(QWidget::NoFocus);
- setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Fixed);
- setMinimumHeight(parent->minimumHeight());
+ setFocusPolicy(TQ_NoFocus);
+ tqsetSizePolicy(TQSizePolicy::Maximum, TQSizePolicy::Fixed);
+ setMinimumHeight(tqparent->minimumHeight());
- connect(this, SIGNAL(clicked()), parent, SLOT(slotRequestActivation()));
- connect(&Dolphin::mainWin(), SIGNAL(activeViewChanged()),
- this, SLOT(update()));
+ connect(this, TQT_SIGNAL(clicked()), tqparent, TQT_SLOT(slotRequestActivation()));
+ connect(&Dolphin::mainWin(), TQT_SIGNAL(activeViewChanged()),
+ this, TQT_SLOT(update()));
}
URLButton::~URLButton()
@@ -72,27 +72,27 @@ bool URLButton::isDisplayHintEnabled(DisplayHint hint) const
return (m_displayHint & hint) > 0;
}
-void URLButton::enterEvent(QEvent* event)
+void URLButton::enterEvent(TQEvent* event)
{
- QPushButton::enterEvent(event);
+ TQPushButton::enterEvent(event);
setDisplayHintEnabled(EnteredHint, true);
update();
}
-void URLButton::leaveEvent(QEvent* event)
+void URLButton::leaveEvent(TQEvent* event)
{
- QPushButton::leaveEvent(event);
+ TQPushButton::leaveEvent(event);
setDisplayHintEnabled(EnteredHint, false);
update();
}
-QColor URLButton::mixColors(const QColor& c1,
- const QColor& c2) const
+TQColor URLButton::mixColors(const TQColor& c1,
+ const TQColor& c2) const
{
const int red = (c1.red() + c2.red()) / 2;
const int green = (c1.green() + c2.green()) / 2;
const int blue = (c1.blue() + c2.blue()) / 2;
- return QColor(red, green, blue);
+ return TQColor(red, green, blue);
}
#include "urlbutton.moc"