diff options
Diffstat (limited to 'kuser/editGroup.cpp')
-rw-r--r-- | kuser/editGroup.cpp | 58 |
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 ); } |