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 #include "inattaxonedit.h" 0016 0017 // Local includes 0018 0019 #include "digikam_debug.h" 0020 0021 namespace DigikamGenericINatPlugin 0022 { 0023 0024 TaxonEdit::TaxonEdit(QWidget* const) 0025 : QLineEdit() 0026 { 0027 } 0028 0029 TaxonEdit::~TaxonEdit() 0030 { 0031 } 0032 0033 void TaxonEdit::focusInEvent(QFocusEvent* e) 0034 { 0035 QLineEdit::focusInEvent(e); 0036 0037 if ((e->reason() == Qt::MouseFocusReason) && text().isEmpty()) 0038 { 0039 Q_EMIT inFocus(); 0040 } 0041 } 0042 0043 } // namespace DigikamGenericINatPlugin 0044 0045 #include "moc_inattaxonedit.cpp"