[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/kexi/plugins/tables
From:       Jaroslaw Staniek <js () iidea ! pl>
Date:       2005-07-04 15:03:16
Message-ID: 1120489396.163911.23048.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 431506 by staniek:

a fix for subtype property (broken after merging)




 M  +2 -2      kexialtertabledialog.cpp  


--- trunk/koffice/kexi/plugins/tables/kexialtertabledialog.cpp #431505:431506
@@ -297,7 +297,7 @@
 	const QStringList nlist = KexiDB::typeNamesForGroup(field->typeGroup());
 	kdDebug() << "KexiAlterTableDialog::init(): subType strings: " << 
 		slist.join("|") << "\nnames: " << nlist.join("|") << endl;
-	set->addProperty(prop = new KoProperty::Property("subType", slist, nlist, \
field->typeString(), i18n("Subtype"))); +	set->addProperty(prop = new \
KoProperty::Property("subType", nlist, slist, field->typeString(), i18n("Subtype"))); \
  set->addProperty( prop = new KoProperty::Property("caption", \
QVariant(field->caption()), i18n("Caption") ) );  #ifdef KEXI_NO_UNFINISHED
@@ -582,7 +582,7 @@
 		KoProperty::Property *subTypeProperty = &set["subType"];
 
 		//update subtype list and value
-		subTypeProperty->setValueList( KoProperty::createValueListFromStringLists(slist, \
nlist) ); +		subTypeProperty->setValueList( nlist, slist );
 		if (set["primaryKey"].value().toBool()==true) //primary keys require big int
 			fieldType = KexiDB::Field::BigInteger;
 		subTypeProperty->setValue( KexiDB::Field::typeString(fieldType) );


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic