Sfoglia il codice sorgente

use adjustSize() instead of resizeEvent

Sonnix 6 anni fa
parent
commit
562344ffc5
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  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);
 }