[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:       2006-05-29 19:51:10
Message-ID: 1148932270.535949.10275.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 546344 by staniek:

Form Designer
- data source pane splitted vertically into two sections for transparency

2.0: ported



 M  +4 -2      kexitabledesignerview.cpp  


--- trunk/koffice/kexi/plugins/tables/kexitabledesignerview.cpp #546343:546344
@@ -675,7 +675,9 @@
 		if (set["primaryKey"].value().toBool()==true) {
 			//primary keys require big int, so if selected type is not integer- remove PK
 			if (fieldTypeGroup != KexiDB::Field::IntegerGroup) {
+				/*not needed, line below will do the work
 				d->view->data()->updateRowEditBuffer(item, COLUMN_ID_PK, QVariant());
+				d->view->data()->saveRowChanges(*item); */
 				//set["primaryKey"] = QVariant(false, 1);
 				d->setPropertyValueIfNeeded( set, "primaryKey", QVariant(false, 1), \
changeDataTypeCommand );  //! @todo should we display (passive?) dialog informing \
about cleared pkey? @@ -935,13 +937,13 @@
 			else
 				toplevelCommand = setPrimaryKeyCommand;
 
-			d->setPropertyValueIfNeeded( set, "primaryKey", QVariant(true,1), \
setPrimaryKeyCommand, true /*forceAddCommand*/ ); +			d->setPropertyValueIfNeeded( \
set, "primaryKey", QVariant(false,1), setPrimaryKeyCommand, true /*forceAddCommand*/ \
);  d->setPropertyValueIfNeeded( set, "autoIncrement", QVariant(false,1), \
setPrimaryKeyCommand );  //			set["autoIncrement"] = QVariant(false,1);
 
 //down			addHistoryCommand( toplevelCommand, false /* !execute */ );
 		}
-		switchPrimaryKey(set, toplevelCommand/*property.value().toBool()*/, \
true/*wasPKey*/, toplevelCommand); +		switchPrimaryKey(set, false, true/*wasPKey*/, \
toplevelCommand);  d->updatePropertiesVisibility(
 			KexiDB::Field::typeForString( set["subType"].value().toString() ), set, \
toplevelCommand);  addHistoryCommand( toplevelCommand, false /* !execute */ );


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

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