Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/2/head
Michele Calgaro 11 months ago
parent 283e2da098
commit a966514dd8
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -59,10 +59,10 @@ ConfigDialogImpl::ConfigDialogImpl(TQWidget* parent, const char* name, WFlags fl
new TQListBoxPixmap(listBox,MainBarIcon("colors",TDEIcon::SizeLarge),"Appearance"); new TQListBoxPixmap(listBox,MainBarIcon("colors",TDEIcon::SizeLarge),"Appearance");
listBox->setSelected(listBox->topItem(),true); listBox->setSelected(listBox->topItem(),true);
connect(kKeyButton1,SIGNAL(capturedShortcut(const TDEShortcut&)),this,SLOT(slotShortcutChanged(const TDEShortcut&)) ); connect(kKeyButton1,TQ_SIGNAL(capturedShortcut(const TDEShortcut&)),this,TQ_SLOT(slotShortcutChanged(const TDEShortcut&)) );
addService->setPopup(new ServiceMenu(this, SLOT(slotAddService(KService*)), addService->setPopup(new ServiceMenu(this, TQ_SLOT(slotAddService(KService*)),
SLOT(slotAddServiceGroup(KServiceGroup*)), addService)); TQ_SLOT(slotAddServiceGroup(KServiceGroup*)), addService));
} }
void ConfigDialogImpl::readConfig() void ConfigDialogImpl::readConfig()
@ -135,7 +135,7 @@ void ConfigDialogImpl::slotChangeListView(const TQString& appname)
if(temp){ if(temp){
curListView = temp; curListView = temp;
lists->raiseWidget(curListView); lists->raiseWidget(curListView);
connect(curListView, SIGNAL(clicked(TQListViewItem*)), this, SLOT(slotMenuViewClicked(TQListViewItem*))); connect(curListView, TQ_SIGNAL(clicked(TQListViewItem*)), this, TQ_SLOT(slotMenuViewClicked(TQListViewItem*)));
slotMenuViewClicked(curListView->selectedItem()); slotMenuViewClicked(curListView->selectedItem());
} }
} }

@ -50,7 +50,7 @@ KCMKommando::KCMKommando(TQWidget *parent, const char *name, const TQStringList&
TQVBoxLayout* layout = new TQVBoxLayout( this ); TQVBoxLayout* layout = new TQVBoxLayout( this );
layout->setAutoAdd( true ); layout->setAutoAdd( true );
configDialog = new ConfigDialogImpl(this); configDialog = new ConfigDialogImpl(this);
connect(configDialog, SIGNAL(changed(bool)), this, SLOT(configChanged(bool))); connect(configDialog, TQ_SIGNAL(changed(bool)), this, TQ_SLOT(configChanged(bool)));
load(); load();
}; };

@ -43,7 +43,7 @@ Kommando::Kommando()
//set up the navbutton //set up the navbutton
Config& config = Config::getSingleton(); Config& config = Config::getSingleton();
navbutton.move(config.menuRadius(),config.menuRadius()); navbutton.move(config.menuRadius(),config.menuRadius());
connect(&navbutton, SIGNAL(clicked()), this, SLOT(slotNavClick())); connect(&navbutton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotNavClick()));
} }
void Kommando::slotGlobAccel() void Kommando::slotGlobAccel()
@ -121,8 +121,8 @@ void Kommando::setActMenu( Menu * newMenu )
} }
//initialize the new menu //initialize the new menu
connect(newMenu, SIGNAL(clicked(int)), this, SLOT(slotOnClick()) ); connect(newMenu, TQ_SIGNAL(clicked(int)), this, TQ_SLOT(slotOnClick()) );
connect(newMenu, SIGNAL(buttonSelected(int)),this,SLOT(slotButtonSelected(int))); connect(newMenu, TQ_SIGNAL(buttonSelected(int)),this,TQ_SLOT(slotButtonSelected(int)));
newMenu->showButtons(); newMenu->showButtons();
} }
actMenu = newMenu; actMenu = newMenu;

