KTextAddons

grammalecteurlrequesterwidget.h
1/*
2 SPDX-FileCopyrightText: 2022-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "textgrammarcheckprivate_export.h"
10#include <QWidget>
11class QLineEdit;
12namespace TextGrammarCheck
13{
14class TEXTGRAMMARCHECK_TESTS_EXPORT GrammalecteUrlRequesterWidget : public QWidget
15{
16 Q_OBJECT
17public:
18 explicit GrammalecteUrlRequesterWidget(QWidget *parent = nullptr);
19 ~GrammalecteUrlRequesterWidget() override;
20
21 void setPath(const QString &path);
22 [[nodiscard]] QString path() const;
23
24 void setPlaceholderText(const QString &text);
25
26private:
27 QLineEdit *const mLineEdit;
28};
29}
QString path(const QString &relativePath)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:02:03 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.