summaryrefslogtreecommitdiffstats
path: root/kuser/editGroup.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-18 20:34:22 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-18 20:34:22 +0000
commitb09bffed6b43262948018dfb0f11890850ddf7c1 (patch)
tree138696bfcc7ac01070d0e8ecaa1cdf94611a2bd8 /kuser/editGroup.cpp
parent6d43944a7130b9d1b4ae3fba37b774aced8612cf (diff)
downloadtdeadmin-b09bffed6b43262948018dfb0f11890850ddf7c1.tar.gz
tdeadmin-b09bffed6b43262948018dfb0f11890850ddf7c1.zip
TQt4 port kdeadmin
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1237416 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kuser/editGroup.cpp')
-rw-r--r--kuser/editGroup.cpp58
1 files changed, 29 insertions, 29 deletions
diff --git a/kuser/editGroup.cpp b/kuser/editGroup.cpp
index 2f6a4cf..0298f4b 100644
--- a/kuser/editGroup.cpp
+++ b/kuser/editGroup.cpp
@@ -35,8 +35,8 @@
#include "editGroup.h"
editGroup::editGroup(KU::KGroup *akg, bool samba, bool add,
- TQWidget* parent, const char* name)
- : KDialogBase(parent, name, true, i18n("Group Properties"), Ok | Cancel, Ok, true)
+ TQWidget* tqparent, const char* name)
+ : KDialogBase(tqparent, name, true, i18n("Group Properties"), Ok | Cancel, Ok, true)
{
kg = akg;
mAdd = add;
@@ -51,7 +51,7 @@ editGroup::editGroup(KU::KGroup *akg, bool samba, bool add,
rid.rid = 514; rid.name = i18n("Domain Guests"); rid.desc = i18n("Guests"); mRids.append( rid );
TQFrame *page = makeMainWidget();
- TQGridLayout *layout = new TQGridLayout( page, 10, 3, marginHint(), spacingHint() );
+ TQGridLayout *tqlayout = new TQGridLayout( page, 10, 3, marginHint(), spacingHint() );
TQLabel *lb;
lb = new TQLabel( page );
@@ -60,12 +60,12 @@ editGroup::editGroup(KU::KGroup *akg, bool samba, bool add,
// ensure it fits at least 20 characters
legid->setText( "XXXXXXXXXXXXXXXXXXX" );
legid->setText( TQString::number(kg->getGID()) );
- legid->setValidator( new TQIntValidator(this) );
+ legid->setValidator( new TQIntValidator(TQT_TQOBJECT(this)) );
legid->setEnabled( mAdd );
legid->setReadOnly( ro );
lb->setBuddy( legid );
- layout->addWidget( lb, 0, 0 );
- layout->addMultiCellWidget( legid, 0, 0, 1, 2 );
+ tqlayout->addWidget( lb, 0, 0 );
+ tqlayout->addMultiCellWidget( legid, 0, 0, 1, 2 );
if ( mSamba ) {
lb = new TQLabel( page );
@@ -78,12 +78,12 @@ editGroup::editGroup(KU::KGroup *akg, bool samba, bool add,
}
lerid->setCurrentText( TQString::number( sid.getRID() ) );
- lerid->setValidator (new TQIntValidator(this) );
+ lerid->setValidator (new TQIntValidator(TQT_TQOBJECT(this)) );
lerid->setEnabled( mAdd );
connect( lerid, TQT_SIGNAL(activated(int)), TQT_SLOT(ridSelected(int)) );
lb->setBuddy( lerid );
- layout->addWidget( lb, 1, 0 );
- layout->addMultiCellWidget( lerid, 1, 1, 1, 2 );
+ tqlayout->addWidget( lb, 1, 0 );
+ tqlayout->addMultiCellWidget( lerid, 1, 1, 1, 2 );
}
lb = new TQLabel( page );
@@ -96,8 +96,8 @@ editGroup::editGroup(KU::KGroup *akg, bool samba, bool add,
legrpname->setReadOnly( ro );
legrpname->setFocus();
lb->setBuddy( legrpname );
- layout->addWidget( lb, 2, 0 );
- layout->addMultiCellWidget( legrpname, 2, 2, 1, 2 );
+ tqlayout->addWidget( lb, 2, 0 );
+ tqlayout->addMultiCellWidget( legrpname, 2, 2, 1, 2 );
if ( mSamba ) {
lb = new TQLabel( page );
@@ -106,8 +106,8 @@ editGroup::editGroup(KU::KGroup *akg, bool samba, bool add,
ledesc->setText( kg->getDesc() );
ledesc->setReadOnly( ro );
lb->setBuddy( ledesc );
- layout->addWidget( lb, 3, 0 );
- layout->addMultiCellWidget( ledesc, 3, 3, 1, 2 );
+ tqlayout->addWidget( lb, 3, 0 );
+ tqlayout->addMultiCellWidget( ledesc, 3, 3, 1, 2 );
lb = new TQLabel( page );
lb->setText(i18n("Display name:"));
@@ -115,8 +115,8 @@ editGroup::editGroup(KU::KGroup *akg, bool samba, bool add,
ledispname->setText( kg->getDisplayName() );
ledispname->setReadOnly( ro );
lb->setBuddy( ledispname );
- layout->addWidget( lb, 4, 0 );
- layout->addMultiCellWidget( ledispname, 4, 4, 1, 2 );
+ tqlayout->addWidget( lb, 4, 0 );
+ tqlayout->addMultiCellWidget( ledispname, 4, 4, 1, 2 );
lb = new TQLabel( page );
lb->setText(i18n("Type:"));
@@ -136,8 +136,8 @@ editGroup::editGroup(KU::KGroup *akg, bool samba, bool add,
break;
}
lb->setBuddy( letype );
- layout->addWidget( lb, 5, 0 );
- layout->addMultiCellWidget( letype, 5, 5, 1, 2 );
+ tqlayout->addWidget( lb, 5, 0 );
+ tqlayout->addMultiCellWidget( letype, 5, 5, 1, 2 );
lb = new TQLabel( page );
lb->setText(i18n("Domain SID:"));
@@ -145,11 +145,11 @@ editGroup::editGroup(KU::KGroup *akg, bool samba, bool add,
ledomsid->setText( sid.getDOM() );
ledomsid->setReadOnly( ro );
lb->setBuddy( ledomsid );
- layout->addWidget( lb, 6, 0 );
- layout->addMultiCellWidget( ledomsid, 6, 6, 1, 2 );
+ tqlayout->addWidget( lb, 6, 0 );
+ tqlayout->addMultiCellWidget( ledomsid, 6, 6, 1, 2 );
cbsamba = new TQCheckBox( i18n("Disable Samba group information"), page );
- layout->addMultiCellWidget( cbsamba, 7, 7, 0, 2 );
+ tqlayout->addMultiCellWidget( cbsamba, 7, 7, 0, 2 );
connect( cbsamba, TQT_SIGNAL(toggled(bool)), ledesc, TQT_SLOT(setDisabled(bool)) );
connect( cbsamba, TQT_SIGNAL(toggled(bool)), ledispname, TQT_SLOT(setDisabled(bool)) );
connect( cbsamba, TQT_SIGNAL(toggled(bool)), letype, TQT_SLOT(setDisabled(bool)) );
@@ -162,18 +162,18 @@ editGroup::editGroup(KU::KGroup *akg, bool samba, bool add,
m_list_in->setFullWidth(true); // Single column, full widget width.
m_list_in->addColumn(i18n("Users in Group"));
m_list_in->setSelectionMode( TQListView::Extended );
- layout->addWidget( m_list_in, 8, 0 );
+ tqlayout->addWidget( m_list_in, 8, 0 );
TQVBox *vbox = new TQVBox(page);
TQPushButton *btadd = new TQPushButton(i18n("Add <-"), vbox);
TQPushButton *btdel = new TQPushButton(i18n("Remove ->"), vbox);
- layout->addWidget( vbox, 8, 1 );
+ tqlayout->addWidget( vbox, 8, 1 );
m_list_notin = new KListView(page);
m_list_notin->setFullWidth(true); // Single column, full widget width.
m_list_notin->addColumn(i18n("Users NOT in Group"));
m_list_notin->setSelectionMode(TQListView::Extended);
- layout->addWidget( m_list_notin, 8, 2 );
+ tqlayout->addWidget( m_list_notin, 8, 2 );
// TQString whatstr = i18n("Select the users that should be in this kg->");
// TQWhatsThis::add(m_list, whatstr);
// connect(this,TQT_SIGNAL(okClicked(void)),
@@ -274,19 +274,19 @@ void editGroup::slotOk()
kug->getGroups().lookup( legrpname->text() ) ) {
KMessageBox::sorry( 0,
- i18n("Group with name %1 already exists.").arg(legrpname->text()) );
+ i18n("Group with name %1 already exists.").tqarg(legrpname->text()) );
return;
}
if ( mAdd ) {
if ( mSamba && !cbsamba->isChecked() && kug->getGroups().lookup_sam( sid ) ) {
KMessageBox::sorry( 0,
- i18n("Group with SID %1 already exists.").arg( sid.getSID() ) );
+ i18n("Group with SID %1 already exists.").tqarg( sid.getSID() ) );
return;
}
if (kug->getGroups().lookup(s.toInt())) {
KMessageBox::sorry( 0,
- i18n("Group with gid %1 already exists.").arg(s.toInt()) );
+ i18n("Group with gid %1 already exists.").tqarg(s.toInt()) );
return;
}
}
@@ -311,9 +311,9 @@ void editGroup::slotOk()
kg->setDisplayName( ledispname->text() );
} else {
kg->setCaps( 0 );
- kg->setSID( TQString::null );
- kg->setDesc( TQString::null );
- kg->setDisplayName( TQString::null );
+ kg->setSID( TQString() );
+ kg->setDesc( TQString() );
+ kg->setDisplayName( TQString() );
kg->setType( 0 );
}