summaryrefslogtreecommitdiffstats
path: root/src/bookmarkselector.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/bookmarkselector.cpp')
-rw-r--r--src/bookmarkselector.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/src/bookmarkselector.cpp b/src/bookmarkselector.cpp
index 9a0c3cd..02f5905 100644
--- a/src/bookmarkselector.cpp
+++ b/src/bookmarkselector.cpp
@@ -20,9 +20,9 @@
#include <assert.h>
-#include <qpopupmenu.h>
-#include <qpainter.h>
-#include <qpixmap.h>
+#include <tqpopupmenu.h>
+#include <tqpainter.h>
+#include <tqpixmap.h>
#include <kiconloader.h>
#include <kglobalsettings.h>
@@ -34,22 +34,22 @@
#include "dolphin.h"
#include "urlnavigator.h"
-BookmarkSelector::BookmarkSelector(URLNavigator* parent) :
- URLButton(parent),
+BookmarkSelector::BookmarkSelector(URLNavigator* tqparent) :
+ URLButton(tqparent),
m_selectedIndex(0)
{
- setFocusPolicy(QWidget::NoFocus);
+ setFocusPolicy(TQ_NoFocus);
- m_bookmarksMenu = new QPopupMenu(this);
+ m_bookmarksMenu = new TQPopupMenu(this);
KBookmarkManager* manager = DolphinSettings::instance().bookmarkManager();
- connect(manager, SIGNAL(changed(const QString&, const QString&)),
- this, SLOT(updateBookmarks()));
+ connect(manager, TQT_SIGNAL(changed(const TQString&, const TQString&)),
+ this, TQT_SLOT(updateBookmarks()));
updateBookmarks();
- connect(m_bookmarksMenu, SIGNAL(activated(int)),
- this, SLOT(slotBookmarkActivated(int)));
+ connect(m_bookmarksMenu, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(slotBookmarkActivated(int)));
setPopup(m_bookmarksMenu);
}
@@ -70,7 +70,7 @@ void BookmarkSelector::updateBookmarks()
bookmark.text(),
i);
if (i == m_selectedIndex) {
- QPixmap pixmap = SmallIcon(bookmark.icon());
+ TQPixmap pixmap = SmallIcon(bookmark.icon());
setPixmap(pixmap);
setMinimumWidth(pixmap.width() + 2);
}
@@ -88,8 +88,8 @@ void BookmarkSelector::updateSelection(const KURL& url)
int maxLength = 0;
m_selectedIndex = -1;
- // Search the bookmark which is equal to the URL or at least is a parent URL.
- // If there are more than one possible parent URL candidates, choose the bookmark
+ // Search the bookmark which is equal to the URL or at least is a tqparent URL.
+ // If there are more than one possible tqparent URL candidates, choose the bookmark
// which covers the bigger range of the URL.
int i = 0;
while (!bookmark.isNull()) {
@@ -118,13 +118,13 @@ KBookmark BookmarkSelector::selectedBookmark() const
return DolphinSettings::instance().bookmark(m_selectedIndex);
}
-void BookmarkSelector::drawButton(QPainter* painter)
+void BookmarkSelector::drawButton(TQPainter* painter)
{
const int buttonWidth = width();
const int buttonHeight = height();
- QColor backgroundColor;
- QColor foregroundColor;
+ TQColor backgroundColor;
+ TQColor foregroundColor;
const bool isHighlighted = isDisplayHintEnabled(EnteredHint) ||
isDisplayHintEnabled(DraggedHint);
if (isHighlighted) {
@@ -132,17 +132,17 @@ void BookmarkSelector::drawButton(QPainter* painter)
foregroundColor = KGlobalSettings::highlightedTextColor();
}
else {
- backgroundColor = colorGroup().background();
+ backgroundColor = tqcolorGroup().background();
foregroundColor = KGlobalSettings::buttonTextColor();
}
- // dimm the colors if the parent view does not have the focus
- const DolphinView* parentView = urlNavigator()->dolphinView();
+ // dimm the colors if the tqparent view does not have the focus
+ const DolphinView* tqparentView = urlNavigator()->dolphinView();
const Dolphin& dolphin = Dolphin::mainWin();
- const bool isActive = (dolphin.activeView() == parentView);
+ const bool isActive = (dolphin.activeView() == tqparentView);
if (!isActive) {
- QColor dimmColor(colorGroup().background());
+ TQColor dimmColor(tqcolorGroup().background());
foregroundColor = mixColors(foregroundColor, dimmColor);
if (isHighlighted) {
backgroundColor = mixColors(backgroundColor, dimmColor);
@@ -161,7 +161,7 @@ void BookmarkSelector::drawButton(QPainter* painter)
painter->drawRect(0, 0, buttonWidth, buttonHeight);
// draw icon
- const QPixmap* icon = pixmap();
+ const TQPixmap* icon = pixmap();
if (icon != 0) {
const int x = (buttonWidth - icon->width()) / 2;
const int y = (buttonHeight - icon->height()) / 2;