Kstars

abinstablewidget.h
1/*
2 SPDX-FileCopyrightText: 2023 John Evans <john.e.evans.email@googlemail.com>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include <QTableWidget>
10
11// AbInsTableWidget is a subclass of table widget.
12// It has been created for use in AberrationInspector in order to be able to access leaveEvent which is not
13// possible in the QTableWidget implementation.
14//
15// This header file is linked into QT Designer using the Promote widget approach so that AbInsTableWidget rather than
16// QTableWidget is used.
17//
18class AbInsTableWidget : public QTableWidget
19{
21
22 public:
23
24 /**
25 * @brief Create an AbInsTableWidget
26 * @param parent widget
27 */
28 AbInsTableWidget(QWidget *parent = 0);
29 ~AbInsTableWidget();
30
31 /**
32 * @brief event when mouse leaves the boundary of the widget
33 * @param event
34 */
35 void leaveEvent(QEvent * event) override;
36
37 signals:
38 /**
39 * @brief signal mouse left the widget boundary
40 */
41 void leaveTableEvent();
42};
Q_OBJECTQ_OBJECT
QObject * parent() const const
virtual bool event(QEvent *e) override
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 3 2024 11:49:50 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.