diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-17 19:08:25 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-17 19:08:25 +0000 |
commit | e9be34de5fe62ce92c1d4cad63d03be76e9beb8d (patch) | |
tree | b41889ff9d6b950124134560ccbcecc78493a452 /languages/sql/sqlsupport_part.cpp | |
parent | 48d4a26399959121f33d2bc3bfe51c7827b654fc (diff) | |
download | tdevelop-e9be34de5fe62ce92c1d4cad63d03be76e9beb8d.tar.gz tdevelop-e9be34de5fe62ce92c1d4cad63d03be76e9beb8d.zip |
Fix kdevelop Qt3 compilation
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1237312 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'languages/sql/sqlsupport_part.cpp')
-rw-r--r-- | languages/sql/sqlsupport_part.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/languages/sql/sqlsupport_part.cpp b/languages/sql/sqlsupport_part.cpp index c31a4499..9ce617e3 100644 --- a/languages/sql/sqlsupport_part.cpp +++ b/languages/sql/sqlsupport_part.cpp @@ -29,12 +29,12 @@ #include "sqloutputwidget.h" #include "domutil.h" -typedef KDevGenericFactory<STQLSupportPart> STQLSupportFactory; +typedef KDevGenericFactory<SQLSupportPart> STQLSupportFactory; static const KDevPluginInfo data("kdevsqlsupport"); K_EXPORT_COMPONENT_FACTORY( libkdevsqlsupport, STQLSupportFactory( data ) ) -STQLSupportPart::STQLSupportPart( TQObject *tqparent, const char *name, const TQStringList& ) - : KDevLanguageSupport ( &data, tqparent, name ? name : "STQLSupportPart" ) +SQLSupportPart::SQLSupportPart( TQObject *tqparent, const char *name, const TQStringList& ) + : KDevLanguageSupport ( &data, tqparent, name ? name : "SQLSupportPart" ) { setInstance( STQLSupportFactory::instance() ); setXMLFile( "kdevsqlsupport.rc" ); @@ -46,7 +46,7 @@ STQLSupportPart::STQLSupportPart( TQObject *tqparent, const char *name, const TQ dbAction = new SqlListAction( this, i18n( "&Database Connections" ), 0, this, TQT_SLOT(activeConnectionChanged()), actionCollection(), "connection_combo" ); - kdDebug( 9000 ) << "Creating STQLSupportPart" << endl; + kdDebug( 9000 ) << "Creating SQLSupportPart" << endl; connect( core(), TQT_SIGNAL( projectConfigWidget( KDialogBase* ) ), this, TQT_SLOT( projectConfigWidget( KDialogBase* ) ) ); @@ -61,13 +61,13 @@ STQLSupportPart::STQLSupportPart( TQObject *tqparent, const char *name, const TQ } -STQLSupportPart::~STQLSupportPart() +SQLSupportPart::~SQLSupportPart() { mainWindow()->removeView(m_widget); delete m_widget; } -TQString STQLSupportPart::cryptStr(const TQString& aStr) +TQString SQLSupportPart::cryptStr(const TQString& aStr) { TQString result; for (unsigned int i = 0; i < aStr.length(); i++) @@ -76,12 +76,12 @@ TQString STQLSupportPart::cryptStr(const TQString& aStr) return result; } -void STQLSupportPart::activeConnectionChanged() +void SQLSupportPart::activeConnectionChanged() { updateCatalog(); } -void STQLSupportPart::clearConfig() +void SQLSupportPart::clearConfig() { for ( TQStringList::Iterator it = conNames.begin(); it != conNames.end(); ++it ) { if ( TQSqlDatabase::tqcontains( *it ) ) { @@ -96,7 +96,7 @@ void STQLSupportPart::clearConfig() dbAction->refresh(); } -void STQLSupportPart::loadConfig() +void SQLSupportPart::loadConfig() { clearConfig(); @@ -130,7 +130,7 @@ void STQLSupportPart::loadConfig() dbAction->refresh(); } -void STQLSupportPart::projectConfigWidget( KDialogBase *dlg ) +void SQLSupportPart::projectConfigWidget( KDialogBase *dlg ) { TQVBox *vbox = dlg->addVBoxPage( TQString( "SQL" ), i18n( "Specify Your Database Connections" ), BarIcon("source", KIcon::SizeMedium) ); SqlConfigWidget *w = new SqlConfigWidget( (TQWidget*)vbox, "SQL config widget" ); @@ -140,7 +140,7 @@ void STQLSupportPart::projectConfigWidget( KDialogBase *dlg ) connect( w, TQT_SIGNAL(newConfigSaved()), this, TQT_SLOT(loadConfig()) ); } -void STQLSupportPart::projectOpened() +void SQLSupportPart::projectOpened() { connect( project(), TQT_SIGNAL( addedFilesToProject( const TQStringList & ) ), this, TQT_SLOT( addedFilesToProject( const TQStringList & ) ) ); @@ -155,12 +155,12 @@ void STQLSupportPart::projectOpened() } -void STQLSupportPart::projectClosed() +void SQLSupportPart::projectClosed() { clearConfig(); } -void STQLSupportPart::slotRun () +void SQLSupportPart::slotRun () { TQString cName = dbAction->currentConnectionName(); if ( cName.isEmpty() ) { @@ -191,12 +191,12 @@ static TQString dbCaption(const TQSqlDatabase* db) } #endif -void STQLSupportPart::parse() +void SQLSupportPart::parse() { // @todo } -void STQLSupportPart::updateCatalog() +void SQLSupportPart::updateCatalog() { if (!project() || !dbAction) return; @@ -236,7 +236,7 @@ void STQLSupportPart::updateCatalog() emit updatedSourceInfo(); } -void STQLSupportPart::addedFilesToProject( const TQStringList &fileList ) +void SQLSupportPart::addedFilesToProject( const TQStringList &fileList ) { TQStringList::ConstIterator it; @@ -248,7 +248,7 @@ void STQLSupportPart::addedFilesToProject( const TQStringList &fileList ) } -void STQLSupportPart::removedFilesFromProject( const TQStringList &fileList ) +void SQLSupportPart::removedFilesFromProject( const TQStringList &fileList ) { TQStringList::ConstIterator it; @@ -259,7 +259,7 @@ void STQLSupportPart::removedFilesFromProject( const TQStringList &fileList ) emit updatedSourceInfo(); } -void STQLSupportPart::savedFile( const KURL &fileName ) +void SQLSupportPart::savedFile( const KURL &fileName ) { if ( project() ->allFiles().tqcontains( fileName.path().mid ( project() ->projectDirectory().length() + 1 ) ) ) { // parse( fileName ); @@ -267,12 +267,12 @@ void STQLSupportPart::savedFile( const KURL &fileName ) } } -KDevLanguageSupport::Features STQLSupportPart::features() +KDevLanguageSupport::Features SQLSupportPart::features() { return Features( Classes | Functions ); } -KMimeType::List STQLSupportPart::mimeTypes( ) +KMimeType::List SQLSupportPart::mimeTypes( ) { KMimeType::List list; KMimeType::Ptr mime = KMimeType::mimeType( "text/plain" ); |