Explorar el Código

use adjustSize() instead of resizeEvent

Sonnix hace 6 años
padre
commit
562344ffc5
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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);
 }