소스 검색

Modification to fix a probleme under Windows

Benjamin Long 14 년 전
부모
커밋
6864f7dbca
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      Libs/Widgets/ctkSearchBox.cpp

+ 2 - 1
Libs/Widgets/ctkSearchBox.cpp

@@ -121,13 +121,14 @@ ctkSearchBox::~ctkSearchBox()
 void ctkSearchBox::paintEvent(QPaintEvent * event)
 {
   Q_D(ctkSearchBox);
-  QPainter p(this);
 
   // Draw the line edit with text.
   // Text has already been shifted to the right (in resizeEvent()) to leave
   // space for the search icon.
   this->Superclass::paintEvent(event);
 
+  QPainter p(this);
+
   // Draw clearIcon
   QRect cRect = d->clearRect();
   QPixmap closePixmap = d->clearIcon.pixmap(cRect.size(),d->clearIconMode);