File indexing completed on 2025-01-19 04:46:55
0001 /* 0002 SPDX-FileCopyrightText: 2014-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 #include <QObject> 0009 0010 class EventEditTest : public QObject 0011 { 0012 Q_OBJECT 0013 public: 0014 explicit EventEditTest(QObject *parent = nullptr); 0015 0016 private Q_SLOTS: 0017 void shouldHaveDefaultValuesOnCreation(); 0018 void shouldEmitCollectionChanged(); 0019 void shouldEmitMessageChanged(); 0020 void shouldNotEmitWhenCollectionIsNotChanged(); 0021 void shouldNotEmitWhenMessageIsNotChanged(); 0022 void shouldHideWidgetWhenPressEnter(); 0023 void shouldEmitEventWhenPressEnter(); 0024 void shouldSaveCollectionSettingsWhenCloseWidget(); 0025 void shouldSaveCollectionSettings(); 0026 void shouldHideWidgetWhenPressEscape(); 0027 void shouldHideWidgetWhenSaveClicked(); 0028 void shouldEventHasCorrectSubject(); 0029 void shouldSelectLineWhenPutMessage(); 0030 void shouldHaveCorrectStartEndDateTime(); 0031 void shouldSaveCollectionSettingsWhenDeleteWidget(); 0032 void shouldNotEmitCreateEventWhenDateIsInvalid(); 0033 void shouldSetFocusWhenWeCallTodoEdit(); 0034 void shouldEnsureEndDateIsNotBeforeStartDate(); 0035 void shouldEnabledSaveOpenEditorButton(); 0036 void shouldUpdateStartEndDateWhenReopenIt(); 0037 void shouldDisabledSaveOpenEditorButtonWhenCollectionComboBoxIsEmpty(); 0038 };