add more spacing
[personal-kdebase.git] / apps / konqueror / settings / kio / kproxydlgbase.cpp
blob4a4b9572a9b7b2cd3a945959d47a9ba68157cd6e
1 /*
2 kproxydlgbase.h - Base dialog box for proxy configuration
4 Copyright (C) 2001- Dawit Alemayehu <adawit@kde.org>
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU General Public
8 License (GPL) version 2 as published by the Free Software
9 Foundation.
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this library; see the file COPYING.LIB. If not, write to
18 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 Boston, MA 02110-1301, USA.
22 #include "kproxydlgbase.h"
24 KProxyData::KProxyData()
26 init ();
29 KProxyData::KProxyData(const KProxyData &data)
31 (*this) = data;
34 KProxyData& KProxyData::operator=( const KProxyData &data )
36 useReverseProxy = data.useReverseProxy;
37 showEnvVarValue = data.showEnvVarValue;
38 noProxyFor = data.noProxyFor;
39 proxyList = data.proxyList;
40 type = data.type;
42 return (*this);
45 void KProxyData::reset()
47 init();
50 void KProxyData::init()
52 proxyList.clear();
53 noProxyFor.clear();
54 useReverseProxy = false;
55 showEnvVarValue = false;
59 KProxyDialogBase::KProxyDialogBase( QWidget* parent, const char* name,
60 bool modal, const QString &caption )
61 : KDialog( parent )
63 setObjectName( name );
64 setModal( modal );
65 setCaption( caption );
66 setButtons( Ok|Cancel );
67 showButtonSeparator( true );
69 m_bHasValidData = false;
72 void KProxyDialogBase::setHighLight (QWidget* widget, bool highlight)
74 if (!widget)
75 return;
77 QFont f = widget->font();
78 f.setBold( highlight );
79 widget->setFont( f );