Revision: 7310
Author:   nogu.dev
Date:     Fri Sep 16 19:04:58 2011
Log:      * qt4/pref/customwidgets.cpp
  - (TableEditForm::slotAddClicked): Make row height narrower.
http://code.google.com/p/uim/source/detail?r=7310

Modified:
 /trunk/qt4/pref/customwidgets.cpp

=======================================
--- /trunk/qt4/pref/customwidgets.cpp   Fri Sep 16 06:53:16 2011
+++ /trunk/qt4/pref/customwidgets.cpp   Fri Sep 16 19:04:58 2011
@@ -1427,6 +1427,8 @@
     m_table->insertRow( row );
     for ( int i = 0; i < m_table->columnCount(); i++ )
         m_table->setItem( row, i, new QTableWidgetItem( "" ) );
+    m_table->setRowHeight( row,
+            QFontMetrics( m_table->font() ).height() + 2 );
     m_table->scrollToItem( m_table->item( row, 0 ) );
 }

Reply via email to