diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-27 00:40:29 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-27 00:40:29 +0000 |
commit | 7a741e43ff09e70396a918956219b8316c48e522 (patch) | |
tree | 3d0f60eccd59786cea7236db2d5c4c1f25874515 /src/urlbutton.cpp | |
parent | a48487ef0c329434b58b6f920111bb0999f1109e (diff) | |
download | dolphin-7a741e43ff09e70396a918956219b8316c48e522.tar.gz dolphin-7a741e43ff09e70396a918956219b8316c48e522.zip |
TQt4 port Dolphin
This enables compilation under Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/dolphin@1229359 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/urlbutton.cpp')
-rw-r--r-- | src/urlbutton.cpp | 38 |
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" |