diff options
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; } } |