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

0001 /*
0002     This file is part of the KDE libraries
0003     SPDX-FileCopyrightText: 2009 Daniel Calviño Sánchez <danxuliu@gmail.com>
0004 
0005     SPDX-License-Identifier: LGPL-2.0-or-later
0006 */
0007 
0008 #ifndef KSELECTACTION_UNITTEST_H
0009 #define KSELECTACTION_UNITTEST_H
0010 
0011 #include <QObject>
0012 
0013 class KSelectAction_UnitTest : public QObject
0014 {
0015     Q_OBJECT
0016 
0017 private Q_SLOTS:
0018 
0019     // The next 8 are from bug 205293.
0020     void testSetToolTipBeforeRequestingComboBoxWidget();
0021     void testSetToolTipAfterRequestingComboBoxWidget();
0022     void testSetToolTipBeforeRequestingToolButtonWidget();
0023     void testSetToolTipAfterRequestingToolButtonWidget();
0024 
0025     void testSetWhatsThisBeforeRequestingComboBoxWidget();
0026     void testSetWhatsThisAfterRequestingComboBoxWidget();
0027     void testSetWhatsThisBeforeRequestingToolButtonWidget();
0028     void testSetWhatsThisAfterRequestingToolButtonWidget();
0029 
0030     // Test for the eventFilter code.
0031     void testChildActionStateChangeComboMode();
0032 
0033     void testCrashComboBoxDestruction();
0034 
0035     // The next 6 are from bug 203114.
0036     void testRequestWidgetComboBoxModeWidgetParent();
0037     void testRequestWidgetComboBoxModeWidgetParentSeveralActions();
0038 
0039     void testRequestWidgetMenuModeWidgetParent();
0040     void testRequestWidgetMenuModeWidgetParentSeveralActions();
0041     void testRequestWidgetMenuModeWidgetParentAddActions();
0042     void testRequestWidgetMenuModeWidgetParentRemoveActions();
0043 };
0044 
0045 #endif