Restore XTreeView functionality
I thought Qt5 had fixed this behaviour 'bug', but apparently not. So we still need XTreeView - for Qt5 also.
This commit is contained in:
parent
36e0a64f81
commit
c8a4c3eee9
@ -24,11 +24,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
|
|||||||
|
|
||||||
#include <QMouseEvent>
|
#include <QMouseEvent>
|
||||||
|
|
||||||
#if 0 // FIXME: Test and remove
|
|
||||||
#if QT_VERSION >= 0x050000
|
|
||||||
#error "Do we even need this anymore?"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
class XTreeView : public QTreeView
|
class XTreeView : public QTreeView
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -46,9 +41,6 @@ private:
|
|||||||
QTreeView::mousePressEvent(event);
|
QTreeView::mousePressEvent(event);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
#else
|
|
||||||
typedef QTreeView XTreeView;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user