X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/938a83b8b12d34087b17c27c29f8f7b7d70d19c8..4cbeb81b2b8e2d37c93cda4d88787e08e0658291:/src/tests/dolphinsearchboxtest.cpp diff --git a/src/tests/dolphinsearchboxtest.cpp b/src/tests/dolphinsearchboxtest.cpp index 49bc7e824..4bfdff76d 100644 --- a/src/tests/dolphinsearchboxtest.cpp +++ b/src/tests/dolphinsearchboxtest.cpp @@ -1,41 +1,34 @@ -/*************************************************************************** - * Copyright (C) 2011 by Peter Penz * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * - ***************************************************************************/ - -#include +/* + * SPDX-FileCopyrightText: 2011 Peter Penz + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ #include "search/dolphinsearchbox.h" -#include + +#include +#include class DolphinSearchBoxTest : public QObject { Q_OBJECT -private slots: +private Q_SLOTS: + void initTestCase(); void init(); void cleanup(); void testTextClearing(); private: - DolphinSearchBox* m_searchBox; + DolphinSearchBox *m_searchBox; }; +void DolphinSearchBoxTest::initTestCase() +{ + QStandardPaths::setTestModeEnabled(true); +} + void DolphinSearchBoxTest::init() { m_searchBox = new DolphinSearchBox();