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 
0007 #include "textselectionimpl.h"
0008 #include "textselection.h"
0009 
0010 TextSelectionImpl::TextSelectionImpl()
0011     : mTextSelection(new TextSelection)
0012 {
0013 }
0014 
0015 TextSelectionImpl::~TextSelectionImpl()
0016 {
0017     delete mTextSelection;
0018 }
0019 
0020 TextSelection *TextSelectionImpl::textSelection() const
0021 {
0022     return mTextSelection;
0023 }
0024 
0025 bool TextSelectionImpl::mightStartDrag() const
0026 {
0027     return mMightStartDrag;
0028 }
0029 
0030 void TextSelectionImpl::setMightStartDrag(bool newMightStartDrag)
0031 {
0032     mMightStartDrag = newMightStartDrag;
0033 }