summaryrefslogtreecommitdiffstats
path: root/smb4k/configdlg/smb4ksuperuseroptions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'smb4k/configdlg/smb4ksuperuseroptions.cpp')
-rw-r--r--smb4k/configdlg/smb4ksuperuseroptions.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/smb4k/configdlg/smb4ksuperuseroptions.cpp b/smb4k/configdlg/smb4ksuperuseroptions.cpp
index d23b624..a9dce42 100644
--- a/smb4k/configdlg/smb4ksuperuseroptions.cpp
+++ b/smb4k/configdlg/smb4ksuperuseroptions.cpp
@@ -24,13 +24,13 @@
* MA 02110-1301 USA *
***************************************************************************/
-// Qt includes
-#include <qgroupbox.h>
-#include <qbuttongroup.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qradiobutton.h>
-#include <qcheckbox.h>
+// TQt includes
+#include <tqgroupbox.h>
+#include <tqbuttongroup.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqradiobutton.h>
+#include <tqcheckbox.h>
// KDE includes
#include <klocale.h>
@@ -42,34 +42,34 @@
#include "../core/smb4ksettings.h"
-Smb4KSuperUserOptions::Smb4KSuperUserOptions( QWidget *parent, const char *name )
-: QWidget( parent, name )
+Smb4KSuperUserOptions::Smb4KSuperUserOptions( TQWidget *tqparent, const char *name )
+: TQWidget( tqparent, name )
{
- QGridLayout *grid = new QGridLayout( this );
+ TQGridLayout *grid = new TQGridLayout( this );
grid->setSpacing( 10 );
- QButtonGroup *suid_progs = new QButtonGroup( 1, QButtonGroup::Horizontal,
+ TQButtonGroup *suid_progs = new TQButtonGroup( 1, Qt::Horizontal,
i18n( "Programs" ), this, "kcfg_SuperUserProgram" );
suid_progs->setInsideSpacing( 5 );
- new QLabel( i18n( "Use the following program to gain super user privileges:" ), suid_progs );
- suid_progs->insert( new QRadioButton( "sudo", suid_progs, "SudoButton" ), Smb4KSettings::EnumSuperUserProgram::Sudo );
- suid_progs->insert( new QRadioButton( "super", suid_progs, "SuperButton" ), Smb4KSettings::EnumSuperUserProgram::Super );
+ new TQLabel( i18n( "Use the following program to gain super user privileges:" ), suid_progs );
+ suid_progs->insert( new TQRadioButton( "sudo", suid_progs, "SudoButton" ), Smb4KSettings::EnumSuperUserProgram::Sudo );
+ suid_progs->insert( new TQRadioButton( "super", suid_progs, "SuperButton" ), Smb4KSettings::EnumSuperUserProgram::Super );
- QButtonGroup *suid_actions = new QButtonGroup( 1, QButtonGroup::Horizontal, i18n( "Actions" ), this, "SUIDActions" );
+ TQButtonGroup *suid_actions = new TQButtonGroup( 1, Qt::Horizontal, i18n( "Actions" ), this, "SUIDActions" );
suid_actions->setInsideSpacing( 5 );
#ifdef __linux__
- (void) new QCheckBox( i18n( "Use super user privileges to force the unmounting of (inaccessible) shares" ), suid_actions, "kcfg_UseForceUnmount" );
+ (void) new TQCheckBox( i18n( "Use super user privileges to force the unmounting of (inaccessible) shares" ), suid_actions, "kcfg_UseForceUnmount" );
#endif
- (void) new QCheckBox( i18n( "Use super user privileges to mount and unmount shares" ), suid_actions, "kcfg_AlwaysUseSuperUser" );
+ (void) new TQCheckBox( i18n( "Use super user privileges to mount and unmount shares" ), suid_actions, "kcfg_AlwaysUseSuperUser" );
- QSpacerItem *spacer1 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Preferred );
+ TQSpacerItem *spacer1 = new TQSpacerItem( 0, 0, TQSizePolicy::Expanding, TQSizePolicy::Preferred );
KGuiItem remove_item = KGuiItem( i18n( "Remove Entries" ), "editdelete",
i18n( "Remove entries from the configuration file" ),
i18n( "Depending on your choice under \"Programs\", all entries that were written by Smb4K will be removed either from /etc/super.tab or /etc/sudoers. Additionally, all your choices under \"Actions\" will be cleared." ) );
KPushButton *remove = new KPushButton( remove_item, this, "RemoveButton" );
- QSpacerItem *spacer2 = new QSpacerItem( 0, 0, QSizePolicy::Preferred, QSizePolicy::Expanding );
+ TQSpacerItem *spacer2 = new TQSpacerItem( 0, 0, TQSizePolicy::Preferred, TQSizePolicy::Expanding );
grid->addMultiCellWidget( suid_progs, 0, 0, 0, 3, 0 );
grid->addMultiCellWidget( suid_actions, 1, 1, 0, 3, 0 );
@@ -77,8 +77,8 @@ Smb4KSuperUserOptions::Smb4KSuperUserOptions( QWidget *parent, const char *name
grid->addWidget( remove, 2, 3, 0 );
grid->addMultiCell( spacer2, 3, 3, 0, 3, 0 );
- connect( remove, SIGNAL( clicked() ),
- this, SLOT( slotRemoveClicked() ) );
+ connect( remove, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( slotRemoveClicked() ) );
}
@@ -88,7 +88,7 @@ Smb4KSuperUserOptions::~Smb4KSuperUserOptions()
/////////////////////////////////////////////////////////////////////////////
-// SLOT IMPLEMENTATIONS
+// TQT_SLOT IMPLEMENTATIONS
/////////////////////////////////////////////////////////////////////////////
void Smb4KSuperUserOptions::slotRemoveClicked()