|
|
|
@ -29,14 +29,14 @@
|
|
|
|
|
#include "sqloutputwidget.h"
|
|
|
|
|
#include "domutil.h"
|
|
|
|
|
|
|
|
|
|
typedef KDevGenericFactory<SQLSupportPart> STQLSupportFactory;
|
|
|
|
|
typedef KDevGenericFactory<SQLSupportPart> SQLSupportFactory;
|
|
|
|
|
static const KDevPluginInfo data("kdevsqlsupport");
|
|
|
|
|
K_EXPORT_COMPONENT_FACTORY( libkdevsqlsupport, STQLSupportFactory( data ) )
|
|
|
|
|
K_EXPORT_COMPONENT_FACTORY( libkdevsqlsupport, SQLSupportFactory( data ) )
|
|
|
|
|
|
|
|
|
|
SQLSupportPart::SQLSupportPart( TQObject *parent, const char *name, const TQStringList& )
|
|
|
|
|
: KDevLanguageSupport ( &data, parent, name ? name : "SQLSupportPart" )
|
|
|
|
|
{
|
|
|
|
|
setInstance( STQLSupportFactory::instance() );
|
|
|
|
|
setInstance( SQLSupportFactory::instance() );
|
|
|
|
|
setXMLFile( "kdevsqlsupport.rc" );
|
|
|
|
|
|
|
|
|
|
KAction *action;
|
|
|
|
@ -110,10 +110,10 @@ void SQLSupportPart::loadConfig()
|
|
|
|
|
if ( (int)sdb.size() < 6 )
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
conName = "KDEVSTQLSUPPORT_";
|
|
|
|
|
conName = "KDEVSQLSUPPORT_";
|
|
|
|
|
conName += TQString::number( i );
|
|
|
|
|
conNames << conName;
|
|
|
|
|
TQSqlDatabase* db = TQSqlDatabase::addDatabase( sdb[0], TQString( "KDEVSTQLSUPPORT_%1" ).tqarg( i ) );
|
|
|
|
|
TQSqlDatabase* db = TQSqlDatabase::addDatabase( sdb[0], TQString( "KDEVSQLSUPPORT_%1" ).tqarg( i ) );
|
|
|
|
|
db->setDatabaseName( sdb[1] );
|
|
|
|
|
db->setHostName( sdb[2] );
|
|
|
|
|
bool ok;
|
|
|
|
|