1 /* ============================================================ 2 * 3 * This file is a part of digiKam project 4 * https://www.digikam.org 5 * 6 * Date : 2021-03-20 7 * Description : a tool to export images to iNaturalist web service 8 * 9 * Copyright (C) 2021 by Joerg Lohse <joergmlpts at gmail dot com> 10 * 11 * This program is free software; you can redistribute it 12 * and/or modify it under the terms of the GNU General 13 * Public License as published by the Free Software Foundation; 14 * either version 2, or (at your option) any later version. 15 * 16 * This program is distributed in the hope that it will be useful, 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 * GNU General Public License for more details. 20 * 21 * ============================================================ */ 22 23 #include "inattaxonedit.h" 24 25 // Qt includes 26 27 #include <QDebug> 28 29 namespace DigikamGenericINatPlugin 30 { 31 TaxonEdit(QWidget * const)32TaxonEdit::TaxonEdit(QWidget* const) 33 { 34 } 35 ~TaxonEdit()36TaxonEdit::~TaxonEdit() 37 { 38 } 39 focusInEvent(QFocusEvent * e)40void TaxonEdit::focusInEvent(QFocusEvent* e) 41 { 42 QLineEdit::focusInEvent(e); 43 44 if ((e->reason() == Qt::MouseFocusReason) && text().isEmpty()) 45 { 46 emit inFocus(); 47 } 48 } 49 50 } // namespace DigikamGenericINatPlugin 51