git-svn-id: svn://db.shs.com.ru/libs@923 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2020-04-01 11:56:54 +00:00
parent 7b67296990
commit f75697908e

View File

@@ -34,7 +34,6 @@ EComboBox::EComboBox(QWidget * parent): QComboBox(parent) {
iv.setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
iv.setHorizontalScrollMode(QAbstractItemView::ScrollPerPixel);
iv.setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
iv.setDragDropMode(QAbstractItemView::InternalMove);
iv.setMinimumHeight(100);
icon.setPixmap(QPixmap(":/icons/edit-find.png"));
icon.setScaledContents(true);
@@ -64,6 +63,7 @@ QSize EComboBox::sizeHint() const {
void EComboBox::showPopup() {
iv.setDragDropMode(isEditable() ? QAbstractItemView::InternalMove : QAbstractItemView::NoDragDrop);
filterChanged(filter.text(), true);
QComboBox::showPopup();
QRect r = iv.header()->rect();