summaryrefslogtreecommitdiffstats
path: root/kitchensync/src/groupconfig.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kitchensync/src/groupconfig.cpp')
-rw-r--r--kitchensync/src/groupconfig.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/kitchensync/src/groupconfig.cpp b/kitchensync/src/groupconfig.cpp
index 2ad4af631..cfedcbfad 100644
--- a/kitchensync/src/groupconfig.cpp
+++ b/kitchensync/src/groupconfig.cpp
@@ -37,42 +37,42 @@
#include <kmessagebox.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qpushbutton.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqpushbutton.h>
-GroupConfig::GroupConfig( QWidget *parent )
- : QWidget( parent )
+GroupConfig::GroupConfig( TQWidget *parent )
+ : TQWidget( parent )
{
- QBoxLayout *topLayout = new QVBoxLayout( this );
+ TQBoxLayout *topLayout = new TQVBoxLayout( this );
topLayout->setSpacing( KDialog::spacingHint() );
- QFrame *titleFrame = new QFrame( this );
+ TQFrame *titleFrame = new TQFrame( this );
topLayout->addWidget( titleFrame );
titleFrame->setPaletteForegroundColor( colorGroup().light() );
titleFrame->setPaletteBackgroundColor( colorGroup().mid() );
- QBoxLayout *nameLayout = new QHBoxLayout( titleFrame );
+ TQBoxLayout *nameLayout = new TQHBoxLayout( titleFrame );
nameLayout->setMargin( 4 );
- QPixmap icon = KGlobal::iconLoader()->loadIcon( "kontact_summary",
+ TQPixmap icon = KGlobal::iconLoader()->loadIcon( "kontact_summary",
KIcon::Desktop );
- QLabel *iconLabel = new QLabel( titleFrame );
+ TQLabel *iconLabel = new TQLabel( titleFrame );
iconLabel->setPixmap( icon );
nameLayout->addWidget( iconLabel );
nameLayout->addSpacing( 8 );
- QLabel *label = new QLabel( i18n("Group:"), titleFrame );
- QFont font = label->font();
+ TQLabel *label = new TQLabel( i18n("Group:"), titleFrame );
+ TQFont font = label->font();
font.setBold( true );
font.setPointSize( font.pointSize() + 2 );
label->setFont( font );
nameLayout->addWidget( label );
- mNameLabel = new QLabel( titleFrame );
+ mNameLabel = new TQLabel( titleFrame );
font = mNameLabel->font();
font.setBold( true );
font.setPointSize( font.pointSize() + 2 );
@@ -84,18 +84,18 @@ GroupConfig::GroupConfig( QWidget *parent )
mMemberView = new KJanusWidget( this, 0, KJanusWidget::IconList );
topLayout->addWidget( mMemberView );
- QBoxLayout *buttonLayout = new QHBoxLayout( topLayout );
+ TQBoxLayout *buttonLayout = new TQHBoxLayout( topLayout );
- QPushButton *addButton = new QPushButton( i18n("Add Member..."), this );
- connect( addButton, SIGNAL( clicked() ), SLOT( addMember() ) );
+ TQPushButton *addButton = new TQPushButton( i18n("Add Member..."), this );
+ connect( addButton, TQT_SIGNAL( clicked() ), TQT_SLOT( addMember() ) );
buttonLayout->addWidget( addButton );
buttonLayout->addStretch( 1 );
icon = KGlobal::iconLoader()->loadIcon( "bookmark", KIcon::Desktop );
- QFrame *page = mMemberView->addPage( i18n("Group"),
+ TQFrame *page = mMemberView->addPage( i18n("Group"),
i18n("General Group Settings"), icon );
- QBoxLayout *pageLayout = new QVBoxLayout( page );
+ TQBoxLayout *pageLayout = new TQVBoxLayout( page );
mCommonConfig = new GroupConfigCommon( page );
pageLayout->addWidget( mCommonConfig );
@@ -113,11 +113,11 @@ void GroupConfig::setSyncProcess( SyncProcess *process )
void GroupConfig::updateMembers()
{
- QValueList<MemberConfig *>::ConstIterator memberIt;
+ TQValueList<MemberConfig *>::ConstIterator memberIt;
for ( memberIt = mMemberConfigs.begin(); memberIt != mMemberConfigs.end(); ++memberIt )
(*memberIt)->saveData();
- QValueList<QFrame *>::ConstIterator it2;
+ TQValueList<TQFrame *>::ConstIterator it2;
for ( it2 = mConfigPages.begin(); it2 != mConfigPages.end(); ++it2 ) {
mMemberView->removePage( *it2 );
delete *it2;
@@ -130,10 +130,10 @@ void GroupConfig::updateMembers()
for ( ; it != group.end(); ++it ) {
QSync::Member member = *it;
MemberInfo mi( member );
- QFrame *page = mMemberView->addPage( mi.name(),
- QString( "%1 (%2)" ).arg( mi.name() ).arg(member.pluginName()), mi.desktopIcon() );
+ TQFrame *page = mMemberView->addPage( mi.name(),
+ TQString( "%1 (%2)" ).arg( mi.name() ).arg(member.pluginName()), mi.desktopIcon() );
- QBoxLayout *pageLayout = new QVBoxLayout( page );
+ TQBoxLayout *pageLayout = new TQVBoxLayout( page );
mConfigPages.append( page );
MemberConfig *memberConfig = new MemberConfig( page, member );
@@ -148,7 +148,7 @@ void GroupConfig::saveConfig()
{
mProcess->group().save();
- QValueList<MemberConfig *>::ConstIterator it;
+ TQValueList<MemberConfig *>::ConstIterator it;
for ( it = mMemberConfigs.begin(); it != mMemberConfigs.end(); ++it )
(*it)->saveData();