dockwidgettitlebareventfilter.cpp 440 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#include "dockwidgettitlebareventfilter.h"
#include <QDebug>
#include <QEvent>
DockWidgetTitleBarEventFilter::DockWidgetTitleBarEventFilter(QObject *parent) : QObject(parent)
{
}
bool DockWidgetTitleBarEventFilter::eventFilter(QObject *object,QEvent *event)
{
    if (event->type() == QEvent::MouseButtonPress || event->type() == QEvent::MouseButtonRelease)
    {
        return true;
    }
    return QObject::eventFilter(object,event);
}