@ -39,7 +39,7 @@ KommandoDaemon::KommandoDaemon(const TQCString &name)
Shortcut.insert("Toggle", i18n("Toggle"), Shortcut.insert("Toggle", i18n("Toggle"),
i18n("This shortcut toggles the visibility of the Kommando menu"), i18n("This shortcut toggles the visibility of the Kommando menu"),
TDEShortcut(config.Shortcut()), TDEShortcut(config.Shortcut()), TDEShortcut(config.Shortcut()), TDEShortcut(config.Shortcut()),
kommandoWin, SLOT( slotGlobAccel() ) ); kommandoWin, TQ_SLOT( slotGlobAccel() ) );
Shortcut.setEnabled(true); Shortcut.setEnabled(true);
Shortcut.updateConnections(); Shortcut.updateConnections();
} }

@ -107,8 +107,8 @@ TQButton * Menu::selectedButton( )
int Menu::insert( TQButton * button, int id ) int Menu::insert( TQButton * button, int id )
{ {
RoundButton* rButton = static_cast<RoundButton*>(button); RoundButton* rButton = static_cast<RoundButton*>(button);
connect(rButton, SIGNAL(mouseIn(RoundButton*)),this,SLOT(slotMouseIn(RoundButton*))); connect(rButton, TQ_SIGNAL(mouseIn(RoundButton*)),this,TQ_SLOT(slotMouseIn(RoundButton*)));
connect(rButton, SIGNAL(mouseOut(RoundButton*)),this,SLOT(slotMouseOut())); connect(rButton, TQ_SIGNAL(mouseOut(RoundButton*)),this,TQ_SLOT(slotMouseOut()));
if(rButton->type() == RoundButton::Submenu){ if(rButton->type() == RoundButton::Submenu){
children.append(static_cast<SubmenuButton*>(rButton)->subMenu()); children.append(static_cast<SubmenuButton*>(rButton)->subMenu());
@ -120,8 +120,8 @@ int Menu::insert( TQButton * button, int id )
int Menu::insertNoChild( TQButton * button, int id ) int Menu::insertNoChild( TQButton * button, int id )
{ {
RoundButton* rButton = static_cast<RoundButton*>(button); RoundButton* rButton = static_cast<RoundButton*>(button);
connect(rButton, SIGNAL(mouseIn(RoundButton*)),this,SLOT(slotMouseIn(RoundButton*))); connect(rButton, TQ_SIGNAL(mouseIn(RoundButton*)),this,TQ_SLOT(slotMouseIn(RoundButton*)));
connect(rButton, SIGNAL(mouseOut(RoundButton*)),this,SLOT(slotMouseOut())); connect(rButton, TQ_SIGNAL(mouseOut(RoundButton*)),this,TQ_SLOT(slotMouseOut()));
return TQButtonGroup::insert(button,id); return TQButtonGroup::insert(button,id);
} }

@ -52,10 +52,10 @@ ServiceMenu::~ServiceMenu()
void ServiceMenu::initialize() void ServiceMenu::initialize()
{ {
m_subMenus.setAutoDelete(true); m_subMenus.setAutoDelete(true);
connect(KSycoca::self(), SIGNAL(databaseChanged()), SLOT(createMenu())); connect(KSycoca::self(), TQ_SIGNAL(databaseChanged()), TQ_SLOT(createMenu()));
connect(this, SIGNAL(activated(int)), this, SLOT(slotActivated(int))); connect(this, TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotActivated(int)));
connect(this, SIGNAL(serviceSelected(KService*)), m_receiver, m_slotActivatedItem); connect(this, TQ_SIGNAL(serviceSelected(KService*)), m_receiver, m_slotActivatedItem);
connect(this, SIGNAL(serviceGroupSelected(KServiceGroup*)), m_receiver, m_slotActivatedGroup); connect(this, TQ_SIGNAL(serviceGroupSelected(KServiceGroup*)), m_receiver, m_slotActivatedGroup);
createMenu(); createMenu();
} }

Loading…
Cancel
Save