File indexing completed on 2024-04-28 04:38:54

0001 /*
0002     SPDX-FileCopyrightText: 2010 Julien Desgats <julien.desgats@gmail.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 // some utility functions used at various places
0008 #ifndef KDEVPLATFORM_PLUGIN_GREPUTIL_H
0009 #define KDEVPLATFORM_PLUGIN_GREPUTIL_H
0010 
0011 class QComboBox;
0012 class QStringList;
0013 class QString;
0014 
0015 /// Returns the contents of a QComboBox as a QStringList
0016 QStringList qCombo2StringList( QComboBox* combo, bool allowEmpty = false );
0017 
0018 /// Replaces each occurrence of "%s" in pattern by searchString (and "%%" by "%")
0019 QString substitudePattern(const QString& pattern, const QString& searchString);
0020 
0021 #endif