Use tdeApp

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/24/head
Michele Calgaro 7 months ago
parent ec6fc3514d
commit c7235ac2cc
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -439,7 +439,7 @@ ConditionalDlg::ConditionalDlg(TQWidget* parent) :
m_inputs(2, 2, 10), m_inputs(2, 2, 10),
m_buttons(4) m_buttons(4)
{ {
TQString title = kapp->caption(); TQString title = tdeApp->caption();
title += i18n(": Conditional breakpoint"); title += i18n(": Conditional breakpoint");
setCaption(title); setCaption(title);

@ -149,7 +149,7 @@ DebuggerMainWnd::DebuggerMainWnd(const char* name) :
connect(m_localVariables, TQ_SIGNAL(contextMenuRequested(TQListViewItem*, const TQPoint&, int)), connect(m_localVariables, TQ_SIGNAL(contextMenuRequested(TQListViewItem*, const TQPoint&, int)),
this, TQ_SLOT(slotLocalsPopup(TQListViewItem*, const TQPoint&))); this, TQ_SLOT(slotLocalsPopup(TQListViewItem*, const TQPoint&)));
restoreSettings(kapp->config()); restoreSettings(tdeApp->config());
updateUI(); updateUI();
m_bpTable->updateUI(); m_bpTable->updateUI();
@ -157,7 +157,7 @@ DebuggerMainWnd::DebuggerMainWnd(const char* name) :
DebuggerMainWnd::~DebuggerMainWnd() DebuggerMainWnd::~DebuggerMainWnd()
{ {
saveSettings(kapp->config()); saveSettings(tdeApp->config());
// must delete m_debugger early since it references our windows // must delete m_debugger early since it references our windows
delete m_debugger; delete m_debugger;
m_debugger = 0; m_debugger = 0;
@ -191,7 +191,7 @@ void DebuggerMainWnd::initKAction()
actionCollection(), "file_executable_recent"); actionCollection(), "file_executable_recent");
(void)new TDEAction(i18n("&Core dump..."), 0, this, TQ_SLOT(slotFileCore()), (void)new TDEAction(i18n("&Core dump..."), 0, this, TQ_SLOT(slotFileCore()),
actionCollection(), "file_core_dump"); actionCollection(), "file_core_dump");
KStdAction::quit(kapp, TQ_SLOT(closeAllWindows()), actionCollection()); KStdAction::quit(tdeApp, TQ_SLOT(closeAllWindows()), actionCollection());
// settings menu // settings menu
(void)new TDEAction(i18n("This &Program..."), 0, this, (void)new TDEAction(i18n("This &Program..."), 0, this,
@ -742,7 +742,7 @@ void DebuggerMainWnd::slotLocalsToWatch()
void DebuggerMainWnd::slotEditValue() void DebuggerMainWnd::slotEditValue()
{ {
// does one of the value trees have the focus // does one of the value trees have the focus
TQWidget* f = kapp->focusWidget(); TQWidget* f = tdeApp->focusWidget();
ExprWnd* wnd; ExprWnd* wnd;
if (f == m_localVariables) { if (f == m_localVariables) {
wnd = m_localVariables; wnd = m_localVariables;

@ -614,13 +614,13 @@ void KDebugger::stopDriver()
* this timeout be reached, the only reasonable thing one could do then * this timeout be reached, the only reasonable thing one could do then
* is exiting kdbg. * is exiting kdbg.
*/ */
kapp->processEvents(1000); /* ideally, this will already shut it down */ tdeApp->processEvents(1000); /* ideally, this will already shut it down */
int maxTime = 20; /* about 20 seconds */ int maxTime = 20; /* about 20 seconds */
while (m_haveExecutable && maxTime > 0) { while (m_haveExecutable && maxTime > 0) {
// give gdb time to die (and send a SIGCLD) // give gdb time to die (and send a SIGCLD)
::sleep(1); ::sleep(1);
--maxTime; --maxTime;
kapp->processEvents(1000); tdeApp->processEvents(1000);
} }
} }

@ -414,7 +414,7 @@ void DebuggerMainWndBase::newStatusMsg(KStatusBar* statusbar)
void DebuggerMainWndBase::doGlobalOptions(TQWidget* parent) void DebuggerMainWndBase::doGlobalOptions(TQWidget* parent)
{ {
TQTabDialog dlg(parent, "global_options", true); TQTabDialog dlg(parent, "global_options", true);
TQString title = kapp->caption(); TQString title = tdeApp->caption();
title += i18n(": Global options"); title += i18n(": Global options");
dlg.setCaption(title); dlg.setCaption(title);
dlg.setCancelButton(i18n("Cancel")); dlg.setCancelButton(i18n("Cancel"));
@ -502,7 +502,7 @@ TQString DebuggerMainWndBase::createOutputWindow()
shellScript.replace("%s", fifoName); shellScript.replace("%s", fifoName);
TRACE("output window script is " + shellScript); TRACE("output window script is " + shellScript);
TQString title = kapp->caption(); TQString title = tdeApp->caption();
title += i18n(": Program output"); title += i18n(": Program output");
// parse the command line specified in the preferences // parse the command line specified in the preferences

@ -240,7 +240,7 @@ void PgmArgs::browseArgDir()
void PgmArgs::invokeHelp() void PgmArgs::invokeHelp()
{ {
kapp->invokeHTMLHelp("kdbg/argspwdenv.html"); tdeApp->invokeHTMLHelp("kdbg/argspwdenv.html");
} }
#include "pgmargs.moc" #include "pgmargs.moc"

@ -101,7 +101,7 @@ ProgramSettings::ProgramSettings(TQWidget* parent, TQString exeName, bool modal)
{ {
// construct title // construct title
TQFileInfo fi(exeName); TQFileInfo fi(exeName);
TQString cap = kapp->caption(); TQString cap = tdeApp->caption();
TQString title = i18n("%1: Settings for %2"); TQString title = i18n("%1: Settings for %2");
setCaption(title.arg(cap, fi.fileName())); setCaption(title.arg(cap, fi.fileName()));

@ -267,7 +267,7 @@ ProcAttach::ProcAttach(TQWidget* parent) :
m_layout(this, 8), m_layout(this, 8),
m_buttons(4) m_buttons(4)
{ {
TQString title = kapp->caption(); TQString title = tdeApp->caption();
title += i18n(": Attach to process"); title += i18n(": Attach to process");
setCaption(title); setCaption(title);

@ -387,7 +387,7 @@ FindDialog::FindDialog() :
m_layout(this, 8), m_layout(this, 8),
m_buttons(4) m_buttons(4)
{ {
setCaption(TQString(kapp->caption()) + i18n(": Search")); setCaption(TQString(tdeApp->caption()) + i18n(": Search"));
m_searchText.setMinimumSize(330, 24); m_searchText.setMinimumSize(330, 24);
m_searchText.setMaxLength(10000); m_searchText.setMaxLength(10000);

Loading…
Cancel
Save