[uim-commit] r596 - trunk/qt

kzk at freedesktop.org kzk at freedesktop.org
Mon Feb 7 00:43:15 PST 2005


Author: kzk
Date: 2005-02-07 00:43:12 -0800 (Mon, 07 Feb 2005)
New Revision: 596

Modified:
   trunk/qt/pref-customwidgets.cpp
Log:
* qt/pref-customwidgets.cpp
  - (KeyGrabForm::keyPressEvent): add Key_Delete, Key_Insert
  - remove unnecessary spaces


Modified: trunk/qt/pref-customwidgets.cpp
===================================================================
--- trunk/qt/pref-customwidgets.cpp	2005-02-07 08:38:45 UTC (rev 595)
+++ trunk/qt/pref-customwidgets.cpp	2005-02-07 08:43:12 UTC (rev 596)
@@ -55,7 +55,7 @@
 {
     if( !m_custom || m_custom->type != UCustom_Bool )
         return;
-    
+
     setText( _FU8(m_custom->label) );
     setChecked( m_custom->value->as_bool );
 
@@ -132,7 +132,7 @@
 {
     if( !m_custom || m_custom->type != UCustom_Str )
         return;
-   
+
     setText( _FU8(m_custom->value->as_str) );
 
     /* sync with Label */
@@ -180,7 +180,7 @@
 {
     if( !m_custom || m_custom->type != UCustom_Pathname )
         return;
-    
+
     m_lineEdit->setText( _FU8(m_custom->value->as_pathname) );
 
     /* sync with Label */
@@ -222,7 +222,7 @@
 CustomChoiceCombo::CustomChoiceCombo( struct uim_custom *c, QWidget *parent, const char *name)
     : QComboBox( parent, name ),
       UimCustomItemIface( c )
-{    
+{
     QObject::connect( this, SIGNAL(activated(int)),
                       this, SLOT(slotActivated(int)) );
 
@@ -243,10 +243,10 @@
     {
         int count = this->count();
         insertItem( _FU8((*item)->label), count ); // insert item at last
-        
+
         if( QString::compare( default_symbol, (*item)->symbol ) == 0 )
             default_index = index;
-        
+
         index++;
         item++;
     }
@@ -318,7 +318,7 @@
 {
     if( !m_custom || m_custom->type != UCustom_OrderedList )
         return;
-    
+
     updateText();
 
     /* sync with Label */
@@ -854,7 +854,7 @@
      * Ignore Shift modifier for printable char keys for
      * easy-to-recognize key configuration.  uim-custom performs
      * implicit shift key encoding/decoding appropriately.
-     */        
+     */
     if ( ((qkey >= 256 || !isgraph(qkey))) && (e->stateAfter() & Qt::ShiftButton) )
     {
         if( qkey != Qt::Key_Shift )
@@ -902,6 +902,12 @@
     case Qt::Key_BackSpace:
         editString.append( "backspace" );
         break;
+    case Qt::Key_Delete:
+        editString.append( "delete" );
+        break;
+    case Qt::Key_Insert:
+        editString.append( "insert" );
+        break;
     case Qt::Key_Escape:
         editString.append( "escape" );
         break;



More information about the Uim-commit mailing list