Changeset View
Changeset View
Standalone View
Standalone View
autotests/ktooltipwidgettest.h
Show All 13 Lines | |||||
14 | * You should have received a copy of the GNU Lesser General Public | 14 | * You should have received a copy of the GNU Lesser General Public | ||
15 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. | 15 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | 16 | */ | ||
17 | 17 | | |||
18 | #ifndef KTOOLTIPWIDGETTEST_H | 18 | #ifndef KTOOLTIPWIDGETTEST_H | ||
19 | #define KTOOLTIPWIDGETTEST_H | 19 | #define KTOOLTIPWIDGETTEST_H | ||
20 | 20 | | |||
21 | #include <QObject> | 21 | #include <QObject> | ||
22 | #include <QRect> | ||||
22 | 23 | | |||
23 | class KToolTipWidgetTest : public QObject | 24 | class KToolTipWidgetTest : public QObject | ||
24 | { | 25 | { | ||
25 | Q_OBJECT | 26 | Q_OBJECT | ||
26 | 27 | | |||
27 | private Q_SLOTS: | 28 | private Q_SLOTS: | ||
28 | 29 | | |||
30 | void initTestCase(); | ||||
31 | | ||||
29 | void showTooltipShouldShowContent(); | 32 | void showTooltipShouldShowContent(); | ||
30 | void hideLaterShouldHideAfterDelay(); | 33 | void hideLaterShouldHideAfterDelay(); | ||
31 | void setZeroDelayShouldHideImmediately(); | 34 | void setZeroDelayShouldHideImmediately(); | ||
32 | void shouldHideImmediatelyIfContentDestroyed(); | 35 | void shouldHideImmediatelyIfContentDestroyed(); | ||
33 | void shouldNotTakeOwnershipOfContent(); | 36 | void shouldNotTakeOwnershipOfContent(); | ||
37 | | ||||
38 | void shouldNotObscureTarget_data(); | ||||
39 | void shouldNotObscureTarget(); | ||||
40 | | ||||
41 | private: | ||||
42 | QRect m_screenGeometry; | ||||
43 | const int m_offset = 10; | ||||
34 | }; | 44 | }; | ||
35 | 45 | | |||
36 | #endif | 46 | #endif |