File indexing completed on 2024-03-24 04:03:44

0001 /**
0002  * backgroundtest.h
0003  *
0004  * SPDX-FileCopyrightText: 2004 Zack Rusin <zack@kde.org>
0005  *
0006  * SPDX-License-Identifier: LGPL-2.1-or-later
0007  */
0008 #ifndef BACKGROUNDTEST_H
0009 #define BACKGROUNDTEST_H
0010 
0011 #include "backgroundchecker.h"
0012 #include <QElapsedTimer>
0013 #include <QObject>
0014 
0015 class BackgroundTest : public QObject
0016 {
0017     Q_OBJECT
0018 public:
0019     BackgroundTest();
0020 
0021 protected Q_SLOTS:
0022     void slotDone();
0023     void slotMisspelling(const QString &word, int start);
0024 
0025 private:
0026     Sonnet::BackgroundChecker *m_checker;
0027     Sonnet::Speller m_speller;
0028     QElapsedTimer m_timer;
0029     int m_len;
0030 };
0031 
0032 #endif