diff options
| author | deva <deva> | 2010-02-19 11:26:17 +0000 | 
|---|---|---|
| committer | deva <deva> | 2010-02-19 11:26:17 +0000 | 
| commit | bbf6aeccbd2054063c2c2bfe080b37ea9d993462 (patch) | |
| tree | 889f8ef91865382b52e69f2cd44273122a23addd | |
| parent | ce52eeb9ee3732aa4c88cfd2c70feea8e911e1ff (diff) | |
Disabled scroll on comboboxes. (It now sends the scroll event to its parent.)
| -rw-r--r-- | client/widgets/combobox.cc | 6 | ||||
| -rw-r--r-- | client/widgets/combobox.h | 1 | 
2 files changed, 7 insertions, 0 deletions
| diff --git a/client/widgets/combobox.cc b/client/widgets/combobox.cc index bf25475..59f7604 100644 --- a/client/widgets/combobox.cc +++ b/client/widgets/combobox.cc @@ -30,6 +30,7 @@  #include <QRegExpValidator>  #include <QRegExp>  #include <QLineEdit> +#include <QCoreApplication>  #include "common.h" @@ -230,3 +231,8 @@ bool ComboBox::eventFilter(QObject *obj, QEvent *event)    return QObject::eventFilter(obj, event);  } + +void ComboBox::wheelEvent(QWheelEvent *e) +{ +  QCoreApplication::sendEvent(nativeParentWidget(), e); +} diff --git a/client/widgets/combobox.h b/client/widgets/combobox.h index af48ba5..3cdebfe 100644 --- a/client/widgets/combobox.h +++ b/client/widgets/combobox.h @@ -70,6 +70,7 @@ signals:  protected:    bool eventFilter(QObject *obj, QEvent *event); +  void wheelEvent(QWheelEvent *);  private:    QRegExp rx; | 
