Kstars

logedit.h
1 /*
2  SPDX-FileCopyrightText: 2005 Jason Harris <[email protected]>
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  */
20 class LogEdit : public QTextEdit
21 {
22  Q_OBJECT
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 };
Q_OBJECTQ_OBJECT
This is a simple derivative of QTextEdit, that just adds a focusOut() signal, emitted when the edit l...
Definition: logedit.h:20
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Aug 12 2022 04:00:55 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.