Kstars

logedit.h
1/*
2 SPDX-FileCopyrightText: 2005 Jason Harris <kstars@30doradus.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include <QFocusEvent>
10#include <QTextEdit>
11
12/**
13 * @class LogEdit
14 * @brief This is a simple derivative of QTextEdit, that just adds a
15 * focusOut() signal, emitted when the edit loses focus.
16 *
17 * @author Jason Harris
18 * @version 1.0
19 */
20class LogEdit : public QTextEdit
21{
23
24 public:
25 explicit LogEdit(QWidget *parent = nullptr);
26 virtual ~LogEdit() override = default;
27
28 signals:
29 void focusOut();
30
31 protected:
32 void focusOutEvent(QFocusEvent *e) override;
33};
This is a simple derivative of QTextEdit, that just adds a focusOut() signal, emitted when the edit l...
Definition logedit.h:21
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:19:04 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.