From d6f8bbb45b267065a6907e71ff9c98bb6d161241 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:56:07 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/core.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/core.cpp') diff --git a/src/core.cpp b/src/core.cpp index d7b6b285..c189fcf8 100644 --- a/src/core.cpp +++ b/src/core.cpp @@ -1,4 +1,4 @@ -#include +#include #include @@ -31,18 +31,18 @@ Core *Core::getInstance() void Core::setupShourtcutTips(KXMLGUIClient * client) { - QPtrList clients; + TQPtrList clients; if (client != 0) clients.append(client); else clients = TopLevel::getInstance()->main()->guiFactory()->clients(); - for( QPtrListIterator it(clients); it.current(); ++it ) { + for( TQPtrListIterator it(clients); it.current(); ++it ) { KActionCollection *actionCollection = (*it)->actionCollection(); for (int i = 0; i < actionCollection->count(); i++) { KAction *action = actionCollection->action(i); - QString tooltip = action->toolTip(); + TQString tooltip = action->toolTip(); if (tooltip.isEmpty()) tooltip = action->text().remove('&'); else { @@ -50,7 +50,7 @@ void Core::setupShourtcutTips(KXMLGUIClient * client) if (i > 0) tooltip = tooltip.left(i).stripWhiteSpace(); } - QString shortcut = action->shortcutText(); + TQString shortcut = action->shortcutText(); if (!shortcut.isEmpty()) tooltip += " (" + shortcut + ")"; action->setToolTip(tooltip); @@ -94,23 +94,23 @@ void Core::running(KDevPlugin * which, bool runs) } -void Core::fillContextMenu(QPopupMenu *popup, const Context *context) +void Core::fillContextMenu(TQPopupMenu *popup, const Context *context) { emit contextMenu(popup, context); } -void Core::openProject(const QString& projectFileName) +void Core::openProject(const TQString& projectFileName) { ProjectManager::getInstance()->loadProject(KURL( projectFileName )); } namespace MainWindowUtils{ -QString beautifyToolTip(const QString& text) +TQString beautifyToolTip(const TQString& text) { - QString temp = text; - temp.replace(QRegExp("&"), ""); - temp.replace(QRegExp("\\.\\.\\."), ""); + TQString temp = text; + temp.replace(TQRegExp("&"), ""); + temp.replace(TQRegExp("\\.\\.\\."), ""); return temp; } } -- cgit v1.2.1