File indexing completed on 2024-09-22 04:18:54

0001 /*
0002    SPDX-FileCopyrightText: 2014-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 #include <QObject>
0009 
0010 class TextGoToLineWidgetTest : public QObject
0011 {
0012     Q_OBJECT
0013 public:
0014     explicit TextGoToLineWidgetTest(QObject *parent = nullptr);
0015 
0016 private Q_SLOTS:
0017     void shouldHaveDefaultValuesOnCreation();
0018     void shouldEmitGoToLineSignalWhenPressOnButton();
0019     void shouldEmitGoToLineSignalCorrectValueWhenPressOnButton();
0020     void shouldHideWidgetWhenClickOnCloseButton();
0021     void shouldHideWidgetWhenPressEscape();
0022     void shouldEmitGoToLineSignalWhenSpinboxHasFocusAndWePressEnter();
0023     void shouldHasFocusEachTimeThatItShown();
0024     void shouldSetFocusWhenWeRecallGotToLine();
0025     void shouldChangeMaximumValue();
0026 };