git-svn-id: svn://db.shs.com.ru/libs@923 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user