diff options
Diffstat (limited to 'parts/documentation/bookmarkview.cpp')
-rw-r--r-- | parts/documentation/bookmarkview.cpp | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/parts/documentation/bookmarkview.cpp b/parts/documentation/bookmarkview.cpp index 742c300a..ff2bbece 100644 --- a/parts/documentation/bookmarkview.cpp +++ b/parts/documentation/bookmarkview.cpp @@ -19,9 +19,9 @@ ***************************************************************************/ #include "bookmarkview.h" -#include <qlayout.h> -#include <qheader.h> -#include <qpoint.h> +#include <tqlayout.h> +#include <tqheader.h> +#include <tqpoint.h> #include <klineedit.h> #include <kstandarddirs.h> @@ -54,21 +54,21 @@ DocBookmarkOwner::DocBookmarkOwner(DocumentationPart *part) { } -void DocBookmarkOwner::openBookmarkURL(const QString &_url) +void DocBookmarkOwner::openBookmarkURL(const TQString &_url) { m_part->partController()->showDocument(KURL(_url)); } -QString DocBookmarkOwner::currentURL() const +TQString DocBookmarkOwner::currentURL() const { KParts::ReadOnlyPart *activePart = dynamic_cast<KParts::ReadOnlyPart*>(m_part->partController()->activePart()); if (activePart) return activePart->url().url(); else - return QString::null; + return TQString::null; } -QString DocBookmarkOwner::currentTitle() const +TQString DocBookmarkOwner::currentTitle() const { KParts::ReadOnlyPart *activePart = dynamic_cast<KParts::ReadOnlyPart*>(m_part->partController()->activePart()); if (activePart) @@ -79,20 +79,20 @@ QString DocBookmarkOwner::currentTitle() const return activePart->url().prettyURL(); } else - return QString::null; + return TQString::null; } class DocBookmarkItem: public DocumentationItem { public: - DocBookmarkItem(Type type, KListView *parent, const QString &name) + DocBookmarkItem(Type type, KListView *parent, const TQString &name) :DocumentationItem(type, parent, name) { } - DocBookmarkItem(Type type, KListView *parent, DocumentationItem *after, const QString &name) + DocBookmarkItem(Type type, KListView *parent, DocumentationItem *after, const TQString &name) :DocumentationItem(type, parent, after, name) { } - DocBookmarkItem(Type type, DocumentationItem *parent, const QString &name) + DocBookmarkItem(Type type, DocumentationItem *parent, const TQString &name) :DocumentationItem(type, parent, name) { } @@ -108,41 +108,41 @@ private: //class BookmarkView BookmarkView::BookmarkView(DocumentationWidget *parent, const char *name) - :QWidget(parent, name), m_widget(parent) + :TQWidget(parent, name), m_widget(parent) { m_bmManager = new DocBookmarkManager(m_widget->part()); m_bmOwner = new DocBookmarkOwner(m_widget->part()); - QVBoxLayout *l = new QVBoxLayout(this, 0, KDialog::spacingHint()); + TQVBoxLayout *l = new TQVBoxLayout(this, 0, KDialog::spacingHint()); m_view = new KListView(this); m_view->addColumn(i18n("Title")); m_view->setSorting(-1); m_view->header()->hide(); - m_view->setResizeMode(QListView::AllColumns); + m_view->setResizeMode(TQListView::AllColumns); m_view->setAllColumnsShowFocus( true ); l->addWidget(m_view); - QHBoxLayout *l2 = new QHBoxLayout(l, KDialog::spacingHint()); + TQHBoxLayout *l2 = new TQHBoxLayout(l, KDialog::spacingHint()); m_addButton = new KPushButton(i18n("Add"), this); m_editButton = new KPushButton(i18n("Edit..."), this); m_removeButton = new KPushButton(i18n("Remove"), this); l2->addWidget(m_addButton); l2->addWidget(m_editButton); l2->addWidget(m_removeButton); - l2->addItem(new QSpacerItem(1, 1, QSizePolicy::Expanding, QSizePolicy::Fixed)); + l2->addItem(new TQSpacerItem(1, 1, TQSizePolicy::Expanding, TQSizePolicy::Fixed)); l->addSpacing(2); showBookmarks(); - connect(m_view, SIGNAL(executed(QListViewItem*, const QPoint&, int )), - this, SLOT(itemExecuted(QListViewItem*, const QPoint&, int ))); - connect(m_addButton, SIGNAL(pressed()), this, SLOT(addBookmark())); - connect(m_editButton, SIGNAL(clicked()), this, SLOT(editBookmark())); - connect(m_removeButton, SIGNAL(clicked()), this, SLOT(removeBookmark())); + connect(m_view, TQT_SIGNAL(executed(TQListViewItem*, const TQPoint&, int )), + this, TQT_SLOT(itemExecuted(TQListViewItem*, const TQPoint&, int ))); + connect(m_addButton, TQT_SIGNAL(pressed()), this, TQT_SLOT(addBookmark())); + connect(m_editButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(editBookmark())); + connect(m_removeButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(removeBookmark())); - connect(m_widget->part(), SIGNAL(bookmarkLocation(const QString&, const KURL& )), - this, SLOT(addBookmark(const QString&, const KURL& ))); - connect(m_view, SIGNAL(mouseButtonPressed(int, QListViewItem*, const QPoint&, int )), - this, SLOT(itemMouseButtonPressed(int, QListViewItem*, const QPoint&, int ))); + connect(m_widget->part(), TQT_SIGNAL(bookmarkLocation(const TQString&, const KURL& )), + this, TQT_SLOT(addBookmark(const TQString&, const KURL& ))); + connect(m_view, TQT_SIGNAL(mouseButtonPressed(int, TQListViewItem*, const TQPoint&, int )), + this, TQT_SLOT(itemMouseButtonPressed(int, TQListViewItem*, const TQPoint&, int ))); } BookmarkView::~BookmarkView() @@ -166,7 +166,7 @@ void BookmarkView::showBookmarks() } } -void BookmarkView::itemExecuted(QListViewItem *item, const QPoint &// p +void BookmarkView::itemExecuted(TQListViewItem *item, const TQPoint &// p , int // col ) { @@ -212,8 +212,8 @@ void BookmarkView::editBookmark() void BookmarkView::addBookmark() { - QString title = m_bmOwner->currentTitle(); - QString url = m_bmOwner->currentURL(); + TQString title = m_bmOwner->currentTitle(); + TQString url = m_bmOwner->currentURL(); KPopupMenu menu; bool useMenu = false; @@ -227,7 +227,7 @@ void BookmarkView::addBookmark() if (useMenu) { m_addButton->setDown(true); - mode = menu.exec(mapToGlobal(QPoint(m_addButton->x(), m_addButton->y()+m_addButton->height()))); + mode = menu.exec(mapToGlobal(TQPoint(m_addButton->x(), m_addButton->y()+m_addButton->height()))); m_addButton->setDown(false); } @@ -249,7 +249,7 @@ void BookmarkView::addBookmark() } } -void BookmarkView::addBookmark(const QString &title, const KURL &url) +void BookmarkView::addBookmark(const TQString &title, const KURL &url) { KBookmark bm = m_bmManager->root().addBookmark(m_bmManager, title, url); m_bmManager->save(); @@ -265,7 +265,7 @@ void BookmarkView::addBookmark(const QString &title, const KURL &url) item->setBookmark(bm); } -void BookmarkView::itemMouseButtonPressed(int button, QListViewItem *item, const QPoint &pos, int // c +void BookmarkView::itemMouseButtonPressed(int button, TQListViewItem *item, const TQPoint &pos, int // c ) { if ((button != Qt::RightButton) || (!item)) @@ -277,7 +277,7 @@ void BookmarkView::itemMouseButtonPressed(int button, QListViewItem *item, const DocUtils::docItemPopup(m_widget->part(), docItem, pos, false, true); } -void BookmarkView::focusInEvent(QFocusEvent */*e*/) +void BookmarkView::focusInEvent(TQFocusEvent */*e*/) { m_view->setFocus(); } |