File indexing completed on 2024-05-12 16:27:09

0001 /*
0002    SPDX-FileCopyrightText: 2022-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 #pragma once
0007 #include "libruqolawidgets_private_export.h"
0008 #include <QObject>
0009 
0010 class TextSelection;
0011 
0012 class LIBRUQOLAWIDGETS_TESTS_EXPORT TextSelectionImpl
0013 {
0014 public:
0015     TextSelectionImpl();
0016     ~TextSelectionImpl();
0017 
0018     [[nodiscard]] TextSelection *textSelection() const;
0019 
0020     [[nodiscard]] bool mightStartDrag() const;
0021     void setMightStartDrag(bool newMightStartDrag);
0022 
0023 private:
0024     bool mMightStartDrag = false;
0025     TextSelection *const mTextSelection;
0026 };