summaryrefslogtreecommitdiffabout
authorulf69 <ulf69>2004-06-29 05:23:32 (UTC)
committer ulf69 <ulf69>2004-06-29 05:23:32 (UTC)
commitfbc79b15b58ca195fa63c741a89d6d098cc05a66 (patch) (side-by-side diff)
treee17713fc73877f2ff133af8910d40e0ae0590df5
parent822dcc26ab3b70952679a1e12a010549659b6351 (diff)
downloadkdepimpi-fbc79b15b58ca195fa63c741a89d6d098cc05a66.zip
kdepimpi-fbc79b15b58ca195fa63c741a89d6d098cc05a66.tar.gz
kdepimpi-fbc79b15b58ca195fa63c741a89d6d098cc05a66.tar.bz2
removed inclusion of moc file
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--kabc/distributionlistdialog.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/kabc/distributionlistdialog.cpp b/kabc/distributionlistdialog.cpp
index 31d5944..d2e1144 100644
--- a/kabc/distributionlistdialog.cpp
+++ b/kabc/distributionlistdialog.cpp
@@ -1,90 +1,88 @@
/*
This file is part of libkabc.
Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library 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
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
*/
#include <qlistview.h>
#include <qlayout.h>
#include <qlabel.h>
#include <qpushbutton.h>
#include <qcombobox.h>
#include <klineeditdlg.h>
#include <qbuttongroup.h>
#include <qradiobutton.h>
#include <klocale.h>
#include <kdebug.h>
#include <kmessagebox.h>
#include "addressbook.h"
#include "addresseedialog.h"
#include "distributionlist.h"
#include "distributionlistdialog.h"
-#ifndef KAB_EMBEDDED
-#include "distributionlistdialog.moc"
-#endif //KAB_EMBEDDED
+//US #include "distributionlistdialog.moc"
using namespace KABC;
DistributionListDialog::DistributionListDialog( AddressBook *addressBook, QWidget *parent)
: KDialogBase( parent, "", true, i18n("Configure Distribution Lists"), Ok, Ok, true)
{
mEditor = new DistributionListEditorWidget( addressBook, this );
setMainWidget( mEditor );
connect( this, SIGNAL( okClicked() ), mEditor, SLOT( save() ) );
}
DistributionListDialog::~DistributionListDialog()
{
}
EmailSelector::EmailSelector( const QStringList &emails, const QString &current,
QWidget *parent ) :
KDialogBase( KDialogBase::Plain, i18n("Select Email Address"), Ok, Ok,
parent )
{
QFrame *topFrame = plainPage();
QBoxLayout *topLayout = new QVBoxLayout( topFrame );
mButtonGroup = new QButtonGroup( 1, Horizontal, i18n("Email Addresses"),
topFrame );
topLayout->addWidget( mButtonGroup );
QStringList::ConstIterator it;
for( it = emails.begin(); it != emails.end(); ++it ) {
QRadioButton *button = new QRadioButton( *it, mButtonGroup );
if ( (*it) == current ) {
button->setDown( true );
}
}
}
QString EmailSelector::selected()
{
QButton *button = mButtonGroup->selected();
if ( button ) return button->text();
return QString::null;
}
QString EmailSelector::getEmail( const QStringList &emails, const QString &current,
QWidget *parent )
{