File indexing completed on 2024-04-28 15:31:54

0001 /*
0002     SPDX-FileCopyrightText: 2017 Elvis Angelaccio <elvis.angelaccio@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-or-later
0005 */
0006 
0007 #ifndef KTOOLTIPWIDGETTEST_H
0008 #define KTOOLTIPWIDGETTEST_H
0009 
0010 #include <QObject>
0011 #include <QRect>
0012 
0013 class KToolTipWidgetTest : public QObject
0014 {
0015     Q_OBJECT
0016 
0017 private Q_SLOTS:
0018 
0019     void initTestCase();
0020 
0021     void showTooltipShouldShowContent();
0022     void hideLaterShouldHideAfterDelay();
0023     void setZeroDelayShouldHideImmediately();
0024     void shouldHideImmediatelyIfContentDestroyed();
0025     void shouldNotTakeOwnershipOfContent();
0026 
0027     void shouldNotObscureTarget_data();
0028     void shouldNotObscureTarget();
0029 
0030 private:
0031     QRect m_screenGeometry;
0032     const int m_offset = 10;
0033 };
0034 
0035 #endif