summaryrefslogtreecommitdiffstats
path: root/smb4k/dialogs/smb4ksynchronizationdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'smb4k/dialogs/smb4ksynchronizationdialog.cpp')
-rw-r--r--smb4k/dialogs/smb4ksynchronizationdialog.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/smb4k/dialogs/smb4ksynchronizationdialog.cpp b/smb4k/dialogs/smb4ksynchronizationdialog.cpp
index 9ad3a51..58cf75a 100644
--- a/smb4k/dialogs/smb4ksynchronizationdialog.cpp
+++ b/smb4k/dialogs/smb4ksynchronizationdialog.cpp
@@ -137,23 +137,23 @@ void Smb4KSynchronizationDialog::slotUser1()
// Disable the URL requesters but in a way, that the information
// proviced in them is still readable:
- KURLRequester *source = static_cast<KURLRequester *>( TQT_TQWIDGET(child( "SourceURL", "KURLRequester", true )) );
+ KURLRequester *source = static_cast<KURLRequester *>( child( "SourceURL", "KURLRequester", true ) );
source->lineEdit()->setReadOnly( true );
source->button()->setEnabled( false );
- KURLRequester *destination = static_cast<KURLRequester *>( TQT_TQWIDGET(child( "DestinationURL", "KURLRequester", true )) );
+ KURLRequester *destination = static_cast<KURLRequester *>( child( "DestinationURL", "KURLRequester", true ) );
destination->lineEdit()->setReadOnly( true );
destination->button()->setEnabled( false );
- TQWidget *transfer_widget = static_cast<TQWidget *>( TQT_TQWIDGET(child( "TransferInfoWidget", "TQWidget", true )) );
+ TQWidget *transfer_widget = static_cast<TQWidget *>( child( "TransferInfoWidget", "TQWidget", true ) );
transfer_widget->setEnabled( true );
enableButton( User1, false );
enableButton( User2, false );
// Enable the progress bars and the information widgets:
- static_cast<KProgress *>( TQT_TQWIDGET(child( "IndividualProgress", "KProgress", true )) )->setEnabled( true );
- static_cast<KProgress *>( TQT_TQWIDGET(child( "TotalProgress", "KProgress", true )) )->setEnabled( true );
+ static_cast<KProgress *>( child( "IndividualProgress", "KProgress", true ) )->setEnabled( true );
+ static_cast<KProgress *>( child( "TotalProgress", "KProgress", true ) )->setEnabled( true );
Smb4KCore::synchronizer()->synchronize( source->url(), destination->url() );
}
@@ -163,8 +163,8 @@ void Smb4KSynchronizationDialog::slotUser2()
{
// Swap URLs.
- KURLRequester *source = static_cast<KURLRequester *>( TQT_TQWIDGET(child( "SourceURL", "KURLRequester", true )) );
- KURLRequester *destination = static_cast<KURLRequester *>( TQT_TQWIDGET(child( "DestinationURL", "KURLRequester", true )) );
+ KURLRequester *source = static_cast<KURLRequester *>( child( "SourceURL", "KURLRequester", true ) );
+ KURLRequester *destination = static_cast<KURLRequester *>( child( "DestinationURL", "KURLRequester", true ) );
TQString sourceURL = source->url();
TQString destinationURL = destination->url();
@@ -184,11 +184,11 @@ void Smb4KSynchronizationDialog::slotCancel()
void Smb4KSynchronizationDialog::slotProgress( const Smb4KSynchronizationInfo &info )
{
- KLineEdit *progress = static_cast<KLineEdit *>( TQT_TQWIDGET(child( "ProgressInfo", "KLineEdit", true )) );
- KProgress *individual = static_cast<KProgress *>( TQT_TQWIDGET(child( "IndividualProgress", "KProgress", true )) );
- KProgress *total = static_cast<KProgress *>( TQT_TQWIDGET(child( "TotalProgress", "KProgress", true )) );
- TQLabel *transferred = static_cast<TQLabel *>( TQT_TQWIDGET(child( "FilesTransferred", "TQLabel", true )) );
- TQLabel *rate = static_cast<TQLabel *>( TQT_TQWIDGET(child( "TransferRate", "TQLabel", true )) );
+ KLineEdit *progress = static_cast<KLineEdit *>( child( "ProgressInfo", "KLineEdit", true ) );
+ KProgress *individual = static_cast<KProgress *>( child( "IndividualProgress", "KProgress", true ) );
+ KProgress *total = static_cast<KProgress *>( child( "TotalProgress", "KProgress", true ) );
+ TQLabel *transferred = static_cast<TQLabel *>( child( "FilesTransferred", "TQLabel", true ) );
+ TQLabel *rate = static_cast<TQLabel *>( child( "TransferRate", "TQLabel", true ) );
if ( !info.text().isEmpty() )
{
@@ -219,8 +219,8 @@ void Smb4KSynchronizationDialog::slotProgress( const Smb4KSynchronizationInfo &i
void Smb4KSynchronizationDialog::slotSynchronizationFinished()
{
- KProgress *individual = static_cast<KProgress *>( TQT_TQWIDGET(child( "IndividualProgress", "KProgress", true )) );
- KProgress *total = static_cast<KProgress *>( TQT_TQWIDGET(child( "TotalProgress", "KProgress", true )) );
+ KProgress *individual = static_cast<KProgress *>( child( "IndividualProgress", "KProgress", true ) );
+ KProgress *total = static_cast<KProgress *>( child( "TotalProgress", "KProgress", true ) );
if ( individual && individual->progress() != 100 )
{