1 /***************************************************************************
2 common.cpp - description
4 begin : Tue June 6 2002
5 copyright : (C) 2002 by Jan Schäfer
6 email : janschaefer@users.sourceforge.net
7 ***************************************************************************/
9 /******************************************************************************
11 * This file is part of KSambaPlugin. *
13 * KSambaPlugin is free software; you can redistribute it and/or modify *
14 * it under the terms of the GNU General Public License as published by *
15 * the Free Software Foundation; either version 2 of the License, or *
16 * (at your option) any later version. *
18 * KSambaPlugin is distributed in the hope that it will be useful, *
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
21 * GNU General Public License for more details. *
23 * You should have received a copy of the GNU General Public License *
24 * along with KSambaPlugin; if not, write to the Free Software *
25 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
27 ******************************************************************************/
30 #include <kcombobox.h>
31 #include <q3listbox.h>
35 void setComboToString(QComboBox
* combo
,const QString
& s
)
37 int i
= /*combo->model()->index(*/combo
->findText( s
)/*)*/;//model()->findItem(s,Qt::ExactMatch));
38 combo
->setCurrentItem(i
);
41 bool boolFromText(const QString
& value
, bool testTrue
)
43 QString lower
= value
.toLower();
64 QString
textFromBool(bool value
)