Revision: 6296
Author: nogu.dev
Date: Sat Mar 27 22:33:48 2010
Log: * qt4/immodule/caretstateindicator.cpp
  - (CaretStateIndicator::update): Adjust size and center text.
    See also gtk/caret-state-indicator.c.
http://code.google.com/p/uim/source/detail?r=6296

Modified:
 /trunk/qt4/immodule/caretstateindicator.cpp

=======================================
--- /trunk/qt4/immodule/caretstateindicator.cpp Mon Mar 22 07:41:15 2010
+++ /trunk/qt4/immodule/caretstateindicator.cpp Sat Mar 27 22:33:48 2010
@@ -43,6 +43,8 @@
 #include <uim/uim-scm.h>

 const int CaretStateIndicator::SPACING = 3;
+static const int DEFAULT_WINDOW_WIDTH = 20;
+static const int DEFAULT_WINDOW_HEIGHT = 20;

 // caret state indicator is a state indicator nearby the caret.
 CaretStateIndicator::CaretStateIndicator(QWidget *parent):
@@ -102,6 +104,8 @@
         for (int i = labelCount; i < colsCount; i++) {
             QLabel *label = new QLabel;
             label->setFrameStyle(QFrame::Box | QFrame::Plain);
+ label->setMinimumSize(DEFAULT_WINDOW_WIDTH, DEFAULT_WINDOW_HEIGHT);
+            label->setAlignment(Qt::AlignCenter);
             m_labelList.append(label);
             layout()->addWidget(label);
         }

To unsubscribe from this group, send email to uim-commit+unsubscribegooglegroups.com or 
reply to this email with the words "REMOVE ME" as the subject.

Reply via email to