Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/35/head
Michele Calgaro 11 months ago
parent 61fd6af18c
commit 691489dddc
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -103,7 +103,7 @@ Activityviewer::Activityviewer(TQWidget *parent, const char *name)
layout->addWidget(options,0,6); layout->addWidget(options,0,6);
vbox->addWidget(privateLayoutWidget2); vbox->addWidget(privateLayoutWidget2);
connect( options, SIGNAL(clicked()), SLOT(slotOptions()) ); connect( options, TQ_SIGNAL(clicked()), TQ_SLOT(slotOptions()) );
@ -150,8 +150,8 @@ Activityviewer::Activityviewer(TQWidget *parent, const char *name)
// qmenu = new TQPopupMenu( currentbox ); // qmenu = new TQPopupMenu( currentbox );
// connect(currentbox, SIGNAL( contextMenuRequested( TQListViewItem *, const TQPoint& , int ) ), // connect(currentbox, TQ_SIGNAL( contextMenuRequested( TQListViewItem *, const TQPoint& , int ) ),
// this, SLOT( slotRMB( TQListViewItem *, const TQPoint &, int ) ) ); // this, TQ_SLOT( slotRMB( TQListViewItem *, const TQPoint &, int ) ) );
kLineEdit1 = new TDEListViewSearchLine( (TQWidget *)searchToolBar, currentbox,"klinedit1"); kLineEdit1 = new TDEListViewSearchLine( (TQWidget *)searchToolBar, currentbox,"klinedit1");
/* TQValueList<int> columns; /* TQValueList<int> columns;
@ -160,12 +160,12 @@ Activityviewer::Activityviewer(TQWidget *parent, const char *name)
columns.append(2);*/ columns.append(2);*/
/* kLineEdit1->setSearchColumns();*/ /* kLineEdit1->setSearchColumns();*/
//kLineEdit1->setMaxLength(2); //kLineEdit1->setMaxLength(2);
connect(button, SIGNAL( clicked() ), connect(button, TQ_SIGNAL( clicked() ),
kLineEdit1, SLOT(clear()) ); kLineEdit1, TQ_SLOT(clear()) );
connect(check_combo, SIGNAL( activated(const TQString &) ), connect(check_combo, TQ_SIGNAL( activated(const TQString &) ),
this, SLOT(allActivityOfType(const TQString &) )); this, TQ_SLOT(allActivityOfType(const TQString &) ));
connect(days_combo, SIGNAL( activated(const TQString &) ), connect(days_combo, TQ_SIGNAL( activated(const TQString &) ),
this, SLOT(allActivityOfDate(const TQString &) )); this, TQ_SLOT(allActivityOfDate(const TQString &) ));
searchToolBar->setStretchableWidget( kLineEdit1 ); searchToolBar->setStretchableWidget( kLineEdit1 );

