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 /src/core.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 'src/core.cpp')
-rw-r--r-- | src/core.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
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 <qtimer.h> +#include <tqtimer.h> #include <kapplication.h> @@ -31,18 +31,18 @@ Core *Core::getInstance() void Core::setupShourtcutTips(KXMLGUIClient * client) { - QPtrList<KXMLGUIClient> clients; + TQPtrList<KXMLGUIClient> clients; if (client != 0) clients.append(client); else clients = TopLevel::getInstance()->main()->guiFactory()->clients(); - for( QPtrListIterator<KXMLGUIClient> it(clients); it.current(); ++it ) { + for( TQPtrListIterator<KXMLGUIClient> 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; } } |