KDWinUtils
Helper library for MFC to Qt migration
Loading...
Searching...
No Matches
kitemviewtooltiphandler.h
Go to the documentation of this file.
1
/****************************************************************************
2
**
3
** This file is part of KDWinutils, KDAB's MFC to Qt migration tool.
4
**
5
** Copyright (C) 2023 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
6
** All rights reserved.
7
**
8
** This file is intended solely for use by the migration tools and services
9
** provided by Klarälvdalens Datakonsult AB.
10
**
11
** Any other use or distribution of this software that is not otherwise agreed
12
** upon in writing and signed by an authorized representative of Klarälvdalens
13
** Datakonsult AB, KDAB (USA) LLC, KDAB (Deutschland) GmbH & Co. K.G.,
14
** KDAB (France) SAS, KDAB (UK), Ltd., or any future subsidiary of Klarälvdalens
15
** Datakonsult AB is hereby prohibited.
16
**
17
** Contact info@kdab.com if any conditions stated above are unclear to you.
18
**
19
****************************************************************************/
20
21
#pragma once
22
23
#include "
../kdwinutils_global.h
"
24
25
#include <QObject>
26
27
class
QHelpEvent;
28
class
QAbstractItemView;
29
30
KDWINUTILS_BEGIN_NAMESPACE
31
38
class
KItemViewToolTipHandler
:
public
QObject
39
{
40
Q_OBJECT
41
public
:
42
explicit
KItemViewToolTipHandler
(QAbstractItemView *view);
43
44
protected
:
45
bool
eventFilter
(QObject *obj, QEvent *event)
override
;
46
47
signals:
49
void
tooltipRequested
(QHelpEvent *,
const
QModelIndex &)
const
;
50
};
51
52
KDWINUTILS_END_NAMESPACE
KItemViewToolTipHandler
Special filter to handle tooltip events.
Definition
kitemviewtooltiphandler.h:39
KItemViewToolTipHandler::eventFilter
bool eventFilter(QObject *obj, QEvent *event) override
KItemViewToolTipHandler::KItemViewToolTipHandler
KItemViewToolTipHandler(QAbstractItemView *view)
KItemViewToolTipHandler::tooltipRequested
void tooltipRequested(QHelpEvent *, const QModelIndex &) const
Signal emitted when a tooltip is requested on a specific index.
kdwinutils_global.h
KDWINUTILS_BEGIN_NAMESPACE
#define KDWINUTILS_BEGIN_NAMESPACE
Definition
kdwinutils_global.h:27
KDWINUTILS_END_NAMESPACE
#define KDWINUTILS_END_NAMESPACE
Definition
kdwinutils_global.h:28
kdwinutils
widgets
kitemviewtooltiphandler.h
Generated by
1.12.0
Copyright ©
Klarälvdalens Datakonsult AB (KDAB)