diff options
Diffstat (limited to 'kuser/addUser.cpp')
-rw-r--r-- | kuser/addUser.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/kuser/addUser.cpp b/kuser/addUser.cpp index 4bd957e..347c46f 100644 --- a/kuser/addUser.cpp +++ b/kuser/addUser.cpp @@ -26,8 +26,8 @@ #include <sys/file.h> #include <sys/stat.h> -#include <qdir.h> -#include <qgroupbox.h> +#include <tqdir.h> +#include <tqgroupbox.h> #include <kdebug.h> @@ -38,18 +38,18 @@ #include <kmessagebox.h> addUser::addUser( KU::KUser *AUser, bool useprivategroup, - QWidget *parent, const char *name ) : + TQWidget *parent, const char *name ) : propdlg( AUser, useprivategroup, parent, name ) { - QGroupBox *group = new QGroupBox(frontpage); + TQGroupBox *group = new TQGroupBox(frontpage); group->setTitle(i18n("New Account Options")); - QVBoxLayout *groupLayout = new QVBoxLayout(group, marginHint(), spacingHint()); + TQVBoxLayout *groupLayout = new TQVBoxLayout(group, marginHint(), spacingHint()); groupLayout->addSpacing(group->fontMetrics().lineSpacing()); groupLayout->setAutoAdd(true); - createhome = new QCheckBox(i18n("Create home folder"), group); + createhome = new TQCheckBox(i18n("Create home folder"), group); createhome->setChecked(true); - copyskel = new QCheckBox(i18n("Copy skeleton"), group); - connect(createhome, SIGNAL(toggled(bool)), copyskel, SLOT(setEnabled(bool))); + copyskel = new TQCheckBox(i18n("Copy skeleton"), group); + connect(createhome, TQT_SIGNAL(toggled(bool)), copyskel, TQT_SLOT(setEnabled(bool))); frontlayout->addMultiCellWidget(group, frontrow, frontrow, 0, 2); if ( useprivategroup ) pbprigr->setEnabled( false ); @@ -104,8 +104,8 @@ bool addUser::checkHome() struct stat s; int r; - QString h_dir = user->getHomeDir(); - r = stat( QFile::encodeName(h_dir), &s ); + TQString h_dir = user->getHomeDir(); + r = stat( TQFile::encodeName(h_dir), &s ); if ( (r == -1) && (errno == ENOENT) ) return true; @@ -115,7 +115,7 @@ bool addUser::checkHome() if ( KMessageBox:: warningContinueCancel ( 0, i18n("Folder %1 already exists!\n%2 may become owner and permissions may change.\nDo you really want to use %3?"). - arg(h_dir).arg(user->getName()).arg(h_dir), QString::null, KStdGuiItem::cont() ) == KMessageBox::Cancel ) + arg(h_dir).arg(user->getName()).arg(h_dir), TQString::null, KStdGuiItem::cont() ) == KMessageBox::Cancel ) return false; else @@ -130,14 +130,14 @@ bool addUser::checkHome() bool addUser::checkMailBox() { - QString mailboxpath; + TQString mailboxpath; KU::KUser *user = mUsers.first(); struct stat s; int r; - mailboxpath = QFile::decodeName(MAIL_SPOOL_DIR) + "/" + user->getName(); - r = stat(QFile::encodeName(mailboxpath), &s); + mailboxpath = TQFile::decodeName(MAIL_SPOOL_DIR) + "/" + user->getName(); + r = stat(TQFile::encodeName(mailboxpath), &s); if ((r == -1) && (errno == ENOENT)) return true; |