diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
commit | 47c8a359c5276062c4bc17f0e82410f29081b502 (patch) | |
tree | 2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /filesharing/advanced/kcm_sambaconf/smbconfconfigwidget.cpp | |
parent | 6f82532777a35e0e60bbd2b290b2e93e646f349b (diff) | |
download | tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'filesharing/advanced/kcm_sambaconf/smbconfconfigwidget.cpp')
-rw-r--r-- | filesharing/advanced/kcm_sambaconf/smbconfconfigwidget.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/filesharing/advanced/kcm_sambaconf/smbconfconfigwidget.cpp b/filesharing/advanced/kcm_sambaconf/smbconfconfigwidget.cpp index 03a1e550..00181eaa 100644 --- a/filesharing/advanced/kcm_sambaconf/smbconfconfigwidget.cpp +++ b/filesharing/advanced/kcm_sambaconf/smbconfconfigwidget.cpp @@ -26,10 +26,10 @@ * * ******************************************************************************/ -#include <qfileinfo.h> -#include <qlayout.h> -#include <qpushbutton.h> -#include <qlabel.h> +#include <tqfileinfo.h> +#include <tqlayout.h> +#include <tqpushbutton.h> +#include <tqlabel.h> #include <kapplication.h> #include <kfiledialog.h> @@ -39,19 +39,19 @@ #include "smbconfconfigwidget.h" -SmbConfConfigWidget::SmbConfConfigWidget(QWidget* parent) - : QWidget(parent,"configWidget") +SmbConfConfigWidget::SmbConfConfigWidget(TQWidget* parent) + : TQWidget(parent,"configWidget") { - QVBoxLayout *layout = new QVBoxLayout(this,5); + TQVBoxLayout *layout = new TQVBoxLayout(this,5); - QLabel *lbl = new QLabel(i18n("<p>The SAMBA configuration file <strong>'smb.conf'</strong>" \ + TQLabel *lbl = new TQLabel(i18n("<p>The SAMBA configuration file <strong>'smb.conf'</strong>" \ " could not be found;</p>" \ "make sure you have SAMBA installed.\n\n"), this); - QHBoxLayout *hbox = new QHBoxLayout(this); - QPushButton *btn = new QPushButton(i18n("Specify Location"), this); - connect(btn, SIGNAL(pressed()), this, SLOT( btnPressed())); + TQHBoxLayout *hbox = new TQHBoxLayout(this); + TQPushButton *btn = new TQPushButton(i18n("Specify Location"), this); + connect(btn, TQT_SIGNAL(pressed()), this, TQT_SLOT( btnPressed())); btn->setDefault(false); btn->setAutoDefault(false); @@ -65,13 +65,13 @@ SmbConfConfigWidget::SmbConfConfigWidget(QWidget* parent) } void SmbConfConfigWidget::btnPressed() { - QString smbConf = KFileDialog::getOpenFileName("/", + TQString smbConf = KFileDialog::getOpenFileName("/", "smb.conf|Samba conf. File\n" "*|All Files",0,i18n("Get smb.conf Location")); if (smbConf.isEmpty()) return; - if ( ! QFileInfo(smbConf).isReadable() ) { + if ( ! TQFileInfo(smbConf).isReadable() ) { KMessageBox::sorry(this,i18n("<qt>The file <i>%1</i> could not be read.</qt>").arg(smbConf),i18n("Could Not Read File")); return; } |