[uim-commit] r576 - trunk/qt

kzk at freedesktop.org kzk at freedesktop.org
Sun Feb 6 10:43:56 PST 2005


Author: kzk
Date: 2005-02-06 10:43:53 -0800 (Sun, 06 Feb 2005)
New Revision: 576

Modified:
   trunk/qt/pref-customwidgets.cpp
Log:
* qt/pref-customwidgets.cpp
  - (CustomSpinBox::update(),
     CustomLineEdit::update(),
     CustomPathnameEdit::update(),
     CustomChoiceCombo::update(),
     CustomOrderedListEdit::update(),
     CustomKeyEdit::update())
     : sync with label


Modified: trunk/qt/pref-customwidgets.cpp
===================================================================
--- trunk/qt/pref-customwidgets.cpp	2005-02-06 17:48:22 UTC (rev 575)
+++ trunk/qt/pref-customwidgets.cpp	2005-02-06 18:43:53 UTC (rev 576)
@@ -97,7 +97,8 @@
     setMinValue( m_custom->range->as_int.min );
     setMaxValue( m_custom->range->as_int.max );
 
-    setEnabled( m_custom->is_active );
+    /* sync with Label */
+    parentWidget()->setEnabled( m_custom->is_active );
 }
 
 void CustomSpinBox::setDefault()
@@ -134,7 +135,8 @@
    
     setText( _FU8(m_custom->value->as_str) );
 
-    setEnabled( m_custom->is_active );
+    /* sync with Label */
+    parentWidget()->setEnabled( m_custom->is_active );
 }
 
 void CustomLineEdit::setDefault()
@@ -181,8 +183,8 @@
     
     m_lineEdit->setText( _FU8(m_custom->value->as_pathname) );
 
-    m_lineEdit->setEnabled( m_custom->is_active );
-    m_fileButton->setEnabled( m_custom->is_active );
+    /* sync with Label */
+    parentWidget()->setEnabled( m_custom->is_active );
 }
 
 void CustomPathnameEdit::setDefault()
@@ -249,7 +251,8 @@
     }
     setCurrentItem( default_index );
 
-    setEnabled( m_custom->is_active );
+    /* sync with Label */
+    parentWidget()->setEnabled( m_custom->is_active );
 }
 
 void CustomChoiceCombo::setDefault()
@@ -317,8 +320,8 @@
     
     updateText();
 
-    m_lineEdit->setEnabled( m_custom->is_active );
-    m_editButton->setEnabled( m_custom->is_active );
+    /* sync with Label */
+    parentWidget()->setEnabled( m_custom->is_active );
 }
 
 void CustomOrderedListEdit::setDefault()
@@ -597,8 +600,8 @@
 
     updateText();
 
-    m_lineEdit->setEnabled( m_custom->is_active );
-    m_editButton->setEnabled( m_custom->is_active );
+    /* sync with Label */
+    parentWidget()->setEnabled( m_custom->is_active );
 }
 
 void CustomKeyEdit::updateText()



More information about the Uim-commit mailing list