diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
commit | d6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch) | |
tree | d109539636691d7b03036ca1c0ed29dbae6577cf /parts/documentation/docutils.cpp | |
parent | 3331a47a9cad24795c7440ee8107143ce444ef34 (diff) | |
download | tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'parts/documentation/docutils.cpp')
-rw-r--r-- | parts/documentation/docutils.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/parts/documentation/docutils.cpp b/parts/documentation/docutils.cpp index f0a00e4e..79fa9915 100644 --- a/parts/documentation/docutils.cpp +++ b/parts/documentation/docutils.cpp @@ -32,21 +32,21 @@ #include "kdevdocumentationplugin.h" #include "documentation_part.h" -QString DocUtils::noEnvURL(const QString &url) +TQString DocUtils::noEnvURL(const TQString &url) { return KURLCompletion::replacedPath(url, true, true); } KURL DocUtils::noEnvURL(const KURL &url) { - QString replaced = KURLCompletion::replacedPath(url.url(), true, true); + TQString replaced = KURLCompletion::replacedPath(url.url(), true, true); KURL kurl(replaced); kurl.setQuery(url.query()); kurl.setRef(url.ref()); return kurl; } -QString DocUtils::envURL(KURLRequester *req) +TQString DocUtils::envURL(KURLRequester *req) { if (req->lineEdit()) return req->lineEdit()->text(); @@ -57,12 +57,12 @@ QString DocUtils::envURL(KURLRequester *req) } void DocUtils::docItemPopup(DocumentationPart *part, DocumentationItem *docItem, - const QPoint &pos, bool showBookmark, bool showSearch, int titleCol) + const TQPoint &pos, bool showBookmark, bool showSearch, int titleCol) { docItemPopup(part, docItem->text(titleCol), docItem->url(), pos, showBookmark, showSearch); } -void DocUtils::docItemPopup(DocumentationPart *part, IndexItem *docItem, const QPoint &pos, +void DocUtils::docItemPopup(DocumentationPart *part, IndexItem *docItem, const TQPoint &pos, bool showBookmark, bool showSearch) { //FIXME: index item can have more than one url, what to do? @@ -72,8 +72,8 @@ void DocUtils::docItemPopup(DocumentationPart *part, IndexItem *docItem, const Q docItemPopup(part, docItem->text(), url, pos, showBookmark, showSearch); } -void DocUtils::docItemPopup(DocumentationPart *part, const QString &title, const KURL &url, - const QPoint &pos, bool showBookmark, bool showSearch) +void DocUtils::docItemPopup(DocumentationPart *part, const TQString &title, const KURL &url, + const TQPoint &pos, bool showBookmark, bool showSearch) { KPopupMenu menu; menu.insertTitle(i18n("Documentation")); @@ -87,7 +87,7 @@ void DocUtils::docItemPopup(DocumentationPart *part, const QString &title, const if (showSearch) { menu.insertSeparator(); - menu.insertItem(QString("%1: %2").arg(i18n("Search")).arg(KStringHandler::csqueeze(title,20)), 4); + menu.insertItem(TQString("%1: %2").arg(i18n("Search")).arg(KStringHandler::csqueeze(title,20)), 4); } switch (menu.exec(pos)) |