@ -65,7 +65,7 @@ KlamavConfigDialog::KlamavConfigDialog( TQWidget *parent, const char* name, TDEC
// add pages // add pages
addPage( m_klambackend, i18n( "Backend" ), "system-run", i18n( "Configure Scanning Backend" ) ); addPage( m_klambackend, i18n( "Backend" ), "system-run", i18n( "Configure Scanning Backend" ) );
connect( m_klambackend->kcfg_ScannerClamdscan, SIGNAL(toggled(bool)), this, SLOT(slotToggleClamdscan(bool)) ); connect( m_klambackend->kcfg_ScannerClamdscan, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(slotToggleClamdscan(bool)) );
slotToggleClamdscan( m_klambackend->kcfg_ScannerClamdscan->isOn() ); // initial state slotToggleClamdscan( m_klambackend->kcfg_ScannerClamdscan->isOn() ); // initial state
addPage( m_archives, i18n( "Archives" ), "ark", i18n( "Configure Archive Scanning" ) ); addPage( m_archives, i18n( "Archives" ), "ark", i18n( "Configure Archive Scanning" ) );
@ -73,9 +73,9 @@ KlamavConfigDialog::KlamavConfigDialog( TQWidget *parent, const char* name, TDEC
addPage( m_specialfiletypes, i18n( "File Types" ), "folder", i18n( "Configure File Types" ) ); addPage( m_specialfiletypes, i18n( "File Types" ), "folder", i18n( "Configure File Types" ) );
addPage( m_klamonacc, i18n( "On-Access Scanner" ), "filefind", i18n( "Configure On-Access Scanning" ) ); addPage( m_klamonacc, i18n( "On-Access Scanner" ), "filefind", i18n( "Configure On-Access Scanning" ) );
connect( m_klamonacc, SIGNAL(directoriesModified()), tdemain->klamonacc, SLOT(restart()) ); connect( m_klamonacc, TQ_SIGNAL(directoriesModified()), tdemain->klamonacc, TQ_SLOT(restart()) );
connect( tdemain->klamonacc, SIGNAL(stateUpdated()), this, SLOT(slotToggleKlamOnAccCheckbox()) ); connect( tdemain->klamonacc, TQ_SIGNAL(stateUpdated()), this, TQ_SLOT(slotToggleKlamOnAccCheckbox()) );
connect( m_klamonacc->kcfg_EnableOnAccess, SIGNAL(toggled(bool)), this, SLOT(slotToggleKlamOnAcc(bool)) ); connect( m_klamonacc->kcfg_EnableOnAccess, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(slotToggleKlamOnAcc(bool)) );
slotToggleKlamOnAcc( m_klamonacc->kcfg_EnableOnAccess->isOn() ); // initial state slotToggleKlamOnAcc( m_klamonacc->kcfg_EnableOnAccess->isOn() ); // initial state
addPage( m_logoptions, i18n( "Event Logging" ), "kate", i18n( "Configure Events to Log" ) ); addPage( m_logoptions, i18n( "Event Logging" ), "kate", i18n( "Configure Events to Log" ) );
@ -91,7 +91,7 @@ KlamavConfigDialog::KlamavConfigDialog( TQWidget *parent, const char* name, TDEC
static_cast<TQLabel*>(label)->setMaximumWidth( 250 ); static_cast<TQLabel*>(label)->setMaximumWidth( 250 );
delete list; delete list;
connect( this, SIGNAL(settingsChanged()), SLOT(applySettings()) ); connect( this, TQ_SIGNAL(settingsChanged()), TQ_SLOT(applySettings()) );
} }
KlamavConfigDialog::~KlamavConfigDialog() KlamavConfigDialog::~KlamavConfigDialog()

@ -37,8 +37,8 @@ DatePicker::DatePicker(TQWidget *parent, const TQDate& date)
KWin::setOnAllDesktops( handle(), true ); KWin::setOnAllDesktops( handle(), true );
picker = new KDatePicker(this, date); picker = new KDatePicker(this, date);
picker->setCloseButton(true); picker->setCloseButton(true);
connect( picker, SIGNAL(dateSelected(TQDate)),this, connect( picker, TQ_SIGNAL(dateSelected(TQDate)),this,
SLOT(slotEmitSelectedDate(TQDate)) ); TQ_SLOT(slotEmitSelectedDate(TQDate)) );
/* name and icon for kicker's taskbar */ /* name and icon for kicker's taskbar */
setCaption(i18n("Calendar")); setCaption(i18n("Calendar"));

@ -86,8 +86,8 @@ KlamDB::KlamDB( TQWidget* parent, const char* name, bool modal, WFlags fl )
VirusList = new TDEListView( privateLayoutWidget, "VirusList" ); VirusList = new TDEListView( privateLayoutWidget, "VirusList" );
VirusList->addColumn( i18n( "All Known Viruses" ),150 ); VirusList->addColumn( i18n( "All Known Viruses" ),150 );
connect(VirusList, SIGNAL( doubleClicked( TQListViewItem * , const TQPoint &, int ) ), connect(VirusList, TQ_SIGNAL( doubleClicked( TQListViewItem * , const TQPoint &, int ) ),
this, SLOT(slotOpenTab(TQListViewItem * , const TQPoint &, int )) ); this, TQ_SLOT(slotOpenTab(TQListViewItem * , const TQPoint &, int )) );
menu = new TQPopupMenu( VirusList ); menu = new TQPopupMenu( VirusList );
@ -106,22 +106,22 @@ KlamDB::KlamDB( TQWidget* parent, const char* name, bool modal, WFlags fl )
else else
ticon = TQPixmap( iconPath ); ticon = TQPixmap( iconPath );
menu->insertItem(ticon, i18n("Search with Trend Micro"), this,SLOT(slotTrendMicro()) ); menu->insertItem(ticon, i18n("Search with Trend Micro"), this,TQ_SLOT(slotTrendMicro()) );
menu->insertItem(gicon, i18n("Search with Google"), this,SLOT(slotGoogle()) ); menu->insertItem(gicon, i18n("Search with Google"), this,TQ_SLOT(slotGoogle()) );
googlePrefix = TQString::fromAscii("http://www.google.com/search?ie=ISO-8859-1&q="); googlePrefix = TQString::fromAscii("http://www.google.com/search?ie=ISO-8859-1&q=");
tMicroPrefix = TQString::fromAscii("https://www.trendmicro.com/vinfo/us/threat-encyclopedia/search/"); tMicroPrefix = TQString::fromAscii("https://www.trendmicro.com/vinfo/us/threat-encyclopedia/search/");
connect(VirusList, SIGNAL( contextMenuRequested( TQListViewItem *, const TQPoint& , int ) ), connect(VirusList, TQ_SIGNAL( contextMenuRequested( TQListViewItem *, const TQPoint& , int ) ),
this, SLOT( slotRMB( TQListViewItem *, const TQPoint &, int ) ) ); this, TQ_SLOT( slotRMB( TQListViewItem *, const TQPoint &, int ) ) );
kLineEdit1 = new TDEListViewSearchLine( (TQWidget *)searchToolBar, VirusList,"klinedit1"); kLineEdit1 = new TDEListViewSearchLine( (TQWidget *)searchToolBar, VirusList,"klinedit1");
TQValueList<int> columns; TQValueList<int> columns;
columns.append(0); columns.append(0);
kLineEdit1->setSearchColumns(columns); kLineEdit1->setSearchColumns(columns);
kLineEdit1->setMaxLength(2); kLineEdit1->setMaxLength(2);
connect(button, SIGNAL( clicked() ), connect(button, TQ_SIGNAL( clicked() ),
kLineEdit1, SLOT(clear()) ); kLineEdit1, TQ_SLOT(clear()) );
dblayout->addWidget( searchToolBar, 0, 0 ); dblayout->addWidget( searchToolBar, 0, 0 );
@ -872,14 +872,14 @@ unsigned int KlamDB::getSigNos()
void KlamDB::slotOpenTab(TQListViewItem * item, const TQPoint& , int ) void KlamDB::slotOpenTab(TQListViewItem * item, const TQPoint& , int )
{ {
PageViewer* page = new PageViewer(this, "page"); PageViewer* page = new PageViewer(this, "page");
//connect( m_part, SIGNAL(signalSettingsChanged()), page, SLOT(slotPaletteOrFontChanged())); //connect( m_part, TQ_SIGNAL(signalSettingsChanged()), page, TQ_SLOT(slotPaletteOrFontChanged()));
//connect( page, SIGNAL(setTabIcon(const TQPixmap&)), //connect( page, TQ_SIGNAL(setTabIcon(const TQPixmap&)),
// this, SLOT(setTabIcon(const TQPixmap&))); // this, TQ_SLOT(setTabIcon(const TQPixmap&)));
//connect( page, SIGNAL(setWindowCaption (const TQString &)), //connect( page, TQ_SIGNAL(setWindowCaption (const TQString &)),
// this, SLOT(slotTabCaption (const TQString &)) ); // this, TQ_SLOT(slotTabCaption (const TQString &)) );
connect( page, SIGNAL(urlClicked(const KURL &,bool)), connect( page, TQ_SIGNAL(urlClicked(const KURL &,bool)),
this, SLOT(slotOpenTabPlain(const KURL &,bool)) ); this, TQ_SLOT(slotOpenTabPlain(const KURL &,bool)) );
TQString url = item->text(0); TQString url = item->text(0);
@ -900,14 +900,14 @@ void KlamDB::slotOpenTab(TQListViewItem * item, const TQPoint& , int )
void KlamDB::slotOpenTabPlain(const KURL& url, bool background) void KlamDB::slotOpenTabPlain(const KURL& url, bool background)
{ {
PageViewer* page = new PageViewer(this, "page"); PageViewer* page = new PageViewer(this, "page");
//connect( m_part, SIGNAL(signalSettingsChanged()), page, SLOT(slotPaletteOrFontChanged())); //connect( m_part, TQ_SIGNAL(signalSettingsChanged()), page, TQ_SLOT(slotPaletteOrFontChanged()));
/* connect( page, SIGNAL(setTabIcon(const TQPixmap&)), /* connect( page, TQ_SIGNAL(setTabIcon(const TQPixmap&)),
this, SLOT(setTabIcon(const TQPixmap&)));*/ this, TQ_SLOT(setTabIcon(const TQPixmap&)));*/
connect( page, SIGNAL(setWindowCaption (const TQString &)), connect( page, TQ_SIGNAL(setWindowCaption (const TQString &)),
this, SLOT(slotTabCaption (const TQString &)) ); this, TQ_SLOT(slotTabCaption (const TQString &)) );
connect( page, SIGNAL(urlClicked(const KURL &,bool)), connect( page, TQ_SIGNAL(urlClicked(const KURL &,bool)),
this, SLOT(slotOpenTabPlain(const KURL &,bool)) ); this, TQ_SLOT(slotOpenTabPlain(const KURL &,bool)) );
Frame *frame=new Frame(this, page, page->widget(), i18n("Untitled")); Frame *frame=new Frame(this, page, page->widget(), i18n("Untitled"));
//connectFrame(frame); //connectFrame(frame);

@ -90,7 +90,7 @@ Item::Item( TQListView *parent, CollectionSetup *collection, const TQString &nam
collectionSetup = collection; collectionSetup = collection;
m_lister.setDirOnlyMode( true ); m_lister.setDirOnlyMode( true );
m_lister.setShowingDotFiles( true ); m_lister.setShowingDotFiles( true );
connect( &m_lister, SIGNAL(newItems( const KFileItemList& )), SLOT(newItems( const KFileItemList& )) ); connect( &m_lister, TQ_SIGNAL(newItems( const KFileItemList& )), TQ_SLOT(newItems( const KFileItemList& )) );
setText( 1, path ); setText( 1, path );
setOpen( true ); setOpen( true );
if ( !icon.isNull() ) if ( !icon.isNull() )
@ -98,7 +98,7 @@ Item::Item( TQListView *parent, CollectionSetup *collection, const TQString &nam
else else
setPixmap( 0, SmallIcon( "folder" ) ); setPixmap( 0, SmallIcon( "folder" ) );
setVisible( true ); setVisible( true );
connect( collectionSetup, SIGNAL(resetDirs()), this, SLOT(reset()) ); connect( collectionSetup, TQ_SIGNAL(resetDirs()), this, TQ_SLOT(reset()) );
} }
@ -113,10 +113,10 @@ Item::Item( TQListViewItem *parent, CollectionSetup *collection, const KURL &url
m_lister.setShowingDotFiles( true ); m_lister.setShowingDotFiles( true );
setText( 1, url.fileName() ); setText( 1, url.fileName() );
setExpandable( true ); setExpandable( true );
connect( &m_lister, SIGNAL(newItems( const KFileItemList& )), SLOT(newItems( const KFileItemList& )) ); connect( &m_lister, TQ_SIGNAL(newItems( const KFileItemList& )), TQ_SLOT(newItems( const KFileItemList& )) );
connect( &m_lister, SIGNAL(completed()), SLOT(completed()) ); connect( &m_lister, TQ_SIGNAL(completed()), TQ_SLOT(completed()) );
connect( &m_lister, SIGNAL(canceled()), SLOT(completed()) ); connect( &m_lister, TQ_SIGNAL(canceled()), TQ_SLOT(completed()) );
connect( collectionSetup, SIGNAL(resetDirs()), this, SLOT(reset()) ); connect( collectionSetup, TQ_SIGNAL(resetDirs()), this, TQ_SLOT(reset()) );
} }
@ -188,7 +188,7 @@ Item::activate()
void void
Item::newItems( const KFileItemList &list ) //SLOT Item::newItems( const KFileItemList &list ) //TQ_SLOT
{ {
for( KFileItemListIterator it( list ); *it; ++it ) for( KFileItemListIterator it( list ); *it; ++it )
{ {
@ -240,8 +240,8 @@ DeviceItem::DeviceItem( TQListView *parent, CollectionSetup *collection )
{ {
collectionSetup = collection; collectionSetup = collection;
m_lister.setDirOnlyMode( true ); m_lister.setDirOnlyMode( true );
connect( &m_lister, SIGNAL(newItems( const KFileItemList& )), SLOT(newItems( const KFileItemList& )) ); connect( &m_lister, TQ_SIGNAL(newItems( const KFileItemList& )), TQ_SLOT(newItems( const KFileItemList& )) );
connect( collectionSetup, SIGNAL(resetDirs()), this, SLOT(reset()) ); connect( collectionSetup, TQ_SIGNAL(resetDirs()), this, TQ_SLOT(reset()) );
if ( KDE::versionMajor() == 3 && KDE::versionMinor() < 4 ) if ( KDE::versionMajor() == 3 && KDE::versionMinor() < 4 )
{ {
@ -301,10 +301,10 @@ DeviceItem::DeviceItem( TQListViewItem *parent, CollectionSetup *collection, con
kdDebug() << "Device Item: " << name << " " << url.fileName() << " " << text(1) << endl; kdDebug() << "Device Item: " << name << " " << url.fileName() << " " << text(1) << endl;
m_lister.setDirOnlyMode( true ); m_lister.setDirOnlyMode( true );
setExpandable( false ); setExpandable( false );
connect( &m_lister, SIGNAL(newItems( const KFileItemList& )), SLOT(newItems( const KFileItemList& )) ); connect( &m_lister, TQ_SIGNAL(newItems( const KFileItemList& )), TQ_SLOT(newItems( const KFileItemList& )) );
connect( &m_lister, SIGNAL(completed()), SLOT(completed()) ); connect( &m_lister, TQ_SIGNAL(completed()), TQ_SLOT(completed()) );
connect( &m_lister, SIGNAL(canceled()), SLOT(completed()) ); connect( &m_lister, TQ_SIGNAL(canceled()), TQ_SLOT(completed()) );
connect( collectionSetup, SIGNAL(resetDirs()), this, SLOT(reset()) ); connect( collectionSetup, TQ_SIGNAL(resetDirs()), this, TQ_SLOT(reset()) );
} }
@ -377,7 +377,7 @@ DeviceItem::activate()
void void
DeviceItem::newItems( const KFileItemList &list ) //SLOT DeviceItem::newItems( const KFileItemList &list ) //TQ_SLOT
{ {
for( KFileItemListIterator it( list ); *it; ++it ) for( KFileItemListIterator it( list ); *it; ++it )
{ {

@ -25,25 +25,25 @@ Frame::Frame(TQObject * parent, KParts::ReadOnlyPart *p, TQWidget *visWidget, co
if (watchSignals) // e.g, articles tab has no part if (watchSignals) // e.g, articles tab has no part
{ {
connect(m_part, SIGNAL(setWindowCaption (const TQString &)), this, SLOT(setCaption (const TQString &))); connect(m_part, TQ_SIGNAL(setWindowCaption (const TQString &)), this, TQ_SLOT(setCaption (const TQString &)));
connect(m_part, SIGNAL(setStatusBarText (const TQString &)), this, SLOT(setStatusText (const TQString &))); connect(m_part, TQ_SIGNAL(setStatusBarText (const TQString &)), this, TQ_SLOT(setStatusText (const TQString &)));
KParts::BrowserExtension *ext=KParts::BrowserExtension::childObject( p ); KParts::BrowserExtension *ext=KParts::BrowserExtension::childObject( p );
if (ext) if (ext)
connect( ext, SIGNAL(loadingProgress(int)), this, SLOT(setProgress(int)) ); connect( ext, TQ_SIGNAL(loadingProgress(int)), this, TQ_SLOT(setProgress(int)) );
connect(p, SIGNAL(started(TDEIO::Job*)), this, SLOT(setStarted())); connect(p, TQ_SIGNAL(started(TDEIO::Job*)), this, TQ_SLOT(setStarted()));
connect(p, SIGNAL(completed()), this, SLOT(setCompleted())); connect(p, TQ_SIGNAL(completed()), this, TQ_SLOT(setCompleted()));
connect(p, SIGNAL(canceled(const TQString &)), this, SLOT(setCanceled(const TQString&))); connect(p, TQ_SIGNAL(canceled(const TQString &)), this, TQ_SLOT(setCanceled(const TQString&)));
connect(p, SIGNAL(completed(bool)), this, SLOT(setCompleted())); connect(p, TQ_SIGNAL(completed(bool)), this, TQ_SLOT(setCompleted()));
/* TDEActionCollection *coll=p->actionCollection(); /* TDEActionCollection *coll=p->actionCollection();
if (coll) if (coll)
{ {
connect( coll, SIGNAL( actionStatusText( const TQString & ) ), connect( coll, TQ_SIGNAL( actionStatusText( const TQString & ) ),
this, SLOT( slotActionStatusText( const TQString & ) ) ); this, TQ_SLOT( slotActionStatusText( const TQString & ) ) );
connect( coll, SIGNAL( clearStatusText() ), connect( coll, TQ_SIGNAL( clearStatusText() ),
this, SLOT( slotClearStatusText() ) ); this, TQ_SLOT( slotClearStatusText() ) );
} }
*/ */
} }
@ -138,7 +138,7 @@ void Frame::setStarted()
//if(m_progressId.isNull() || m_progressId.isEmpty()) m_progressId = KPIM::ProgressManager::getUniqueID(); //if(m_progressId.isNull() || m_progressId.isEmpty()) m_progressId = KPIM::ProgressManager::getUniqueID();
//m_progressItem = KPIM::ProgressManager::createProgressItem(m_progressId, title(), TQString::null, false); //m_progressItem = KPIM::ProgressManager::createProgressItem(m_progressId, title(), TQString::null, false);
//m_progressItem->setStatus(i18n("Loading...")); //m_progressItem->setStatus(i18n("Loading..."));
//connect(m_progressItem, SIGNAL(progressItemCanceled(KPIM::ProgressItem*)), SLOT(slotAbortFetch())); //connect(m_progressItem, TQ_SIGNAL(progressItemCanceled(KPIM::ProgressItem*)), TQ_SLOT(slotAbortFetch()));
m_state=Started; m_state=Started;
emit started(); emit started();
} }

@ -389,10 +389,10 @@ void Freshklam::slotSearch()
childproc->start(TDEProcess::NotifyOnExit, TDEProcess::Stdout); childproc->start(TDEProcess::NotifyOnExit, TDEProcess::Stdout);
connect( childproc, SIGNAL(processExited(TDEProcess *)), connect( childproc, TQ_SIGNAL(processExited(TDEProcess *)),
SLOT(childExited()) ); TQ_SLOT(childExited()) );
connect( childproc, SIGNAL(receivedStdout(TDEProcess *, char *, int)), connect( childproc, TQ_SIGNAL(receivedStdout(TDEProcess *, char *, int)),
SLOT(receivedOutput(TDEProcess *, char *, int)) ); TQ_SLOT(receivedOutput(TDEProcess *, char *, int)) );
tdemain->EnableFreshklam->setEnabled(FALSE); tdemain->EnableFreshklam->setEnabled(FALSE);
tdemain->DisableFreshklam->setEnabled(TRUE); tdemain->DisableFreshklam->setEnabled(TRUE);
@ -664,8 +664,8 @@ void Freshklam::initCheckBoxes(){
check_combo->setEnabled(false); check_combo->setEnabled(false);
} }
connect( daemon_box, SIGNAL(toggled(bool)), SLOT(handleChecks()) ); connect( daemon_box, TQ_SIGNAL(toggled(bool)), TQ_SLOT(handleChecks()) );
connect( check_combo, SIGNAL(activated(int)), SLOT(handleChecks()) ); connect( check_combo, TQ_SIGNAL(activated(int)), TQ_SLOT(handleChecks()) );
if (daemon_box->isChecked()) if (daemon_box->isChecked())
slotSearch(); slotSearch();
@ -850,10 +850,10 @@ Freshklam::getCurrentVersionOfClamAV( )
*versionproc<<suCommand; *versionproc<<suCommand;
connect( versionproc, SIGNAL(readReady(KProcIO *)), connect( versionproc, TQ_SIGNAL(readReady(KProcIO *)),
SLOT(readVersionLine(KProcIO *)) ); TQ_SLOT(readVersionLine(KProcIO *)) );
connect( versionproc, SIGNAL(processExited(TDEProcess *)), connect( versionproc, TQ_SIGNAL(processExited(TDEProcess *)),
SLOT(versionExited()) ); TQ_SLOT(versionExited()) );
versionproc->start(KProcIO::NotifyOnExit); versionproc->start(KProcIO::NotifyOnExit);
versionproc->closeWhenDone(); versionproc->closeWhenDone();

@ -55,22 +55,22 @@ Klamav::Klamav()
fixedTabs << i18n("Scan") << i18n("Update"); fixedTabs << i18n("Scan") << i18n("Update");
tab = new TabWidget(this, "KlamAV", fixedTabs); tab = new TabWidget(this, "KlamAV", fixedTabs);
connect( tab, SIGNAL(tabClosed(TQString)), this, SLOT(tabClosed(TQString)) ); connect( tab, TQ_SIGNAL(tabClosed(TQString)), this, TQ_SLOT(tabClosed(TQString)) );
_tray = new KSystemTray(tdemain, "klamav tray"); _tray = new KSystemTray(tdemain, "klamav tray");
_tray->setPixmap( KSystemTray::loadIcon("klamav") ); _tray->setPixmap( KSystemTray::loadIcon("klamav") );
connect(_tray,SIGNAL(quitSelected()),SLOT(shuttingDown())); connect(_tray,TQ_SIGNAL(quitSelected()),TQ_SLOT(shuttingDown()));
TDEPopupMenu *conf_menu = _tray->contextMenu(); TDEPopupMenu *conf_menu = _tray->contextMenu();
EnableFreshklam = new TDEAction(i18n("&Enable Auto-Updates"), "system-software-update", 0,this, SLOT(contextEnableFK()),actionCollection(),"fk_enable"); EnableFreshklam = new TDEAction(i18n("&Enable Auto-Updates"), "system-software-update", 0,this, TQ_SLOT(contextEnableFK()),actionCollection(),"fk_enable");
DisableFreshklam = new TDEAction(i18n("&Disable Auto-Updates"), 0, 0, this, SLOT(contextDisableFK()),actionCollection(),"fk_disable"); DisableFreshklam = new TDEAction(i18n("&Disable Auto-Updates"), 0, 0, this, TQ_SLOT(contextDisableFK()),actionCollection(),"fk_disable");
EnableFreshklam->plug(conf_menu); EnableFreshklam->plug(conf_menu);
DisableFreshklam->plug(conf_menu); DisableFreshklam->plug(conf_menu);
EnableKlamOnAcc = new TDEAction(i18n("&Start On-Access Scanner"), "filefind", 0,this, SLOT(contextEnableKOA()),actionCollection(),"koa_enable"); EnableKlamOnAcc = new TDEAction(i18n("&Start On-Access Scanner"), "filefind", 0,this, TQ_SLOT(contextEnableKOA()),actionCollection(),"koa_enable");
DisableKlamOnAcc = new TDEAction(i18n("&Stop On-Access Scanner"), 0, 0, this, SLOT(contextDisableKOA()),actionCollection(),"koa_disable"); DisableKlamOnAcc = new TDEAction(i18n("&Stop On-Access Scanner"), 0, 0, this, TQ_SLOT(contextDisableKOA()),actionCollection(),"koa_disable");
EnableKlamOnAcc->plug(conf_menu); EnableKlamOnAcc->plug(conf_menu);
DisableKlamOnAcc->plug(conf_menu); DisableKlamOnAcc->plug(conf_menu);
@ -95,20 +95,20 @@ Klamav::Klamav()
// Menus // Menus
TDEPopupMenu *scanner_menu = new TDEPopupMenu(this); TDEPopupMenu *scanner_menu = new TDEPopupMenu(this);
scanner_menu->insertItem( SmallIcon("document-open"), i18n("Scan &File..."), this, SLOT(slotScanFile()), CTRL+Key_O ); scanner_menu->insertItem( SmallIcon("document-open"), i18n("Scan &File..."), this, TQ_SLOT(slotScanFile()), CTRL+Key_O );
scanner_menu->insertItem( SmallIcon("folder_open"), i18n("Scan &Directory..."), this, SLOT(slotScanDir()) ); scanner_menu->insertItem( SmallIcon("folder_open"), i18n("Scan &Directory..."), this, TQ_SLOT(slotScanDir()) );
scanner_menu->insertSeparator(); scanner_menu->insertSeparator();
scanner_menu->insertItem( SmallIcon("xclock"), i18n("&Schedule scan..."), this, SLOT(slotScheduleScan()) ); scanner_menu->insertItem( SmallIcon("xclock"), i18n("&Schedule scan..."), this, TQ_SLOT(slotScheduleScan()) );
scanner_menu->insertItem( SmallIcon("configure"), i18n("&Options..."), this, SLOT(slotOptions()) ); scanner_menu->insertItem( SmallIcon("configure"), i18n("&Options..."), this, TQ_SLOT(slotOptions()) );
scanner_menu->insertSeparator(); scanner_menu->insertSeparator();
scanner_menu->insertItem( SmallIcon("application-exit"), i18n("&Quit"), kapp, SLOT(quit()) ); scanner_menu->insertItem( SmallIcon("application-exit"), i18n("&Quit"), kapp, TQ_SLOT(quit()) );
tabs_menu = new TDEPopupMenu(this); tabs_menu = new TDEPopupMenu(this);
tabs_menu->setCheckable(true); tabs_menu->setCheckable(true);
showWelcomeTab = tabs_menu->insertItem( SmallIcon("klamav"), i18n("Show &Welcome tab"), this, SLOT(slotToggleWelcome()) ); showWelcomeTab = tabs_menu->insertItem( SmallIcon("klamav"), i18n("Show &Welcome tab"), this, TQ_SLOT(slotToggleWelcome()) );
showQuarantineTab = tabs_menu->insertItem( SmallIcon("encrypted"), i18n("Show &Quarantine tab"), this, SLOT(slotToggleQuarantine()) ); showQuarantineTab = tabs_menu->insertItem( SmallIcon("encrypted"), i18n("Show &Quarantine tab"), this, TQ_SLOT(slotToggleQuarantine()) );
showDBViewerTab = tabs_menu->insertItem( SmallIcon("system-search"), i18n("Show &Virus Browser tab"), this, SLOT(slotToggleDBViewer()) ); showDBViewerTab = tabs_menu->insertItem( SmallIcon("system-search"), i18n("Show &Virus Browser tab"), this, TQ_SLOT(slotToggleDBViewer()) );
showEventsTab = tabs_menu->insertItem( SmallIcon("toggle_log"), i18n("Show &Events tab"), this, SLOT(slotToggleEvents()) ); showEventsTab = tabs_menu->insertItem( SmallIcon("toggle_log"), i18n("Show &Events tab"), this, TQ_SLOT(slotToggleEvents()) );
// Menu bar // Menu bar
@ -130,8 +130,8 @@ Klamav::Klamav()
freshklam = new Freshklam(this); freshklam = new Freshklam(this);
tab->addTab(freshklam, i18n("Update")); tab->addTab(freshklam, i18n("Update"));
connect(freshklam->search_button,SIGNAL(clicked()),SLOT(contextUpdateFK())); connect(freshklam->search_button,TQ_SIGNAL(clicked()),TQ_SLOT(contextUpdateFK()));
connect(freshklam->cancel_button,SIGNAL(clicked()),SLOT(contextDisableFK())); connect(freshklam->cancel_button,TQ_SIGNAL(clicked()),TQ_SLOT(contextDisableFK()));
@ -148,13 +148,13 @@ Klamav::Klamav()
// On-Access scanner // On-Access scanner
klamonacc = new KlamOnAcc(this); klamonacc = new KlamOnAcc(this);
connect( klamonacc, SIGNAL(stateUpdated()), this, SLOT(slotKOAStateUpdate()) ); connect( klamonacc, TQ_SIGNAL(stateUpdated()), this, TQ_SLOT(slotKOAStateUpdate()) );
slotKOAStateUpdate(); // initial state slotKOAStateUpdate(); // initial state
connect(tab,SIGNAL(currentChanged ( TQWidget * ) ),klamdb,SLOT(shouldIShow(TQWidget *))); connect(tab,TQ_SIGNAL(currentChanged ( TQWidget * ) ),klamdb,TQ_SLOT(shouldIShow(TQWidget *)));
KStdAction::quit(this, SLOT(shuttingDown()), actionCollection()); KStdAction::quit(this, TQ_SLOT(shuttingDown()), actionCollection());
if (TDEApplication::kApplication()->isRestored()){ if (TDEApplication::kApplication()->isRestored()){
hide(); hide();
@ -488,7 +488,7 @@ void Klamav::slotConfigKlamav( const TQCString& page )
{ {
//TDEConfigDialog didn't find an instance of this dialog, so lets create it : //TDEConfigDialog didn't find an instance of this dialog, so lets create it :
dialog = new KlamavConfigDialog( this, "settings", KlamavConfig::self() ); dialog = new KlamavConfigDialog( this, "settings", KlamavConfig::self() );
//connect( dialog, SIGNAL(settingsChanged()), SLOT(applySettings()) ); //connect( dialog, TQ_SIGNAL(settingsChanged()), TQ_SLOT(applySettings()) );
} }
//FIXME it seems that if the dialog is on a different desktop it gets lost //FIXME it seems that if the dialog is on a different desktop it gets lost

@ -16,7 +16,7 @@ BrowserRun::BrowserRun(Viewer *viewer, TQWidget *parent, KParts::ReadOnlyPart *p
: KParts::BrowserRun(url, args, part, parent, false, true) : KParts::BrowserRun(url, args, part, parent, false, true)
{ {
m_viewer=viewer; m_viewer=viewer;
connect(m_viewer, SIGNAL(destroyed()), this, SLOT(killMyself())); connect(m_viewer, TQ_SIGNAL(destroyed()), this, TQ_SLOT(killMyself()));
setEnableExternalBrowser(false); setEnableExternalBrowser(false);
} }

@ -150,8 +150,8 @@ void KlamOnAcc::startProcess( TQString command )
*childproc << command; *childproc << command;
childproc->start(TDEProcess::NotifyOnExit, TDEProcess::Stdout); childproc->start(TDEProcess::NotifyOnExit, TDEProcess::Stdout);
connect( childproc, SIGNAL(receivedStdout(TDEProcess*, char*, int)), SLOT(processOutput(TDEProcess*, char*, int)) ); connect( childproc, TQ_SIGNAL(receivedStdout(TDEProcess*, char*, int)), TQ_SLOT(processOutput(TDEProcess*, char*, int)) );
connect( childproc, SIGNAL(processExited(TDEProcess*)), SLOT(childExited()) ); connect( childproc, TQ_SIGNAL(processExited(TDEProcess*)), TQ_SLOT(childExited()) );
emit stateUpdated(); emit stateUpdated();
} }

@ -108,7 +108,7 @@ Klamscan::Klamscan(TQWidget *parent, const char *name)
schedule->adjustSize(); schedule->adjustSize();
layout->addWidget(schedule,0,4); layout->addWidget(schedule,0,4);
connect( schedule, SIGNAL(clicked()), tdemain, SLOT(slotScheduleScan()) ); connect( schedule, TQ_SIGNAL(clicked()), tdemain, TQ_SLOT(slotScheduleScan()) );
TQToolButton* adv_options = new TQToolButton( privateLayoutWidget2,"play" ); TQToolButton* adv_options = new TQToolButton( privateLayoutWidget2,"play" );
@ -120,13 +120,13 @@ Klamscan::Klamscan(TQWidget *parent, const char *name)
//adv_options->setFixedSize(adv_options->sizeHint()); //adv_options->setFixedSize(adv_options->sizeHint());
adv_options->adjustSize(); adv_options->adjustSize();
connect( adv_options, SIGNAL(clicked()), connect( adv_options, TQ_SIGNAL(clicked()),
SLOT(slotAdvOptions()) ); TQ_SLOT(slotAdvOptions()) );
setup = new CollectionSetup( privateLayoutWidget2, recursive_box->isChecked() ); setup = new CollectionSetup( privateLayoutWidget2, recursive_box->isChecked() );
layout->addMultiCellWidget(setup, 1, 6,0,6); layout->addMultiCellWidget(setup, 1, 6,0,6);
connect( recursive_box, SIGNAL(toggled(bool)),setup, connect( recursive_box, TQ_SIGNAL(toggled(bool)),setup,
SLOT(slotRecursiveToggled(bool)) ); TQ_SLOT(slotRecursiveToggled(bool)) );
@ -159,12 +159,12 @@ Klamscan::Klamscan(TQWidget *parent, const char *name)
m_tabsClose->setFixedHeight(m_tabsClose->height() - 1); m_tabsClose->setFixedHeight(m_tabsClose->height() - 1);
connect( play, SIGNAL( clicked() ), this, connect( play, TQ_SIGNAL( clicked() ), this,
SLOT( slotStartAgain() ) ); TQ_SLOT( slotStartAgain() ) );
connect( stop, SIGNAL( clicked() ), this, connect( stop, TQ_SIGNAL( clicked() ), this,
SLOT( slotStopScanning() ) ); TQ_SLOT( slotStopScanning() ) );
connect( m_tabsClose, SIGNAL( clicked() ), this, connect( m_tabsClose, TQ_SIGNAL( clicked() ), this,
SLOT( slotRemoveTab() ) ); TQ_SLOT( slotRemoveTab() ) );
controls->adjustSize(); controls->adjustSize();
tabBrowser->setCornerWidget( controls, TopRight ); tabBrowser->setCornerWidget( controls, TopRight );
@ -177,8 +177,8 @@ Klamscan::Klamscan(TQWidget *parent, const char *name)
layout->activate(); layout->activate();
connect(tabBrowser, SIGNAL(currentChanged(TQWidget *)),this, connect(tabBrowser, TQ_SIGNAL(currentChanged(TQWidget *)),this,
SLOT(slotManageButtons(TQWidget *)) ); TQ_SLOT(slotManageButtons(TQWidget *)) );
// Register with DCOP // Register with DCOP
@ -212,11 +212,11 @@ bool Klamscan::scanGoingOn() {
void Klamscan::scan( TQStringList filepattern ) { void Klamscan::scan( TQStringList filepattern ) {
ScanViewer* homepage = new ScanViewer(this, "page"); ScanViewer* homepage = new ScanViewer(this, "page");
connect( homepage, SIGNAL( scanFinished(TQWidget *) ), this, connect( homepage, TQ_SIGNAL( scanFinished(TQWidget *) ), this,
SLOT( slotManageButtons(TQWidget *) ) ); TQ_SLOT( slotManageButtons(TQWidget *) ) );
connect( homepage, SIGNAL( scanStartingAgain(TQWidget *) ), this, connect( homepage, TQ_SIGNAL( scanStartingAgain(TQWidget *) ), this,
SLOT( slotManageButtons(TQWidget *) ) ); TQ_SLOT( slotManageButtons(TQWidget *) ) );
tdemain->_tray->setPixmap(KSystemTray::loadIcon("klamav_scanning")); tdemain->_tray->setPixmap(KSystemTray::loadIcon("klamav_scanning"));
@ -372,10 +372,10 @@ void Klamscan::scanURLs(const TQString &urls)
ScanViewer* homepage = new ScanViewer(this, "page"); ScanViewer* homepage = new ScanViewer(this, "page");
connect( homepage, SIGNAL( scanFinished(TQWidget *) ), this, connect( homepage, TQ_SIGNAL( scanFinished(TQWidget *) ), this,
SLOT( slotManageButtons(TQWidget *) ) ); TQ_SLOT( slotManageButtons(TQWidget *) ) );
connect( homepage, SIGNAL( scanStartingAgain(TQWidget *) ), this, connect( homepage, TQ_SIGNAL( scanStartingAgain(TQWidget *) ), this,
SLOT( slotManageButtons(TQWidget *) ) ); TQ_SLOT( slotManageButtons(TQWidget *) ) );
TQDate today = TQDate::currentDate(); TQDate today = TQDate::currentDate();
TQTime now = TQTime::currentTime(); TQTime now = TQTime::currentTime();

@ -161,13 +161,13 @@ KlamscanOptions::KlamscanOptions( TQWidget* parent, const char* name, bool modal
OK->setGeometry( TQRect( 190, 626, 91, 31 ) ); OK->setGeometry( TQRect( 190, 626, 91, 31 ) );
OK->setDefault( TRUE ); OK->setDefault( TRUE );
connect( OK, SIGNAL(clicked()), connect( OK, TQ_SIGNAL(clicked()),
SLOT(updateSettings()) ); TQ_SLOT(updateSettings()) );
Cancel = new TQPushButton( this, i18n( "Cancel" ) ); Cancel = new TQPushButton( this, i18n( "Cancel" ) );
Cancel->setGeometry( TQRect( 300, 626, 91, 31 ) ); Cancel->setGeometry( TQRect( 300, 626, 91, 31 ) );
connect( Cancel, SIGNAL(clicked()), connect( Cancel, TQ_SIGNAL(clicked()),
SLOT(close()) ); TQ_SLOT(close()) );
languageChange(); languageChange();
resize( TQSize(589, 667).expandedTo(minimumSizeHint()) ); resize( TQSize(589, 667).expandedTo(minimumSizeHint()) );

@ -63,17 +63,17 @@ KTView::KTView(TQWidget *parent, const char* name) :
refresh(); refresh();
listView->setSelected(listView->firstChild(), true); listView->setSelected(listView->firstChild(), true);
// connect(this, SIGNAL(enableModificationButtons(bool)), parent, // connect(this, TQ_SIGNAL(enableModificationButtons(bool)), parent,
// SLOT(slotEnableModificationButtons(bool))); // TQ_SLOT(slotEnableModificationButtons(bool)));
// //
// connect(this, SIGNAL(enablePaste(bool)), parent, // connect(this, TQ_SIGNAL(enablePaste(bool)), parent,
// SLOT(slotEnablePaste(bool))); // TQ_SLOT(slotEnablePaste(bool)));
// //
// connect(this, SIGNAL(enableRunNow(bool)), parent, // connect(this, TQ_SIGNAL(enableRunNow(bool)), parent,
// SLOT(slotEnableRunNow(bool))); // TQ_SLOT(slotEnableRunNow(bool)));
// //
// connect(this, SIGNAL(enableEnabled(bool)), parent, // connect(this, TQ_SIGNAL(enableEnabled(bool)), parent,
// SLOT(slotEnableEnabled(bool))); // TQ_SLOT(slotEnableEnabled(bool)));
// //
// emit(enableModificationButtons(false)); // emit(enableModificationButtons(false));
// emit(enablePaste(clipboardCTVariable)); // emit(enablePaste(clipboardCTVariable));
@ -161,17 +161,17 @@ void KTView::refresh()
resizeEvent(); resizeEvent();
connect(listView, SIGNAL(contextMenuRequested(TQListViewItem*, const TQPoint&, int)), connect(listView, TQ_SIGNAL(contextMenuRequested(TQListViewItem*, const TQPoint&, int)),
SLOT(slotMenu(TQListViewItem*, const TQPoint&, int))); TQ_SLOT(slotMenu(TQListViewItem*, const TQPoint&, int)));
connect(listView, SIGNAL(selectionChanged(TQListViewItem*)), connect(listView, TQ_SIGNAL(selectionChanged(TQListViewItem*)),
SLOT(slotSetCurrent(TQListViewItem*))); TQ_SLOT(slotSetCurrent(TQListViewItem*)));
connect(listView, SIGNAL(doubleClicked(TQListViewItem*)), connect(listView, TQ_SIGNAL(doubleClicked(TQListViewItem*)),
SLOT(slotEdit(TQListViewItem*))); TQ_SLOT(slotEdit(TQListViewItem*)));
connect(listView, SIGNAL(returnPressed(TQListViewItem*)), connect(listView, TQ_SIGNAL(returnPressed(TQListViewItem*)),
SLOT(slotEdit(TQListViewItem*))); TQ_SLOT(slotEdit(TQListViewItem*)));
// switch to the new view // switch to the new view

@ -102,10 +102,10 @@ Kuarantine::Kuarantine(TQWidget *parent, const char *name)
dir_layout->addWidget(dir_combo); dir_layout->addWidget(dir_combo);
dir_label->setBuddy(dir_combo); dir_label->setBuddy(dir_combo);
connect( dir_combo, SIGNAL(urlSelected(const TQString &)), connect( dir_combo, TQ_SIGNAL(urlSelected(const TQString &)),
SLOT(updateLastQuarLocations()) ); TQ_SLOT(updateLastQuarLocations()) );
connect( dir_combo, SIGNAL(textChanged(const TQString &)), connect( dir_combo, TQ_SIGNAL(textChanged(const TQString &)),
SLOT(updateLastQuarLocations()) ); TQ_SLOT(updateLastQuarLocations()) );
@ -145,8 +145,8 @@ Kuarantine::Kuarantine(TQWidget *parent, const char *name)
qmenu = new TQPopupMenu( currentbox ); qmenu = new TQPopupMenu( currentbox );
connect(currentbox, SIGNAL( contextMenuRequested( TQListViewItem *, const TQPoint& , int ) ), connect(currentbox, TQ_SIGNAL( contextMenuRequested( TQListViewItem *, const TQPoint& , int ) ),
this, SLOT( slotRMB( TQListViewItem *, const TQPoint &, int ) ) ); this, TQ_SLOT( slotRMB( TQListViewItem *, const TQPoint &, int ) ) );
dir_layout2->addWidget(currentbox); dir_layout2->addWidget(currentbox);
@ -168,13 +168,13 @@ Kuarantine::Kuarantine(TQWidget *parent, const char *name)
dir_layout2->addWidget(actionbox); dir_layout2->addWidget(actionbox);
connect( refresh_button, SIGNAL(clicked()), connect( refresh_button, TQ_SIGNAL(clicked()),
SLOT(refresh()) ); TQ_SLOT(refresh()) );
connect( search_button, SIGNAL(clicked()), connect( search_button, TQ_SIGNAL(clicked()),
SLOT(slotSearch()) ); TQ_SLOT(slotSearch()) );
connect( cancel_button, SIGNAL(clicked()), connect( cancel_button, TQ_SIGNAL(clicked()),
SLOT(slotCancel()) ); TQ_SLOT(slotCancel()) );
@ -213,8 +213,8 @@ Kuarantine::Kuarantine(TQWidget *parent, const char *name)
hmenu = new TQPopupMenu( historybox ); hmenu = new TQPopupMenu( historybox );
connect(historybox, SIGNAL( contextMenuRequested( TQListViewItem *, const TQPoint& , int ) ), connect(historybox, TQ_SIGNAL( contextMenuRequested( TQListViewItem *, const TQPoint& , int ) ),
this, SLOT( slotRMB( TQListViewItem *, const TQPoint &, int ) ) ); this, TQ_SLOT( slotRMB( TQListViewItem *, const TQPoint &, int ) ) );
dir_layout3->addWidget(historybox); dir_layout3->addWidget(historybox);
//layout->addMultiCellWidget(historybox, 2, 2, 0, 2); //layout->addMultiCellWidget(historybox, 2, 2, 0, 2);
@ -232,10 +232,10 @@ Kuarantine::Kuarantine(TQWidget *parent, const char *name)
refreshhistory(); refreshhistory();
connect( search_button3, SIGNAL(clicked()), connect( search_button3, TQ_SIGNAL(clicked()),
SLOT(slotClearHistory()) ); TQ_SLOT(slotClearHistory()) );
connect( cancel_button3, SIGNAL(clicked()), connect( cancel_button3, TQ_SIGNAL(clicked()),
SLOT(slotDeleteHistory()) ); TQ_SLOT(slotDeleteHistory()) );
@ -637,14 +637,14 @@ void Kuarantine::slotRMB( TQListViewItem* Item, const TQPoint & point, int )
if (Item->listView() == currentbox){ if (Item->listView() == currentbox){
qmenu->clear(); qmenu->clear();
qmenu->insertItem( ticon,i18n("Search for %1 with Trend Micro").arg(Item->text(1)), this, SLOT(slotTrendMicroCurrent()) ); qmenu->insertItem( ticon,i18n("Search for %1 with Trend Micro").arg(Item->text(1)), this, TQ_SLOT(slotTrendMicroCurrent()) );
qmenu->insertItem( gicon,i18n("Search for %1 with Google").arg(Item->text(1)), this, SLOT(slotGoogleCurrent()) ); qmenu->insertItem( gicon,i18n("Search for %1 with Google").arg(Item->text(1)), this, TQ_SLOT(slotGoogleCurrent()) );
qmenu->popup( point ); qmenu->popup( point );
}else if (Item->listView() == historybox){ }else if (Item->listView() == historybox){
hmenu->clear(); hmenu->clear();
hmenu->insertItem( ticon,i18n("Search for %1 with Trend Micro").arg(Item->text(1)), this, SLOT(slotTrendMicroHistory()) ); hmenu->insertItem( ticon,i18n("Search for %1 with Trend Micro").arg(Item->text(1)), this, TQ_SLOT(slotTrendMicroHistory()) );
hmenu->insertItem( gicon,i18n("Search for %1 with Google").arg(Item->text(1)), this, SLOT(slotGoogleHistory()) ); hmenu->insertItem( gicon,i18n("Search for %1 with Google").arg(Item->text(1)), this, TQ_SLOT(slotGoogleHistory()) );
hmenu->popup( point ); hmenu->popup( point );
} }

@ -32,42 +32,42 @@ PageViewer::PageViewer(TQWidget *parent, const char *name)
s->init(); s->init();
//setXMLFile(locate("data", "akregator/pageviewer.rc"), true); //setXMLFile(locate("data", "akregator/pageviewer.rc"), true);
m_backAction = new TDEToolBarPopupAction(i18n("Back"), "back", 0, this, SLOT(slotBack()), actionCollection(), "pageviewer_back"); m_backAction = new TDEToolBarPopupAction(i18n("Back"), "back", 0, this, TQ_SLOT(slotBack()), actionCollection(), "pageviewer_back");
connect(m_backAction->popupMenu(), SIGNAL(aboutToShow()), connect(m_backAction->popupMenu(), TQ_SIGNAL(aboutToShow()),
this, SLOT(slotBackAboutToShow())); this, TQ_SLOT(slotBackAboutToShow()));
connect(m_backAction->popupMenu(), SIGNAL(activated(int)), connect(m_backAction->popupMenu(), TQ_SIGNAL(activated(int)),
this, SLOT(slotPopupActivated(int))); this, TQ_SLOT(slotPopupActivated(int)));
m_forwardAction = new TDEToolBarPopupAction(i18n("Forward"), "forward", 0, this, SLOT(slotForward()), actionCollection(), "pageviewer_forward"); m_forwardAction = new TDEToolBarPopupAction(i18n("Forward"), "forward", 0, this, TQ_SLOT(slotForward()), actionCollection(), "pageviewer_forward");
connect(m_forwardAction->popupMenu(), SIGNAL(aboutToShow()), connect(m_forwardAction->popupMenu(), TQ_SIGNAL(aboutToShow()),
this, SLOT(slotForwardAboutToShow())); this, TQ_SLOT(slotForwardAboutToShow()));
connect(m_forwardAction->popupMenu(), SIGNAL(activated(int)), connect(m_forwardAction->popupMenu(), TQ_SIGNAL(activated(int)),
this, SLOT(slotPopupActivated(int))); this, TQ_SLOT(slotPopupActivated(int)));
m_reloadAction = new TDEAction(i18n("Reload"), "reload", 0, m_reloadAction = new TDEAction(i18n("Reload"), "reload", 0,
this, SLOT(slotReload()), this, TQ_SLOT(slotReload()),
actionCollection(), "pageviewer_reload"); actionCollection(), "pageviewer_reload");
m_stopAction = new TDEAction(i18n("Stop"), "stop", 0, m_stopAction = new TDEAction(i18n("Stop"), "stop", 0,
this, SLOT(slotStop()), this, TQ_SLOT(slotStop()),
actionCollection(), "pageviewer_stop"); actionCollection(), "pageviewer_stop");
//connect( this, SIGNAL(popupMenu(const TQString &, const TQPoint &)), this, SLOT(slotPopupMenu(const TQString &, const TQPoint &))); //connect( this, TQ_SIGNAL(popupMenu(const TQString &, const TQPoint &)), this, TQ_SLOT(slotPopupMenu(const TQString &, const TQPoint &)));
m_backAction->setEnabled(false); m_backAction->setEnabled(false);
m_forwardAction->setEnabled(false); m_forwardAction->setEnabled(false);
m_stopAction->setEnabled(false); m_stopAction->setEnabled(false);
connect(this, SIGNAL(started(TDEIO::Job *)), this, SLOT(slotStarted(TDEIO::Job* ))); connect(this, TQ_SIGNAL(started(TDEIO::Job *)), this, TQ_SLOT(slotStarted(TDEIO::Job* )));
connect(this, SIGNAL(completed()), this, SLOT(slotCompleted())); connect(this, TQ_SIGNAL(completed()), this, TQ_SLOT(slotCompleted()));
connect(this, SIGNAL(canceled(const TQString &)), this, SLOT(slotCancelled(const TQString &))); connect(this, TQ_SIGNAL(canceled(const TQString &)), this, TQ_SLOT(slotCancelled(const TQString &)));
connect(browserExtension(), connect(browserExtension(),
SIGNAL(openURLRequest(const KURL&, const KParts::URLArgs&)), TQ_SIGNAL(openURLRequest(const KURL&, const KParts::URLArgs&)),
this, this,
SLOT(formClicked(const KURL&, const KParts::URLArgs&))); TQ_SLOT(formClicked(const KURL&, const KParts::URLArgs&)));
m_current = m_history.end(); m_current = m_history.end();
m_restoring = false; m_restoring = false;
@ -300,9 +300,9 @@ void PageViewer::slotPopupMenu(KXMLGUIClient*, const TQPoint& p, const KURL& kur
int idNewWindow = -2; int idNewWindow = -2;
if (isLink) if (isLink)
{ {
idNewWindow = popup.insertItem(SmallIcon("tab_new"),i18n("Open Link in New &Tab"), this, SLOT(slotOpenLinkInForegroundTab())); idNewWindow = popup.insertItem(SmallIcon("tab_new"),i18n("Open Link in New &Tab"), this, TQ_SLOT(slotOpenLinkInForegroundTab()));
popup.setWhatsThis(idNewWindow, i18n("<b>Open Link in New Tab</b><p>Opens current link in a new tab.")); popup.setWhatsThis(idNewWindow, i18n("<b>Open Link in New Tab</b><p>Opens current link in a new tab."));
popup.insertItem(SmallIcon("window-new"), i18n("Open Link in External &Browser"), this, SLOT(slotOpenLinkInBrowser())); popup.insertItem(SmallIcon("window-new"), i18n("Open Link in External &Browser"), this, TQ_SLOT(slotOpenLinkInBrowser()));
popup.insertSeparator(); popup.insertSeparator();
@ -339,7 +339,7 @@ void PageViewer::slotPopupMenu(KXMLGUIClient*, const TQPoint& p, const KURL& kur
popup.insertSeparator(); popup.insertSeparator();
} }
popup.insertItem(SmallIcon("window-new"), i18n("Open Page in External Browser"), this, SLOT(slotOpenLinkInBrowser())); popup.insertItem(SmallIcon("window-new"), i18n("Open Page in External Browser"), this, TQ_SLOT(slotOpenLinkInBrowser()));
action("viewer_print")->plug(&popup); action("viewer_print")->plug(&popup);
popup.insertSeparator(); popup.insertSeparator();
@ -347,7 +347,7 @@ void PageViewer::slotPopupMenu(KXMLGUIClient*, const TQPoint& p, const KURL& kur
TDEAction *ac = action("setEncoding"); TDEAction *ac = action("setEncoding");
if (ac) if (ac)
ac->plug(&popup); ac->plug(&popup);
popup.insertItem(SmallIcon("bookmark_add"),i18n("Add to Konqueror Bookmarks"), this, SLOT(slotGlobalBookmarkArticle())); popup.insertItem(SmallIcon("bookmark_add"),i18n("Add to Konqueror Bookmarks"), this, TQ_SLOT(slotGlobalBookmarkArticle()));
} }
int r = popup.exec(p); int r = popup.exec(p);

@ -70,15 +70,15 @@ ScanViewer::ScanViewer(TQWidget *parent, const char *name)
resultview->setAllColumnsShowFocus(true); resultview->setAllColumnsShowFocus(true);
layout->addMultiCellWidget(resultview, 2, 2, 0, 2); layout->addMultiCellWidget(resultview, 2, 2, 0, 2);
connect( resultview, SIGNAL(onItem ( TQListViewItem * )), connect( resultview, TQ_SIGNAL(onItem ( TQListViewItem * )),
SLOT(slotOnItem ( TQListViewItem * ))); TQ_SLOT(slotOnItem ( TQListViewItem * )));
connect( resultview, SIGNAL(onViewport ( )), connect( resultview, TQ_SIGNAL(onViewport ( )),
SLOT(slotOffItem ( ))); TQ_SLOT(slotOffItem ( )));
menu = new TQPopupMenu( resultview ); menu = new TQPopupMenu( resultview );
connect(resultview, SIGNAL( contextMenuRequested( TQListViewItem *, const TQPoint& , int ) ), connect(resultview, TQ_SIGNAL( contextMenuRequested( TQListViewItem *, const TQPoint& , int ) ),
this, SLOT( slotRMB( TQListViewItem *, const TQPoint &, int ) ) ); this, TQ_SLOT( slotRMB( TQListViewItem *, const TQPoint &, int ) ) );
status_frame = new TQFrame(this); status_frame = new TQFrame(this);
status_frame->setFrameStyle(TQFrame::Panel | TQFrame::Sunken); status_frame->setFrameStyle(TQFrame::Panel | TQFrame::Sunken);
@ -125,8 +125,8 @@ ScanViewer::ScanViewer(TQWidget *parent, const char *name)
scan_time->show(); scan_time->show();
//status_frame->setPaletteBackgroundColor(TQColor::Yellow); //status_frame->setPaletteBackgroundColor(TQColor::Yellow);
connect( scan_time, SIGNAL(clicked()), connect( scan_time, TQ_SIGNAL(clicked()),
SLOT(slotCancelScanTime()) ); TQ_SLOT(slotCancelScanTime()) );
@ -509,17 +509,17 @@ void ScanViewer::slotScan(const TQStringList & filepattern, int mode, bool recur
*childproc << "'" + m_filepattern.join("' '") + "'"; *childproc << "'" + m_filepattern.join("' '") + "'";
/* connect( childproc, SIGNAL(processExited(TDEProcess *)), /* connect( childproc, TQ_SIGNAL(processExited(TDEProcess *)),
SLOT(childExited()) ); TQ_SLOT(childExited()) );
connect( childproc, SIGNAL(receivedStdout(TDEProcess *, char *, int)), connect( childproc, TQ_SIGNAL(receivedStdout(TDEProcess *, char *, int)),
SLOT(receivedOutput(TDEProcess *, char *, int)) ); TQ_SLOT(receivedOutput(TDEProcess *, char *, int)) );
childproc->start(TDEProcess::NotifyOnExit, TDEProcess::Stdout);*/ childproc->start(TDEProcess::NotifyOnExit, TDEProcess::Stdout);*/
connect( childproc, SIGNAL(readReady(KProcIO *)), connect( childproc, TQ_SIGNAL(readReady(KProcIO *)),
SLOT(receivedOutput(KProcIO *)) ); TQ_SLOT(receivedOutput(KProcIO *)) );
childproc->start(KProcIO::NotifyOnExit); childproc->start(KProcIO::NotifyOnExit);
connect( childproc, SIGNAL(processExited(TDEProcess *)), connect( childproc, TQ_SIGNAL(processExited(TDEProcess *)),
SLOT(childExited()) ); TQ_SLOT(childExited()) );
scanInProgress = TRUE; scanInProgress = TRUE;
@ -592,7 +592,7 @@ void ScanViewer::childExited()
if (status == 0){ if (status == 0){
tdemain->_tray->setPixmap(KSystemTray::loadIcon("klamav_scan_safe")); tdemain->_tray->setPixmap(KSystemTray::loadIcon("klamav_scan_safe"));
TQTimer::singleShot( 10000, this, SLOT(resetSysTray()) ); TQTimer::singleShot( 10000, this, TQ_SLOT(resetSysTray()) );
if (!(errorsEncountered)) if (!(errorsEncountered))
KNotifyClient::event(tdemain->_tray->winId(),"Scan Complete - No Virus Found", i18n("Scan Complete - No Viruses Found!")); KNotifyClient::event(tdemain->_tray->winId(),"Scan Complete - No Virus Found", i18n("Scan Complete - No Viruses Found!"));
else else
@ -778,11 +778,11 @@ void ScanViewer::slotRMB( TQListViewItem* Item, const TQPoint & point, int )
vlicon = TQPixmap( iconPath ); vlicon = TQPixmap( iconPath );
menu->clear(); menu->clear();
menu->insertItem( "Quarantine Selected", this,SLOT(slotQuarantineSelected()) ); menu->insertItem( "Quarantine Selected", this,TQ_SLOT(slotQuarantineSelected()) );
menu->insertItem( ticon,i18n("Search for %1 with Trend Micro").arg(Item->text(1)), this, SLOT(slotTrendMicro()) ); menu->insertItem( ticon,i18n("Search for %1 with Trend Micro").arg(Item->text(1)), this, TQ_SLOT(slotTrendMicro()) );
menu->insertItem( gicon,i18n("Search for %1 with Google").arg(Item->text(1)), this, SLOT(slotGoogle()) ); menu->insertItem( gicon,i18n("Search for %1 with Google").arg(Item->text(1)), this, TQ_SLOT(slotGoogle()) );
menu->popup( point ); menu->popup( point );
} }
} }
@ -921,7 +921,7 @@ void ScanViewer::startProgressDialog( const TQString & text )
progressDialog->show(); progressDialog->show();
timer = new TQTimer( this ); timer = new TQTimer( this );
connect( timer, SIGNAL( timeout() ), this, SLOT( slotProg() ) ); connect( timer, TQ_SIGNAL( timeout() ), this, TQ_SLOT( slotProg() ) );
timer->start( 200, FALSE ); timer->start( 200, FALSE );
} }

@ -80,8 +80,8 @@ Schedule::Schedule( TQWidget* parent, const char* name, bool modal, WFlags fl )
check_combo->insertItem( i18n("Once only on a specific date at")); check_combo->insertItem( i18n("Once only on a specific date at"));
layout->addWidget(check_combo,1,0); layout->addWidget(check_combo,1,0);
connect( check_combo, SIGNAL(activated(int)),this, connect( check_combo, TQ_SIGNAL(activated(int)),this,
SLOT(slotQueryDatePicker(int)) ); TQ_SLOT(slotQueryDatePicker(int)) );
hour = new HMSTimeWidget( group ); hour = new HMSTimeWidget( group );
@ -109,15 +109,15 @@ Schedule::Schedule( TQWidget* parent, const char* name, bool modal, WFlags fl )
layout->addWidget(add,1,5); layout->addWidget(add,1,5);
//add->setFixedSize(add->sizeHint()); //add->setFixedSize(add->sizeHint());
connect( add, SIGNAL(clicked()), connect( add, TQ_SIGNAL(clicked()),
SLOT(slotScheduleScan()) ); TQ_SLOT(slotScheduleScan()) );
TQPushButton* del = new TQPushButton ("Delete", group); TQPushButton* del = new TQPushButton ("Delete", group);
layout->addWidget(del,1,6); layout->addWidget(del,1,6);
//del->setFixedSize(del->sizeHint()); //del->setFixedSize(del->sizeHint());
connect( del, SIGNAL(clicked()), connect( del, TQ_SIGNAL(clicked()),
SLOT(slotDelete()) ); TQ_SLOT(slotDelete()) );
//schedulebox = new TQListView(group); //schedulebox = new TQListView(group);
@ -146,8 +146,8 @@ Schedule::Schedule( TQWidget* parent, const char* name, bool modal, WFlags fl )
// KPushButton *pbCancel = new KPushButton(KStdGuiItem::cancel(), this, "pbCancel"); // KPushButton *pbCancel = new KPushButton(KStdGuiItem::cancel(), this, "pbCancel");
// h5->addWidget( pbCancel); // h5->addWidget( pbCancel);
connect(pbOk, SIGNAL(clicked()), SLOT(slotOK())); connect(pbOk, TQ_SIGNAL(clicked()), TQ_SLOT(slotOK()));
/* connect(pbCancel, SIGNAL(clicked()), SLOT(slotCancel()));*/ /* connect(pbCancel, TQ_SIGNAL(clicked()), TQ_SLOT(slotCancel()));*/
schedulebox->hideCommand(); schedulebox->hideCommand();
} }
@ -169,8 +169,8 @@ void Schedule::slotQueryDatePicker(int)
_calendar->move(TQPoint(x,y)); _calendar->move(TQPoint(x,y));
_calendar->show(); _calendar->show();
_calendar->setFocus(); _calendar->setFocus();
connect( _calendar, SIGNAL(signalSelectedDate(TQDate)),this, connect( _calendar, TQ_SIGNAL(signalSelectedDate(TQDate)),this,
SLOT(slotAddDateToCombo(TQDate)) ); TQ_SLOT(slotAddDateToCombo(TQDate)) );
} }
} }
@ -495,10 +495,10 @@ void Schedule::getICEauth()
*iceproc<<command; *iceproc<<command;
connect( iceproc, SIGNAL(readReady(KProcIO *)), connect( iceproc, TQ_SIGNAL(readReady(KProcIO *)),
SLOT(slotICEoutput(KProcIO *)) ); TQ_SLOT(slotICEoutput(KProcIO *)) );
connect( iceproc, SIGNAL(processExited(TDEProcess *)), connect( iceproc, TQ_SIGNAL(processExited(TDEProcess *)),
SLOT(slotICEexited()) ); TQ_SLOT(slotICEexited()) );
iceproc->start(KProcIO::NotifyOnExit); iceproc->start(KProcIO::NotifyOnExit);
iceproc->closeWhenDone(); iceproc->closeWhenDone();

@ -109,12 +109,12 @@ Sigtool::Sigtool(TQWidget *parent, const char *name)
connect( search_button, SIGNAL(clicked()), connect( search_button, TQ_SIGNAL(clicked()),
SLOT(configureKMail()) ); TQ_SLOT(configureKMail()) );
connect( manual_button, SIGNAL(clicked()), connect( manual_button, TQ_SIGNAL(clicked()),
SLOT(manual()) ); TQ_SLOT(manual()) );
connect( check_combo, SIGNAL(activated(const TQString &)), connect( check_combo, TQ_SIGNAL(activated(const TQString &)),
SLOT(dobuttons()) ); TQ_SLOT(dobuttons()) );

@ -24,9 +24,9 @@ TabWidget::TabWidget(TQWidget * parent, const char *name, TQStringList fixed)
{ {
fixedTabs = TQStringList(fixed); fixedTabs = TQStringList(fixed);
setTabReorderingEnabled(true); setTabReorderingEnabled(true);
connect( this, SIGNAL( currentChanged(TQWidget *) ), this, connect( this, TQ_SIGNAL( currentChanged(TQWidget *) ), this,
SLOT( slotTabChanged(TQWidget *) ) ); TQ_SLOT( slotTabChanged(TQWidget *) ) );
connect(this, SIGNAL(closeRequest(TQWidget*)), this, SLOT(slotCloseRequest(TQWidget*))); connect(this, TQ_SIGNAL(closeRequest(TQWidget*)), this, TQ_SLOT(slotCloseRequest(TQWidget*)));
//setHoverCloseButton(Settings::closeButtonOnTabs()); //setHoverCloseButton(Settings::closeButtonOnTabs());
} }
@ -152,10 +152,10 @@ void TabWidget::contextMenu(int i, const TQPoint &p)
currentItem = page(i); currentItem = page(i);
TDEPopupMenu popup; TDEPopupMenu popup;
int moveTabLeft = popup.insertItem( SmallIcon("back"), i18n("Move Tab &Left"), this, SLOT(slotMoveTabLeft()) ); int moveTabLeft = popup.insertItem( SmallIcon("back"), i18n("Move Tab &Left"), this, TQ_SLOT(slotMoveTabLeft()) );
int moveTabRight = popup.insertItem( SmallIcon("forward"), i18n("Move Tab &Right"), this, SLOT(slotMoveTabRight()) ); int moveTabRight = popup.insertItem( SmallIcon("forward"), i18n("Move Tab &Right"), this, TQ_SLOT(slotMoveTabRight()) );
popup.insertSeparator(); popup.insertSeparator();
int closeTab = popup.insertItem( SmallIcon("tab_remove"), i18n("Close Tab"), this, SLOT(slotCloseTab()) ); int closeTab = popup.insertItem( SmallIcon("tab_remove"), i18n("Close Tab"), this, TQ_SLOT(slotCloseTab()) );
if(currentItemId == 0) if(currentItemId == 0)
popup.setItemEnabled(moveTabLeft, false); popup.setItemEnabled(moveTabLeft, false);

@ -35,29 +35,29 @@ Viewer::Viewer(TQWidget *parent, const char *name)
setStatusMessagesEnabled(true); setStatusMessagesEnabled(true);
// change the cursor when loading stuff... // change the cursor when loading stuff...
connect( this, SIGNAL(started(TDEIO::Job *)), connect( this, TQ_SIGNAL(started(TDEIO::Job *)),
this, SLOT(slotStarted(TDEIO::Job *))); this, TQ_SLOT(slotStarted(TDEIO::Job *)));
connect( this, SIGNAL(completed()), connect( this, TQ_SIGNAL(completed()),
this, SLOT(slotCompleted())); this, TQ_SLOT(slotCompleted()));
connect( browserExtension(), SIGNAL(openURLRequestDelayed(const KURL&, const KParts::URLArgs&)), this, SLOT(slotOpenURLRequest(const KURL&, const KParts::URLArgs& )) ); connect( browserExtension(), TQ_SIGNAL(openURLRequestDelayed(const KURL&, const KParts::URLArgs&)), this, TQ_SLOT(slotOpenURLRequest(const KURL&, const KParts::URLArgs& )) );
connect( browserExtension(), connect( browserExtension(),
SIGNAL(popupMenu (KXMLGUIClient*, const TQPoint&, const KURL&, const TQ_SIGNAL(popupMenu (KXMLGUIClient*, const TQPoint&, const KURL&, const
KParts::URLArgs&, KParts::BrowserExtension::PopupFlags, mode_t)), this, SLOT(slotPopupMenu(KXMLGUIClient*, const TQPoint&, const KURL&, const KParts::URLArgs&, KParts::BrowserExtension::PopupFlags, mode_t)), this, TQ_SLOT(slotPopupMenu(KXMLGUIClient*, const TQPoint&, const KURL&, const
KParts::URLArgs&, KParts::BrowserExtension::PopupFlags, mode_t))); KParts::URLArgs&, KParts::BrowserExtension::PopupFlags, mode_t)));
KStdAction::print(this, SLOT(slotPrint()), actionCollection(), "viewer_print"); KStdAction::print(this, TQ_SLOT(slotPrint()), actionCollection(), "viewer_print");
KStdAction::copy(this, SLOT(slotCopy()), actionCollection(), "viewer_copy"); KStdAction::copy(this, TQ_SLOT(slotCopy()), actionCollection(), "viewer_copy");
new TDEAction( i18n("&Increase Font Sizes"), "viewmag+", "Ctrl+Plus", this, SLOT(slotZoomIn()), actionCollection(), "incFontSizes" ); new TDEAction( i18n("&Increase Font Sizes"), "viewmag+", "Ctrl+Plus", this, TQ_SLOT(slotZoomIn()), actionCollection(), "incFontSizes" );
new TDEAction( i18n("&Decrease Font Sizes"), "viewmag-", "Ctrl+Minus", this, SLOT(slotZoomOut()), actionCollection(), "decFontSizes" ); new TDEAction( i18n("&Decrease Font Sizes"), "viewmag-", "Ctrl+Minus", this, TQ_SLOT(slotZoomOut()), actionCollection(), "decFontSizes" );
connect(this, SIGNAL(selectionChanged()), this, SLOT(slotSelectionChanged())); connect(this, TQ_SIGNAL(selectionChanged()), this, TQ_SLOT(slotSelectionChanged()));
new TDEAction(i18n("Copy &Link Address"), "", 0, new TDEAction(i18n("Copy &Link Address"), "", 0,
this, SLOT(slotCopyLinkAddress()), this, TQ_SLOT(slotCopyLinkAddress()),
actionCollection(), "copylinkaddress"); actionCollection(), "copylinkaddress");
} }
@ -166,8 +166,8 @@ void Viewer::slotPopupMenu(KXMLGUIClient*, const TQPoint& p, const KURL& kurl, c
if (!url.isEmpty()) if (!url.isEmpty())
{ {
popup.insertItem(SmallIcon("tab_new"), i18n("Open Link in New &Tab"), this, SLOT(slotOpenLinkInForegroundTab())); popup.insertItem(SmallIcon("tab_new"), i18n("Open Link in New &Tab"), this, TQ_SLOT(slotOpenLinkInForegroundTab()));
popup.insertItem(SmallIcon("window-new"), i18n("Open Link in External &Browser"), this, SLOT(slotOpenLinkInBrowser())); popup.insertItem(SmallIcon("window-new"), i18n("Open Link in External &Browser"), this, TQ_SLOT(slotOpenLinkInBrowser()));
action("copylinkaddress")->plug(&popup); action("copylinkaddress")->plug(&popup);
} }
else else
@ -188,9 +188,9 @@ void Viewer::slotCopy()
TQString text = selectedText(); TQString text = selectedText();
text.replace( TQChar( 0xa0 ), ' ' ); text.replace( TQChar( 0xa0 ), ' ' );
TQClipboard *cb = TQApplication::clipboard(); TQClipboard *cb = TQApplication::clipboard();
disconnect( cb, SIGNAL( selectionChanged() ), this, SLOT( slotClearSelection() ) ); disconnect( cb, TQ_SIGNAL( selectionChanged() ), this, TQ_SLOT( slotClearSelection() ) );
cb->setText(text); cb->setText(text);
connect( cb, SIGNAL( selectionChanged() ), this, SLOT( slotClearSelection() ) ); connect( cb, TQ_SIGNAL( selectionChanged() ), this, TQ_SLOT( slotClearSelection() ) );
} }
void Viewer::slotCopyLinkAddress() void Viewer::slotCopyLinkAddress()

Loading…
Cancel
Save