[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:       2004-11-03 16:05:55
Message-ID: 20041103160555.7D50216D38 () office ! kde ! org
[Download RAW message or body]

CVS commit by staniek: 

Table Designer
- some properties are hidden for KEXI_NO_UNFINISHED


  M +13 -2     kexialtertabledialog.cpp   1.70


--- koffice/kexi/plugins/tables/kexialtertabledialog.cpp  #1.69:1.70
@@ -226,4 +226,5 @@ static bool updatePropertiesVisibility(K
                 changed = true;
         }
+#ifndef KEXI_NO_UNFINISHED
         prop = &buf["precision"];
         visible = KexiDB::Field::isFPNumericType(fieldType);
@@ -232,4 +233,5 @@ static bool updatePropertiesVisibility(K
                 changed = true;
         }
+#endif
         prop = &buf["allowEmpty"];
         visible = KexiDB::Field::hasEmptyProperty(fieldType);
@@ -270,5 +272,8 @@ KexiAlterTableDialog::createPropertyBuff
         buff->add(prop = new KexiProperty("subType", field->typeString(), slist, \
nlist, i18n("Subtype")));  
-        buff->add( new KexiProperty("caption", QVariant(field->caption()), \
i18n("Caption") ) ); +        buff->add( prop = new KexiProperty("caption", \
QVariant(field->caption()), i18n("Caption") ) ); +#ifdef KEXI_NO_UNFINISHED
+        prop->setVisible(false);
+#endif
 
         buff->add( prop = new KexiProperty("description", \
QVariant(field->description())) ); @@ -280,7 +285,13 @@ \
KexiAlterTableDialog::createPropertyBuff  
         buff->add( prop = new KexiProperty("precision", \
(int)field->precision()/*200?*/, i18n("Precision"))); +#ifdef KEXI_NO_UNFINISHED
+        prop->setVisible(false);
+#endif
 
 //TODO: set reasonable default for column width...
-        buff->add( new KexiProperty("width", (int)field->width()/*200?*/, \
i18n("Column width"))); +        buff->add( prop = new KexiProperty("width", \
(int)field->width()/*200?*/, i18n("Column width"))); +#ifdef KEXI_NO_UNFINISHED
+        prop->setVisible(false);
+#endif
 
         buff->add( prop = new KexiProperty("defaultValue", \
field->defaultValue()/*200?*/, i18n("Default value")));


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

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