diff --git a/buildtools/ada/adaprojectoptionsdlg.cpp b/buildtools/ada/adaprojectoptionsdlg.cpp
index 28549efc..3a0624cb 100644
--- a/buildtools/ada/adaprojectoptionsdlg.cpp
+++ b/buildtools/ada/adaprojectoptionsdlg.cpp
@@ -27,7 +27,7 @@
AdaProjectOptionsDlg::AdaProjectOptionsDlg(AdaProjectPart *part, TQWidget* parent, const char* name, WFlags fl)
: AdaProjectOptionsDlgBase(parent,name, fl), m_part(part)
{
- config_combo->setValidator(new TQRegExpValidator(TQRegExp("^\\D.*"), TQT_TQOBJECT(this)));
+ config_combo->setValidator(new TQRegExpValidator(TQRegExp("^\\D.*"), this));
offers = TDETrader::self()->query("TDevelop/CompilerOptions", "[X-TDevelop-Language] == 'Ada'");
diff --git a/buildtools/autotools/autodetailsview.cpp b/buildtools/autotools/autodetailsview.cpp
index 936f7eb1..8feeef70 100644
--- a/buildtools/autotools/autodetailsview.cpp
+++ b/buildtools/autotools/autodetailsview.cpp
@@ -177,7 +177,7 @@ void AutoDetailsView::initActions()
TDEActionCollection * actions = new TDEActionCollection( this );
targetOptionsAction = new AutoToolsAction( i18n( "Options..." ), "configure", 0,
- TQT_TQOBJECT(this), TQT_SLOT( slotTargetOptions() ), actions,
+ this, TQT_SLOT( slotTargetOptions() ), actions,
"target options" );
targetOptionsAction->setWhatsThis(i18n("Options
Target options dialog that "
"provides settings for linker flags and lists "
@@ -188,7 +188,7 @@ void AutoDetailsView::initActions()
TQToolTip::add( m_button1, tr2i18n( "Create New File..." ) );
addNewFileAction = new AutoToolsAction( i18n( "Create New File..." ), "document-new", 0,
- TQT_TQOBJECT(this), TQT_SLOT( slotAddNewFile() ), actions,
+ this, TQT_SLOT( slotAddNewFile() ), actions,
"add new file" );
addNewFileAction->setWhatsThis(i18n("Create new file
Creates a new file and "
"adds it to a currently selected target."));
@@ -197,7 +197,7 @@ void AutoDetailsView::initActions()
TQToolTip::add( m_button2, tr2i18n( "Add Existing Files..." ) );
addExistingFileAction = new AutoToolsAction( i18n( "Add Existing Files..." ), "fileimport", 0,
- TQT_TQOBJECT(this), TQT_SLOT( slotAddExistingFile() ), actions,
+ this, TQT_SLOT( slotAddExistingFile() ), actions,
"add existing file" );
addExistingFileAction->setWhatsThis(i18n("Add existing files
Adds existing "
"file to a currently selected target. Header "
@@ -208,12 +208,12 @@ void AutoDetailsView::initActions()
addExistingFileAction->setEnabled( false );
addIconAction = new TDEAction( i18n( "Add Icon..." ), "iconadd_tdevelop", 0,
- TQT_TQOBJECT(this), TQT_SLOT( slotAddIcon() ), actions, "add icon" );
+ this, TQT_SLOT( slotAddIcon() ), actions, "add icon" );
addIconAction->setWhatsThis(i18n("Add icon
Adds an icon to a KDEICON target."));
TQToolTip::add( m_button4, tr2i18n( "Build Target"));
buildTargetAction = new AutoToolsAction( i18n( "Build Target..." ), "launch", 0,
- TQT_TQOBJECT(this), TQT_SLOT( slotBuildTarget() ), actions,
+ this, TQT_SLOT( slotBuildTarget() ), actions,
"build target" );
buildTargetAction->setWhatsThis(i18n("Build target
Constructs a series of "
"make commands to build the selected target. "
@@ -223,7 +223,7 @@ void AutoDetailsView::initActions()
TQToolTip::add( m_button5, tr2i18n( "Execute Target..."));
executeTargetAction = new AutoToolsAction( i18n( "Execute Target..." ), "application-x-executable", 0,
- TQT_TQOBJECT(this), TQT_SLOT( slotExecuteTarget() ), actions,
+ this, TQT_SLOT( slotExecuteTarget() ), actions,
"execute target" );
executeTargetAction->setWhatsThis(i18n("Execute target
Executes the target "
"and tries to build in case it is not built."));
@@ -231,7 +231,7 @@ void AutoDetailsView::initActions()
executeTargetAction->setEnabled( false );
setActiveTargetAction = new TDEAction( i18n( "Make Target Active" ), "", 0,
- TQT_TQOBJECT(this), TQT_SLOT( slotSetActiveTarget() ), actions,
+ this, TQT_SLOT( slotSetActiveTarget() ), actions,
"set active target" );
setActiveTargetAction->setWhatsThis(i18n("Make target active
Marks the "
"currently selected target as 'active'. New "
@@ -241,7 +241,7 @@ void AutoDetailsView::initActions()
"command builds it."));
TQToolTip::add( m_button3, tr2i18n( "Remove"));
- removeDetailAction = new AutoToolsAction( i18n( "Remove" ), "edit-delete", 0, TQT_TQOBJECT(this),
+ removeDetailAction = new AutoToolsAction( i18n( "Remove" ), "edit-delete", 0, this,
TQT_SLOT( slotRemoveDetail() ), actions,
"remove detail" );
removeDetailAction->setWhatsThis(i18n("Remove
Shows a list of targets "
diff --git a/buildtools/autotools/autosubprojectview.cpp b/buildtools/autotools/autosubprojectview.cpp
index 6d6b6c01..42764783 100644
--- a/buildtools/autotools/autosubprojectview.cpp
+++ b/buildtools/autotools/autosubprojectview.cpp
@@ -173,7 +173,7 @@ void AutoSubprojectView::initActions()
TDEActionCollection * actions = new TDEActionCollection( this );
subProjectOptionsAction = new AutoToolsAction( i18n( "Options..." ), "configure", 0,
- TQT_TQOBJECT(this), TQT_SLOT( slotSubprojectOptions() ), actions, "subproject options" );
+ this, TQT_SLOT( slotSubprojectOptions() ), actions, "subproject options" );
subProjectOptionsAction->setWhatsThis(i18n("OptionsShows subproject options dialog "
"that provides settings for compiler, include paths, "
"prefixes and build order.
"));
@@ -181,24 +181,24 @@ void AutoSubprojectView::initActions()
TQToolTip::add( m_button1, tr2i18n( "Add new subproject..."));
addSubprojectAction = new AutoToolsAction( i18n( "Add new subproject..." ), "folder-new", 0,
- TQT_TQOBJECT(this), TQT_SLOT( slotAddSubproject() ), actions, "add subproject" );
+ this, TQT_SLOT( slotAddSubproject() ), actions, "add subproject" );
addSubprojectAction->setWhatsThis(i18n("Add new subprojectCreates a new "
"subproject in currently selected subproject.
"));
addSubprojectAction->plug( m_button1 );
removeSubprojectAction = new TDEAction( i18n( "Remove Subproject..." ), "remove_subdir", 0,
- TQT_TQOBJECT(this), TQT_SLOT( slotRemoveSubproject() ), actions, "remove subproject" );
+ this, TQT_SLOT( slotRemoveSubproject() ), actions, "remove subproject" );
removeSubprojectAction->setWhatsThis(i18n("Remove subprojectRemoves the subproject. Asks if the "
"subproject should be also removed from disk. Only subprojects "
"which do not hold other subprojects can be removed.
"));
addExistingSubprojectAction = new TDEAction( i18n( "Add Existing Subprojects..." ), "fileimport", 0,
- TQT_TQOBJECT(this), TQT_SLOT( slotAddExistingSubproject() ), actions, "add existing subproject" );
+ this, TQT_SLOT( slotAddExistingSubproject() ), actions, "add existing subproject" );
addExistingSubprojectAction->setWhatsThis(i18n("Add existing subprojectsImports existing "
"subprojects containing Makefile.am.
"));
TQToolTip::add( m_button2, tr2i18n( "Add Target..."));
addTargetAction = new AutoToolsAction( i18n( "Add Target..." ), "targetnew_tdevelop", 0,
- TQT_TQOBJECT(this), TQT_SLOT( slotAddTarget() ), actions, "add target" );
+ this, TQT_SLOT( slotAddTarget() ), actions, "add target" );
addTargetAction->setWhatsThis(i18n( "Add targetAdds a new target to "
"the currently selected subproject. Target can be a "
"binary program, library, script, also a collection of "
@@ -206,19 +206,19 @@ void AutoSubprojectView::initActions()
addTargetAction->plug( m_button2 );
TQToolTip::add( m_button3, tr2i18n( "Add Service..."));
- addServiceAction = new AutoToolsAction( i18n( "Add Service..." ), "servicenew_tdevelop", 0, TQT_TQOBJECT(this),
+ addServiceAction = new AutoToolsAction( i18n( "Add Service..." ), "servicenew_tdevelop", 0, this,
TQT_SLOT( slotAddService() ), actions, "add service" );
addServiceAction->setWhatsThis(i18n("Add serviceCreates a .desktop file describing the service.
"));
addServiceAction->plug( m_button3 );
TQToolTip::add( m_button4, tr2i18n( "Add Application..."));
- addApplicationAction = new AutoToolsAction( i18n( "Add Application..." ), "window-new", 0, TQT_TQOBJECT(this),
+ addApplicationAction = new AutoToolsAction( i18n( "Add Application..." ), "window-new", 0, this,
TQT_SLOT( slotAddApplication() ), actions, "add application" );
addApplicationAction->setWhatsThis(i18n("Add applicationCreates an application .desktop file.
"));
addApplicationAction->plug( m_button4 );
TQToolTip::add( m_button5, tr2i18n( "Build"));
- buildSubprojectAction = new AutoToolsAction( i18n( "Build" ), "launch", 0, TQT_TQOBJECT(this),
+ buildSubprojectAction = new AutoToolsAction( i18n( "Build" ), "launch", 0, this,
TQT_SLOT( slotBuildSubproject() ), actions, "build subproject" );
buildSubprojectAction->setWhatsThis(i18n("BuildRuns make from the directory of "
"the selected subproject.
Environment variables and "
@@ -226,7 +226,7 @@ void AutoSubprojectView::initActions()
"dialog, Make Options tab.
"));
buildSubprojectAction->plug( m_button5 );
- forceReeditSubprojectAction = new TDEAction( i18n( "Force Reedit" ), 0, 0, TQT_TQOBJECT(this),
+ forceReeditSubprojectAction = new TDEAction( i18n( "Force Reedit" ), 0, 0, this,
TQT_SLOT( slotForceReeditSubproject() ), actions, "force-reedit subproject" );
forceReeditSubprojectAction->setWhatsThis(i18n("Force ReeditRuns make force-reedit "
"from the directory of the selected subproject.
This "
@@ -238,21 +238,21 @@ void AutoSubprojectView::initActions()
if (!m_part->isKDE())
forceReeditSubprojectAction->setEnabled(false);
- cleanSubprojectAction = new TDEAction( i18n( "Clean" ), 0, 0, TQT_TQOBJECT(this),
+ cleanSubprojectAction = new TDEAction( i18n( "Clean" ), 0, 0, this,
TQT_SLOT( slotCleanSubproject() ), actions, "clean subproject" );
cleanSubprojectAction->setWhatsThis(i18n("CleanRuns make clean from the directory of "
"the selected subproject.
Environment variables and make "
"arguments can be specified in the project settings dialog, "
"Make Options tab.
"));
- installSubprojectAction = new TDEAction( i18n( "Install" ), 0, 0, TQT_TQOBJECT(this),
+ installSubprojectAction = new TDEAction( i18n( "Install" ), 0, 0, this,
TQT_SLOT( slotInstallSubproject() ), actions, "install subproject" );
installSubprojectAction->setWhatsThis(i18n("InstallRuns make install from the directory "
"of the selected subproject.
Environment variables and "
"make arguments can be specified in the project settings "
"dialog, Make Options tab.
"));
installSuSubprojectAction = new TDEAction( i18n( "Install (as root user)" ), 0, 0,
- TQT_TQOBJECT(this), TQT_SLOT( slotInstallSuSubproject() ), actions, "install subproject as root" );
+ this, TQT_SLOT( slotInstallSuSubproject() ), actions, "install subproject as root" );
installSuSubprojectAction->setWhatsThis(i18n("Install as root userRuns make install "
"command from the directory of the selected subproject "
"with root privileges.
It is executed via tdesu "
@@ -260,12 +260,12 @@ void AutoSubprojectView::initActions()
"can be specified in the project settings dialog, "
"Make Options tab.
"));
- expandAction = new TDEAction( i18n( "Expand Subtree" ), 0, 0, TQT_TQOBJECT(this),
+ expandAction = new TDEAction( i18n( "Expand Subtree" ), 0, 0, this,
TQT_SLOT(slotExpandTree()), actions, "expandAction" );
- collapseAction = new TDEAction( i18n( "Collapse Subtree" ), 0, 0, TQT_TQOBJECT(this),
+ collapseAction = new TDEAction( i18n( "Collapse Subtree" ), 0, 0, this,
TQT_SLOT(slotCollapseTree()), actions, "collapseAction" );
- otherAction = new TDEAction( i18n( "Manage Custom Commands..." ), 0, 0, TQT_TQOBJECT(this),
+ otherAction = new TDEAction( i18n( "Manage Custom Commands..." ), 0, 0, this,
TQT_SLOT( slotManageBuildCommands() ), actions, "manage custom commands" );
otherAction->setWhatsThis(i18n("Manage custom commandsAllows to create, edit and "
"delete custom build commands which appears in the subproject "
diff --git a/buildtools/autotools/configureoptionswidget.cpp b/buildtools/autotools/configureoptionswidget.cpp
index 7d03ad3e..81431117 100644
--- a/buildtools/autotools/configureoptionswidget.cpp
+++ b/buildtools/autotools/configureoptionswidget.cpp
@@ -72,7 +72,7 @@ public:
ConfigureOptionsWidget::ConfigureOptionsWidget(AutoProjectPart *part, TQWidget *parent, const char *name)
: ConfigureOptionsWidgetBase(parent, name)
{
- config_combo->setValidator(new TQRegExpValidator(TQRegExp("^\\D.*"), TQT_TQOBJECT(this)));
+ config_combo->setValidator(new TQRegExpValidator(TQRegExp("^\\D.*"), this));
m_part = part;
env_groupBox->setColumnLayout( 1, TQt::Vertical );
@@ -405,7 +405,7 @@ KDevCompilerOptions *ConfigureOptionsWidget::createCompilerOptions(const TQStrin
if (prop.isValid())
args = TQStringList::split(" ", prop.toString());
- TQObject *obj = factory->create(TQT_TQOBJECT(this), service->name().latin1(),
+ TQObject *obj = factory->create(this, service->name().latin1(),
"KDevCompilerOptions", args);
if (!obj->inherits("KDevCompilerOptions")) {
diff --git a/buildtools/autotools/misc.cpp b/buildtools/autotools/misc.cpp
index 6c4bac8c..a18fbf5d 100644
--- a/buildtools/autotools/misc.cpp
+++ b/buildtools/autotools/misc.cpp
@@ -72,7 +72,7 @@ static KDevCompilerOptions *createCompilerOptions( const TQString &name, TQObjec
TQString AutoProjectTool::execFlagsDialog( const TQString &compiler, const TQString &flags, TQWidget *parent )
{
- KDevCompilerOptions * plugin = createCompilerOptions( compiler, TQT_TQOBJECT(parent) );
+ KDevCompilerOptions * plugin = createCompilerOptions( compiler, parent );
if ( plugin )
{
diff --git a/buildtools/custommakefiles/custommakeconfigwidget.cpp b/buildtools/custommakefiles/custommakeconfigwidget.cpp
index ceebb999..10855e60 100644
--- a/buildtools/custommakefiles/custommakeconfigwidget.cpp
+++ b/buildtools/custommakefiles/custommakeconfigwidget.cpp
@@ -43,7 +43,7 @@ CustomMakeConfigWidget::CustomMakeConfigWidget(CustomProjectPart* part, const TQ
defaultTarget_edit->setText(DomUtil::readEntry(m_dom, m_configGroup + "/make/defaulttarget"));
makeoptions_edit->setText(DomUtil::readEntry(m_dom, m_configGroup + "/make/makeoptions"));
- envs_combo->setValidator(new TQRegExpValidator(TQRegExp("^\\D[^\\s]*"), TQT_TQOBJECT(this)));
+ envs_combo->setValidator(new TQRegExpValidator(TQRegExp("^\\D[^\\s]*"), this));
m_allEnvironments = m_part->allMakeEnvironments();
m_currentEnvironment = m_part->currentMakeEnvironment();
env_var_group->setColumnLayout( 1, TQt::Vertical );
diff --git a/buildtools/custommakefiles/customotherconfigwidget.cpp b/buildtools/custommakefiles/customotherconfigwidget.cpp
index c7778a74..012dfd36 100644
--- a/buildtools/custommakefiles/customotherconfigwidget.cpp
+++ b/buildtools/custommakefiles/customotherconfigwidget.cpp
@@ -38,7 +38,7 @@ CustomOtherConfigWidget::CustomOtherConfigWidget(CustomProjectPart* part, const
defaultTarget_edit->setText(DomUtil::readEntry(m_dom, m_configGroup + "/other/defaulttarget"));
makeoptions_edit->setText(DomUtil::readEntry(m_dom, m_configGroup + "/other/otheroptions"));
- envs_combo->setValidator(new TQRegExpValidator(TQRegExp("^\\D.*"), TQT_TQOBJECT(this)));
+ envs_combo->setValidator(new TQRegExpValidator(TQRegExp("^\\D.*"), this));
m_allEnvironments = m_part->allMakeEnvironments();
m_currentEnvironment = m_part->currentMakeEnvironment();
env_var_group->setColumnLayout( 1, TQt::Vertical );
diff --git a/buildtools/pascal/pascalprojectoptionsdlg.cpp b/buildtools/pascal/pascalprojectoptionsdlg.cpp
index 9c7c2518..1b96d072 100644
--- a/buildtools/pascal/pascalprojectoptionsdlg.cpp
+++ b/buildtools/pascal/pascalprojectoptionsdlg.cpp
@@ -29,7 +29,7 @@
PascalProjectOptionsDlg::PascalProjectOptionsDlg(PascalProjectPart *part, TQWidget* parent, const char* name, WFlags fl)
: PascalProjectOptionsDlgBase(parent,name, fl), m_part(part)
{
- config_combo->setValidator(new TQRegExpValidator(TQRegExp("^\\D.*"), TQT_TQOBJECT(this)));
+ config_combo->setValidator(new TQRegExpValidator(TQRegExp("^\\D.*"), this));
offers = TDETrader::self()->query("TDevelop/CompilerOptions", "[X-TDevelop-Language] == 'Pascal'");
diff --git a/buildtools/qmake/projectconfigurationdlg.cpp b/buildtools/qmake/projectconfigurationdlg.cpp
index 25137f04..dd86a06a 100644
--- a/buildtools/qmake/projectconfigurationdlg.cpp
+++ b/buildtools/qmake/projectconfigurationdlg.cpp
@@ -106,7 +106,7 @@ ProjectConfigurationDlg::ProjectConfigurationDlg( TQListView *_prjList, TrollPro
prjWidget = _prjWidget;
// m_projectConfiguration = conf;
m_targetLibraryVersion->setValidator( new TQRegExpValidator(
- TQRegExp( "\\d+(\\.\\d+)?(\\.\\d+)" ), TQT_TQOBJECT(this) ) );
+ TQRegExp( "\\d+(\\.\\d+)?(\\.\\d+)" ), this ) );
customVariables->setSortColumn(0);
customVariables->setSortOrder(TQt::Ascending);
mocdir_url->completionObject()->setMode(KURLCompletion::DirCompletion);
diff --git a/buildtools/qmake/trollprojectpart.cpp b/buildtools/qmake/trollprojectpart.cpp
index 49e228ad..66ab0b5b 100644
--- a/buildtools/qmake/trollprojectpart.cpp
+++ b/buildtools/qmake/trollprojectpart.cpp
@@ -92,7 +92,7 @@ TrollProjectPart::TrollProjectPart(TQObject *parent, const char *name, const TQS
const TQIconSet icon(SmallIcon("compfile"));
action = new TDEAction( i18n("Compile &File"), "compfile", 0,
- TQT_TQOBJECT(m_widget), TQT_SLOT(slotBuildOpenFile()),
+ m_widget, TQT_SLOT(slotBuildOpenFile()),
actionCollection(),"build_compilefile" );
action->setToolTip(i18n("Compile file"));
action->setWhatsThis(i18n("Compile file
Runs make filename.o command from the directory where 'filename' is the name of currently opened file.
"
@@ -101,7 +101,7 @@ TrollProjectPart::TrollProjectPart(TQObject *parent, const char *name, const TQS
action = new TDEAction( i18n("&Build Project"), "make_tdevelop", Key_F8,
- TQT_TQOBJECT(m_widget), TQT_SLOT(slotBuildProject()),
+ m_widget, TQT_SLOT(slotBuildProject()),
actionCollection(), "build_build_project" );
action->setToolTip(i18n("Build project"));
action->setWhatsThis(i18n("Build project
Runs make from the project directory.
"
@@ -109,7 +109,7 @@ TrollProjectPart::TrollProjectPart(TQObject *parent, const char *name, const TQS
"in the project settings dialog, Make Options tab."));
action = new TDEAction( i18n("&Rebuild Project"),"rebuild" , 0,
- TQT_TQOBJECT(m_widget), TQT_SLOT(slotRebuildProject()),
+ m_widget, TQT_SLOT(slotRebuildProject()),
actionCollection(),"build_rebuild_project" );
action->setToolTip(i18n("Rebuild project"));
action->setWhatsThis(i18n("Rebuild project
Runs make clean and then make from the project directory.
"
@@ -117,7 +117,7 @@ TrollProjectPart::TrollProjectPart(TQObject *parent, const char *name, const TQS
"in the project settings dialog, Make Options tab."));
action = new TDEAction( i18n("&Install Project"),"install" , 0,
- TQT_TQOBJECT(m_widget), TQT_SLOT(slotInstallProject()),
+ m_widget, TQT_SLOT(slotInstallProject()),
actionCollection(),"build_install_project" );
action->setToolTip(i18n("Install project"));
action->setWhatsThis(i18n("Install project
Runs make install from the project directory.
"
@@ -125,7 +125,7 @@ TrollProjectPart::TrollProjectPart(TQObject *parent, const char *name, const TQS
"in the project settings dialog, Make Options tab."));
action = new TDEAction( i18n("&Clean Project"), 0,
- TQT_TQOBJECT(m_widget), TQT_SLOT(slotCleanProject()),
+ m_widget, TQT_SLOT(slotCleanProject()),
actionCollection(), "build_clean_project" );
action->setToolTip(i18n("Clean project"));
action->setWhatsThis(i18n("Clean project
Runs make clean command from the project directory.
"
@@ -133,7 +133,7 @@ TrollProjectPart::TrollProjectPart(TQObject *parent, const char *name, const TQS
"in the project settings dialog, Make Options tab."));
action = new TDEAction( i18n("&Dist-Clean Project"), 0,
- TQT_TQOBJECT(m_widget), TQT_SLOT(slotDistCleanProject()),
+ m_widget, TQT_SLOT(slotDistCleanProject()),
actionCollection(), "build_distclean_project" );
action->setToolTip(i18n("Dist-Clean project"));
action->setWhatsThis(i18n("Dist-Clean project
Runs make distclean command from the "
@@ -147,7 +147,7 @@ TrollProjectPart::TrollProjectPart(TQObject *parent, const char *name, const TQS
action->setWhatsThis(i18n("Execute program
Executes the currently selected subproject if it is an application or the program specified in project settings, Run Options tab."));
action = new TDEAction( i18n("&Build Subproject"), "make_tdevelop", Key_F7,
- TQT_TQOBJECT(m_widget), TQT_SLOT(slotBuildTarget()),
+ m_widget, TQT_SLOT(slotBuildTarget()),
actionCollection(), "build_build_target" );
action->setToolTip(i18n("Build subproject"));
action->setWhatsThis(i18n("Build subproject
Runs make from the current subproject directory. "
@@ -156,7 +156,7 @@ TrollProjectPart::TrollProjectPart(TQObject *parent, const char *name, const TQS
"in the project settings dialog, Make Options tab."));
action = new TDEAction( i18n("&Rebuild Subproject"), "rebuild", 0,
- TQT_TQOBJECT(m_widget), TQT_SLOT(slotRebuildTarget()),
+ m_widget, TQT_SLOT(slotRebuildTarget()),
actionCollection(),"build_rebuild_target" );
action->setToolTip(i18n("Rebuild subproject"));
action->setWhatsThis(i18n("Rebuild subproject
Runs make clean and then make from the current subproject directory. "
@@ -165,7 +165,7 @@ TrollProjectPart::TrollProjectPart(TQObject *parent, const char *name, const TQS
"in the project settings dialog, Make Options tab."));
action = new TDEAction( i18n("&Install Subproject"), "install", 0,
- TQT_TQOBJECT(m_widget), TQT_SLOT(slotInstallTarget()),
+ m_widget, TQT_SLOT(slotInstallTarget()),
actionCollection(),"build_install_target" );
action->setToolTip(i18n("Install subproject"));
action->setWhatsThis(i18n("Install subproject
Runs make install from the current subproject directory. "
@@ -174,7 +174,7 @@ TrollProjectPart::TrollProjectPart(TQObject *parent, const char *name, const TQS
"in the project settings dialog, Make Options tab."));
action = new TDEAction( i18n("&Clean Subproject"), 0,
- TQT_TQOBJECT(m_widget), TQT_SLOT(slotCleanTarget()),
+ m_widget, TQT_SLOT(slotCleanTarget()),
actionCollection(), "build_clean_target" );
action->setToolTip(i18n("Clean subproject"));
action->setWhatsThis(i18n("Clean subproject
Runs make clean from the current subproject directory. "
@@ -183,7 +183,7 @@ TrollProjectPart::TrollProjectPart(TQObject *parent, const char *name, const TQS
"in the project settings dialog, Make Options tab."));
action = new TDEAction( i18n("&Dist-Clean Subproject"), 0,
- TQT_TQOBJECT(m_widget), TQT_SLOT(slotDistCleanTarget()),
+ m_widget, TQT_SLOT(slotDistCleanTarget()),
actionCollection(), "build_distclean_target" );
action->setToolTip(i18n("Dist-Clean subproject"));
action->setWhatsThis(i18n("Dist-Clean subproject
Runs make distclean from the current"
diff --git a/buildtools/qmake/trollprojectwidget.cpp b/buildtools/qmake/trollprojectwidget.cpp
index 551dcf27..d9aafdb0 100644
--- a/buildtools/qmake/trollprojectwidget.cpp
+++ b/buildtools/qmake/trollprojectwidget.cpp
@@ -1301,7 +1301,7 @@ void TrollProjectWidget::slotAddFiles()
case AddFilesDialog::Link:
{
// Link selected files to current subproject folder
- TDEProcess *proc = new TDEProcess( TQT_TQOBJECT(this) );
+ TDEProcess *proc = new TDEProcess( this );
*proc << "ln";
*proc << "-s";
*proc << files[ i ];
@@ -1642,7 +1642,7 @@ void TrollProjectWidget::slotDetailsContextMenu( TDEListView *, TQListViewItem *
case AddFilesDialog::Link:
{
// Link selected files to current subproject folder
- TDEProcess *proc = new TDEProcess( TQT_TQOBJECT(this) );
+ TDEProcess *proc = new TDEProcess( this );
*proc << "ln";
*proc << "-s";
*proc << files[ i ];
diff --git a/kdevdesigner/designer/actiondnd.cpp b/kdevdesigner/designer/actiondnd.cpp
index 071845c9..64ea116f 100644
--- a/kdevdesigner/designer/actiondnd.cpp
+++ b/kdevdesigner/designer/actiondnd.cpp
@@ -127,7 +127,7 @@ void QDesignerAction::remove()
{
if ( !widgetToInsert )
return;
- MainWindow::self->formWindow()->selectWidget( TQT_TQOBJECT(widgetToInsert), FALSE );
+ MainWindow::self->formWindow()->selectWidget( widgetToInsert, FALSE );
widgetToInsert->reparent( 0, TQPoint( 0, 0 ), FALSE );
}
@@ -221,7 +221,7 @@ QDesignerToolBar::QDesignerToolBar( TQMainWindow *mw )
insertAnchor = 0;
afterAnchor = TRUE;
setAcceptDrops( TRUE );
- MetaDataBase::addEntry( TQT_TQOBJECT(this) );
+ MetaDataBase::addEntry( this );
lastIndicatorPos = TQPoint( -1, -1 );
indicator = new QDesignerIndicatorWidget( this );
indicator->hide();
@@ -239,7 +239,7 @@ QDesignerToolBar::QDesignerToolBar( TQMainWindow *mw, Dock dock )
setAcceptDrops( TRUE );
indicator = new QDesignerIndicatorWidget( this );
indicator->hide();
- MetaDataBase::addEntry( TQT_TQOBJECT(this) );
+ MetaDataBase::addEntry( this );
installEventFilter( this );
widgetInserting = FALSE;
findFormWindow();
@@ -500,7 +500,7 @@ void QDesignerToolBar::buttonMouseMoveEvent( TQMouseEvent *e, TQObject *o )
drag->setPixmap( a->iconSet().pixmap() );
if ( ::tqt_cast(a) ) {
if ( formWindow->widgets()->find( ( (QDesignerAction*)a )->widget() ) )
- formWindow->selectWidget( ( TQT_TQOBJECT(( (QDesignerAction*)a )->widget())), FALSE );
+ formWindow->selectWidget( ( ( (QDesignerAction*)a )->widget()), FALSE );
}
if ( !drag->drag() ) {
AddActionToToolBarCommand *cmd = new AddActionToToolBarCommand( i18n( "Add Action '%1' to Toolbar '%2'" ).
diff --git a/kdevdesigner/designer/actioneditorimpl.cpp b/kdevdesigner/designer/actioneditorimpl.cpp
index a08edc67..59063f8d 100644
--- a/kdevdesigner/designer/actioneditorimpl.cpp
+++ b/kdevdesigner/designer/actioneditorimpl.cpp
@@ -139,7 +139,7 @@ void ActionEditor::deleteAction()
++it;
}
if ( formWindow ) {
- formWindow->setActiveObject( TQT_TQOBJECT(formWindow->mainContainer()) );
+ formWindow->setActiveObject( formWindow->mainContainer() );
if ( formWindow->formFile() )
formWindow->formFile()->setModified( TRUE );
}
@@ -305,7 +305,7 @@ void ActionEditor::updateActionIcon( TQAction *a )
void ActionEditor::connectionsClicked()
{
ConnectionDialog dlg( formWindow->mainWindow() );
- dlg.setDefault( TQT_TQOBJECT(currentAction), TQT_TQOBJECT(formWindow) );
+ dlg.setDefault( currentAction, formWindow );
dlg.addConnection();
dlg.exec();
}
@@ -313,9 +313,9 @@ void ActionEditor::connectionsClicked()
void ActionEditor::removeConnections( TQObject *o )
{
TQValueList conns =
- MetaDataBase::connections( TQT_TQOBJECT(formWindow), o );
+ MetaDataBase::connections( formWindow, o );
for ( TQValueList::Iterator it2 = conns.begin();
it2 != conns.end(); ++it2 )
- MetaDataBase::removeConnection( TQT_TQOBJECT(formWindow), (*it2).sender, (*it2).signal,
+ MetaDataBase::removeConnection( formWindow, (*it2).sender, (*it2).signal,
(*it2).receiver, (*it2).slot );
}
diff --git a/kdevdesigner/designer/command.cpp b/kdevdesigner/designer/command.cpp
index a1c445ad..b6a305c1 100644
--- a/kdevdesigner/designer/command.cpp
+++ b/kdevdesigner/designer/command.cpp
@@ -243,7 +243,7 @@ void ResizeCommand::execute()
{
widget->setGeometry( newRect );
formWindow()->updateSelection( widget );
- formWindow()->emitUpdateProperties( TQT_TQOBJECT(widget) );
+ formWindow()->emitUpdateProperties( widget );
if ( WidgetFactory::layoutType( widget ) != WidgetFactory::NoLayout )
formWindow()->updateChildSelections( widget );
}
@@ -252,7 +252,7 @@ void ResizeCommand::unexecute()
{
widget->setGeometry( oldRect );
formWindow()->updateSelection( widget );
- formWindow()->emitUpdateProperties( TQT_TQOBJECT(widget) );
+ formWindow()->emitUpdateProperties( widget );
if ( WidgetFactory::layoutType( widget ) != WidgetFactory::NoLayout )
formWindow()->updateChildSelections( widget );
}
@@ -279,15 +279,15 @@ void InsertCommand::execute()
widget->show();
formWindow()->widgets()->insert( widget, widget );
formWindow()->clearSelection( FALSE );
- formWindow()->selectWidget( TQT_TQOBJECT(widget) );
+ formWindow()->selectWidget( widget );
formWindow()->mainWindow()->objectHierarchy()->widgetInserted( widget );
}
void InsertCommand::unexecute()
{
widget->hide();
- formWindow()->selectWidget( TQT_TQOBJECT(widget), FALSE );
- formWindow()->widgets()->remove( TQT_TQOBJECT(widget) );
+ formWindow()->selectWidget( widget, FALSE );
+ formWindow()->widgets()->remove( widget );
formWindow()->mainWindow()->objectHierarchy()->widgetRemoved( widget );
}
@@ -326,7 +326,7 @@ void MoveCommand::execute()
w->reparent( newParent, pos, TRUE );
formWindow()->raiseSelection( w );
formWindow()->raiseChildSelections( w );
- formWindow()->widgetChanged( TQT_TQOBJECT(w) );
+ formWindow()->widgetChanged( w );
formWindow()->mainWindow()->objectHierarchy()->widgetRemoved( w );
formWindow()->mainWindow()->objectHierarchy()->widgetInserted( w );
}
@@ -334,7 +334,7 @@ void MoveCommand::execute()
}
formWindow()->updateSelection( w );
formWindow()->updateChildSelections( w );
- formWindow()->emitUpdateProperties( TQT_TQOBJECT(w) );
+ formWindow()->emitUpdateProperties( w );
}
}
@@ -347,7 +347,7 @@ void MoveCommand::unexecute()
w->reparent( oldParent, pos, TRUE );
formWindow()->raiseSelection( w );
formWindow()->raiseChildSelections( w );
- formWindow()->widgetChanged( TQT_TQOBJECT(w) );
+ formWindow()->widgetChanged( w );
formWindow()->mainWindow()->objectHierarchy()->widgetRemoved( w );
formWindow()->mainWindow()->objectHierarchy()->widgetInserted( w );
}
@@ -355,7 +355,7 @@ void MoveCommand::unexecute()
}
formWindow()->updateSelection( w );
formWindow()->updateChildSelections( w );
- formWindow()->emitUpdateProperties( TQT_TQOBJECT(w) );
+ formWindow()->emitUpdateProperties( w );
}
}
@@ -392,13 +392,13 @@ void DeleteCommand::execute()
TQString s = w->name();
s.prepend( "qt_dead_widget_" );
w->setName( s );
- formWindow()->selectWidget( TQT_TQOBJECT(w), FALSE );
+ formWindow()->selectWidget( w, FALSE );
formWindow()->widgets()->remove( w );
- TQValueList conns = MetaDataBase::connections( TQT_TQOBJECT(formWindow()), TQT_TQOBJECT(w) );
+ TQValueList conns = MetaDataBase::connections( formWindow(), w );
connections.insert( w, conns );
TQValueList::Iterator it = conns.begin();
for ( ; it != conns.end(); ++it ) {
- MetaDataBase::removeConnection( TQT_TQOBJECT(formWindow()), (*it).sender,
+ MetaDataBase::removeConnection( formWindow(), (*it).sender,
(*it).signal, (*it).receiver, (*it).slot );
}
}
@@ -418,11 +418,11 @@ void DeleteCommand::unexecute()
s.remove( 0, TQString( "qt_dead_widget_" ).length() );
w->setName( s );
formWindow()->widgets()->insert( w, w );
- formWindow()->selectWidget( TQT_TQOBJECT(w) );
+ formWindow()->selectWidget( w );
TQValueList conns = *connections.find( w );
TQValueList::Iterator it = conns.begin();
for ( ; it != conns.end(); ++it ) {
- MetaDataBase::addConnection( TQT_TQOBJECT(formWindow()), (*it).sender,
+ MetaDataBase::addConnection( formWindow(), (*it).sender,
(*it).signal, (*it).receiver, (*it).slot );
}
}
@@ -457,8 +457,8 @@ void SetPropertyCommand::execute()
if ( isResetCommand ) {
MetaDataBase::setPropertyChanged( widget, propName, FALSE );
if ( WidgetFactory::resetProperty( widget, propName ) ) {
- if ( !formWindow()->isWidgetSelected( widget ) && TQT_TQOBJECT(formWindow()) != TQT_TQOBJECT(widget) )
- formWindow()->selectWidget( TQT_TQOBJECT(widget) );
+ if ( !formWindow()->isWidgetSelected( widget ) && formWindow() != widget )
+ formWindow()->selectWidget( widget );
if ( editor->widget() != widget )
editor->setWidget( widget, formWindow() );
editor->propertyList()->setCurrentProperty( propName );
@@ -557,7 +557,7 @@ void SetPropertyCommand::setProperty( const TQVariant &v, const TQString ¤
return;
if ( !formWindow()->isWidgetSelected( widget ) && !formWindow()->isMainContainer( widget ) && select )
- formWindow()->selectWidget( TQT_TQOBJECT(widget) );
+ formWindow()->selectWidget( widget );
if ( editor->widget() != widget && select )
editor->setWidget( widget, formWindow() );
if ( select )
@@ -587,14 +587,14 @@ void SetPropertyCommand::setProperty( const TQVariant &v, const TQString ¤
TQVariant val = v;
if ( val.toString() == "default" )
val = -1;
- MetaDataBase::setSpacing( TQT_TQOBJECT(WidgetFactory::containerOfWidget( TQT_TQWIDGET(editor->widget()) )), val.toInt() );
+ MetaDataBase::setSpacing( WidgetFactory::containerOfWidget( static_cast(editor->widget()) ), val.toInt() );
} else if ( propName == "layoutMargin" ) {
TQVariant val = v;
if ( val.toString() == "default" )
val = -1;
- MetaDataBase::setMargin( TQT_TQOBJECT(WidgetFactory::containerOfWidget( TQT_TQWIDGET(editor->widget()) )), val.toInt() );
+ MetaDataBase::setMargin( WidgetFactory::containerOfWidget( static_cast(editor->widget()) ), val.toInt() );
} else if ( propName == "resizeMode" ) {
- MetaDataBase::setResizeMode( TQT_TQOBJECT(WidgetFactory::containerOfWidget( TQT_TQWIDGET(editor->widget()) )), currentItemText );
+ MetaDataBase::setResizeMode( WidgetFactory::containerOfWidget( static_cast(editor->widget()) ), currentItemText );
} else if ( propName == "toolTip" || propName == "whatsThis" || propName == "database" || propName == "frameworkCode" ) {
MetaDataBase::setFakeProperty( editor->widget(), propName, v );
} else if ( ::tqt_cast(editor->widget()) ) {
@@ -634,9 +634,9 @@ void SetPropertyCommand::setProperty( const TQVariant &v, const TQString ¤
oldSerNum = v.toPixmap().serialNumber();
widget->setProperty( propName, v );
if ( oldSerNum != -1 && oldSerNum != widget->property( propName ).toPixmap().serialNumber() )
- MetaDataBase::setPixmapKey( TQT_TQOBJECT(formWindow()),
+ MetaDataBase::setPixmapKey( formWindow(),
widget->property( propName ).toPixmap().serialNumber(),
- MetaDataBase::pixmapKey( TQT_TQOBJECT(formWindow()), oldSerNum ) );
+ MetaDataBase::pixmapKey( formWindow(), oldSerNum ) );
if ( propName == "cursor" ) {
MetaDataBase::setCursor( (TQWidget*)((TQObject *)widget), v.toCursor() );
}
@@ -666,7 +666,7 @@ void SetPropertyCommand::setProperty( const TQVariant &v, const TQString ¤
( ( PropertyItem* )editor->propertyList()->currentItem() )->setChanged( MetaDataBase::isPropertyChanged( widget, propName ) );
}
editor->emitWidgetChanged();
- formWindow()->killAccels( TQT_TQOBJECT(widget) );
+ formWindow()->killAccels( widget );
}
// ------------------------------------------------------------
@@ -791,8 +791,8 @@ BreakLayoutCommand::BreakLayoutCommand( const TQString &n, FormWindow *fw,
: Command( n, fw ), lb( layoutBase ), widgets( wl )
{
WidgetFactory::LayoutType lay = WidgetFactory::layoutType( layoutBase );
- spacing = MetaDataBase::spacing( TQT_TQOBJECT(layoutBase) );
- margin = MetaDataBase::margin( TQT_TQOBJECT(layoutBase) );
+ spacing = MetaDataBase::spacing( layoutBase );
+ margin = MetaDataBase::margin( layoutBase );
layout = 0;
if ( lay == WidgetFactory::HBox )
layout = new HorizontalLayout( wl, layoutBase, fw, layoutBase, FALSE, ::tqt_cast(layoutBase) != 0 );
@@ -820,8 +820,8 @@ void BreakLayoutCommand::unexecute()
formWindow()->clearSelection( FALSE );
layout->doLayout();
formWindow()->mainWindow()->objectHierarchy()->rebuild();
- MetaDataBase::setSpacing( TQT_TQOBJECT(WidgetFactory::containerOfWidget( lb )), spacing );
- MetaDataBase::setMargin( TQT_TQOBJECT(WidgetFactory::containerOfWidget( lb )), margin );
+ MetaDataBase::setSpacing( WidgetFactory::containerOfWidget( lb ), spacing );
+ MetaDataBase::setMargin( WidgetFactory::containerOfWidget( lb ), margin );
}
// ------------------------------------------------------------
@@ -853,7 +853,7 @@ AddTabPageCommand::AddTabPageCommand( const TQString &n, FormWindow *fw,
tabPage = new QDesignerWidget( formWindow(), tabWidget, "TabPage" );
tabPage->hide();
index = -1;
- MetaDataBase::addEntry( TQT_TQOBJECT(tabPage) );
+ MetaDataBase::addEntry( tabPage );
}
void AddTabPageCommand::execute()
@@ -862,7 +862,7 @@ void AddTabPageCommand::execute()
index = ( (QDesignerTabWidget*)tabWidget )->count();
tabWidget->insertTab( tabPage, tabLabel, index );
tabWidget->showPage( tabPage );
- formWindow()->emitUpdateProperties( TQT_TQOBJECT(formWindow()->currentWidget()) );
+ formWindow()->emitUpdateProperties( formWindow()->currentWidget() );
formWindow()->mainWindow()->objectHierarchy()->tabsChanged( tabWidget );
}
@@ -870,7 +870,7 @@ void AddTabPageCommand::unexecute()
{
tabWidget->removePage( tabPage );
tabPage->hide();
- formWindow()->emitUpdateProperties( TQT_TQOBJECT(formWindow()->currentWidget()) );
+ formWindow()->emitUpdateProperties( formWindow()->currentWidget() );
formWindow()->mainWindow()->objectHierarchy()->tabsChanged( tabWidget );
}
@@ -889,7 +889,7 @@ void MoveTabPageCommand::execute()
((QDesignerTabWidget*)tabWidget )->removePage( tabPage );
((QDesignerTabWidget*)tabWidget )->insertTab( tabPage, tabLabel, newIndex );
((QDesignerTabWidget*)tabWidget )->showPage( tabPage );
- formWindow()->emitUpdateProperties( TQT_TQOBJECT(formWindow()->currentWidget()) );
+ formWindow()->emitUpdateProperties( formWindow()->currentWidget() );
formWindow()->mainWindow()->objectHierarchy()->tabsChanged( tabWidget );
}
@@ -898,7 +898,7 @@ void MoveTabPageCommand::unexecute()
((QDesignerTabWidget*)tabWidget )->removePage( tabPage );
((QDesignerTabWidget*)tabWidget )->insertTab( tabPage, tabLabel, oldIndex );
((QDesignerTabWidget*)tabWidget )->showPage( tabPage );
- formWindow()->emitUpdateProperties( TQT_TQOBJECT(formWindow()->currentWidget()) );
+ formWindow()->emitUpdateProperties( formWindow()->currentWidget() );
formWindow()->mainWindow()->objectHierarchy()->tabsChanged( tabWidget );
}
@@ -916,7 +916,7 @@ void DeleteTabPageCommand::execute()
{
tabWidget->removePage( tabPage );
tabPage->hide();
- formWindow()->emitUpdateProperties( TQT_TQOBJECT(formWindow()->currentWidget()) );
+ formWindow()->emitUpdateProperties( formWindow()->currentWidget() );
formWindow()->mainWindow()->objectHierarchy()->tabsChanged( tabWidget );
}
@@ -924,7 +924,7 @@ void DeleteTabPageCommand::unexecute()
{
tabWidget->insertTab( tabPage, tabLabel, index );
tabWidget->showPage( tabPage );
- formWindow()->emitUpdateProperties( TQT_TQOBJECT(formWindow()->currentWidget()) );
+ formWindow()->emitUpdateProperties( formWindow()->currentWidget() );
formWindow()->mainWindow()->objectHierarchy()->tabsChanged( tabWidget );
}
@@ -937,13 +937,13 @@ AddWidgetStackPageCommand::AddWidgetStackPageCommand( const TQString &n, FormWin
stackPage = new QDesignerWidget( formWindow(), widgetStack, "WStackPage" );
stackPage->hide();
index = -1;
- MetaDataBase::addEntry( TQT_TQOBJECT(stackPage) );
+ MetaDataBase::addEntry( stackPage );
}
void AddWidgetStackPageCommand::execute()
{
index = widgetStack->insertPage( stackPage, index );
- formWindow()->emitUpdateProperties( TQT_TQOBJECT(formWindow()->currentWidget()) );
+ formWindow()->emitUpdateProperties( formWindow()->currentWidget() );
formWindow()->mainWindow()->objectHierarchy()->tabsChanged( 0 );
}
@@ -951,7 +951,7 @@ void AddWidgetStackPageCommand::unexecute()
{
index = widgetStack->removePage( stackPage );
stackPage->hide();
- formWindow()->emitUpdateProperties( TQT_TQOBJECT(formWindow()->currentWidget()) );
+ formWindow()->emitUpdateProperties( formWindow()->currentWidget() );
formWindow()->mainWindow()->objectHierarchy()->tabsChanged( 0 );
}
@@ -966,7 +966,7 @@ void DeleteWidgetStackPageCommand::execute()
{
index = widgetStack->removePage( stackPage );
stackPage->hide();
- formWindow()->emitUpdateProperties( TQT_TQOBJECT(formWindow()->currentWidget()) );
+ formWindow()->emitUpdateProperties( formWindow()->currentWidget() );
formWindow()->mainWindow()->objectHierarchy()->widgetRemoved( stackPage );
}
@@ -974,7 +974,7 @@ void DeleteWidgetStackPageCommand::unexecute()
{
index = widgetStack->insertPage( stackPage, index );
widgetStack->raiseWidget( stackPage );
- formWindow()->emitUpdateProperties( TQT_TQOBJECT(formWindow()->currentWidget()) );
+ formWindow()->emitUpdateProperties( formWindow()->currentWidget() );
formWindow()->mainWindow()->objectHierarchy()->widgetInserted( stackPage );
}
@@ -988,7 +988,7 @@ AddWizardPageCommand::AddWizardPageCommand( const TQString &n, FormWindow *fw,
page->hide();
index = i;
show = s;
- MetaDataBase::addEntry( TQT_TQOBJECT(page) );
+ MetaDataBase::addEntry( page );
}
void AddWizardPageCommand::execute()
@@ -998,7 +998,7 @@ void AddWizardPageCommand::execute()
wizard->insertPage( page, pageLabel, index );
if ( show )
( (QDesignerWizard*)wizard )->setCurrentPage( ( (QDesignerWizard*)wizard )->pageNum( page ) );
- formWindow()->emitUpdateProperties( TQT_TQOBJECT(formWindow()->currentWidget()) );
+ formWindow()->emitUpdateProperties( formWindow()->currentWidget() );
formWindow()->mainWindow()->objectHierarchy()->pagesChanged( wizard );
}
@@ -1006,7 +1006,7 @@ void AddWizardPageCommand::unexecute()
{
wizard->removePage( page );
page->hide();
- formWindow()->emitUpdateProperties( TQT_TQOBJECT(formWindow()->currentWidget()) );
+ formWindow()->emitUpdateProperties( formWindow()->currentWidget() );
formWindow()->mainWindow()->objectHierarchy()->pagesChanged( wizard );
}
@@ -1025,7 +1025,7 @@ void DeleteWizardPageCommand::execute()
pageLabel = wizard->title( page );
wizard->removePage( page );
page->hide();
- formWindow()->emitUpdateProperties( TQT_TQOBJECT(formWindow()->currentWidget()) );
+ formWindow()->emitUpdateProperties( formWindow()->currentWidget() );
formWindow()->mainWindow()->objectHierarchy()->pagesChanged( wizard );
}
@@ -1034,7 +1034,7 @@ void DeleteWizardPageCommand::unexecute()
wizard->insertPage( page, pageLabel, index );
if ( show )
( (QDesignerWizard*)wizard )->setCurrentPage( ( (QDesignerWizard*)wizard )->pageNum( page ) );
- formWindow()->emitUpdateProperties( TQT_TQOBJECT(formWindow()->currentWidget()) );
+ formWindow()->emitUpdateProperties( formWindow()->currentWidget() );
formWindow()->mainWindow()->objectHierarchy()->pagesChanged( wizard );
}
@@ -1054,7 +1054,7 @@ void RenameWizardPageCommand::execute()
wizard->setTitle( page, label );
label = oldLabel;
- formWindow()->emitUpdateProperties( TQT_TQOBJECT(formWindow()->currentWidget()) );
+ formWindow()->emitUpdateProperties( formWindow()->currentWidget() );
}
void RenameWizardPageCommand::unexecute()
@@ -1079,7 +1079,7 @@ void SwapWizardPagesCommand::execute()
wizard->removePage( page2 );
wizard->insertPage( page1, page1Label, index2 );
wizard->insertPage( page2, page2Label, index1 );
- formWindow()->emitUpdateProperties( TQT_TQOBJECT(formWindow()->currentWidget()) );
+ formWindow()->emitUpdateProperties( formWindow()->currentWidget() );
formWindow()->mainWindow()->objectHierarchy()->pagesChanged( wizard );
}
@@ -1101,7 +1101,7 @@ void MoveWizardPageCommand::execute()
TQString pageLabel = wizard->title( page );
wizard->removePage( page );
wizard->insertPage( page, pageLabel, index2 );
- formWindow()->emitUpdateProperties( TQT_TQOBJECT(formWindow()->currentWidget()) );
+ formWindow()->emitUpdateProperties( formWindow()->currentWidget() );
formWindow()->mainWindow()->objectHierarchy()->pagesChanged( wizard );
}
@@ -1112,7 +1112,7 @@ void MoveWizardPageCommand::unexecute()
TQString pageLabel = wizard->title( page );
wizard->removePage( page );
wizard->insertPage( page, pageLabel, index1 );
- formWindow()->emitUpdateProperties( TQT_TQOBJECT(formWindow()->currentWidget()) );
+ formWindow()->emitUpdateProperties( formWindow()->currentWidget() );
formWindow()->mainWindow()->objectHierarchy()->pagesChanged( wizard );
}
@@ -1126,7 +1126,7 @@ AddConnectionCommand::AddConnectionCommand( const TQString &name, FormWindow *fw
void AddConnectionCommand::execute()
{
- MetaDataBase::addConnection( TQT_TQOBJECT(formWindow()), connection.sender,
+ MetaDataBase::addConnection( formWindow(), connection.sender,
connection.signal, connection.receiver, connection.slot );
if ( connection.receiver == formWindow()->mainContainer() )
formWindow()->mainWindow()->propertyeditor()->eventList()->setup();
@@ -1134,7 +1134,7 @@ void AddConnectionCommand::execute()
void AddConnectionCommand::unexecute()
{
- MetaDataBase::removeConnection( TQT_TQOBJECT(formWindow()), connection.sender,
+ MetaDataBase::removeConnection( formWindow(), connection.sender,
connection.signal, connection.receiver, connection.slot );
if ( connection.receiver == formWindow()->mainContainer() )
formWindow()->mainWindow()->propertyeditor()->eventList()->setup();
@@ -1150,7 +1150,7 @@ RemoveConnectionCommand::RemoveConnectionCommand( const TQString &name, FormWind
void RemoveConnectionCommand::execute()
{
- MetaDataBase::removeConnection( TQT_TQOBJECT(formWindow()), connection.sender,
+ MetaDataBase::removeConnection( formWindow(), connection.sender,
connection.signal, connection.receiver, connection.slot );
if ( connection.receiver == formWindow()->mainContainer() )
formWindow()->mainWindow()->propertyeditor()->eventList()->setup();
@@ -1158,7 +1158,7 @@ void RemoveConnectionCommand::execute()
void RemoveConnectionCommand::unexecute()
{
- MetaDataBase::addConnection( TQT_TQOBJECT(formWindow()), connection.sender,
+ MetaDataBase::addConnection( formWindow(), connection.sender,
connection.signal, connection.receiver, connection.slot );
if ( connection.receiver == formWindow()->mainContainer() )
formWindow()->mainWindow()->propertyeditor()->eventList()->setup();
@@ -1176,7 +1176,7 @@ AddFunctionCommand::AddFunctionCommand( const TQString &name, FormWindow *fw, co
void AddFunctionCommand::execute()
{
- MetaDataBase::addFunction( TQT_TQOBJECT(formWindow()), function, specifier, access, functionType, language, returnType );
+ MetaDataBase::addFunction( formWindow(), function, specifier, access, functionType, language, returnType );
formWindow()->mainWindow()->functionsChanged();
//integration (add - execute)
@@ -1195,7 +1195,7 @@ void AddFunctionCommand::execute()
void AddFunctionCommand::unexecute()
{
- MetaDataBase::removeFunction( TQT_TQOBJECT(formWindow()), function, specifier, access, functionType, language, returnType );
+ MetaDataBase::removeFunction( formWindow(), function, specifier, access, functionType, language, returnType );
formWindow()->mainWindow()->functionsChanged();
//integration (add - unexecute)
@@ -1230,7 +1230,7 @@ ChangeFunctionAttribCommand::ChangeFunctionAttribCommand( const TQString &name,
void ChangeFunctionAttribCommand::execute()
{
- MetaDataBase::changeFunctionAttributes( TQT_TQOBJECT(formWindow()), oldName, newName, newSpec, newAccess,
+ MetaDataBase::changeFunctionAttributes( formWindow(), oldName, newName, newSpec, newAccess,
newType, newLang, newReturnType );
formWindow()->formFile()->functionNameChanged( oldName, newName );
formWindow()->formFile()->functionRetTypeChanged( newName, oldReturnType, newReturnType );
@@ -1257,7 +1257,7 @@ void ChangeFunctionAttribCommand::execute()
void ChangeFunctionAttribCommand::unexecute()
{
- MetaDataBase::changeFunctionAttributes( TQT_TQOBJECT(formWindow()), newName, oldName, oldSpec, oldAccess,
+ MetaDataBase::changeFunctionAttributes( formWindow(), newName, oldName, oldSpec, oldAccess,
oldType, oldLang, oldReturnType );
formWindow()->formFile()->functionNameChanged( newName, oldName );
formWindow()->formFile()->functionRetTypeChanged( oldName, newReturnType, oldReturnType );
@@ -1291,7 +1291,7 @@ RemoveFunctionCommand::RemoveFunctionCommand( const TQString &name, FormWindow *
returnType( rt )
{
if ( spec.isNull() ) {
- TQValueList lst = MetaDataBase::functionList( TQT_TQOBJECT(fw) );
+ TQValueList lst = MetaDataBase::functionList( fw );
for ( TQValueList::Iterator it = lst.begin(); it != lst.end(); ++it ) {
if ( MetaDataBase::normalizeFunction( (*it).function ) ==
MetaDataBase::normalizeFunction( function ) ) {
@@ -1308,7 +1308,7 @@ RemoveFunctionCommand::RemoveFunctionCommand( const TQString &name, FormWindow *
void RemoveFunctionCommand::execute()
{
- MetaDataBase::removeFunction( TQT_TQOBJECT(formWindow()), function, specifier, access, functionType, language, returnType );
+ MetaDataBase::removeFunction( formWindow(), function, specifier, access, functionType, language, returnType );
formWindow()->mainWindow()->functionsChanged();
//integration (remove - execute)
@@ -1326,9 +1326,9 @@ void RemoveFunctionCommand::execute()
void RemoveFunctionCommand::unexecute()
{
- if ( MetaDataBase::hasFunction( TQT_TQOBJECT(formWindow()), function ) )
+ if ( MetaDataBase::hasFunction( formWindow(), function ) )
return;
- MetaDataBase::addFunction( TQT_TQOBJECT(formWindow()), function, specifier, access, functionType, language, returnType );
+ MetaDataBase::addFunction( formWindow(), function, specifier, access, functionType, language, returnType );
formWindow()->mainWindow()->functionsChanged();
//integration (remove - unexecute)
@@ -1354,7 +1354,7 @@ AddVariableCommand::AddVariableCommand( const TQString &name, FormWindow *fw, co
void AddVariableCommand::execute()
{
- MetaDataBase::addVariable( TQT_TQOBJECT(formWindow()), varName, access );
+ MetaDataBase::addVariable( formWindow(), varName, access );
formWindow()->mainWindow()->objectHierarchy()->updateFormDefinitionView();
if ( formWindow()->formFile() )
formWindow()->formFile()->setModified( TRUE );
@@ -1362,7 +1362,7 @@ void AddVariableCommand::execute()
void AddVariableCommand::unexecute()
{
- MetaDataBase::removeVariable( TQT_TQOBJECT(formWindow()), varName );
+ MetaDataBase::removeVariable( formWindow(), varName );
formWindow()->mainWindow()->objectHierarchy()->updateFormDefinitionView();
if ( formWindow()->formFile() )
formWindow()->formFile()->setModified( TRUE );
@@ -1374,12 +1374,12 @@ SetVariablesCommand::SetVariablesCommand( const TQString &name, FormWindow *fw,
TQValueList lst )
: Command( name, fw ), newList( lst )
{
- oldList = MetaDataBase::variables( TQT_TQOBJECT(formWindow()) );
+ oldList = MetaDataBase::variables( formWindow() );
}
void SetVariablesCommand::execute()
{
- MetaDataBase::setVariables( TQT_TQOBJECT(formWindow()), newList );
+ MetaDataBase::setVariables( formWindow(), newList );
formWindow()->mainWindow()->objectHierarchy()->updateFormDefinitionView();
if ( formWindow()->formFile() )
formWindow()->formFile()->setModified( TRUE );
@@ -1387,7 +1387,7 @@ void SetVariablesCommand::execute()
void SetVariablesCommand::unexecute()
{
- MetaDataBase::setVariables( TQT_TQOBJECT(formWindow()), oldList );
+ MetaDataBase::setVariables( formWindow(), oldList );
formWindow()->mainWindow()->objectHierarchy()->updateFormDefinitionView();
if ( formWindow()->formFile() )
formWindow()->formFile()->setModified( TRUE );
@@ -1398,7 +1398,7 @@ void SetVariablesCommand::unexecute()
RemoveVariableCommand::RemoveVariableCommand( const TQString &name, FormWindow *fw, const TQString &vn )
: Command( name, fw ), varName( vn )
{
- TQValueList lst = MetaDataBase::variables( TQT_TQOBJECT(fw) );
+ TQValueList lst = MetaDataBase::variables( fw );
for ( TQValueList::Iterator it = lst.begin(); it != lst.end(); ++it ) {
if ( (*it).varName == varName ) {
access = (*it).varAccess;
@@ -1409,7 +1409,7 @@ RemoveVariableCommand::RemoveVariableCommand( const TQString &name, FormWindow *
void RemoveVariableCommand::execute()
{
- MetaDataBase::removeVariable( TQT_TQOBJECT(formWindow()), varName );
+ MetaDataBase::removeVariable( formWindow(), varName );
formWindow()->mainWindow()->objectHierarchy()->updateFormDefinitionView();
if ( formWindow()->formFile() )
formWindow()->formFile()->setModified( TRUE );
@@ -1417,7 +1417,7 @@ void RemoveVariableCommand::execute()
void RemoveVariableCommand::unexecute()
{
- MetaDataBase::addVariable( TQT_TQOBJECT(formWindow()), varName, access );
+ MetaDataBase::addVariable( formWindow(), varName, access );
formWindow()->mainWindow()->objectHierarchy()->updateFormDefinitionView();
if ( formWindow()->formFile() )
formWindow()->formFile()->setModified( TRUE );
@@ -1510,7 +1510,7 @@ void PasteCommand::execute()
{
for ( TQWidget *w = widgets.first(); w; w = widgets.next() ) {
w->show();
- formWindow()->selectWidget( TQT_TQOBJECT(w) );
+ formWindow()->selectWidget( w );
formWindow()->widgets()->insert( w, w );
formWindow()->mainWindow()->objectHierarchy()->widgetInserted( w );
}
@@ -1520,7 +1520,7 @@ void PasteCommand::unexecute()
{
for ( TQWidget *w = widgets.first(); w; w = widgets.next() ) {
w->hide();
- formWindow()->selectWidget( TQT_TQOBJECT(w), FALSE );
+ formWindow()->selectWidget( w, FALSE );
formWindow()->widgets()->remove( w );
formWindow()->mainWindow()->objectHierarchy()->widgetRemoved( w );
}
@@ -1762,21 +1762,21 @@ PopulateMultiLineEditCommand::PopulateMultiLineEditCommand( const TQString &n, F
: Command( n, fw ), newText( txt ), mlined( mle )
{
oldText = mlined->text();
- wasChanged = MetaDataBase::isPropertyChanged( TQT_TQOBJECT(mlined), "text" );
+ wasChanged = MetaDataBase::isPropertyChanged( mlined, "text" );
}
void PopulateMultiLineEditCommand::execute()
{
mlined->setText( newText );
- MetaDataBase::setPropertyChanged( TQT_TQOBJECT(mlined), "text", TRUE );
- formWindow()->emitUpdateProperties( TQT_TQOBJECT(mlined) );
+ MetaDataBase::setPropertyChanged( mlined, "text", TRUE );
+ formWindow()->emitUpdateProperties( mlined );
}
void PopulateMultiLineEditCommand::unexecute()
{
mlined->setText( oldText );
- MetaDataBase::setPropertyChanged( TQT_TQOBJECT(mlined), "text", wasChanged );
- formWindow()->emitUpdateProperties( TQT_TQOBJECT(mlined) );
+ MetaDataBase::setPropertyChanged( mlined, "text", wasChanged );
+ formWindow()->emitUpdateProperties( mlined );
}
// ------------------------------------------------------------
@@ -1788,7 +1788,7 @@ PopulateTableCommand::PopulateTableCommand( const TQString &n, FormWindow *fw, T
{
#ifndef TQT_NO_TABLE
int i = 0;
- TQMap columnFields = MetaDataBase::columnFields( TQT_TQOBJECT(table) );
+ TQMap columnFields = MetaDataBase::columnFields( table );
for ( i = 0; i < table->horizontalHeader()->count(); ++i ) {
PopulateTableCommand::Column col;
col.text = table->horizontalHeader()->label( i );
@@ -1818,7 +1818,7 @@ void PopulateTableCommand::execute()
if ( !(*cit).field.isEmpty() )
columnFields.insert( (*cit).text, (*cit).field );
}
- MetaDataBase::setColumnFields( TQT_TQOBJECT(table), columnFields );
+ MetaDataBase::setColumnFields( table, columnFields );
table->setNumRows( newRows.count() );
i = 0;
for ( TQValueList::Iterator rit = newRows.begin(); rit != newRows.end(); ++rit, ++i )
@@ -1837,7 +1837,7 @@ void PopulateTableCommand::unexecute()
if ( !(*cit).field.isEmpty() )
columnFields.insert( (*cit).text, (*cit).field );
}
- MetaDataBase::setColumnFields( TQT_TQOBJECT(table), columnFields );
+ MetaDataBase::setColumnFields( table, columnFields );
table->setNumRows( oldRows.count() );
i = 0;
for ( TQValueList::Iterator rit = oldRows.begin(); rit != oldRows.end(); ++rit, ++i )
@@ -1955,7 +1955,7 @@ void AddToolBarCommand::execute()
if ( !toolBar ) {
toolBar = new QDesignerToolBar( mainWindow );
TQString n = "Toolbar";
- formWindow()->unify( TQT_TQOBJECT(toolBar), n, TRUE );
+ formWindow()->unify( toolBar, n, TRUE );
toolBar->setName( n );
mainWindow->addToolBar( toolBar, n );
} else {
@@ -2011,7 +2011,7 @@ void AddContainerPageCommand::execute()
wiface->insertPage( wClassName, container, pageLabel, index, page );
MetaDataBase::addEntry( page );
- formWindow()->emitUpdateProperties( TQT_TQOBJECT(formWindow()->currentWidget()) );
+ formWindow()->emitUpdateProperties( formWindow()->currentWidget() );
// #### show and update pages in object hierarchy view
}
@@ -2020,7 +2020,7 @@ void AddContainerPageCommand::unexecute()
if ( !wiface || !wiface->supportsPages( wClassName ) )
return;
wiface->removePage( wClassName, container, index );
- formWindow()->emitUpdateProperties( TQT_TQOBJECT(formWindow()->currentWidget()) );
+ formWindow()->emitUpdateProperties( formWindow()->currentWidget() );
// #### show and update pages in object hierarchy view
}
@@ -2054,7 +2054,7 @@ void DeleteContainerPageCommand::execute()
return;
wiface->removePage( wClassName, container, index );
- formWindow()->emitUpdateProperties( TQT_TQOBJECT(formWindow()->currentWidget()) );
+ formWindow()->emitUpdateProperties( formWindow()->currentWidget() );
// #### show and update pages in object hierarchy view
}
@@ -2066,7 +2066,7 @@ void DeleteContainerPageCommand::unexecute()
index = wiface->count( wClassName, container );
wiface->insertPage( wClassName, container, pageLabel, index, page );
- formWindow()->emitUpdateProperties( TQT_TQOBJECT(formWindow()->currentWidget()) );
+ formWindow()->emitUpdateProperties( formWindow()->currentWidget() );
// #### show and update pages in object hierarchy view
}
@@ -2099,7 +2099,7 @@ void RenameContainerPageCommand::execute()
if ( !wiface || !wiface->supportsPages( wClassName ) )
return;
wiface->renamePage( wClassName, container, index, newLabel );
- formWindow()->emitUpdateProperties( TQT_TQOBJECT(formWindow()->currentWidget()) );
+ formWindow()->emitUpdateProperties( formWindow()->currentWidget() );
// #### show and update pages in object hierarchy view
}
@@ -2108,7 +2108,7 @@ void RenameContainerPageCommand::unexecute()
if ( !wiface || !wiface->supportsPages( wClassName ) )
return;
wiface->renamePage( wClassName, container, index, oldLabel );
- formWindow()->emitUpdateProperties( TQT_TQOBJECT(formWindow()->currentWidget()) );
+ formWindow()->emitUpdateProperties( formWindow()->currentWidget() );
// #### show and update pages in object hierarchy view
}
#endif // TQT_CONTAINER_CUSTOM_WIDGETS
@@ -2407,7 +2407,7 @@ void RenameMenuCommand::execute()
PopupMenuEditor *popup = item->menu();
item->setMenuText( newName );
TQString legal = makeLegal( newName );
- formWindow()->unify( TQT_TQOBJECT(popup), legal, TRUE );
+ formWindow()->unify( popup, legal, TRUE );
popup->setName( legal );
formWindow()->mainWindow()->objectHierarchy()->rebuild();
}
@@ -2429,14 +2429,14 @@ AddToolBoxPageCommand::AddToolBoxPageCommand( const TQString &n, FormWindow *fw,
toolBoxPage = new QDesignerWidget( formWindow(), toolBox, "page" );
toolBoxPage->hide();
index = -1;
- MetaDataBase::addEntry( TQT_TQOBJECT(toolBoxPage) );
+ MetaDataBase::addEntry( toolBoxPage );
}
void AddToolBoxPageCommand::execute()
{
index = toolBox->insertItem( index, toolBoxPage, toolBoxLabel);
toolBox->setCurrentIndex( index );
- formWindow()->emitUpdateProperties( TQT_TQOBJECT(formWindow()->currentWidget()) );
+ formWindow()->emitUpdateProperties( formWindow()->currentWidget() );
formWindow()->mainWindow()->objectHierarchy()->rebuild();
}
@@ -2444,7 +2444,7 @@ void AddToolBoxPageCommand::unexecute()
{
toolBox->removeItem( toolBoxPage );
toolBoxPage->hide();
- formWindow()->emitUpdateProperties( TQT_TQOBJECT(formWindow()->currentWidget()) );
+ formWindow()->emitUpdateProperties( formWindow()->currentWidget() );
formWindow()->mainWindow()->objectHierarchy()->rebuild();
}
@@ -2462,7 +2462,7 @@ void DeleteToolBoxPageCommand::execute()
{
toolBox->removeItem( toolBoxPage );
toolBoxPage->hide();
- formWindow()->emitUpdateProperties( TQT_TQOBJECT(formWindow()->currentWidget()) );
+ formWindow()->emitUpdateProperties( formWindow()->currentWidget() );
formWindow()->mainWindow()->objectHierarchy()->rebuild();
}
@@ -2470,6 +2470,6 @@ void DeleteToolBoxPageCommand::unexecute()
{
index = toolBox->insertItem( index, toolBoxPage, toolBoxLabel );
toolBox->setCurrentIndex( index );
- formWindow()->emitUpdateProperties( TQT_TQOBJECT(formWindow()->currentWidget()) );
+ formWindow()->emitUpdateProperties( formWindow()->currentWidget() );
formWindow()->mainWindow()->objectHierarchy()->rebuild();
}
diff --git a/kdevdesigner/designer/connectiondialog.ui.h b/kdevdesigner/designer/connectiondialog.ui.h
index 25a5d5f2..ea73e46c 100644
--- a/kdevdesigner/designer/connectiondialog.ui.h
+++ b/kdevdesigner/designer/connectiondialog.ui.h
@@ -81,7 +81,7 @@ void ConnectionDialog::init()
}
TQValueList conns =
- MetaDataBase::connections( TQT_TQOBJECT(MainWindow::self->formWindow()) );
+ MetaDataBase::connections( MainWindow::self->formWindow() );
for ( TQValueList::Iterator it = conns.begin();
it != conns.end(); ++it ) {
ConnectionContainer *c = addConnection( (*it).sender, (*it).receiver,
@@ -147,7 +147,7 @@ ConnectionContainer *ConnectionDialog::addConnection( TQObject *sender, TQObject
connect( re, TQT_SIGNAL( currentReceiverChanged( TQObject * ) ),
this, TQT_SLOT( updateEditSlotsButton() ) );
- ConnectionContainer *c = new ConnectionContainer( TQT_TQOBJECT(this), se, si, re, sl, row );
+ ConnectionContainer *c = new ConnectionContainer( this, se, si, re, sl, row );
connections.append( c );
connect( c, TQT_SIGNAL( changed( ConnectionContainer * ) ),
this, TQT_SLOT( updateConnectionState( ConnectionContainer * ) ) );
@@ -188,7 +188,7 @@ void ConnectionDialog::updateConnectionState( ConnectionContainer *c )
void ConnectionDialog::okClicked()
{
TQValueList oldConnections =
- MetaDataBase::connections( TQT_TQOBJECT(MainWindow::self->formWindow()) );
+ MetaDataBase::connections( MainWindow::self->formWindow() );
TQPtrList newConnectionCmds;
TQPtrList oldConnectionCmds;
for ( ConnectionContainer *c = connections.first(); c; c = connections.next() ) {
@@ -215,7 +215,7 @@ void ConnectionDialog::okClicked()
TQValueList conns =
- MetaDataBase::connections( TQT_TQOBJECT(MainWindow::self->formWindow()) );
+ MetaDataBase::connections( MainWindow::self->formWindow() );
for ( TQValueList::Iterator it = conns.begin();
it != conns.end(); ++it ) {
RemoveConnectionCommand *cmd = new RemoveConnectionCommand( i18n( "Remove Signal/Slot "
diff --git a/kdevdesigner/designer/connectionitems.cpp b/kdevdesigner/designer/connectionitems.cpp
index f0a04362..9f0c2b5e 100644
--- a/kdevdesigner/designer/connectionitems.cpp
+++ b/kdevdesigner/designer/connectionitems.cpp
@@ -354,7 +354,7 @@ void SignalItem::senderChanged( TQObject *sender )
}
if ( sender == formWindow->mainContainer() ) {
- TQStringList extra = MetaDataBase::signalList( TQT_TQOBJECT(formWindow) );
+ TQStringList extra = MetaDataBase::signalList( formWindow );
if ( !extra.isEmpty() )
lst += extra;
}
@@ -417,7 +417,7 @@ bool SlotItem::ignoreSlot( const char* slot ) const
return TRUE;
}
- if ( !formWindow->isMainContainer( TQT_TQOBJECT(lastReceiver) ) ) {
+ if ( !formWindow->isMainContainer( lastReceiver ) ) {
if ( qstrcmp( slot, "close()" ) == 0 )
return TRUE;
}
@@ -448,7 +448,7 @@ void SlotItem::updateSlotList()
// accept only public slots. For the form window, also accept protected slots
const TQMetaData* md = lastReceiver->metaObject()->slot( i, TRUE );
if ( ( (lastReceiver->metaObject()->slot( i, TRUE )->access == TQMetaData::Public) ||
- (formWindow->isMainContainer( TQT_TQOBJECT(lastReceiver) ) &&
+ (formWindow->isMainContainer( lastReceiver ) &&
lastReceiver->metaObject()->slot(i, TRUE)->access ==
TQMetaData::Protected) ) &&
!ignoreSlot( md->name ) &&
@@ -460,8 +460,8 @@ void SlotItem::updateSlotList()
LanguageInterface *iface =
MetaDataBase::languageInterface( formWindow->project()->language() );
if ( !iface || iface->supports( LanguageInterface::ConnectionsToCustomSlots ) ) {
- if ( formWindow->isMainContainer( TQT_TQOBJECT(lastReceiver) ) ) {
- TQValueList moreSlots = MetaDataBase::slotList( TQT_TQOBJECT(formWindow) );
+ if ( formWindow->isMainContainer( lastReceiver ) ) {
+ TQValueList moreSlots = MetaDataBase::slotList( formWindow );
if ( !moreSlots.isEmpty() ) {
for ( TQValueList::Iterator it = moreSlots.begin();
it != moreSlots.end(); ++it ) {
diff --git a/kdevdesigner/designer/customwidgeteditorimpl.cpp b/kdevdesigner/designer/customwidgeteditorimpl.cpp
index f417f6f2..56c3bebf 100644
--- a/kdevdesigner/designer/customwidgeteditorimpl.cpp
+++ b/kdevdesigner/designer/customwidgeteditorimpl.cpp
@@ -73,10 +73,10 @@ CustomWidgetEditor::CustomWidgetEditor( TQWidget *parent, MainWindow *mw )
sizeVer->setEnabled( FALSE );
checkContainer->setEnabled( FALSE );
localGlobalCombo->setEnabled( FALSE );
- editClass->setValidator( new AsciiValidator( TQString(":"), TQT_TQOBJECT(editClass) ) );
- editSignal->setValidator( new AsciiValidator( TRUE, TQT_TQOBJECT(editSignal) ) );
- editSlot->setValidator( new AsciiValidator( TRUE, TQT_TQOBJECT(editSignal) ) );
- editProperty->setValidator( new AsciiValidator( TQT_TQOBJECT(editSignal) ) );
+ editClass->setValidator( new AsciiValidator( TQString(":"), editClass ) );
+ editSignal->setValidator( new AsciiValidator( TRUE, editSignal ) );
+ editSlot->setValidator( new AsciiValidator( TRUE, editSignal ) );
+ editProperty->setValidator( new AsciiValidator( editSignal ) );
editSignal->setEnabled( FALSE );
buttonRemoveSignal->setEnabled( FALSE );
diff --git a/kdevdesigner/designer/dbconnectionimpl.cpp b/kdevdesigner/designer/dbconnectionimpl.cpp
index 3cfd1fdc..678dbad0 100644
--- a/kdevdesigner/designer/dbconnectionimpl.cpp
+++ b/kdevdesigner/designer/dbconnectionimpl.cpp
@@ -61,7 +61,7 @@ void DatabaseConnectionEditor::accept()
void DatabaseConnectionEditor::init()
{
connectionWidget->editName->setEnabled( FALSE );
- connectionWidget->editName->setValidator( new AsciiValidator( TQT_TQOBJECT(connectionWidget->editName) ) );
+ connectionWidget->editName->setValidator( new AsciiValidator( connectionWidget->editName ) );
connectionWidget->editName->setText( conn->name() );
connectionWidget->comboDriver->setEnabled( FALSE );
connectionWidget->comboDriver->lineEdit()->setText( conn->driver() );
diff --git a/kdevdesigner/designer/dbconnectionsimpl.cpp b/kdevdesigner/designer/dbconnectionsimpl.cpp
index e589679b..b3ce1b32 100644
--- a/kdevdesigner/designer/dbconnectionsimpl.cpp
+++ b/kdevdesigner/designer/dbconnectionsimpl.cpp
@@ -63,7 +63,7 @@ DatabaseConnectionsEditor::DatabaseConnectionsEditor( Project *pro, TQWidget* pa
listConnections->insertItem( conn->name() );
connectionWidget->comboDriver->insertStringList( TQSqlDatabase::drivers() );
#endif
- connectionWidget->editName->setValidator( new AsciiValidator( TQT_TQOBJECT(connectionWidget->editName) ) );
+ connectionWidget->editName->setValidator( new AsciiValidator( connectionWidget->editName ) );
enableAll( FALSE );
}
diff --git a/kdevdesigner/designer/designerappiface.cpp b/kdevdesigner/designer/designerappiface.cpp
index 4a223cef..5befa1e4 100644
--- a/kdevdesigner/designer/designerappiface.cpp
+++ b/kdevdesigner/designer/designerappiface.cpp
@@ -146,7 +146,7 @@ bool DesignerInterfaceImpl::singleProjectMode() const
void DesignerInterfaceImpl::showError( TQWidget *widget,
int line, const TQString &message )
{
- mainWindow->showErrorMessage( TQT_TQOBJECT(widget), line, message );
+ mainWindow->showErrorMessage( widget, line, message );
}
void DesignerInterfaceImpl::runFinished()
@@ -156,12 +156,12 @@ void DesignerInterfaceImpl::runFinished()
void DesignerInterfaceImpl::showStackFrame( TQWidget *w, int line )
{
- mainWindow->showStackFrame( TQT_TQOBJECT(w), line );
+ mainWindow->showStackFrame( w, line );
}
void DesignerInterfaceImpl::showDebugStep( TQWidget *w, int line )
{
- mainWindow->showDebugStep( TQT_TQOBJECT(w), line );
+ mainWindow->showDebugStep( w, line );
}
void DesignerInterfaceImpl::runProjectPrecondition()
@@ -335,7 +335,7 @@ void DesignerProjectImpl::breakPoints( TQMap > &bps
for ( TQPtrListIterator forms = project->formFiles();
forms.current(); ++forms ) {
if ( forms.current()->formWindow() )
- bps.insert( TQString( forms.current()->formWindow()->name() ) + "