diff options
Diffstat (limited to 'smb4k/dialogs/smb4kmountdialog.cpp')
-rw-r--r-- | smb4k/dialogs/smb4kmountdialog.cpp | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/smb4k/dialogs/smb4kmountdialog.cpp b/smb4k/dialogs/smb4kmountdialog.cpp index 7cafe35..6e7d7c4 100644 --- a/smb4k/dialogs/smb4kmountdialog.cpp +++ b/smb4k/dialogs/smb4kmountdialog.cpp @@ -24,11 +24,11 @@ * MA 02110-1301 USA * ***************************************************************************/ -// Qt includes -#include <qlayout.h> -#include <qframe.h> -#include <qgroupbox.h> -#include <qlabel.h> +// TQt includes +#include <tqlayout.h> +#include <tqframe.h> +#include <tqgroupbox.h> +#include <tqlabel.h> // KDE includes #include <klocale.h> @@ -44,14 +44,14 @@ #include "../core/smb4kcore.h" #include "../smb4k.h" -Smb4KMountDialog::Smb4KMountDialog( QWidget *parent, const char *name ) : -KDialogBase( Plain, i18n( "Mount Share" ), Ok|Cancel, Ok, parent, name, true, true ) +Smb4KMountDialog::Smb4KMountDialog( TQWidget *tqparent, const char *name ) : +KDialogBase( Plain, i18n( "Mount Share" ), Ok|Cancel, Ok, tqparent, name, true, true ) { - setWFlags( Qt::WDestructiveClose ); + setWFlags( TQt::WDestructiveClose ); setupView(); - setFixedSize( (sizeHint().width() > 350 ? sizeHint().width() : 350), sizeHint().height() ); + setFixedSize( (tqsizeHint().width() > 350 ? tqsizeHint().width() : 350), tqsizeHint().height() ); } @@ -62,46 +62,46 @@ Smb4KMountDialog::~Smb4KMountDialog() void Smb4KMountDialog::setupView() { - QFrame *frame = plainPage(); - QGridLayout *layout = new QGridLayout( frame ); - layout->setSpacing( 5 ); - layout->setMargin( 0 ); + TQFrame *frame = plainPage(); + TQGridLayout *tqlayout = new TQGridLayout( frame ); + tqlayout->setSpacing( 5 ); + tqlayout->setMargin( 0 ); - QLabel *shareLabel = new QLabel( i18n( "Share:" ), frame ); + TQLabel *shareLabel = new TQLabel( i18n( "Share:" ), frame ); m_share_input = new KLineEdit( frame, "ShareInputLine" ); m_share_input->setMinimumWidth( 200 ); m_share_input->setFocus(); - QLabel *addressLabel = new QLabel( i18n( "IP Address:" ), frame ); + TQLabel *addressLabel = new TQLabel( i18n( "IP Address:" ), frame ); m_ip_input = new KLineEdit( frame, "IPInputLine" ); m_ip_input->setMinimumWidth( 200 ); - QLabel *workgroupLabel = new QLabel( i18n( "Workgroup:" ), frame ); + TQLabel *workgroupLabel = new TQLabel( i18n( "Workgroup:" ), frame ); m_workgroup_input = new KLineEdit( frame, "WorkgroupInputLine" ); m_workgroup_input->setMinimumWidth( 200 ); - m_bookmark = new QCheckBox( i18n( "Add this share to the bookmarks" ), frame, "BookmarkButton" ); + m_bookmark = new TQCheckBox( i18n( "Add this share to the bookmarks" ), frame, "BookmarkButton" ); - layout->addWidget( shareLabel, 0, 0, 0 ); - layout->addWidget( m_share_input, 0, 1, 0 ); - layout->addWidget( addressLabel, 1, 0, 0 ); - layout->addWidget( m_ip_input, 1, 1, 0 ); - layout->addWidget( workgroupLabel, 2, 0, 0 ); - layout->addWidget( m_workgroup_input, 2, 1, 0 ); - layout->addMultiCellWidget( m_bookmark, 3, 3, 0, 1, 0 ); + tqlayout->addWidget( shareLabel, 0, 0, 0 ); + tqlayout->addWidget( m_share_input, 0, 1, 0 ); + tqlayout->addWidget( addressLabel, 1, 0, 0 ); + tqlayout->addWidget( m_ip_input, 1, 1, 0 ); + tqlayout->addWidget( workgroupLabel, 2, 0, 0 ); + tqlayout->addWidget( m_workgroup_input, 2, 1, 0 ); + tqlayout->addMultiCellWidget( m_bookmark, 3, 3, 0, 1, 0 ); - connect( m_share_input, SIGNAL( textChanged ( const QString & ) ) , - this, SLOT( slotChangeInputValue( const QString & ) ) ); + connect( m_share_input, TQT_SIGNAL( textChanged ( const TQString & ) ) , + this, TQT_SLOT( slotChangeInputValue( const TQString & ) ) ); slotChangeInputValue( m_share_input->text() ); } ///////////////////////////////////////////////////////////////////////////// -// SLOT IMPLEMENTATIONS +// TQT_SLOT IMPLEMENTATIONS ///////////////////////////////////////////////////////////////////////////// -void Smb4KMountDialog::slotChangeInputValue( const QString& _test) +void Smb4KMountDialog::slotChangeInputValue( const TQString& _test) { enableButtonOK( !_test.isEmpty() ); } @@ -115,25 +115,25 @@ void Smb4KMountDialog::slotOk() if ( !m_share_input->text().stripWhiteSpace().isEmpty() ) { #ifndef __FreeBSD__ - if ( m_share_input->text().contains( "/" ) == 3 ) + if ( m_share_input->text().tqcontains( "/" ) == 3 ) #else - if ( m_share_input->text().contains( "/" ) == 3 - && m_share_input->text().contains( '@' ) == 0 ) + if ( m_share_input->text().tqcontains( "/" ) == 3 + && m_share_input->text().tqcontains( '@' ) == 0 ) #endif { - QString host = m_share_input->text().stripWhiteSpace().section( "/", 2, 2 ); - QString share = m_share_input->text().stripWhiteSpace().section( "/", 3, 3 ); - QString ip = m_ip_input->text().stripWhiteSpace(); - QString workgroup = m_workgroup_input->text().stripWhiteSpace(); + TQString host = m_share_input->text().stripWhiteSpace().section( "/", 2, 2 ); + TQString share = m_share_input->text().stripWhiteSpace().section( "/", 3, 3 ); + TQString ip = m_ip_input->text().stripWhiteSpace(); + TQString workgroup = m_workgroup_input->text().stripWhiteSpace(); Smb4KCore::mounter()->mountShare( workgroup, host, ip, share ); if ( m_bookmark->isChecked() ) { - Smb4KCore::bookmarkHandler()->addBookmark( new Smb4KBookmark( host, share, workgroup, ip, QString::null ) ); + Smb4KCore::bookmarkHandler()->addBookmark( new Smb4KBookmark( host, share, workgroup, ip, TQString() ) ); } - connect( Smb4KCore::mounter(), SIGNAL( state( int ) ), this, SLOT( slotMounterStateChanged( int ) ) ); + connect( Smb4KCore::mounter(), TQT_SIGNAL( state( int ) ), this, TQT_SLOT( slotMounterStateChanged( int ) ) ); } else { |