-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathpqListViewEventPlayer.cxx
More file actions
31 lines (28 loc) · 1.04 KB
/
pqListViewEventPlayer.cxx
File metadata and controls
31 lines (28 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
// SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
// SPDX-License-Identifier: BSD-3-Clause
#include "pqListViewEventPlayer.h"
#include <QListView>
//-----------------------------------------------------------------------------
pqListViewEventPlayer::pqListViewEventPlayer(QObject* parentObject)
: Superclass(parentObject)
{
}
//-----------------------------------------------------------------------------
pqListViewEventPlayer::~pqListViewEventPlayer() {}
//-----------------------------------------------------------------------------0000000
bool pqListViewEventPlayer::playEvent(
QObject* object, const QString& command, const QString& arguments, int eventType, bool& error)
{
QListView* listView = qobject_cast<QListView*>(object);
if (!listView)
{
// mouse events go to the viewport widget
listView = qobject_cast<QListView*>(object->parent());
}
if (!listView)
{
return false;
}
return this->Superclass::playEvent(object, command, arguments, eventType, error);
}