File indexing completed on 2024-05-05 03:48:37
0001 /* 0002 File : SpinBoxTest.h 0003 Project : LabPlot 0004 Description : More tests for spinbox widgets 0005 -------------------------------------------------------------------- 0006 SPDX-FileCopyrightText: 2022 Martin Marmsoler <martin.marmsoler@gmail.com> 0007 0008 SPDX-License-Identifier: GPL-2.0-or-later 0009 */ 0010 0011 #ifndef SPINBOXTEST_H 0012 #define SPINBOXTEST_H 0013 0014 #include "tests/CommonTest.h" 0015 0016 class SpinBoxTest : public CommonTest { 0017 Q_OBJECT 0018 0019 private Q_SLOTS: 0020 void initTestCase() { 0021 QLocale::setDefault(QLocale(QLocale::Language::English)); 0022 } 0023 0024 void numberSpinBoxProperties(); 0025 void numberSpinBoxCreateStringNumber(); 0026 void numberSpinBoxChangingValueKeyPress(); 0027 void numberSpinBoxLimit(); 0028 void numberSpinBoxPrefixSuffix(); 0029 void numberSpinBoxSuffixFrontToBackSelection(); 0030 void numberSpinBoxSuffixSetCursor(); 0031 void numberSpinBoxSuffixBackToFrontSelection(); 0032 void numberSpinBoxPrefixFrontToBackSelection(); 0033 void numberSpinBoxPrefixBackToFrontSelection(); 0034 void numberSpinBoxPrefixSetCursorPosition(); 0035 void numberSpinBoxEnterNumber(); 0036 void numberSpinBoxFeedback(); 0037 void numberSpinBoxFeedback2(); 0038 void numberSpinBoxFeedbackCursorPosition(); 0039 void numberSpinBoxFeedbackCursorPosition2(); 0040 void numberSpinBoxDecimals2(); 0041 void numberSpinBoxScrollingNegToPos(); 0042 void numberSpinBoxScrollingNegToPos2(); 0043 void numberSpinBoxScrollingNegativeValues(); 0044 void numberSpinBoxMinimumFeedback(); 0045 void numberSpinBoxDecimalsMinMax(); 0046 0047 void thousandSeparator(); 0048 void thousandSeparatorNegative(); 0049 void thousandSeparatorScrolling(); 0050 void thousandSeparatorScrolling2(); 0051 void thousandSeparatorScrollingSeparatorPosition(); 0052 }; 0053 #endif // SPINBOXTEST_H