From 69cac65817d949cda2672ec4f0aa73d5e66a0ba1 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 22 Jun 2011 00:30:31 +0000 Subject: TQt4 port kdenetwork This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- ksirc/puke/dcc_status.pm | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'ksirc/puke/dcc_status.pm') diff --git a/ksirc/puke/dcc_status.pm b/ksirc/puke/dcc_status.pm index 65bc1b07..5101cc58 100644 --- a/ksirc/puke/dcc_status.pm +++ b/ksirc/puke/dcc_status.pm @@ -6,7 +6,7 @@ &docommand("/load ptablevw.pm"); &docommand("/load plistbox.pm"); &docommand("/load pbutton.pm");; -&docommand("/load pboxlayout.pm"); +&docommand("/load pboxtqlayout.pm"); &docommand("/load plabel.pm"); &docommand("/load pbutton.pm"); &docommand("/load ppushbt.pm"); @@ -123,7 +123,7 @@ sub sendClicked { use vars qw(@ISA $KSIRC_DCC %KSIRC_DCC); -package DCCStatus; +package DCCtqStatus; use vars qw(@ISA); @ISA = qw(PFrame); @@ -178,7 +178,7 @@ sub new { = ( $gm_main, $label, $lb, $button_get, $button_send, $button_forget, $gm_but1, $gm_but2, $button_send ); - print "*I* Finished creating DCCStatus\n"; + print "*I* Finished creating DCCtqStatus\n"; return $self; } @@ -330,7 +330,7 @@ sub hook_ksirc_dcc_request { my($size) = shift; my($mwho) = $who; if($KSIRC_DCCSTATUS == undef){ - $KSIRC_DCCSTATUS = new DCCStatus; + $KSIRC_DCCSTATUS = new DCCtqStatus; $KSIRC_DCCSTATUS->resize(400, 275); } @@ -371,7 +371,7 @@ sub hook_ksirc_dcc_send { $window->setRange(0, $size); $window->setCaption("$file=>$nick"); $window->setTopText("Sending: $file Size: $size"); - $window->setBotText("Status: pending"); + $window->setBotText("tqStatus: pending"); $window->setCancel("dcc close send $nick $file"); $KSIRC_DCC{$fh}{$file}{'Window'} = $window; $KSIRC_DCC{$fh}{$file}{'StartTime'} = time() - 1; @@ -417,7 +417,7 @@ sub hook_ksirc_dcc_get { $window->setRange(0, $size); $window->setCaption("$file<=$nick"); $window->setTopText("Receiver: $file Size: $size"); - $window->setBotText("Status: pending"); + $window->setBotText("tqStatus: pending"); $window->setCancel("dcc close get $nick $file"); $KSIRC_DCC{$fh}{$file}{'Window'} = $window; $KSIRC_DCC{$fh}{$file}{'StartTime'} = time() - 1; @@ -438,7 +438,7 @@ sub hook_ksirc_dcc_get_status { $window->setRange(0, 1); $window->setCaption("$file<=$nick"); $window->setTopText("Receiver: $file Size: Unkown"); - $window->setBotText("Status: pending"); + $window->setBotText("tqStatus: pending"); $window->setCancel("dcc close get $nick $file"); $KSIRC_DCC{$fh}{$file}{'Window'} = $window; $KSIRC_DCC{$fh}{$file}{'StartTime'} = time() - 1; @@ -472,14 +472,14 @@ addhook("dcc_disconnect", "ksirc_dcc_disconnect"); -&print("*I* Done DCC Status"); -#$::test = new DCCStatus; +&print("*I* Done DCC tqStatus"); +#$::test = new DCCtqStatus; #$::test->resize(400, 275); #$::test->show(); sub popup_dccstatus{ if($KSIRC_DCCSTATUS == undef){ - $KSIRC_DCCSTATUS = new DCCStatus; + $KSIRC_DCCSTATUS = new DCCtqStatus; $KSIRC_DCCSTATUS->resize(400, 275); } $KSIRC_DCCSTATUS->show(); @@ -487,7 +487,7 @@ sub popup_dccstatus{ sub popup_dccsend{ if($KSIRC_DCCSTATUS == undef){ - $KSIRC_DCCSTATUS = new DCCStatus; + $KSIRC_DCCSTATUS = new DCCtqStatus; $KSIRC_DCCSTATUS->resize(400, 275); } $KSIRC_DCCSTATUS->sendClicked(); -- cgit v1.2.1