summaryrefslogtreecommitdiffstats
path: root/kcontrol/kio/smbrodlg.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
commitc663b6440964f6ac48027143ac9e63298991f9d0 (patch)
tree6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /kcontrol/kio/smbrodlg.cpp
parenta061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff)
downloadtdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz
tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kcontrol/kio/smbrodlg.cpp')
-rw-r--r--kcontrol/kio/smbrodlg.cpp70
1 files changed, 35 insertions, 35 deletions
diff --git a/kcontrol/kio/smbrodlg.cpp b/kcontrol/kio/smbrodlg.cpp
index dc075c793..90dfd9170 100644
--- a/kcontrol/kio/smbrodlg.cpp
+++ b/kcontrol/kio/smbrodlg.cpp
@@ -18,9 +18,9 @@
Boston, MA 02110-1301, USA.
*/
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qtextcodec.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqtextcodec.h>
#include <klocale.h>
#include <kconfig.h>
@@ -35,49 +35,49 @@
#endif
-SMBRoOptions::SMBRoOptions(QWidget *parent)
+SMBRoOptions::SMBRoOptions(TQWidget *parent)
: KCModule(parent, "kcmkio")
{
- QGridLayout *layout = new QGridLayout(this,2,-1,KDialog::marginHint(),
+ TQGridLayout *layout = new TQGridLayout(this,2,-1,KDialog::marginHint(),
KDialog::spacingHint());
- QLabel *label=new QLabel(i18n("This is the configuration for the samba client only, not the server."),this);
+ TQLabel *label=new TQLabel(i18n("This is the configuration for the samba client only, not the server."),this);
layout->addMultiCellWidget(label,0,0,0,1);
- m_userLe=new QLineEdit(this);
- label=new QLabel(m_userLe,i18n("Default user name:"),this);
+ m_userLe=new TQLineEdit(this);
+ label=new TQLabel(m_userLe,i18n("Default user name:"),this);
layout->addWidget(label,1,0);
layout->addWidget(m_userLe,1,1);
- m_passwordLe=new QLineEdit(this);
- m_passwordLe->setEchoMode(QLineEdit::Password);
- label=new QLabel(m_passwordLe,i18n("Default password:"),this);
+ m_passwordLe=new TQLineEdit(this);
+ m_passwordLe->setEchoMode(TQLineEdit::Password);
+ label=new TQLabel(m_passwordLe,i18n("Default password:"),this);
layout->addWidget(label,2,0);
layout->addWidget(m_passwordLe,2,1);
-/* m_workgroupLe=new QLineEdit(this);
- label=new QLabel(m_workgroupLe,i18n("Workgroup:"),this);
+/* m_workgroupLe=new TQLineEdit(this);
+ label=new TQLabel(m_workgroupLe,i18n("Workgroup:"),this);
layout->addWidget(label,3,0);
layout->addWidget(m_workgroupLe,3,1);
- m_showHiddenShares=new QCheckBox(i18n("Show hidden shares"),this);
+ m_showHiddenShares=new TQCheckBox(i18n("Show hidden shares"),this);
layout->addMultiCellWidget(m_showHiddenShares,4,4,0,1);
m_encodingList = new KComboBox( false, this );
- QStringList _strList = KGlobal::charsets()->availableEncodingNames();
+ TQStringList _strList = KGlobal::charsets()->availableEncodingNames();
m_encodingList->insertStringList( _strList );
- label = new QLabel( m_encodingList, i18n( "MS Windows encoding:" ), this );
+ label = new TQLabel( m_encodingList, i18n( "MS Windows encoding:" ), this );
layout->addWidget( label, 3, 0 );
layout->addWidget( m_encodingList, 3, 1 );
*/
- layout->addWidget(new QWidget(this),4,0);
+ layout->addWidget(new TQWidget(this),4,0);
-// connect(m_showHiddenShares, SIGNAL(toggled(bool)), this, SLOT(changed()));
- connect(m_userLe, SIGNAL(textChanged(const QString&)), this, SLOT(changed()));
- connect(m_passwordLe, SIGNAL(textChanged(const QString&)), this, SLOT(changed()));
-// connect(m_workgroupLe, SIGNAL(textChanged(const QString&)), this, SLOT(changed()));
-// connect( m_encodingList, SIGNAL( activated( const QString & ) ), this , SLOT( changed() ) );
+// connect(m_showHiddenShares, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(changed()));
+ connect(m_userLe, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(changed()));
+ connect(m_passwordLe, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(changed()));
+// connect(m_workgroupLe, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(changed()));
+// connect( m_encodingList, TQT_SIGNAL( activated( const TQString & ) ), this , TQT_SLOT( changed() ) );
layout->setRowStretch(4, 1);
@@ -93,29 +93,29 @@ void SMBRoOptions::load()
{
KConfig *cfg = new KConfig("kioslaverc");
- QString tmp;
+ TQString tmp;
cfg->setGroup( "Browser Settings/SMBro" );
m_userLe->setText(cfg->readEntry("User"));
// m_workgroupLe->setText(cfg->readEntry("Workgroup"));
// m_showHiddenShares->setChecked(cfg->readBoolEntry("ShowHiddenShares",false));
-// QStringList _strList = KGlobal::charsets()->availableEncodingNames();
-// QString m_encoding = QTextCodec::codecForLocale()->name();
+// TQStringList _strList = KGlobal::charsets()->availableEncodingNames();
+// TQString m_encoding = TQTextCodec::codecForLocale()->name();
// m_encodingList->setCurrentItem( _strList.findIndex( cfg->readEntry( "Encoding", m_encoding.lower() ) ) );
// unscramble
- QString scrambled = cfg->readEntry( "Password" );
- QString password = "";
+ TQString scrambled = cfg->readEntry( "Password" );
+ TQString password = "";
for (uint i=0; i<scrambled.length()/3; i++)
{
- QChar qc1 = scrambled[i*3];
- QChar qc2 = scrambled[i*3+1];
- QChar qc3 = scrambled[i*3+2];
+ TQChar qc1 = scrambled[i*3];
+ TQChar qc2 = scrambled[i*3+1];
+ TQChar qc3 = scrambled[i*3+2];
unsigned int a1 = qc1.latin1() - '0';
unsigned int a2 = qc2.latin1() - 'A';
unsigned int a3 = qc3.latin1() - '0';
unsigned int num = ((a1 & 0x3F) << 10) | ((a2& 0x1F) << 5) | (a3 & 0x1F);
- password[i] = QChar((uchar)((num - 17) ^ 173)); // restore
+ password[i] = TQChar((uchar)((num - 17) ^ 173)); // restore
}
m_passwordLe->setText(password);
@@ -135,11 +135,11 @@ void SMBRoOptions::save()
//taken from Nicola Brodu's smb ioslave
//it's not really secure, but at
//least better than storing the plain password
- QString password(m_passwordLe->text());
- QString scrambled;
+ TQString password(m_passwordLe->text());
+ TQString scrambled;
for (uint i=0; i<password.length(); i++)
{
- QChar c = password[i];
+ TQChar c = password[i];
unsigned int num = (c.unicode() ^ 173) + 17;
unsigned int a1 = (num & 0xFC00) >> 10;
unsigned int a2 = (num & 0x3E0) >> 5;
@@ -166,7 +166,7 @@ void SMBRoOptions::changed()
emit KCModule::changed(true);
}
-QString SMBRoOptions::quickHelp() const
+TQString SMBRoOptions::quickHelp() const
{
return i18n("<h1>Windows Shares</h1>Konqueror is able to access shared "
"windows filesystems if properly configured. If there is a "