File: ktooltiphelper_unittest.h

package info (click to toggle)
kf6-kxmlgui 6.13.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 26,992 kB
  • sloc: cpp: 16,703; xml: 45; python: 41; ansic: 22; sh: 18; makefile: 7
file content (42 lines) | stat: -rw-r--r-- 854 bytes parent folder | download | duplicates (3)
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
32
33
34
35
36
37
38
39
40
41
42
/*
    This file is part of the KDE libraries
    SPDX-FileCopyrightText: 2021 Felix Ernst <fe.a.ernst@gmail.com>

    SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/

#ifndef KTOOLTIPHELPER_UNITTEST_H
#define KTOOLTIPHELPER_UNITTEST_H

#include <QObject>

#include <QMainWindow>

class QFrame;
class QToolButton;
class QWidget;

class KToolTipHelper_UnitTest : public QObject
{
    Q_OBJECT

private:
    QString shownToolTip(QWidget *widget);

private Q_SLOTS:
    void initTestCase();
    void testGeneralWidget();
    void testInvokingWhatsThis();
    void testQToolButton();
    void testQMenu();
    void cleanupTestCase();

private:
    std::unique_ptr<QMainWindow> m_window;
    QWidget *m_centralWidget;
    QFrame *m_frame;
    QFrame *m_frameWithoutToolTip;
    QToolButton *m_toolButton;
};

#endif