Jelajahi Sumber

use adjustSize() instead of resizeEvent

Sonnix 6 tahun lalu
induk
melakukan
562344ffc5
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  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);
 }