Browse Source

use adjustSize() instead of resizeEvent

Sonnix 6 năm trước cách đây
mục cha
commit
562344ffc5
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      qsplistbox.cpp

+ 2 - 1
qsplistbox.cpp

@@ -256,7 +256,8 @@ void QspListBox::createList()
         if (curItem != 0)
             qobject_cast<QspTextBox*>(itemWidget(curItem))->SetBackgroundColor(m_selectionColor);
     }
-    resizeEvent(0);
+    adjustSize();
+    //resizeEvent(0);
     //blockSignals(oldState);
 }