summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Mainpage.dox8
-rw-r--r--src/core.h2
-rw-r--r--src/documentationpart.h2
-rw-r--r--src/editorproxy.cpp6
-rw-r--r--src/editorproxy.h2
-rw-r--r--src/generalinfowidget.cpp8
-rw-r--r--src/generalinfowidget.h2
-rw-r--r--src/languageselectwidget.cpp6
-rw-r--r--src/languageselectwidget.h2
-rw-r--r--src/main.cpp4
-rw-r--r--src/main_assistant.cpp4
-rw-r--r--src/mainwindowshare.cpp63
-rw-r--r--src/mainwindowshare.h2
-rw-r--r--src/multibuffer.cpp16
-rw-r--r--src/multibuffer.h6
-rw-r--r--src/newui/button.cpp8
-rw-r--r--src/newui/button.h2
-rw-r--r--src/newui/buttonbar.h2
-rw-r--r--src/newui/ddockwindow.cpp12
-rw-r--r--src/newui/ddockwindow.h2
-rw-r--r--src/newui/dmainwindow.cpp16
-rw-r--r--src/newui/dmainwindow.h2
-rw-r--r--src/newui/docksplitter.cpp22
-rw-r--r--src/newui/docksplitter.h6
-rw-r--r--src/newui/dtabwidget.cpp6
-rw-r--r--src/newui/dtabwidget.h2
-rw-r--r--src/partcontroller.cpp99
-rw-r--r--src/partcontroller.h2
-rw-r--r--src/plugincontroller.cpp4
-rw-r--r--src/plugincontroller.h2
-rw-r--r--src/pluginselectdialog.cpp6
-rw-r--r--src/pluginselectdialog.h4
-rw-r--r--src/pluginselectdialogbase.ui4
-rw-r--r--src/profileengine/editor/profileeditor.h2
-rw-r--r--src/profileengine/editor/profileeditorbase.ui4
-rw-r--r--src/projectmanager.cpp12
-rw-r--r--src/projectmanager.h2
-rw-r--r--src/projectsession.cpp4
-rw-r--r--src/projectsession.h2
-rw-r--r--src/settingswidget.ui3
-rw-r--r--src/simplemainwindow.cpp94
-rw-r--r--src/simplemainwindow.h5
-rw-r--r--src/splashscreen.cpp2
-rw-r--r--src/splashscreen.h2
-rw-r--r--src/statusbar.cpp10
-rw-r--r--src/statusbar.h2
-rw-r--r--src/tdeconf_update/Makefile.am5
-rw-r--r--src/tdeconf_update/kdev-gen-settings-tdeconf_update.cpp3
48 files changed, 227 insertions, 259 deletions
diff --git a/src/Mainpage.dox b/src/Mainpage.dox
index 8b5a020c..69e2e239 100644
--- a/src/Mainpage.dox
+++ b/src/Mainpage.dox
@@ -62,8 +62,8 @@ Example:
app.processEvents();
- QObject::connect(PluginController::getInstance(), SIGNAL(loadingPlugin(const QString &)),
- splash, SLOT(showMessage(const QString &)));
+ TQObject::connect(PluginController::getInstance(), TQ_SIGNAL(loadingPlugin(const TQString &)),
+ splash, TQ_SLOT(showMessage(const TQString &)));
splash->message( i18n( "Loading Settings" ) );
TopLevel::getInstance()->loadSettings();
@@ -98,12 +98,12 @@ Example:
virtual void createGlobalSettingsPage(KDialogBase */*dlg*/) {};
virtual void acceptGlobalSettingsPage(KDialogBase */*dlg*/) {};
- virtual QString xmlFile()
+ virtual TQString xmlFile()
{
return "myappui.rc";
}
- virtual QString defaultProfile()
+ virtual TQString defaultProfile()
{
return "MyApp";
}
diff --git a/src/core.h b/src/core.h
index c041eac0..0d0e3bc1 100644
--- a/src/core.h
+++ b/src/core.h
@@ -19,7 +19,7 @@ Core implementation.
*/
class Core : public KDevCore
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/src/documentationpart.h b/src/documentationpart.h
index dd86ce8a..bb00a165 100644
--- a/src/documentationpart.h
+++ b/src/documentationpart.h
@@ -10,7 +10,7 @@ Implements shell-dependent "duplicate" and "open in new window" actions of KDevH
*/
class HTMLDocumentationPart : public KDevHTMLPart
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/src/editorproxy.cpp b/src/editorproxy.cpp
index 73ff852b..75e0ba13 100644
--- a/src/editorproxy.cpp
+++ b/src/editorproxy.cpp
@@ -40,13 +40,13 @@ EditorProxy::EditorProxy()
: TQObject()
{
m_delayedLineTimer = new TQTimer( this );
- connect( m_delayedLineTimer, TQT_SIGNAL( timeout() ), this, TQT_SLOT(setLineNumberDelayed()) );
+ connect( m_delayedLineTimer, TQ_SIGNAL( timeout() ), this, TQ_SLOT(setLineNumberDelayed()) );
TDEConfig *config = kapp->config();
m_delayedViewCreationCompatibleUI = true;
TDEAction *ac = new TDEAction( i18n("Show Context Menu"), 0, this,
- TQT_SLOT(showPopup()), TopLevel::getInstance()->main()->actionCollection(), "show_popup" );
+ TQ_SLOT(showPopup()), TopLevel::getInstance()->main()->actionCollection(), "show_popup" );
TDEShortcut cut ;/*= TDEStdAccel::shortcut(TDEStdAccel::PopupMenuContext);*/
cut.append(KKey(CTRL+Key_Return));
ac->setShortcut(cut);
@@ -143,7 +143,7 @@ void EditorProxy::installPopup( KParts::Part * part )
iface->installPopup( popup );
- connect(popup, TQT_SIGNAL(aboutToShow()), this, TQT_SLOT(popupAboutToShow()));
+ connect(popup, TQ_SIGNAL(aboutToShow()), this, TQ_SLOT(popupAboutToShow()));
// ugly hack: mark the "original" items
m_popupIds.resize(popup->count());
diff --git a/src/editorproxy.h b/src/editorproxy.h
index 7cbd9ec9..d23147cd 100644
--- a/src/editorproxy.h
+++ b/src/editorproxy.h
@@ -17,7 +17,7 @@ class TQTimer;
class EditorProxy : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/src/generalinfowidget.cpp b/src/generalinfowidget.cpp
index 794ab8cd..9beeb3e9 100644
--- a/src/generalinfowidget.cpp
+++ b/src/generalinfowidget.cpp
@@ -32,10 +32,10 @@ TQString makeRelativePath(const TQString& fromPath, const TQString& toPath);
GeneralInfoWidget::GeneralInfoWidget(TQDomDocument &projectDom, TQWidget *parent, const char *name)
: GeneralInfoWidgetBase(parent, name), m_projectDom(projectDom) {
- connect(project_directory_edit, TQT_SIGNAL(textChanged(const TQString&)),
- this, TQT_SLOT(slotProjectDirectoryChanged(const TQString&)));
- connect(project_directory_combo, TQT_SIGNAL(activated(int)),
- this, TQT_SLOT(slotProjectDirectoryComboChanged()));
+ connect(project_directory_edit, TQ_SIGNAL(textChanged(const TQString&)),
+ this, TQ_SLOT(slotProjectDirectoryChanged(const TQString&)));
+ connect(project_directory_combo, TQ_SIGNAL(activated(int)),
+ this, TQ_SLOT(slotProjectDirectoryComboChanged()));
readConfig();
}
diff --git a/src/generalinfowidget.h b/src/generalinfowidget.h
index d7f0b3b1..bfc85462 100644
--- a/src/generalinfowidget.h
+++ b/src/generalinfowidget.h
@@ -22,7 +22,7 @@ class TQDomDocument;
General project information widget.
*/
class GeneralInfoWidget : public GeneralInfoWidgetBase {
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/src/languageselectwidget.cpp b/src/languageselectwidget.cpp
index 7a8695ff..f07f9b4d 100644
--- a/src/languageselectwidget.cpp
+++ b/src/languageselectwidget.cpp
@@ -63,7 +63,7 @@ void LanguageSelectWidget::init()
TQVBoxLayout *layout = new TQVBoxLayout(this);
TQGroupBox * groupBox1 = new TQGroupBox( i18n("Additional Language Support"), this );
- groupBox1->setColumnLayout(0, Qt::Vertical );
+ groupBox1->setColumnLayout(0, TQt::Vertical );
groupBox1->layout()->setSpacing( 6 );
groupBox1->layout()->setMargin( 11 );
TQVBoxLayout * groupBox1Layout = new TQVBoxLayout( groupBox1->layout() );
@@ -81,7 +81,7 @@ void LanguageSelectWidget::init()
layout->addWidget( groupBox1 );
TQGroupBox * groupBox2 = new TQGroupBox( i18n("Description"), this );
- groupBox2->setColumnLayout(0, Qt::Vertical );
+ groupBox2->setColumnLayout(0, TQt::Vertical );
groupBox2->layout()->setSpacing( 6 );
groupBox2->layout()->setMargin( 11 );
TQVBoxLayout * groupBox2Layout = new TQVBoxLayout( groupBox2->layout() );
@@ -94,7 +94,7 @@ void LanguageSelectWidget::init()
layout->addWidget( groupBox2 );
- connect( _pluginList, TQT_SIGNAL( selectionChanged( TQListViewItem * ) ), this, TQT_SLOT( itemSelected( TQListViewItem * ) ) );
+ connect( _pluginList, TQ_SIGNAL( selectionChanged( TQListViewItem * ) ), this, TQ_SLOT( itemSelected( TQListViewItem * ) ) );
readProjectConfig();
}
diff --git a/src/languageselectwidget.h b/src/languageselectwidget.h
index 75349930..40ef86ad 100644
--- a/src/languageselectwidget.h
+++ b/src/languageselectwidget.h
@@ -20,7 +20,7 @@ class TQListView;
class LanguageSelectWidget : public TQWidget
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/src/main.cpp b/src/main.cpp
index 65177e53..7faf9b53 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -102,8 +102,8 @@ int main(int argc, char *argv[])
if (splash) splash->message( i18n( "Loading Settings" ) );
TopLevel::getInstance()->loadSettings();
- TQObject::connect(PluginController::getInstance(), TQT_SIGNAL(loadingPlugin(const TQString &)),
- splash, TQT_SLOT(message(const TQString &)));
+ TQObject::connect(PluginController::getInstance(), TQ_SIGNAL(loadingPlugin(const TQString &)),
+ splash, TQ_SLOT(message(const TQString &)));
if (splash) splash->show();
PluginController::getInstance()->loadInitialPlugins();
diff --git a/src/main_assistant.cpp b/src/main_assistant.cpp
index 10b5fd56..b548aa3b 100644
--- a/src/main_assistant.cpp
+++ b/src/main_assistant.cpp
@@ -94,8 +94,8 @@ int main(int argc, char *argv[])
app.processEvents();
- TQObject::connect(PluginController::getInstance(), TQT_SIGNAL(loadingPlugin(const TQString &)),
- splash, TQT_SLOT(message(const TQString &)));
+ TQObject::connect(PluginController::getInstance(), TQ_SIGNAL(loadingPlugin(const TQString &)),
+ splash, TQ_SLOT(message(const TQString &)));
if (splash) splash->message( i18n( "Loading Settings" ) );
TopLevel::getInstance()->loadSettings();
diff --git a/src/mainwindowshare.cpp b/src/mainwindowshare.cpp
index 619b3ab3..38414c00 100644
--- a/src/mainwindowshare.cpp
+++ b/src/mainwindowshare.cpp
@@ -81,11 +81,11 @@ MainWindowShare::MainWindowShare(TQObject* pParent, const char* name)
void MainWindowShare::init()
{
- connect(Core::getInstance(), TQT_SIGNAL(contextMenu(TQPopupMenu *, const Context *)),
- this, TQT_SLOT(contextMenu(TQPopupMenu *, const Context *)));
+ connect(Core::getInstance(), TQ_SIGNAL(contextMenu(TQPopupMenu *, const Context *)),
+ this, TQ_SLOT(contextMenu(TQPopupMenu *, const Context *)));
- connect( m_pMainWnd->actionCollection(), TQT_SIGNAL( actionStatusText( const TQString & ) ),
- this, TQT_SLOT( slotActionStatusText( const TQString & ) ) );
+ connect( m_pMainWnd->actionCollection(), TQ_SIGNAL( actionStatusText( const TQString & ) ),
+ this, TQ_SLOT( slotActionStatusText( const TQString & ) ) );
}
void MainWindowShare::slotActionStatusText( const TQString &text )
@@ -105,83 +105,83 @@ void MainWindowShare::createActions()
{
ProjectManager::getInstance()->createActions( m_pMainWnd->actionCollection() );
- KStdAction::quit(this->parent(), TQT_SLOT(close()), m_pMainWnd->actionCollection());
+ KStdAction::quit(this->parent(), TQ_SLOT(close()), m_pMainWnd->actionCollection());
TDEAction* action;
m_stopProcesses = new TDEToolBarPopupAction( i18n( "&Stop" ), "process-stop",
- Key_Escape, this, TQT_SLOT(slotStopButtonPressed()),
+ Key_Escape, this, TQ_SLOT(slotStopButtonPressed()),
m_pMainWnd->actionCollection(), "stop_processes" );
m_stopProcesses->setToolTip(i18n("Stop"));
m_stopProcesses->setWhatsThis(i18n("<b>Stop</b><p>Stops all running processes (like building process, grep command, etc.). When placed onto a toolbar provides a popup menu to choose a process to stop."));
m_stopProcesses->setEnabled( false );
- connect(m_stopProcesses->popupMenu(), TQT_SIGNAL(aboutToShow()),
- this, TQT_SLOT(slotStopMenuAboutToShow()));
- connect(m_stopProcesses->popupMenu(), TQT_SIGNAL(activated(int)),
- this, TQT_SLOT(slotStopPopupActivated(int)));
+ connect(m_stopProcesses->popupMenu(), TQ_SIGNAL(aboutToShow()),
+ this, TQ_SLOT(slotStopMenuAboutToShow()));
+ connect(m_stopProcesses->popupMenu(), TQ_SIGNAL(activated(int)),
+ this, TQ_SLOT(slotStopPopupActivated(int)));
- connect( Core::getInstance(), TQT_SIGNAL(activeProcessChanged(KDevPlugin*, bool)),
- this, TQT_SLOT(slotActiveProcessChanged(KDevPlugin*, bool)) );
+ connect( Core::getInstance(), TQ_SIGNAL(activeProcessChanged(KDevPlugin*, bool)),
+ this, TQ_SLOT(slotActiveProcessChanged(KDevPlugin*, bool)) );
action = KStdAction::showMenubar(
- this, TQT_SLOT(slotShowMenuBar()),
+ this, TQ_SLOT(slotShowMenuBar()),
m_pMainWnd->actionCollection(), "settings_show_menubar" );
action->setToolTip(beautifyToolTip(action->text()));
action->setWhatsThis(TQString("<b>%1</b><p>%2").arg(beautifyToolTip(action->text())).arg(i18n("Lets you switch the menubar on/off.")));
action = KStdAction::keyBindings(
- this, TQT_SLOT(slotKeyBindings()),
+ this, TQ_SLOT(slotKeyBindings()),
m_pMainWnd->actionCollection(), "settings_configure_shortcuts" );
action->setToolTip(beautifyToolTip(action->text()));
action->setWhatsThis(TQString("<b>%1</b><p>%2").arg(beautifyToolTip(action->text())).arg(i18n("Lets you configure shortcut keys.")));
action = KStdAction::configureToolbars(
- this, TQT_SLOT(slotConfigureToolbars()),
+ this, TQ_SLOT(slotConfigureToolbars()),
m_pMainWnd->actionCollection(), "settings_configure_toolbars" );
action->setToolTip(beautifyToolTip(action->text()));
action->setWhatsThis(TQString("<b>%1</b><p>%2").arg(beautifyToolTip(action->text())).arg(i18n("Lets you configure toolbars.")));
action = KStdAction::configureNotifications(
- this, TQT_SLOT(slotConfigureNotifications()),
+ this, TQ_SLOT(slotConfigureNotifications()),
m_pMainWnd->actionCollection(), "settings_configure_notifications" );
action->setToolTip(beautifyToolTip(action->text()));
action->setWhatsThis(TQString("<b>%1</b><p>%2").arg(beautifyToolTip(action->text())).arg(i18n("Lets you configure system notifications.")));
- action = KStdAction::preferences(this, TQT_SLOT(slotSettings()),
+ action = KStdAction::preferences(this, TQ_SLOT(slotSettings()),
m_pMainWnd->actionCollection(), "settings_configure" );
action->setToolTip( i18n( "Configure TDevelop" ) );
action->setWhatsThis(TQString("<b>%1</b><p>%2").arg(i18n( "Configure TDevelop" )).arg(i18n("Lets you customize TDevelop.")));
- m_toggleStatusbar = KStdAction::showToolbar(this, TQT_SLOT(slotToggleStatusbar()),m_pMainWnd->actionCollection(), "settings_statusbar");
+ m_toggleStatusbar = KStdAction::showToolbar(this, TQ_SLOT(slotToggleStatusbar()),m_pMainWnd->actionCollection(), "settings_statusbar");
m_toggleStatusbar->setText(i18n("Show &Statusbar"));
m_toggleStatusbar->setToolTip( i18n("Show statusbar") );
m_toggleStatusbar->setWhatsThis(i18n("<b>Show statusbar</b><p>Hides or shows the statusbar."));
- action = new TDEAction( i18n("&Next Window"), ALT+Key_Right, this, TQT_SIGNAL(gotoNextWindow()),m_pMainWnd->actionCollection(), "view_next_window");
+ action = new TDEAction( i18n("&Next Window"), ALT+Key_Right, this, TQ_SIGNAL(gotoNextWindow()),m_pMainWnd->actionCollection(), "view_next_window");
action->setToolTip( i18n("Next window") );
action->setWhatsThis(i18n("<b>Next window</b><p>Switches to the next window."));
- action = new TDEAction( i18n("&Previous Window"), ALT+Key_Left, this, TQT_SIGNAL(gotoPreviousWindow()),m_pMainWnd->actionCollection(), "view_previous_window");
+ action = new TDEAction( i18n("&Previous Window"), ALT+Key_Left, this, TQ_SIGNAL(gotoPreviousWindow()),m_pMainWnd->actionCollection(), "view_previous_window");
action->setToolTip( i18n("Previous window") );
action->setWhatsThis(i18n("<b>Previous window</b><p>Switches to the previous window."));
- action = new TDEAction( i18n("&Last Accessed Window"), ALT+Key_Up, this, TQT_SIGNAL(gotoLastWindow()), m_pMainWnd->actionCollection(), "view_last_window");
+ action = new TDEAction( i18n("&Last Accessed Window"), ALT+Key_Up, this, TQ_SIGNAL(gotoLastWindow()), m_pMainWnd->actionCollection(), "view_last_window");
action->setToolTip( i18n("Last accessed window") );
action->setWhatsThis(i18n("<b>Last accessed window</b><p>Switches to the last viewed window (Hold the Alt key pressed and walk on by repeating the Up key)."));
- action = new TDEAction( i18n("&First Accessed Window"), ALT+Key_Down, this, TQT_SIGNAL(gotoFirstWindow()), m_pMainWnd->actionCollection(), "view_first_window");
+ action = new TDEAction( i18n("&First Accessed Window"), ALT+Key_Down, this, TQ_SIGNAL(gotoFirstWindow()), m_pMainWnd->actionCollection(), "view_first_window");
action->setToolTip( i18n("First accessed window") );
action->setWhatsThis(i18n("<b>First accessed window</b><p>Switches to the first accessed window (Hold the Alt key pressed and walk on by repeating the Down key)."));
- action = new TDEAction( i18n("Configure Plugins..."), SmallIconSet("configure"), 0, PluginController::getInstance(), TQT_SLOT(selectPlugins()), m_pMainWnd->actionCollection(), "settings_configure_plugins" );
+ action = new TDEAction( i18n("Configure Plugins..."), SmallIconSet("configure"), 0, PluginController::getInstance(), TQ_SLOT(selectPlugins()), m_pMainWnd->actionCollection(), "settings_configure_plugins" );
- m_configureEditorAction = new TDEAction( i18n("Configure &Editor..."), SmallIconSet("configure"), 0, this, TQT_SLOT( slotConfigureEditors() ), m_pMainWnd->actionCollection(), "settings_configure_editors");
+ m_configureEditorAction = new TDEAction( i18n("Configure &Editor..."), SmallIconSet("configure"), 0, this, TQ_SLOT( slotConfigureEditors() ), m_pMainWnd->actionCollection(), "settings_configure_editors");
m_configureEditorAction->setToolTip( i18n("Configure editor settings") );
m_configureEditorAction->setWhatsThis(i18n("<b>Configure editor</b><p>Opens editor configuration dialog."));
m_configureEditorAction->setEnabled( false );
KDevPartController * partController = API::getInstance()->partController();
- connect( partController, TQT_SIGNAL(activePartChanged(KParts::Part*)), this, TQT_SLOT(slotActivePartChanged(KParts::Part* )) );
+ connect( partController, TQ_SIGNAL(activePartChanged(KParts::Part*)), this, TQ_SLOT(slotActivePartChanged(KParts::Part* )) );
}
void MainWindowShare::slotReportBug()
@@ -367,15 +367,15 @@ void MainWindowShare::slotGUICreated( KParts::Part * part )
if ( TDEAction * action = part->action("file_save") )
{
kdDebug(9000) << " *** found \"file_save\" action - disconnecting" << endl;
- disconnect( action, TQT_SIGNAL(activated()), 0, 0 );
- connect( action, TQT_SIGNAL(activated()), PartController::getInstance(), TQT_SLOT(slotSave()) );
+ disconnect( action, TQ_SIGNAL(activated()), 0, 0 );
+ connect( action, TQ_SIGNAL(activated()), PartController::getInstance(), TQ_SLOT(slotSave()) );
}
if ( TDEAction * action = part->action("file_reload") )
{
kdDebug(9000) << " *** found \"file_reload\" action - disconnecting" << endl;
- disconnect( action, TQT_SIGNAL(activated()), 0, 0 );
- connect( action, TQT_SIGNAL(activated()), PartController::getInstance(), TQT_SLOT(slotReload()) );
+ disconnect( action, TQ_SIGNAL(activated()), 0, 0 );
+ connect( action, TQ_SIGNAL(activated()), PartController::getInstance(), TQ_SLOT(slotReload()) );
}
}
@@ -429,7 +429,7 @@ void MainWindowShare::slotConfigureToolbars()
{
m_pMainWnd->saveMainWindowSettings( TDEGlobal::config(), "Mainwindow" );
KEditToolbar dlg( m_pMainWnd->factory() );
- connect(&dlg, TQT_SIGNAL(newToolbarConfig()), this, TQT_SLOT(slotNewToolbarConfig()));
+ connect(&dlg, TQ_SIGNAL(newToolbarConfig()), this, TQ_SLOT(slotNewToolbarConfig()));
dlg.exec();
}
@@ -438,7 +438,7 @@ void MainWindowShare::contextMenu(TQPopupMenu* popup, const Context *)
if ( m_pMainWnd->menuBar()->isVisible() )
return;
- int id = popup->insertItem( i18n("Show &Menubar"), m_pMainWnd->menuBar(), TQT_SLOT(show()) );
+ int id = popup->insertItem( i18n("Show &Menubar"), m_pMainWnd->menuBar(), TQ_SLOT(show()) );
popup->TQMenuData::setWhatsThis(id, i18n("<b>Show menubar</b><p>Lets you switch the menubar on/off."));
}
@@ -448,4 +448,3 @@ void MainWindowShare::slotActivePartChanged( KParts::Part * part )
}
#include "mainwindowshare.moc"
-//kate: space-indent on; indent-width 4;
diff --git a/src/mainwindowshare.h b/src/mainwindowshare.h
index a9ec620a..d112c6f9 100644
--- a/src/mainwindowshare.h
+++ b/src/mainwindowshare.h
@@ -29,7 +29,7 @@ Shared main window functionality.
*/
class MainWindowShare : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
MainWindowShare(TQObject* pParent = 0L, const char* name = 0L);
diff --git a/src/multibuffer.cpp b/src/multibuffer.cpp
index 05a4d26f..fe988c02 100644
--- a/src/multibuffer.cpp
+++ b/src/multibuffer.cpp
@@ -57,12 +57,12 @@ MultiBuffer::MultiBuffer( TQWidget *parent )
API::getInstance() ->languageSupport() )
{
setOrientation( lang->splitOrientation() );
- connect( lang, TQT_SIGNAL( splitOrientationChanged( Qt::Orientation ) ),
- this, TQT_SLOT( setOrientation( Qt::Orientation ) ) );
+ connect( lang, TQ_SIGNAL( splitOrientationChanged( TQt::Orientation ) ),
+ this, TQ_SLOT( setOrientation( TQt::Orientation ) ) );
}
else
{
- setOrientation( Qt::Vertical );
+ setOrientation( TQt::Vertical );
}
}
@@ -147,7 +147,7 @@ void MultiBuffer::registerURL( const KURL &url, KParts::Part *part )
void MultiBuffer::registerDelayedActivation( KParts::Part *part,
int line, int col )
{
- m_delayedActivation[ part ] = tqMakePair( line, col );
+ m_delayedActivation[ part ] = qMakePair( line, col );
}
KParts::Part* MultiBuffer::createPart( const TQString &mimeType,
@@ -221,8 +221,8 @@ void MultiBuffer::show()
// We're managing the view deletion by being its parent,
// don't let the part self-destruct
- disconnect( view, TQT_SIGNAL( destroyed() ),
- document, TQT_SLOT( slotWidgetDestroyed() ) );
+ disconnect( view, TQ_SIGNAL( destroyed() ),
+ document, TQ_SLOT( slotWidgetDestroyed() ) );
document->insertChildClient( view );
PartController::getInstance() ->integrateTextEditorPart( document );
@@ -249,7 +249,7 @@ void MultiBuffer::show()
TQSplitter::show();
}
-void MultiBuffer::setOrientation( Qt::Orientation orientation )
+void MultiBuffer::setOrientation( TQt::Orientation orientation )
{
TQSplitter::setOrientation( orientation );
}
@@ -299,5 +299,3 @@ void MultiBuffer::updateUrlForPart(KParts::Part *part, KURL url)
}
#include "multibuffer.moc"
-
-// kate: space-indent on; indent-width 4; tab-width 4; replace-tabs on
diff --git a/src/multibuffer.h b/src/multibuffer.h
index c60e779e..12967e34 100644
--- a/src/multibuffer.h
+++ b/src/multibuffer.h
@@ -39,7 +39,7 @@ typedef TQMap< KParts::Part*, TQPair<int, int> > ActivationMap;
class MultiBuffer : public TQSplitter
{
- Q_OBJECT
+ TQ_OBJECT
public:
MultiBuffer( TQWidget * parent = 0 );
@@ -67,7 +67,7 @@ public:
public slots:
virtual void show();
- virtual void setOrientation( Qt::Orientation );
+ virtual void setOrientation( TQt::Orientation );
void activePartChanged( const KURL &url );
protected:
@@ -86,5 +86,3 @@ private:
};
#endif
-
-// kate: space-indent on; indent-width 4; tab-width 4; replace-tabs on
diff --git a/src/newui/button.cpp b/src/newui/button.cpp
index 930ce733..fc8bf826 100644
--- a/src/newui/button.cpp
+++ b/src/newui/button.cpp
@@ -47,7 +47,7 @@ Button::Button(ButtonBar *parent, const TQString text, const TQIconSet &icon,
hide();
setFlat(true);
setToggleButton(true);
- setFocusPolicy(TQ_NoFocus);
+ setFocusPolicy(TQWidget::NoFocus);
setDescription(m_description);
setSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Minimum);
resize(sizeHint());
@@ -56,9 +56,9 @@ Button::Button(ButtonBar *parent, const TQString text, const TQIconSet &icon,
TQToolTip::add(this, m_realText);
m_assignAccelAction = new TDEAction(i18n("Assign Accelerator..."), 0,
- TQT_TQOBJECT(this), TQT_SLOT(assignAccel()), TQT_TQOBJECT(this));
+ this, TQ_SLOT(assignAccel()), this);
m_clearAccelAction = new TDEAction(i18n("Clear Accelerator"), 0,
- TQT_TQOBJECT(this), TQT_SLOT(clearAccel()), TQT_TQOBJECT(this));
+ this, TQ_SLOT(clearAccel()), this);
TDEConfig *config = kapp->config();
config->setGroup("UI");
@@ -229,7 +229,7 @@ TQSize Button::sizeHint(const TQString &text) const
h = TQMAX(h, sz.height());
}
- return (style().tqsizeFromContents(TQStyle::CT_ToolButton, this, TQSize(w, h)).
+ return (style().sizeFromContents(TQStyle::CT_ToolButton, this, TQSize(w, h)).
expandedTo(TQApplication::globalStrut()));
}
diff --git a/src/newui/button.h b/src/newui/button.h
index 63d0da59..68028fa9 100644
--- a/src/newui/button.h
+++ b/src/newui/button.h
@@ -38,7 +38,7 @@ A TQPushButton derivative with a size of a TQToolBar. Button can be rotated
(placed onto different places in ideal mode).
*/
class Button : public TQPushButton {
- Q_OBJECT
+ TQ_OBJECT
public:
Button(ButtonBar *parent, const TQString text, const TQIconSet &icon = TQIconSet(),
diff --git a/src/newui/buttonbar.h b/src/newui/buttonbar.h
index f0ae292b..f698fdb0 100644
--- a/src/newui/buttonbar.h
+++ b/src/newui/buttonbar.h
@@ -52,7 +52,7 @@ Looks like a toolbar but has another behaviour. It is suitable for
placing on the left(right, bottom, top) corners of a window as a bar with slider.
*/
class ButtonBar : public TQWidget {
- Q_OBJECT
+ TQ_OBJECT
public:
ButtonBar(Place place, ButtonMode mode = IconsAndText,
diff --git a/src/newui/ddockwindow.cpp b/src/newui/ddockwindow.cpp
index 88f25d18..60292252 100644
--- a/src/newui/ddockwindow.cpp
+++ b/src/newui/ddockwindow.cpp
@@ -85,9 +85,9 @@ DDockWindow::DDockWindow(DMainWindow *parent, Position position)
m_widgetStack = new TQWidgetStack(this);
m_internalLayout->addWidget(m_widgetStack);
- m_moveToDockLeft = new TDEAction( i18n("Move to left dock"), 0, TQT_TQOBJECT(this), TQT_SLOT(moveToDockLeft()), TQT_TQOBJECT(this) );
- m_moveToDockRight = new TDEAction( i18n("Move to right dock"), 0, TQT_TQOBJECT(this), TQT_SLOT(moveToDockRight()), TQT_TQOBJECT(this) );
- m_moveToDockBottom = new TDEAction( i18n("Move to bottom dock"), 0, TQT_TQOBJECT(this), TQT_SLOT(moveToDockBottom()), TQT_TQOBJECT(this) );
+ m_moveToDockLeft = new TDEAction( i18n("Move to left dock"), 0, this, TQ_SLOT(moveToDockLeft()), this );
+ m_moveToDockRight = new TDEAction( i18n("Move to right dock"), 0, this, TQ_SLOT(moveToDockRight()), this );
+ m_moveToDockBottom = new TDEAction( i18n("Move to bottom dock"), 0, this, TQ_SLOT(moveToDockBottom()), this );
setVisible(m_visible);
@@ -192,8 +192,8 @@ void DDockWindow::addWidget(const TQString &title, TQWidget *widget, bool skipAc
m_bar->addButton(button);
m_widgetStack->addWidget(widget);
- connect(button, TQT_SIGNAL(clicked()), this, TQT_SLOT(selectWidget()));
- connect(button, TQT_SIGNAL(contextMenu(TQPopupMenu*)), this, TQT_SLOT(contextMenu(TQPopupMenu*)) );
+ connect(button, TQ_SIGNAL(clicked()), this, TQ_SLOT(selectWidget()));
+ connect(button, TQ_SIGNAL(contextMenu(TQPopupMenu*)), this, TQ_SLOT(contextMenu(TQPopupMenu*)) );
if (!skipActivation)
{
@@ -375,7 +375,7 @@ void DDockWindow::selectPrevWidget()
void DDockWindow::contextMenu(TQPopupMenu * menu)
{
- m_lastContextMenuButton = static_cast<Ideal::Button*>( TQT_TQWIDGET(const_cast<TQT_BASE_OBJECT_NAME*>( sender() )) );
+ m_lastContextMenuButton = static_cast<Ideal::Button*>( const_cast<TQObject*>( sender() ) );
menu->insertSeparator();
diff --git a/src/newui/ddockwindow.h b/src/newui/ddockwindow.h
index 4190958a..29421914 100644
--- a/src/newui/ddockwindow.h
+++ b/src/newui/ddockwindow.h
@@ -39,7 +39,7 @@ namespace Ideal {
}
class DDockWindow : public TQDockWindow {
- Q_OBJECT
+ TQ_OBJECT
public:
enum Position { Bottom, Left, Right };
diff --git a/src/newui/dmainwindow.cpp b/src/newui/dmainwindow.cpp
index 3517ab6c..d3c70d4e 100644
--- a/src/newui/dmainwindow.cpp
+++ b/src/newui/dmainwindow.cpp
@@ -34,7 +34,7 @@ DMainWindow::DMainWindow(TQWidget *parent, const char *name)
{
loadSettings();
createToolWindows();
- m_central = new Ideal::DockSplitter(Qt::Horizontal, this);
+ m_central = new Ideal::DockSplitter(TQt::Horizontal, this);
m_activeTabWidget = createTab();
m_central->addDock(0, 0, m_activeTabWidget);
setCentralWidget(m_central);
@@ -208,10 +208,10 @@ DTabWidget *DMainWindow::createTab()
DTabWidget *tab = new DTabWidget(m_central);
m_tabs.append(tab);
if (tab->closeButton())
- connect(tab->closeButton(), TQT_SIGNAL(clicked()), this, TQT_SLOT(closeTab()));
- connect(tab, TQT_SIGNAL(closeRequest(TQWidget*)), this, TQT_SLOT(closeTab(TQWidget*)));
- connect(tab, TQT_SIGNAL(contextMenu(TQWidget*,const TQPoint &)),
- this, TQT_SLOT(tabContext(TQWidget*,const TQPoint &)));
+ connect(tab->closeButton(), TQ_SIGNAL(clicked()), this, TQ_SLOT(closeTab()));
+ connect(tab, TQ_SIGNAL(closeRequest(TQWidget*)), this, TQ_SLOT(closeTab(TQWidget*)));
+ connect(tab, TQ_SIGNAL(contextMenu(TQWidget*,const TQPoint &)),
+ this, TQ_SLOT(tabContext(TQWidget*,const TQPoint &)));
return tab;
}
@@ -274,7 +274,7 @@ void DMainWindow::addDockWidget(DDockWindow::Position position, TQWidget *view,
{
toolWindow(position)->addWidget(title, view);
m_docks[view] = position;
- connect(view, TQT_SIGNAL(destroyed()), this, TQT_SLOT(widgetDestroyed()));
+ connect(view, TQ_SIGNAL(destroyed()), this, TQ_SLOT(widgetDestroyed()));
}
void DMainWindow::removeDockWidget(TQWidget *view)
@@ -295,7 +295,7 @@ DDockWindow::Position DMainWindow::dockWidgetPosition(TQWidget *view)
void DMainWindow::widgetDestroyed()
{
- TQWidget *w = TQT_TQWIDGET(const_cast<TQT_BASE_OBJECT_NAME*>(sender()));
+ TQWidget *w = static_cast<TQWidget*>(const_cast<TQObject*>(sender()));
if (m_docks.contains(w))
{
@@ -305,5 +305,3 @@ void DMainWindow::widgetDestroyed()
}
#include "dmainwindow.moc"
-
-// kate: space-indent on; indent-width 4; tab-width 4; replace-tabs on
diff --git a/src/newui/dmainwindow.h b/src/newui/dmainwindow.h
index 7ccb51f6..8745c454 100644
--- a/src/newui/dmainwindow.h
+++ b/src/newui/dmainwindow.h
@@ -32,7 +32,7 @@ namespace Ideal {
/**Main window which provides simplified IDEA mode.*/
class DMainWindow: public KParts::MainWindow {
- Q_OBJECT
+ TQ_OBJECT
public:
DMainWindow(TQWidget *parent = 0, const char *name = 0);
diff --git a/src/newui/docksplitter.cpp b/src/newui/docksplitter.cpp
index 6cfa9445..3b447b80 100644
--- a/src/newui/docksplitter.cpp
+++ b/src/newui/docksplitter.cpp
@@ -23,16 +23,16 @@
namespace Ideal {
-DockSplitter::DockSplitter(Qt::Orientation orientation, TQWidget *parent, const char *name)
+DockSplitter::DockSplitter(TQt::Orientation orientation, TQWidget *parent, const char *name)
:TQSplitter(parent, name), m_orientation(orientation)
{
switch (m_orientation)
{
- case Qt::Horizontal:
- setOrientation(Qt::Vertical);
+ case TQt::Horizontal:
+ setOrientation(TQt::Vertical);
break;
- case Qt::Vertical:
- setOrientation(Qt::Horizontal);
+ case TQt::Vertical:
+ setOrientation(TQt::Horizontal);
break;
}
setOpaqueResize(true);
@@ -73,11 +73,11 @@ void DockSplitter::appendSplitter()
{
switch (m_orientation)
{
- case Qt::Horizontal:
- m_splitters.append(new TQSplitter(Qt::Horizontal, this));
+ case TQt::Horizontal:
+ m_splitters.append(new TQSplitter(TQt::Horizontal, this));
break;
- case Qt::Vertical:
- m_splitters.append(new TQSplitter(Qt::Vertical, this));
+ case TQt::Vertical:
+ m_splitters.append(new TQSplitter(TQt::Vertical, this));
break;
}
m_splitters[m_splitters.size()-1]->setOpaqueResize(true);
@@ -166,8 +166,8 @@ TQPair<uint, uint> DockSplitter::indexOf(TQWidget *dock)
for (uint i = 0; i < m_docks.count(); ++i)
for (uint j = 0; j < m_docks[i].count(); ++j)
if (dock == m_docks[i][j])
- return tqMakePair(i, j);
- return tqMakePair(0u, 0u);
+ return qMakePair(i, j);
+ return qMakePair(0u, 0u);
}
}
diff --git a/src/newui/docksplitter.h b/src/newui/docksplitter.h
index c61f6c91..1d2a2d56 100644
--- a/src/newui/docksplitter.h
+++ b/src/newui/docksplitter.h
@@ -31,10 +31,10 @@ class DockWidget;
@short Splitter for docks
*/
class DockSplitter: public TQSplitter {
- Q_OBJECT
+ TQ_OBJECT
public:
- DockSplitter(Qt::Orientation orientation, TQWidget *parent = 0, const char *name = 0);
+ DockSplitter(TQt::Orientation orientation, TQWidget *parent = 0, const char *name = 0);
~DockSplitter();
void addDock(uint row, uint col, TQWidget *dock);
@@ -53,7 +53,7 @@ protected:
bool isRowEmpty(int row);
private:
- Qt::Orientation m_orientation;
+ TQt::Orientation m_orientation;
TQValueList<TQSplitter*> m_splitters;
TQValueList<TQValueList<TQWidget*> > m_docks;
};
diff --git a/src/newui/dtabwidget.cpp b/src/newui/dtabwidget.cpp
index 1480785a..f96f3ca0 100644
--- a/src/newui/dtabwidget.cpp
+++ b/src/newui/dtabwidget.cpp
@@ -29,7 +29,7 @@
DTabWidget::DTabWidget(TQWidget *parent, const char *name)
:KTabWidget(parent, name), m_closeButton(0)
{
- setFocusPolicy(TQ_NoFocus);
+ setFocusPolicy(TQWidget::NoFocus);
setMargin(0);
loadSettings();
@@ -49,8 +49,8 @@ DTabWidget::DTabWidget(TQWidget *parent, const char *name)
setTabReorderingEnabled(true);
}
- connect(this, TQT_SIGNAL(currentChanged(TQWidget*)), this, TQT_SLOT(setFocus(TQWidget*)));
-// connect(this, TQT_SIGNAL(currentChanged(TQWidget*)), this, TQT_SLOT(updateHistory(TQWidget*)));
+ connect(this, TQ_SIGNAL(currentChanged(TQWidget*)), this, TQ_SLOT(setFocus(TQWidget*)));
+// connect(this, TQ_SIGNAL(currentChanged(TQWidget*)), this, TQ_SLOT(updateHistory(TQWidget*)));
}
void DTabWidget::loadSettings()
diff --git a/src/newui/dtabwidget.h b/src/newui/dtabwidget.h
index 4d7b6f7f..c1b2fca1 100644
--- a/src/newui/dtabwidget.h
+++ b/src/newui/dtabwidget.h
@@ -25,7 +25,7 @@
class TQToolButton;
class DTabWidget: public KTabWidget {
- Q_OBJECT
+ TQ_OBJECT
public:
DTabWidget(TQWidget *parent=0, const char *name=0);
diff --git a/src/partcontroller.cpp b/src/partcontroller.cpp
index 33e50afd..086d641e 100644
--- a/src/partcontroller.cpp
+++ b/src/partcontroller.cpp
@@ -92,9 +92,9 @@ struct ModificationData
PartController::PartController(TQWidget *parent)
: KDevPartController(parent), _editorFactory(0L), m_currentActivePart(0), m_removingActivePart(false)
{
- connect(this, TQT_SIGNAL(partRemoved(KParts::Part*)), this, TQT_SLOT(slotPartRemoved(KParts::Part* )) );
- connect(this, TQT_SIGNAL(partAdded(KParts::Part*)), this, TQT_SLOT(slotPartAdded(KParts::Part* )) );
- connect(this, TQT_SIGNAL(activePartChanged(KParts::Part*)), this, TQT_SLOT(slotActivePartChanged(KParts::Part*)));
+ connect(this, TQ_SIGNAL(partRemoved(KParts::Part*)), this, TQ_SLOT(slotPartRemoved(KParts::Part* )) );
+ connect(this, TQ_SIGNAL(partAdded(KParts::Part*)), this, TQ_SLOT(slotPartAdded(KParts::Part* )) );
+ connect(this, TQ_SIGNAL(activePartChanged(KParts::Part*)), this, TQ_SLOT(slotActivePartChanged(KParts::Part*)));
setupActions();
@@ -126,56 +126,56 @@ void PartController::setupActions()
{
TDEActionCollection *ac = TopLevel::getInstance()->main()->actionCollection();
- TDEAction* newAction = KStdAction::open(this, TQT_SLOT(slotOpenFile()), ac, "file_open");
+ TDEAction* newAction = KStdAction::open(this, TQ_SLOT(slotOpenFile()), ac, "file_open");
newAction->setToolTip( i18n("Open file") );
newAction->setWhatsThis( i18n("<b>Open file</b><p>Opens an existing file without adding it to the project.</p>") );
- m_openRecentAction = KStdAction::openRecent( this, TQT_SLOT(slotOpenRecent(const KURL&) ), ac, "file_open_recent" );
+ m_openRecentAction = KStdAction::openRecent( this, TQ_SLOT(slotOpenRecent(const KURL&) ), ac, "file_open_recent" );
m_openRecentAction->setWhatsThis(TQString("<b>%1</b><p>%2").arg(beautifyToolTip(m_openRecentAction->text())).arg(i18n("Opens recently opened file.")));
m_openRecentAction->loadEntries( kapp->config(), "RecentFiles" );
- m_saveAllFilesAction = new TDEAction(i18n("Save Al&l"), 0, this, TQT_SLOT(slotSaveAllFiles()), ac, "file_save_all");
+ m_saveAllFilesAction = new TDEAction(i18n("Save Al&l"), 0, this, TQ_SLOT(slotSaveAllFiles()), ac, "file_save_all");
m_saveAllFilesAction->setToolTip( i18n("Save all modified files") );
m_saveAllFilesAction->setWhatsThis(i18n("<b>Save all</b><p>Saves all modified files."));
m_saveAllFilesAction->setEnabled(false);
- m_revertAllFilesAction = new TDEAction(i18n("Rever&t All"), 0, this, TQT_SLOT(slotRevertAllFiles()), ac, "file_revert_all");
+ m_revertAllFilesAction = new TDEAction(i18n("Rever&t All"), 0, this, TQ_SLOT(slotRevertAllFiles()), ac, "file_revert_all");
m_revertAllFilesAction->setToolTip(i18n("Revert all changes"));
m_revertAllFilesAction->setWhatsThis(i18n("<b>Revert all</b><p>Reverts all changes in opened files. Prompts to save changes so the reversion can be canceled for each modified file."));
m_revertAllFilesAction->setEnabled(false);
- m_closeWindowAction = KStdAction::close(this, TQT_SLOT(slotCloseWindow()), ac, "file_close");
+ m_closeWindowAction = KStdAction::close(this, TQ_SLOT(slotCloseWindow()), ac, "file_close");
m_closeWindowAction->setToolTip( i18n("Close current file") );
m_closeWindowAction->setWhatsThis(TQString("<b>%1</b><p>%2").arg(beautifyToolTip(m_closeWindowAction->text())).arg(i18n("Closes current file.")));
m_closeWindowAction->setEnabled(false);
- m_closeAllWindowsAction = new TDEAction(i18n("Close All"), 0, this, TQT_SLOT(slotCloseAllWindows()), ac, "file_close_all");
+ m_closeAllWindowsAction = new TDEAction(i18n("Close All"), 0, this, TQ_SLOT(slotCloseAllWindows()), ac, "file_close_all");
m_closeAllWindowsAction->setToolTip( i18n("Close all files") );
m_closeAllWindowsAction->setWhatsThis(i18n("<b>Close all</b><p>Close all opened files."));
m_closeAllWindowsAction->setEnabled(false);
- m_closeOtherWindowsAction = new TDEAction(i18n("Close All Others"), 0, this, TQT_SLOT(slotCloseOtherWindows()), ac, "file_closeother");
+ m_closeOtherWindowsAction = new TDEAction(i18n("Close All Others"), 0, this, TQ_SLOT(slotCloseOtherWindows()), ac, "file_closeother");
m_closeOtherWindowsAction->setToolTip( i18n("Close other files") );
m_closeOtherWindowsAction->setWhatsThis(i18n("<b>Close all others</b><p>Close all opened files except current."));
m_closeOtherWindowsAction->setEnabled(false);
new TDEActionSeparator(ac, "dummy_separator");
- m_backAction = new TDEToolBarPopupAction(i18n("Back"), "back", 0, this, TQT_SLOT(slotBack()), ac, "history_back");
+ m_backAction = new TDEToolBarPopupAction(i18n("Back"), "back", 0, this, TQ_SLOT(slotBack()), ac, "history_back");
m_backAction->setEnabled( false );
m_backAction->setToolTip(i18n("Back"));
m_backAction->setWhatsThis(i18n("<b>Back</b><p>Moves backwards one step in the navigation history."));
- connect(m_backAction->popupMenu(), TQT_SIGNAL(aboutToShow()), this, TQT_SLOT(slotBackAboutToShow()));
- connect(m_backAction->popupMenu(), TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotBackPopupActivated(int)));
+ connect(m_backAction->popupMenu(), TQ_SIGNAL(aboutToShow()), this, TQ_SLOT(slotBackAboutToShow()));
+ connect(m_backAction->popupMenu(), TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotBackPopupActivated(int)));
- m_forwardAction = new TDEToolBarPopupAction(i18n("Forward"), "forward", 0, this, TQT_SLOT(slotForward()), ac, "history_forward");
+ m_forwardAction = new TDEToolBarPopupAction(i18n("Forward"), "forward", 0, this, TQ_SLOT(slotForward()), ac, "history_forward");
m_forwardAction->setEnabled( false );
m_forwardAction->setToolTip(i18n("Forward"));
m_forwardAction->setWhatsThis(i18n("<b>Forward</b><p>Moves forward one step in the navigation history."));
- connect(m_forwardAction->popupMenu(), TQT_SIGNAL(aboutToShow()), this, TQT_SLOT(slotForwardAboutToShow()));
- connect(m_forwardAction->popupMenu(), TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotForwardPopupActivated(int)));
+ connect(m_forwardAction->popupMenu(), TQ_SIGNAL(aboutToShow()), this, TQ_SLOT(slotForwardAboutToShow()));
+ connect(m_forwardAction->popupMenu(), TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotForwardPopupActivated(int)));
- m_gotoLastEditPosAction = new TDEAction( i18n("Goto Last Edit Position"), "go-bottom", 0, this, TQT_SLOT(gotoLastEditPos()), ac, "goto_last_edit_pos" );
+ m_gotoLastEditPosAction = new TDEAction( i18n("Goto Last Edit Position"), "go-bottom", 0, this, TQ_SLOT(gotoLastEditPos()), ac, "goto_last_edit_pos" );
m_gotoLastEditPosAction->setEnabled( false );
m_gotoLastEditPosAction->setToolTip( i18n("Goto Last Edit Position") );
m_gotoLastEditPosAction->setWhatsThis( i18n("<b>Goto Last Edit Position</b><p>Open the last edited file and position cursor at the point of edit") );
@@ -395,14 +395,7 @@ void PartController::editDocumentInternal( const KURL & inputUrl, int lineNum,
if ( dom != 0 )
{
// The global option specifies a fallback if the project
- // has no setting or no project is open. However for TQt4
- // projects we want to use ExternalDesigner in any case.
- if ( DomUtil::readIntEntry( *dom, "/kdevcppsupport/qt/version", 3 ) == 4 )
- {
- designerPluginPaths = DomUtil::readListEntry(*dom, "/kdevcppsupport/qt/designerpluginpaths", "path" );
- DesignerSetting = "ExternalDesigner";
- }
-
+ // has no setting or no project is open.
DesignerSetting = DomUtil::readEntry(*dom, "/kdevcppsupport/qt/designerintegration", DesignerSetting );
designerExec = DomUtil::readEntry(*dom, "/kdevcppsupport/qt/designer", designerExec );
}
@@ -581,8 +574,8 @@ void PartController::showDocument(const KURL &url, bool newWin)
{
part = new HTMLDocumentationPart;
integratePart(part,docUrl);
- connect(part, TQT_SIGNAL(fileNameChanged(KParts::ReadOnlyPart* )),
- this, TQT_SIGNAL(partURLChanged(KParts::ReadOnlyPart* )));
+ connect(part, TQ_SIGNAL(fileNameChanged(KParts::ReadOnlyPart* )),
+ this, TQ_SIGNAL(partURLChanged(KParts::ReadOnlyPart* )));
}
else
{
@@ -685,14 +678,14 @@ void PartController::integratePart(KParts::Part *part, const KURL &url,
emit loadedFile( ro_part->url() );
- connect( part, TQT_SIGNAL(modifiedOnDisc(Kate::Document*, bool, unsigned char)), this, TQT_SLOT(slotDocumentDirty(Kate::Document*, bool, unsigned char)) );
+ connect( part, TQ_SIGNAL(modifiedOnDisc(Kate::Document*, bool, unsigned char)), this, TQ_SLOT(slotDocumentDirty(Kate::Document*, bool, unsigned char)) );
// let's get notified when a document has been changed
- connect(part, TQT_SIGNAL(completed()), this, TQT_SLOT(slotUploadFinished()));
+ connect(part, TQ_SIGNAL(completed()), this, TQ_SLOT(slotUploadFinished()));
// yes, we're cheating again. this signal exists for katepart's
// Document object and our HTMLDocumentationPart
-// connect(part, TQT_SIGNAL(fileNameChanged()), this, TQT_SLOT(slotFileNameChanged()));
+// connect(part, TQ_SIGNAL(fileNameChanged()), this, TQ_SLOT(slotFileNameChanged()));
// Connect to the document's views newStatus() signal in order to keep track of the
// modified-status of the document.
@@ -704,22 +697,22 @@ void PartController::integratePart(KParts::Part *part, const KURL &url,
if (designerPart && API::getInstance()->languageSupport())
{
kdDebug() << "integrating designer part with language support" << endl;
- connect(designerPart, TQT_SIGNAL(addedFunction(DesignerType, const TQString&, Function )),
+ connect(designerPart, TQ_SIGNAL(addedFunction(DesignerType, const TQString&, Function )),
API::getInstance()->languageSupport(),
- TQT_SLOT(addFunction(DesignerType, const TQString&, Function )));
- connect(designerPart, TQT_SIGNAL(editedFunction(DesignerType, const TQString&, Function, Function )), API::getInstance()->languageSupport(),
- TQT_SLOT(editFunction(DesignerType, const TQString&, Function, Function )));
- connect(designerPart, TQT_SIGNAL(removedFunction(DesignerType, const TQString&, Function )),
+ TQ_SLOT(addFunction(DesignerType, const TQString&, Function )));
+ connect(designerPart, TQ_SIGNAL(editedFunction(DesignerType, const TQString&, Function, Function )), API::getInstance()->languageSupport(),
+ TQ_SLOT(editFunction(DesignerType, const TQString&, Function, Function )));
+ connect(designerPart, TQ_SIGNAL(removedFunction(DesignerType, const TQString&, Function )),
API::getInstance()->languageSupport(),
- TQT_SLOT(removeFunction(DesignerType, const TQString&, Function )));
- connect(designerPart, TQT_SIGNAL(editFunction(DesignerType, const TQString&, const TQString& )),
+ TQ_SLOT(removeFunction(DesignerType, const TQString&, Function )));
+ connect(designerPart, TQ_SIGNAL(editFunction(DesignerType, const TQString&, const TQString& )),
API::getInstance()->languageSupport(),
- TQT_SLOT(openFunction(DesignerType, const TQString&, const TQString& )));
- connect(designerPart, TQT_SIGNAL(editSource(DesignerType, const TQString& )),
+ TQ_SLOT(openFunction(DesignerType, const TQString&, const TQString& )));
+ connect(designerPart, TQ_SIGNAL(editSource(DesignerType, const TQString& )),
API::getInstance()->languageSupport(),
- TQT_SLOT(openSource(DesignerType, const TQString& )));
- connect(designerPart, TQT_SIGNAL(newStatus(const TQString &, int)),
- this, TQT_SLOT(slotNewDesignerStatus(const TQString &, int)));
+ TQ_SLOT(openSource(DesignerType, const TQString& )));
+ connect(designerPart, TQ_SIGNAL(newStatus(const TQString &, int)),
+ this, TQ_SLOT(slotNewDesignerStatus(const TQString &, int)));
}
}
@@ -740,14 +733,14 @@ void PartController::integrateTextEditorPart(KTextEditor::Document* doc)
if ( !doc ) return;
- connect( doc, TQT_SIGNAL(textChanged()), this, TQT_SLOT(textChanged()) );
- connect( doc, TQT_SIGNAL(fileNameChanged()),
- this, TQT_SLOT(slotDocumentUrlChanged()));
+ connect( doc, TQ_SIGNAL(textChanged()), this, TQ_SLOT(textChanged()) );
+ connect( doc, TQ_SIGNAL(fileNameChanged()),
+ this, TQ_SLOT(slotDocumentUrlChanged()));
if( doc->widget() )
{
- connect( doc->widget(), TQT_SIGNAL(dropEventPass(TQDropEvent *)),
- TopLevel::getInstance()->main(), TQT_SLOT(slotDropEvent(TQDropEvent *)) );
+ connect( doc->widget(), TQ_SIGNAL(dropEventPass(TQDropEvent *)),
+ TopLevel::getInstance()->main(), TQ_SLOT(slotDropEvent(TQDropEvent *)) );
}
if ( KTextEditor::View * view = dynamic_cast<KTextEditor::View*>( doc->widget() ) )
@@ -787,7 +780,7 @@ void PartController::integrateTextEditorPart(KTextEditor::Document* doc)
TQPtrListIterator<KTextEditor::View> it( list );
while ( it.current() )
{
- connect( it, TQT_SIGNAL( newStatus() ), this, TQT_SLOT( slotNewStatus() ) );
+ connect( it, TQ_SIGNAL( newStatus() ), this, TQ_SLOT( slotNewStatus() ) );
++it;
}
}
@@ -1334,7 +1327,7 @@ void PartController::slotActivePartChanged( KParts::Part *part )
}
updateMenuItems();
- TQTimer::singleShot( 100, this, TQT_SLOT(slotWaitForFactoryHack()) );
+ TQTimer::singleShot( 100, this, TQ_SLOT(slotWaitForFactoryHack()) );
}
void PartController::showPart( KParts::Part* part, const TQString& name, const TQString& shortDescription )
@@ -1386,7 +1379,7 @@ void PartController::slotDocumentDirty( Kate::Document * d, bool isModified, uns
p->doc = doc;
p->isModified = isModified;
p->reason = reason;
- KDevJobTimer::singleShot( 0, this, TQT_SLOT(slotDocumentDirtyStepTwo(void*)), p );
+ KDevJobTimer::singleShot( 0, this, TQ_SLOT(slotDocumentDirtyStepTwo(void*)), p );
}
}
@@ -1522,7 +1515,7 @@ void PartController::slotNewStatus( )
{
kdDebug(9000) << k_funcinfo << endl;
- TQObject * senderobj = TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>( sender() ));
+ TQObject * senderobj = const_cast<TQObject*>(sender());
KTextEditor::View * view = dynamic_cast<KTextEditor::View*>( senderobj );
if ( view )
{
@@ -1761,7 +1754,7 @@ void PartController::slotWaitForFactoryHack( )
{
if ( !activePart()->factory() )
{
- TQTimer::singleShot( 100, this, TQT_SLOT(slotWaitForFactoryHack()) );
+ TQTimer::singleShot( 100, this, TQ_SLOT(slotWaitForFactoryHack()) );
return;
}
else
@@ -1848,7 +1841,7 @@ void PartController::gotoLastEditPos()
void PartController::slotDocumentUrlChanged()
{
- TQObject *obj = TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()));
+ TQObject *obj = const_cast<TQObject*>(sender());
KTextEditor::Document *doc = dynamic_cast<KTextEditor::Document*>( obj );
if (!doc)
return;
diff --git a/src/partcontroller.h b/src/partcontroller.h
index 2e621c38..e5fc872b 100644
--- a/src/partcontroller.h
+++ b/src/partcontroller.h
@@ -42,7 +42,7 @@ Part controler implementation.
*/
class PartController : public KDevPartController
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/src/plugincontroller.cpp b/src/plugincontroller.cpp
index 30aa9171..7166ab34 100644
--- a/src/plugincontroller.cpp
+++ b/src/plugincontroller.cpp
@@ -244,8 +244,8 @@ void PluginController::integratePart(KXMLGUIClient *part)
Core::setupShourtcutTips(part);
TopLevel::getInstance()->main()->guiFactory()->addClient(part);
- connect( part->actionCollection(), TQT_SIGNAL( actionStatusText( const TQString & ) ),
- TopLevel::getInstance()->main()->actionCollection(), TQT_SIGNAL( actionStatusText( const TQString & ) ) );
+ connect( part->actionCollection(), TQ_SIGNAL( actionStatusText( const TQString & ) ),
+ TopLevel::getInstance()->main()->actionCollection(), TQ_SIGNAL( actionStatusText( const TQString & ) ) );
}
void PluginController::integrateAndRememberPart(const TQString &name, KDevPlugin *part)
diff --git a/src/plugincontroller.h b/src/plugincontroller.h
index d5c3f423..dc721698 100644
--- a/src/plugincontroller.h
+++ b/src/plugincontroller.h
@@ -22,7 +22,7 @@ Loads and unloads plugins.
*/
class PluginController : public KDevPluginController
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/src/pluginselectdialog.cpp b/src/pluginselectdialog.cpp
index 2f896b51..f7e92089 100644
--- a/src/pluginselectdialog.cpp
+++ b/src/pluginselectdialog.cpp
@@ -51,8 +51,8 @@ PluginSelectDialog::PluginSelectDialog(TQWidget* parent, const char* name, bool
plugin_list->addColumn("");
plugin_list->header()->hide();
- connect( plugin_list, TQT_SIGNAL( selectionChanged( TQListViewItem * ) ), this, TQT_SLOT( itemSelected( TQListViewItem * ) ) );
- connect( urllabel, TQT_SIGNAL( leftClickedURL( const TQString & ) ), this, TQT_SLOT( openURL( const TQString & ) ) );
+ connect( plugin_list, TQ_SIGNAL( selectionChanged( TQListViewItem * ) ), this, TQ_SLOT( itemSelected( TQListViewItem * ) ) );
+ connect( urllabel, TQ_SIGNAL( leftClickedURL( const TQString & ) ), this, TQ_SLOT( openURL( const TQString & ) ) );
init();
}
@@ -177,5 +177,3 @@ TQStringList PluginSelectDialog::unselectedPluginNames( )
#include "pluginselectdialog.moc"
-
-// kate: space-indent off; indent-width 4; tab-width 4; show-tabs off;
diff --git a/src/pluginselectdialog.h b/src/pluginselectdialog.h
index d27f2940..fc00c5f7 100644
--- a/src/pluginselectdialog.h
+++ b/src/pluginselectdialog.h
@@ -19,7 +19,7 @@ class PluginController;
class PluginSelectDialog : public PluginSelectDialogBase
{
- Q_OBJECT
+ TQ_OBJECT
public:
@@ -39,5 +39,3 @@ protected slots:
};
#endif
-
-// kate: space-indent off; indent-width 4; tab-width 4; show-tabs off;
diff --git a/src/pluginselectdialogbase.ui b/src/pluginselectdialogbase.ui
index 8f53d109..81795f29 100644
--- a/src/pluginselectdialogbase.ui
+++ b/src/pluginselectdialogbase.ui
@@ -169,9 +169,9 @@
<slot>saveAsDefault()</slot>
</connection>
</connections>
-<Q_SLOTS>
+<slots>
<slot access="protected">saveAsDefault()</slot>
-</Q_SLOTS>
+</slots>
<layoutdefaults spacing="6" margin="11"/>
<includes>
<include location="global" impldecl="in implementation">kurllabel.h</include>
diff --git a/src/profileengine/editor/profileeditor.h b/src/profileengine/editor/profileeditor.h
index 45763d98..8a154a7b 100644
--- a/src/profileengine/editor/profileeditor.h
+++ b/src/profileengine/editor/profileeditor.h
@@ -28,7 +28,7 @@ class TQListViewItem;
class TDEListViewItem;
class ProfileEditor : public ProfileEditorBase {
- Q_OBJECT
+ TQ_OBJECT
public:
ProfileEditor(TQWidget *parent = 0, const char *name = 0);
diff --git a/src/profileengine/editor/profileeditorbase.ui b/src/profileengine/editor/profileeditorbase.ui
index 36acd44d..b9d17720 100644
--- a/src/profileengine/editor/profileeditorbase.ui
+++ b/src/profileengine/editor/profileeditorbase.ui
@@ -649,7 +649,7 @@
<tabstop>disabledList</tabstop>
<tabstop>pluginsView</tabstop>
</tabstops>
-<Q_SLOTS>
+<slots>
<slot>profileExecuted(TQListViewItem *item)</slot>
<slot>propertyExecuted(TQListBoxItem *item)</slot>
<slot>addProfile()</slot>
@@ -660,7 +660,7 @@
<slot>delEnabled()</slot>
<slot>addDisabled()</slot>
<slot>delDisabled()</slot>
-</Q_SLOTS>
+</slots>
<layoutdefaults spacing="6" margin="11"/>
<includes>
<include location="global" impldecl="in implementation">kcombobox.h</include>
diff --git a/src/projectmanager.cpp b/src/projectmanager.cpp
index 19a88d78..adebaee4 100644
--- a/src/projectmanager.cpp
+++ b/src/projectmanager.cpp
@@ -94,14 +94,14 @@ void ProjectManager::createActions( TDEActionCollection* ac )
TDEAction *action;
action = new TDEAction(i18n("&Open Project..."), "project_open", 0,
- this, TQT_SLOT(slotOpenProject()),
+ this, TQ_SLOT(slotOpenProject()),
ac, "project_open");
action->setToolTip( i18n("Open project"));
action->setWhatsThis(i18n("<b>Open project</b><p>Opens a KDevelop3 or KDevelop2 project."));
m_openRecentProjectAction =
new TDERecentFilesAction(i18n("Open &Recent Project"), 0,
- this, TQT_SLOT(loadProject(const KURL &)),
+ this, TQ_SLOT(loadProject(const KURL &)),
ac, "project_open_recent");
m_openRecentProjectAction->setToolTip(i18n("Open recent project"));
m_openRecentProjectAction->setWhatsThis(i18n("<b>Open recent project</b><p>Opens recently opened project."));
@@ -109,14 +109,14 @@ void ProjectManager::createActions( TDEActionCollection* ac )
m_closeProjectAction =
new TDEAction(i18n("C&lose Project"), "window-close",0,
- this, TQT_SLOT(closeProject()),
+ this, TQ_SLOT(closeProject()),
ac, "project_close");
m_closeProjectAction->setEnabled(false);
m_closeProjectAction->setToolTip(i18n("Close project"));
m_closeProjectAction->setWhatsThis(i18n("<b>Close project</b><p>Closes the current project."));
m_projectOptionsAction = new TDEAction(i18n("Project &Options"), "configure", 0,
- this, TQT_SLOT(slotProjectOptions()),
+ this, TQ_SLOT(slotProjectOptions()),
ac, "project_options" );
m_projectOptionsAction->setToolTip(i18n("Project options"));
m_projectOptionsAction->setWhatsThis(i18n("<b>Project options</b><p>Lets you customize project options."));
@@ -151,7 +151,7 @@ void ProjectManager::slotProjectOptions()
TQVBox *box = dlg.addVBoxPage( i18n("General"), i18n("General"), BarIcon( "tdevelop", TDEIcon::SizeMedium ) );
GeneralInfoWidget *g = new GeneralInfoWidget(*API::getInstance()->projectDom(), box, "general informations widget");
- connect (&dlg, TQT_SIGNAL(okClicked()), g, TQT_SLOT(accept()));
+ connect (&dlg, TQ_SIGNAL(okClicked()), g, TQ_SLOT(accept()));
TDEConfig *config = kapp->config();
config->setGroup("Project Settings Dialog");
@@ -239,7 +239,7 @@ bool ProjectManager::loadProject(const KURL &projectURL)
m_info = new ProjectInfo;
m_info->m_projectURL = url;
- TQTimer::singleShot( 0, this, TQT_SLOT(slotLoadProject()) );
+ TQTimer::singleShot( 0, this, TQ_SLOT(slotLoadProject()) );
// no one cares about this value
return true;
diff --git a/src/projectmanager.h b/src/projectmanager.h
index 3a92409e..e3df8b05 100644
--- a/src/projectmanager.h
+++ b/src/projectmanager.h
@@ -39,7 +39,7 @@ Loads and unloads projects.
*/
class ProjectManager : public TQObject, public KXMLGUIClient
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/src/projectsession.cpp b/src/projectsession.cpp
index afdaf0b5..272258dd 100644
--- a/src/projectsession.cpp
+++ b/src/projectsession.cpp
@@ -118,7 +118,7 @@ bool ProjectSession::restoreFromFile( const TQString & sessionFileName, const TQ
++it;
}
- TQTimer::singleShot( 0, this, TQT_SLOT(loadDocument()) );
+ TQTimer::singleShot( 0, this, TQ_SLOT(loadDocument()) );
return true;
}
@@ -444,7 +444,7 @@ void ProjectSession::loadDocument( )
_docDataList.pop_front();
loadDocument();
- //TQTimer::singleShot( 0, this, TQT_SLOT(loadDocument()) );
+ //TQTimer::singleShot( 0, this, TQ_SLOT(loadDocument()) );
}
}
diff --git a/src/projectsession.h b/src/projectsession.h
index e386bdbc..a5b3ab38 100644
--- a/src/projectsession.h
+++ b/src/projectsession.h
@@ -34,7 +34,7 @@ class KDevPlugin;
**/
class ProjectSession : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
// methods
public:
diff --git a/src/settingswidget.ui b/src/settingswidget.ui
index f43efe86..15b00c75 100644
--- a/src/settingswidget.ui
+++ b/src/settingswidget.ui
@@ -439,9 +439,6 @@
<property name="text">
<string>Directory &amp;navigation messages</string>
</property>
- <property name="accel">
- <string>Alt+N</string>
- </property>
<property name="toolTip" stdset="0">
<string>Check this if you want to know what directory make is in</string>
</property>
diff --git a/src/simplemainwindow.cpp b/src/simplemainwindow.cpp
index 1108a299..b18f4cb5 100644
--- a/src/simplemainwindow.cpp
+++ b/src/simplemainwindow.cpp
@@ -61,11 +61,11 @@ SimpleMainWindow::SimpleMainWindow(TQWidget* parent, const char *name)
:DMainWindow(parent, name)
{
resize(800, 600); // starts tdevelop at 800x600 the first time
- m_mainWindowShare = new MainWindowShare(TQT_TQOBJECT(this));
+ m_mainWindowShare = new MainWindowShare(this);
- connect(m_bottomDock, TQT_SIGNAL(hidden()), TQT_TQOBJECT(this), TQT_SLOT(raiseEditor()));
- connect(m_leftDock, TQT_SIGNAL(hidden()), TQT_TQOBJECT(this), TQT_SLOT(raiseEditor()));
- connect(m_rightDock, TQT_SIGNAL(hidden()), TQT_TQOBJECT(this), TQT_SLOT(raiseEditor()));
+ connect(m_bottomDock, TQ_SIGNAL(hidden()), this, TQ_SLOT(raiseEditor()));
+ connect(m_leftDock, TQ_SIGNAL(hidden()), this, TQ_SLOT(raiseEditor()));
+ connect(m_rightDock, TQ_SIGNAL(hidden()), this, TQ_SLOT(raiseEditor()));
}
SimpleMainWindow::~ SimpleMainWindow( )
@@ -97,7 +97,7 @@ void SimpleMainWindow::init()
if (help_menu)
{
help_menu->insertItem(SmallIconSet("contents"), i18n("TDevelop &Programming Handbook"),
- TQT_TQOBJECT(this), TQT_SLOT(slotProgrammingHandbook()), 0, -1, 1);
+ this, TQ_SLOT(slotProgrammingHandbook()), 0, -1, 1);
}
menuBar()->setEnabled( false );
@@ -116,19 +116,19 @@ void SimpleMainWindow::init()
i18n("Could Not Find Plugins") );
}
- connect(Core::getInstance(), TQT_SIGNAL(coreInitialized()), TQT_TQOBJECT(this), TQT_SLOT(slotCoreInitialized()));
- connect(Core::getInstance(), TQT_SIGNAL(projectOpened()), TQT_TQOBJECT(this), TQT_SLOT(projectOpened()));
- connect(Core::getInstance(), TQT_SIGNAL(projectClosed()), TQT_TQOBJECT(this), TQT_SLOT(projectClosed()));
- connect(Core::getInstance(), TQT_SIGNAL(contextMenu(TQPopupMenu *, const Context *)),
- TQT_TQOBJECT(this), TQT_SLOT(contextMenu(TQPopupMenu *, const Context *)));
- connect(PartController::getInstance(), TQT_SIGNAL(partURLChanged(KParts::ReadOnlyPart *)),
- TQT_TQOBJECT(this), TQT_SLOT(slotPartURLChanged(KParts::ReadOnlyPart * )));
- connect(PartController::getInstance(), TQT_SIGNAL(activePartChanged(KParts::Part*)),
- TQT_TQOBJECT(this), TQT_SLOT(activePartChanged(KParts::Part*)));
+ connect(Core::getInstance(), TQ_SIGNAL(coreInitialized()), this, TQ_SLOT(slotCoreInitialized()));
+ connect(Core::getInstance(), TQ_SIGNAL(projectOpened()), this, TQ_SLOT(projectOpened()));
+ connect(Core::getInstance(), TQ_SIGNAL(projectClosed()), this, TQ_SLOT(projectClosed()));
+ connect(Core::getInstance(), TQ_SIGNAL(contextMenu(TQPopupMenu *, const Context *)),
+ this, TQ_SLOT(contextMenu(TQPopupMenu *, const Context *)));
+ connect(PartController::getInstance(), TQ_SIGNAL(partURLChanged(KParts::ReadOnlyPart *)),
+ this, TQ_SLOT(slotPartURLChanged(KParts::ReadOnlyPart * )));
+ connect(PartController::getInstance(), TQ_SIGNAL(activePartChanged(KParts::Part*)),
+ this, TQ_SLOT(activePartChanged(KParts::Part*)));
connect(PartController::getInstance(),
- TQT_SIGNAL(documentChangedState(const KURL &, DocumentState)),
- TQT_TQOBJECT(this), TQT_SLOT(documentChangedState(const KURL&, DocumentState)));
+ TQ_SIGNAL(documentChangedState(const KURL &, DocumentState)),
+ this, TQ_SLOT(documentChangedState(const KURL&, DocumentState)));
loadSettings();
}
@@ -413,65 +413,65 @@ void SimpleMainWindow::createFramework()
{
PartController::createInstance( this );
- connect(PartController::getInstance(), TQT_SIGNAL(activePartChanged(KParts::Part*)),
- TQT_TQOBJECT(this), TQT_SLOT(createGUI(KParts::Part*)));
+ connect(PartController::getInstance(), TQ_SIGNAL(activePartChanged(KParts::Part*)),
+ this, TQ_SLOT(createGUI(KParts::Part*)));
}
void SimpleMainWindow::createActions()
{
m_raiseEditor = new TDEAction(i18n("Raise &Editor"), ALT+Key_C,
- TQT_TQOBJECT(this), TQT_SLOT(raiseEditor()), actionCollection(), "raise_editor");
+ this, TQ_SLOT(raiseEditor()), actionCollection(), "raise_editor");
m_raiseEditor->setToolTip(i18n("Raise editor"));
m_raiseEditor->setWhatsThis(i18n("<b>Raise editor</b><p>Focuses the editor."));
m_lowerAllDocks = new TDEAction(i18n("Lower All Docks"), CTRL+SHIFT+Key_C,
- TQT_TQOBJECT(this), TQT_SLOT(lowerAllDocks()), actionCollection(), "lower_all_docks");
+ this, TQ_SLOT(lowerAllDocks()), actionCollection(), "lower_all_docks");
- new TDEAction(i18n("Switch to next TabWidget"), 0, TQT_TQOBJECT(this),
- TQT_SLOT(switchToNextTabWidget()), actionCollection(), "switch_to_next_tabwidget" );
+ new TDEAction(i18n("Switch to next TabWidget"), 0, this,
+ TQ_SLOT(switchToNextTabWidget()), actionCollection(), "switch_to_next_tabwidget" );
m_splitHor = new TDEAction(i18n("Split &Horizontal"), CTRL+SHIFT+Key_T,
- TQT_TQOBJECT(this), TQT_SLOT(slotSplitHorizontalBase()), actionCollection(), "split_h");
+ this, TQ_SLOT(slotSplitHorizontalBase()), actionCollection(), "split_h");
m_splitHor->setIcon("view_top_bottom");
m_splitVer = new TDEAction(i18n("Split &Vertical"), CTRL+SHIFT+Key_L,
- TQT_TQOBJECT(this), TQT_SLOT(slotSplitVerticalBase()), actionCollection(), "split_v");
+ this, TQ_SLOT(slotSplitVerticalBase()), actionCollection(), "split_v");
m_splitVer->setIcon("view_left_right");
m_splitHor1 = new TDEAction(i18n("Split &Horizontal"), 0,
- TQT_TQOBJECT(this), TQT_SLOT(slotSplitHorizontal()), actionCollection(), "split_h1");
+ this, TQ_SLOT(slotSplitHorizontal()), actionCollection(), "split_h1");
m_splitHor1->setIcon("view_top_bottom");
m_splitVer1 = new TDEAction(i18n("Split &Vertical"), 0,
- TQT_TQOBJECT(this), TQT_SLOT(slotSplitVertical()), actionCollection(), "split_v1");
+ this, TQ_SLOT(slotSplitVertical()), actionCollection(), "split_v1");
m_splitVer1->setIcon("view_left_right");
m_splitHor2 = new TDEAction(i18n("Split &Horizontal and Open"), 0,
- TQT_TQOBJECT(this), TQT_SLOT(slotSplitHorizontal()), actionCollection(), "split_h2");
+ this, TQ_SLOT(slotSplitHorizontal()), actionCollection(), "split_h2");
m_splitHor2->setIcon("view_top_bottom");
m_splitVer2 = new TDEAction(i18n("Split &Vertical and Open"), 0,
- TQT_TQOBJECT(this), TQT_SLOT(slotSplitVertical()), actionCollection(), "split_v2");
+ this, TQ_SLOT(slotSplitVertical()), actionCollection(), "split_v2");
m_splitVer2->setIcon("view_left_right");
m_raiseLeftDock = new TDEAction(i18n("Switch Left Dock"), CTRL+SHIFT+ALT+Key_L,
- TQT_TQOBJECT(this), TQT_SLOT(raiseLeftDock()), actionCollection(), "switch_left_dock");
+ this, TQ_SLOT(raiseLeftDock()), actionCollection(), "switch_left_dock");
m_raiseRightDock = new TDEAction(i18n("Switch Right Dock"), CTRL+SHIFT+ALT+Key_R,
- TQT_TQOBJECT(this), TQT_SLOT(raiseRightDock()), actionCollection(), "switch_right_dock");
+ this, TQ_SLOT(raiseRightDock()), actionCollection(), "switch_right_dock");
m_raiseBottomDock = new TDEAction(i18n("Switch Bottom Dock"), CTRL+SHIFT+ALT+Key_B,
- TQT_TQOBJECT(this), TQT_SLOT(raiseBottomDock()), actionCollection(), "switch_bottom_dock");
+ this, TQ_SLOT(raiseBottomDock()), actionCollection(), "switch_bottom_dock");
- KStdAction::configureToolbars(TQT_TQOBJECT(this), TQT_SLOT(configureToolbars()),
+ KStdAction::configureToolbars(this, TQ_SLOT(configureToolbars()),
actionCollection(), "set_configure_toolbars");
m_mainWindowShare->createActions();
- connect(m_mainWindowShare, TQT_SIGNAL(gotoNextWindow()), TQT_TQOBJECT(this), TQT_SLOT(gotoNextWindow()));
- connect(m_mainWindowShare, TQT_SIGNAL(gotoPreviousWindow()), TQT_TQOBJECT(this), TQT_SLOT(gotoPreviousWindow()));
- connect(m_mainWindowShare, TQT_SIGNAL(gotoFirstWindow()), TQT_TQOBJECT(this), TQT_SLOT(gotoFirstWindow()));
- connect(m_mainWindowShare, TQT_SIGNAL(gotoLastWindow()), TQT_TQOBJECT(this), TQT_SLOT(gotoLastWindow()));
+ connect(m_mainWindowShare, TQ_SIGNAL(gotoNextWindow()), this, TQ_SLOT(gotoNextWindow()));
+ connect(m_mainWindowShare, TQ_SIGNAL(gotoPreviousWindow()), this, TQ_SLOT(gotoPreviousWindow()));
+ connect(m_mainWindowShare, TQ_SIGNAL(gotoFirstWindow()), this, TQ_SLOT(gotoFirstWindow()));
+ connect(m_mainWindowShare, TQ_SIGNAL(gotoLastWindow()), this, TQ_SLOT(gotoLastWindow()));
}
void SimpleMainWindow::raiseEditor()
@@ -588,9 +588,9 @@ void SimpleMainWindow::documentChangedState(const KURL &url, DocumentState state
void SimpleMainWindow::closeTab()
{
// actionCollection()->action("file_close")->activate();
- if (TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->isA(TQTOOLBUTTON_OBJECT_NAME_STRING) && TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->parent()->isA("DTabWidget"))
+ if (sender()->isA("TQToolButton") && sender()->parent()->isA("DTabWidget"))
{
- DTabWidget *tab = (DTabWidget*)TQT_TQWIDGET(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->parent();
+ DTabWidget *tab = (DTabWidget*)sender()->parent();
if (tab && tab->currentPage())
closeTab(tab->currentPage());
}
@@ -598,7 +598,7 @@ void SimpleMainWindow::closeTab()
void SimpleMainWindow::tabContext(TQWidget *w, const TQPoint &p)
{
- DTabWidget *tabWidget = static_cast<DTabWidget*>(TQT_TQWIDGET(const_cast<TQT_BASE_OBJECT_NAME*>(sender())));
+ DTabWidget *tabWidget = static_cast<DTabWidget*>(const_cast<TQObject*>(sender()));
if (!tabWidget)
return;
@@ -644,7 +644,7 @@ void SimpleMainWindow::tabContext(TQWidget *w, const TQPoint &p)
++it;
}
- connect(&tabMenu, TQT_SIGNAL(activated(int)), TQT_TQOBJECT(this), TQT_SLOT(tabContextActivated(int)));
+ connect(&tabMenu, TQ_SIGNAL(activated(int)), this, TQ_SLOT(tabContextActivated(int)));
tabMenu.exec(p);
}
@@ -679,7 +679,7 @@ void SimpleMainWindow::configureToolbars()
{
saveMainWindowSettings(TDEGlobal::config(), "SimpleMainWindow");
KEditToolbar dlg(factory());
- connect(&dlg, TQT_SIGNAL(newToolbarConfig()), TQT_TQOBJECT(this), TQT_SLOT(slotNewToolbarConfig()));
+ connect(&dlg, TQ_SIGNAL(newToolbarConfig()), this, TQ_SLOT(slotNewToolbarConfig()));
dlg.exec();
}
@@ -704,7 +704,7 @@ bool SimpleMainWindow::queryExit()
void SimpleMainWindow::setupWindowMenu()
{
// get the xmlgui created one instead
- m_windowMenu = static_cast<TQPopupMenu*>(TQT_TQWIDGET(main()->child("window", "TDEPopupMenu")));
+ m_windowMenu = static_cast<TQPopupMenu*>(main()->child("window", "TDEPopupMenu"));
if (!m_windowMenu)
{
@@ -718,8 +718,8 @@ void SimpleMainWindow::setupWindowMenu()
actionCollection()->action("file_close_all")->plug(m_windowMenu);
actionCollection()->action("file_closeother")->plug(m_windowMenu);
- TQObject::connect(m_windowMenu, TQT_SIGNAL(activated(int)), TQT_TQOBJECT(this), TQT_SLOT(openURL(int)));
- TQObject::connect(m_windowMenu, TQT_SIGNAL(aboutToShow()), TQT_TQOBJECT(this), TQT_SLOT(fillWindowMenu()));
+ TQObject::connect(m_windowMenu, TQ_SIGNAL(activated(int)), this, TQ_SLOT(openURL(int)));
+ TQObject::connect(m_windowMenu, TQ_SIGNAL(aboutToShow()), this, TQ_SLOT(fillWindowMenu()));
}
void SimpleMainWindow::openURL(int w)
@@ -772,12 +772,12 @@ void SimpleMainWindow::fillWindowMenu()
int i = 0;
if (list.count() > 0)
- m_windowList << tqMakePair(m_windowMenu->insertSeparator(), KURL());
+ m_windowList << qMakePair(m_windowMenu->insertSeparator(), KURL());
while (itt != list.end())
{
temp = m_windowMenu->insertItem( i < 10 ? TQString("&%1 %2").arg(i).arg((*itt).fileName()) : (*itt).fileName() );
- m_windowList << tqMakePair(temp, *itt);
+ m_windowList << qMakePair(temp, *itt);
++i;
++itt;
}
@@ -1023,5 +1023,3 @@ void SimpleMainWindow::slotProgrammingHandbook()
}
#include "simplemainwindow.moc"
-
-// kate: space-indent on; indent-width 4; tab-width 4; replace-tabs on
diff --git a/src/simplemainwindow.h b/src/simplemainwindow.h
index cc7d86f4..e0328b1d 100644
--- a/src/simplemainwindow.h
+++ b/src/simplemainwindow.h
@@ -35,7 +35,7 @@ namespace KParts {
}
class SimpleMainWindow: public DMainWindow, public KDevMainWindow {
- Q_OBJECT
+ TQ_OBJECT
public:
SimpleMainWindow(TQWidget* parent = 0, const char *name = 0);
@@ -136,7 +136,4 @@ private:
KURL::List m_splitURLs;
};
-
-// kate: space-indent on; indent-width 4; tab-width 4; replace-tabs on
-
#endif
diff --git a/src/splashscreen.cpp b/src/splashscreen.cpp
index 205656bd..b2e0f13a 100644
--- a/src/splashscreen.cpp
+++ b/src/splashscreen.cpp
@@ -13,7 +13,7 @@
KDevSplashScreen::KDevSplashScreen(const TQPixmap& pixmap, WFlags f) : TQSplashScreen(pixmap, f)
{
TQTimer *timer = new TQTimer( this );
- TQObject::connect(timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(animate()));
+ TQObject::connect(timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(animate()));
timer->start(150);
state = 0;
diff --git a/src/splashscreen.h b/src/splashscreen.h
index b8d5563c..3206b923 100644
--- a/src/splashscreen.h
+++ b/src/splashscreen.h
@@ -13,7 +13,7 @@ Splash screen.
*/
class KDevSplashScreen : public TQSplashScreen
{
-Q_OBJECT
+TQ_OBJECT
public:
diff --git a/src/statusbar.cpp b/src/statusbar.cpp
index b4e11769..44cb4b70 100644
--- a/src/statusbar.cpp
+++ b/src/statusbar.cpp
@@ -39,8 +39,8 @@ KDevStatusBar::KDevStatusBar(TQWidget *parent, const char *name)
_status->setAlignment(TQWidget::AlignCenter);
addWidget(_status, 0, true);
- connect(PartController::getInstance(), TQT_SIGNAL(activePartChanged(KParts::Part*)),
- this, TQT_SLOT(activePartChanged(KParts::Part*)));
+ connect(PartController::getInstance(), TQ_SIGNAL(activePartChanged(KParts::Part*)),
+ this, TQ_SLOT(activePartChanged(KParts::Part*)));
}
@@ -60,14 +60,14 @@ void KDevStatusBar::activePartChanged(KParts::Part *part)
{
if ((_viewmsgIface = dynamic_cast<KTextEditor::ViewStatusMsgInterface*>(part->widget())))
{
- connect( part->widget(), TQT_SIGNAL( viewStatusMsg( const TQString & ) ),
- this, TQT_SLOT( setStatus( const TQString & ) ) );
+ connect( part->widget(), TQ_SIGNAL( viewStatusMsg( const TQString & ) ),
+ this, TQ_SLOT( setStatus( const TQString & ) ) );
_status->show();
}
else if ((_cursorIface = dynamic_cast<KTextEditor::ViewCursorInterface*>(part->widget())))
{
- connect(part->widget(), TQT_SIGNAL(cursorPositionChanged()), this, TQT_SLOT(cursorPositionChanged()));
+ connect(part->widget(), TQ_SIGNAL(cursorPositionChanged()), this, TQ_SLOT(cursorPositionChanged()));
_status->show();
cursorPositionChanged();
diff --git a/src/statusbar.h b/src/statusbar.h
index 2f5370ef..4a61a07e 100644
--- a/src/statusbar.h
+++ b/src/statusbar.h
@@ -26,7 +26,7 @@ Status bar.
*/
class KDevStatusBar : public KStatusBar
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/src/tdeconf_update/Makefile.am b/src/tdeconf_update/Makefile.am
index 32327d8d..56b1608a 100644
--- a/src/tdeconf_update/Makefile.am
+++ b/src/tdeconf_update/Makefile.am
@@ -1,4 +1,4 @@
-AM_CPPFLAGS = -DKDE_NO_COMPAT -DTQT_NO_COMPAT $(all_includes)
+AM_CPPFLAGS = -DKDE_NO_COMPAT $(all_includes)
update_DATA = kdev-gen-settings.upd
updatedir = $(kde_datadir)/tdeconf_update
@@ -13,6 +13,3 @@ tdeconfdir = $(libdir)/tdeconf_update_bin
kdev_gen_settings_tdeconf_update_SOURCES = kdev-gen-settings-tdeconf_update.cpp
kdev_gen_settings_tdeconf_update_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_TQT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_TDEIO) -ltdetexteditor
kdev_gen_settings_tdeconf_update_LDADD = $(LIB_TQT)
-
-# vim: set noet:
-
diff --git a/src/tdeconf_update/kdev-gen-settings-tdeconf_update.cpp b/src/tdeconf_update/kdev-gen-settings-tdeconf_update.cpp
index 63e4a834..b920e7ab 100644
--- a/src/tdeconf_update/kdev-gen-settings-tdeconf_update.cpp
+++ b/src/tdeconf_update/kdev-gen-settings-tdeconf_update.cpp
@@ -108,6 +108,3 @@ int main()
return 0;
}
-
-// vim: set noet ts=4 sts=4 sw=4:
-