File indexing completed on 2025-01-19 03:53:04

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2021-03-20
0007  * Description : a tool to export images to iNaturalist web service
0008  *
0009  * SPDX-FileCopyrightText: 2021      by Joerg Lohse <joergmlpts at gmail dot com>
0010  *
0011  * SPDX-License-Identifier: GPL-2.0-or-later
0012  *
0013  * ============================================================ */
0014 
0015 #ifndef DIGIKAM_INAT_TAXON_EDIT_H
0016 #define DIGIKAM_INAT_TAXON_EDIT_H
0017 
0018 // Qt includes
0019 
0020 #include <QWidget>
0021 #include <QLineEdit>
0022 #include <QFocusEvent>
0023 
0024 namespace DigikamGenericINatPlugin
0025 {
0026 
0027 class TaxonEdit : public QLineEdit
0028 {
0029     Q_OBJECT
0030 
0031 public:
0032 
0033     explicit TaxonEdit(QWidget* const parent = nullptr);
0034     ~TaxonEdit();
0035 
0036 Q_SIGNALS:
0037 
0038     void inFocus();
0039 
0040 protected:
0041 
0042     virtual void focusInEvent(QFocusEvent* e);
0043 };
0044 
0045 } // namespace DigikamGenericINatPlugin
0046 
0047 #endif // DIGIKAM_INAT_TAXON_EDIT_H