Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 43379ee382)
r14.1.x
Michele Calgaro 12 months ago
parent 6319099a2e
commit dbc335c77f
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -79,62 +79,62 @@ void KbfxConfigApp::InitForm()
lb_Main->insertItem ( img_themes, tr2i18n ( "Themes" ), THEMES ); lb_Main->insertItem ( img_themes, tr2i18n ( "Themes" ), THEMES );
KbfxConfigDlgThemes *pageThemes = new KbfxConfigDlgThemes(); KbfxConfigDlgThemes *pageThemes = new KbfxConfigDlgThemes();
ws_Main->addWidget ( pageThemes, THEMES ); ws_Main->addWidget ( pageThemes, THEMES );
connect ( this, TQT_SIGNAL ( KbfxConfigDlgThemesChanged() ), connect ( this, TQ_SIGNAL ( KbfxConfigDlgThemesChanged() ),
pageThemes, TQT_SLOT ( ChangeForm() ) ); pageThemes, TQ_SLOT ( ChangeForm() ) );
emit KbfxConfigDlgThemesChanged(); emit KbfxConfigDlgThemesChanged();
connect ( pageThemes->KbfxGetMoreThemes, TQT_SIGNAL ( clicked() ), connect ( pageThemes->KbfxGetMoreThemes, TQ_SIGNAL ( clicked() ),
this, TQT_SLOT ( KbfxGetMoreThemesClicked() ) ); this, TQ_SLOT ( KbfxGetMoreThemesClicked() ) );
connect ( this, TQT_SIGNAL ( KbfxThemeDoInstall ( TQString & ) ), connect ( this, TQ_SIGNAL ( KbfxThemeDoInstall ( TQString & ) ),
pageThemes, TQT_SLOT ( KbfxThemeInstall ( TQString & ) ) ); pageThemes, TQ_SLOT ( KbfxThemeInstall ( TQString & ) ) );
/* initialize Button page */ /* initialize Button page */
lb_Main->insertItem ( img_button, tr2i18n ( "Start Button" ), BUTTON ); lb_Main->insertItem ( img_button, tr2i18n ( "Start Button" ), BUTTON );
KbfxConfigDlgButton *pageButton = new KbfxConfigDlgButton(); KbfxConfigDlgButton *pageButton = new KbfxConfigDlgButton();
ws_Main->addWidget ( pageButton, BUTTON ); ws_Main->addWidget ( pageButton, BUTTON );
connect ( this, TQT_SIGNAL ( KbfxConfigDlgButtonChanged() ), connect ( this, TQ_SIGNAL ( KbfxConfigDlgButtonChanged() ),
pageButton, TQT_SLOT ( ChangeForm() ) ); pageButton, TQ_SLOT ( ChangeForm() ) );
emit KbfxConfigDlgButtonChanged(); emit KbfxConfigDlgButtonChanged();
/* initialize Fonts page */ /* initialize Fonts page */
lb_Main->insertItem ( img_fonts, tr2i18n ( "Fonts" ), FONTS ); lb_Main->insertItem ( img_fonts, tr2i18n ( "Fonts" ), FONTS );
KbfxConfigDlgFonts *pageFonts = new KbfxConfigDlgFonts(); KbfxConfigDlgFonts *pageFonts = new KbfxConfigDlgFonts();
ws_Main->addWidget ( pageFonts, FONTS ); ws_Main->addWidget ( pageFonts, FONTS );
connect ( this, TQT_SIGNAL ( KbfxConfigDlgFontsChanged() ), connect ( this, TQ_SIGNAL ( KbfxConfigDlgFontsChanged() ),
pageFonts, TQT_SLOT ( ChangeForm() ) ); pageFonts, TQ_SLOT ( ChangeForm() ) );
emit KbfxConfigDlgFontsChanged(); emit KbfxConfigDlgFontsChanged();
/* initialize Layout Page */ /* initialize Layout Page */
lb_Main->insertItem ( img_search, tr2i18n ( "Layout" ), LAYOUT ); lb_Main->insertItem ( img_search, tr2i18n ( "Layout" ), LAYOUT );
KbfxConfigDlgLayout *pageLayout = new KbfxConfigDlgLayout(); KbfxConfigDlgLayout *pageLayout = new KbfxConfigDlgLayout();
ws_Main->addWidget ( pageLayout, LAYOUT ); ws_Main->addWidget ( pageLayout, LAYOUT );
connect ( this, TQT_SIGNAL ( KbfxConfigDlgLayoutChanged() ), connect ( this, TQ_SIGNAL ( KbfxConfigDlgLayoutChanged() ),
pageLayout, TQT_SLOT ( ChangeForm() ) ); pageLayout, TQ_SLOT ( ChangeForm() ) );
connect ( this, TQT_SIGNAL ( KbfxConfigDlgLayoutLeft() ), connect ( this, TQ_SIGNAL ( KbfxConfigDlgLayoutLeft() ),
pageLayout, TQT_SLOT ( LayoutFormLeft() ) ); pageLayout, TQ_SLOT ( LayoutFormLeft() ) );
emit KbfxConfigDlgLayoutChanged(); emit KbfxConfigDlgLayoutChanged();
/* initialize Plugins Page */ /* initialize Plugins Page */
lb_Main->insertItem ( img_plugins, tr2i18n ( "Plugins" ), PLUGINS ); lb_Main->insertItem ( img_plugins, tr2i18n ( "Plugins" ), PLUGINS );
KbfxConfigDlgPlugins *pagePlugins = new KbfxConfigDlgPlugins(); KbfxConfigDlgPlugins *pagePlugins = new KbfxConfigDlgPlugins();
ws_Main->addWidget ( pagePlugins, PLUGINS ); ws_Main->addWidget ( pagePlugins, PLUGINS );
connect ( this, TQT_SIGNAL ( KbfxConfigDlgPluginsChanged() ), connect ( this, TQ_SIGNAL ( KbfxConfigDlgPluginsChanged() ),
pagePlugins, TQT_SLOT ( ChangeForm() ) ); pagePlugins, TQ_SLOT ( ChangeForm() ) );
emit KbfxConfigDlgPluginsChanged(); emit KbfxConfigDlgPluginsChanged();
/* initialize Tooltip page */ /* initialize Tooltip page */
lb_Main->insertItem ( img_tooltip, tr2i18n ( "Tooltip" ), TOOLTIP ); lb_Main->insertItem ( img_tooltip, tr2i18n ( "Tooltip" ), TOOLTIP );
KbfxConfigDlgTooltip *pageTooltip = new KbfxConfigDlgTooltip(); KbfxConfigDlgTooltip *pageTooltip = new KbfxConfigDlgTooltip();
ws_Main->addWidget ( pageTooltip, TOOLTIP ); ws_Main->addWidget ( pageTooltip, TOOLTIP );
connect ( this, TQT_SIGNAL ( KbfxConfigDlgTooltipChanged() ), connect ( this, TQ_SIGNAL ( KbfxConfigDlgTooltipChanged() ),
pageTooltip, TQT_SLOT ( ChangeForm() ) ); pageTooltip, TQ_SLOT ( ChangeForm() ) );
emit KbfxConfigDlgTooltipChanged(); emit KbfxConfigDlgTooltipChanged();
/* initialize Menu Style page */ /* initialize Menu Style page */
lb_Main->insertItem ( img_style, tr2i18n ( "Menu Style" ), STYLE ); lb_Main->insertItem ( img_style, tr2i18n ( "Menu Style" ), STYLE );
KbfxConfigDlgStyle *pageStyle = new KbfxConfigDlgStyle(); KbfxConfigDlgStyle *pageStyle = new KbfxConfigDlgStyle();
ws_Main->addWidget ( pageStyle, STYLE ); ws_Main->addWidget ( pageStyle, STYLE );
connect ( this, TQT_SIGNAL ( KbfxConfigDlgStyleChanged() ), connect ( this, TQ_SIGNAL ( KbfxConfigDlgStyleChanged() ),
pageStyle, TQT_SLOT ( ChangeForm() ) ); pageStyle, TQ_SLOT ( ChangeForm() ) );
emit KbfxConfigDlgStyleChanged(); emit KbfxConfigDlgStyleChanged();
/* initialize About page */ /* initialize About page */
@ -143,14 +143,14 @@ void KbfxConfigApp::InitForm()
ws_Main->addWidget ( pageAbout,ABOUT ); ws_Main->addWidget ( pageAbout,ABOUT );
pageAbout->KbfxLabelVersion->setText ( m_KbfxVersion2 ); pageAbout->KbfxLabelVersion->setText ( m_KbfxVersion2 );
connect ( btn_Default, TQT_SIGNAL ( clicked() ), connect ( btn_Default, TQ_SIGNAL ( clicked() ),
this, TQT_SLOT ( btn_DefaultClicked() ) ); this, TQ_SLOT ( btn_DefaultClicked() ) );
connect ( btn_Help, TQT_SIGNAL ( clicked() ), connect ( btn_Help, TQ_SIGNAL ( clicked() ),
this, TQT_SLOT ( btn_HelpClicked() ) ); this, TQ_SLOT ( btn_HelpClicked() ) );
connect ( lb_Main, TQT_SIGNAL ( highlighted ( int ) ), connect ( lb_Main, TQ_SIGNAL ( highlighted ( int ) ),
this, TQT_SLOT ( KbfxMenuItemChanged ( int ) ) ); this, TQ_SLOT ( KbfxMenuItemChanged ( int ) ) );
connect ( btn_SaveApply, TQT_SIGNAL ( clicked() ), connect ( btn_SaveApply, TQ_SIGNAL ( clicked() ),
this, TQT_SLOT ( btn_SaveApplyClicked() ) ); this, TQ_SLOT ( btn_SaveApplyClicked() ) );
m_KbfxPage = THEMES; m_KbfxPage = THEMES;
lb_Main->setCurrentItem ( THEMES ); lb_Main->setCurrentItem ( THEMES );
@ -350,8 +350,8 @@ void KbfxConfigApp::browserInit()
{ {
/* initialize NewsBrowser widget */ /* initialize NewsBrowser widget */
tdeio = new KbfxKioDownload(); tdeio = new KbfxKioDownload();
connect ( tdeio, TQT_SIGNAL ( KbfxKioDownloadReady() ), connect ( tdeio, TQ_SIGNAL ( KbfxKioDownloadReady() ),
this, TQT_SLOT ( KbfxNewsBrowserLoad() ) ); this, TQ_SLOT ( KbfxNewsBrowserLoad() ) );
tdeio->KbfxKioDownloadStart ( m_KbfxNewsBrowserAddress ); tdeio->KbfxKioDownloadStart ( m_KbfxNewsBrowserAddress );
} }
@ -369,11 +369,11 @@ void KbfxConfigApp::KbfxNewsBrowserLoad()
browser->view()->show(); browser->view()->show();
connect ( browser->browserExtension(), connect ( browser->browserExtension(),
TQT_SIGNAL ( openURLRequest ( const KURL &, const KParts::URLArgs & ) ), TQ_SIGNAL ( openURLRequest ( const KURL &, const KParts::URLArgs & ) ),
this, this,
TQT_SLOT ( KbfxNewsBrowserOpenURLRequest ( const KURL &, const KParts::URLArgs & ) ) ); TQ_SLOT ( KbfxNewsBrowserOpenURLRequest ( const KURL &, const KParts::URLArgs & ) ) );
connect ( browser, TQT_SIGNAL ( completed() ), connect ( browser, TQ_SIGNAL ( completed() ),
this, TQT_SLOT ( KbfxNewsBrowserCompleted() ) ); this, TQ_SLOT ( KbfxNewsBrowserCompleted() ) );
} }
} }

@ -12,8 +12,8 @@
void KbfxConfigDlgButton::init() void KbfxConfigDlgButton::init()
{ {
connect ( this, TQT_SIGNAL ( KbfxConfigDlgButtonChanged ( const char *, const TQString & ) ), connect ( this, TQ_SIGNAL ( KbfxConfigDlgButtonChanged ( const char *, const TQString & ) ),
this, TQT_SLOT ( ChangeForm ( const char *, const TQString & ) ) ); this, TQ_SLOT ( ChangeForm ( const char *, const TQString & ) ) );
} }
/* actions performed when url is selected */ /* actions performed when url is selected */

@ -17,8 +17,8 @@ void KbfxConfigDlgThemes::init()
KbfxFormReady = FALSE; KbfxFormReady = FALSE;
img_nopreview = image0; img_nopreview = image0;
connect ( this, TQT_SIGNAL ( KbfxThemeDoInstall ( TQString & ) ), connect ( this, TQ_SIGNAL ( KbfxThemeDoInstall ( TQString & ) ),
this, TQT_SLOT ( KbfxThemeInstall ( TQString & ) ) ); this, TQ_SLOT ( KbfxThemeInstall ( TQString & ) ) );
} }
/* /*

@ -95,7 +95,7 @@ class KbfxConfigApplication : public KUniqueApplication
} }
kdDebug() << "KBFX theme prepared. Quitting..." << endl; kdDebug() << "KBFX theme prepared. Quitting..." << endl;
TQTimer::singleShot ( 100, mainWin, TQT_SLOT ( deleteLater() ) ); TQTimer::singleShot ( 100, mainWin, TQ_SLOT ( deleteLater() ) );
} }
else else
{ {

@ -45,7 +45,7 @@ KBFXFontChooser::KBFXFontChooser ( TQWidget *parent, const char *name )
3 * KDialog::spacingHint() + pixmap.width() ); 3 * KDialog::spacingHint() + pixmap.width() );
layout->addWidget ( m_button ); layout->addWidget ( m_button );
connect ( m_button, TQT_SIGNAL ( clicked() ), this, TQT_SLOT ( buttonClicked() ) ); connect ( m_button, TQ_SIGNAL ( clicked() ), this, TQ_SLOT ( buttonClicked() ) );
updateFontLabel(); updateFontLabel();

@ -42,8 +42,8 @@ void KbfxKioDownload::KbfxKioDownloadStart ( TQString &url )
KURL ( m_KbfxBrowserTmpFile ), KURL ( m_KbfxBrowserTmpFile ),
-1, -1,
TRUE ); TRUE );
connect ( download_job, TQT_SIGNAL ( result ( TDEIO::Job* ) ), connect ( download_job, TQ_SIGNAL ( result ( TDEIO::Job* ) ),
this, TQT_SLOT ( KbfxBrowserResult ( TDEIO::Job * ) ) ); this, TQ_SLOT ( KbfxBrowserResult ( TDEIO::Job * ) ) );
} }
void KbfxKioDownload::KbfxBrowserResult ( TDEIO::Job *download_job ) void KbfxKioDownload::KbfxBrowserResult ( TDEIO::Job *download_job )

@ -44,11 +44,11 @@ KbfxButton::KbfxButton ( TQWidget * parent, const char *name) :
m_toggle = false; m_toggle = false;
TQTimer * timer = new TQTimer ( this,"Update Timer" ); TQTimer * timer = new TQTimer ( this,"Update Timer" );
connect ( timer,TQT_SIGNAL ( timeout() ),this,TQT_SLOT ( update() ) ); connect ( timer,TQ_SIGNAL ( timeout() ),this,TQ_SLOT ( update() ) );
timer->start ( 25,false ); timer->start ( 25,false );
fade_timer = new TQTimer ( this,"Fade Timer" ); fade_timer = new TQTimer ( this,"Fade Timer" );
connect ( fade_timer,TQT_SIGNAL ( timeout() ),this,TQT_SLOT ( fade() ) ); connect ( fade_timer,TQ_SIGNAL ( timeout() ),this,TQ_SLOT ( fade() ) );
} }
KbfxButton::~KbfxButton() KbfxButton::~KbfxButton()
@ -273,14 +273,14 @@ void KbfxButton::mousePressEvent ( TQMouseEvent * e )
TQPopupMenu *popup = new TQPopupMenu(); TQPopupMenu *popup = new TQPopupMenu();
popup->insertItem ( SmallIcon ( "remove" ), i18n ( "Remove KBFX from Pannel" ), popup->insertItem ( SmallIcon ( "remove" ), i18n ( "Remove KBFX from Pannel" ),
this, TQT_SLOT ( selfDeleter() ) ); this, TQ_SLOT ( selfDeleter() ) );
popup->insertItem ( SmallIcon ( "reload" ),i18n ( "Reload KBFX" ), popup->insertItem ( SmallIcon ( "reload" ),i18n ( "Reload KBFX" ),
this, TQT_SLOT ( reloadConfig() ) ); this, TQ_SLOT ( reloadConfig() ) );
popup->insertSeparator(); popup->insertSeparator();
popup->insertItem ( SmallIcon ( "kbfxconfigapp" ), i18n ( "Configure KBFX" ), popup->insertItem ( SmallIcon ( "kbfxconfigapp" ), i18n ( "Configure KBFX" ),
this, TQT_SLOT ( openConfigDialog() ) ); this, TQ_SLOT ( openConfigDialog() ) );
popup->insertItem ( SmallIcon ( "kmenuedit" ),i18n ( "Edit Applications Menu" ), popup->insertItem ( SmallIcon ( "kmenuedit" ),i18n ( "Edit Applications Menu" ),
this, TQT_SLOT ( openKmenuEdit() ) ); this, TQ_SLOT ( openKmenuEdit() ) );
popup->exec ( e->globalPos() ); popup->exec ( e->globalPos() );
delete popup; delete popup;
} }

@ -62,10 +62,10 @@ KbfxPlasmaCanvasGroupView::addGroup ( KbfxPlasmaCanvasGroup * gPtr )
// gPtr->show(); // gPtr->show();
// tqDebug("adding Groupy"); // tqDebug("adding Groupy");
m_count++; m_count++;
connect ( gPtr, TQT_SIGNAL ( groupShade ( uint ) ), this, connect ( gPtr, TQ_SIGNAL ( groupShade ( uint ) ), this,
TQT_SLOT ( foldGroup ( uint ) ) ); TQ_SLOT ( foldGroup ( uint ) ) );
connect ( gPtr, TQT_SIGNAL ( groupUnShade ( uint ) ), this, connect ( gPtr, TQ_SIGNAL ( groupUnShade ( uint ) ), this,
TQT_SLOT ( unFoldGroup ( uint ) ) ); TQ_SLOT ( unFoldGroup ( uint ) ) );
} }

@ -32,7 +32,7 @@ KbfxPlasmaCanvasItem::KbfxPlasmaCanvasItem ( TQCanvasPixmapArray * a , TQCanvas
m_commentText ="No Comment Set By Plugin"; m_commentText ="No Comment Set By Plugin";
m_height =_img->height(); m_height =_img->height();
m_width =_img->width(); m_width =_img->width();
connect ( this,TQT_SIGNAL ( clicked() ),this,TQT_SLOT ( exec() ) ); connect ( this,TQ_SIGNAL ( clicked() ),this,TQ_SLOT ( exec() ) );
m_type = OTHER; m_type = OTHER;
// ConfigInit().read(); // ConfigInit().read();
m_noComments = ConfigInit().m_noComments; m_noComments = ConfigInit().m_noComments;

@ -46,10 +46,10 @@ KbfxPlasmaCanvasView::KbfxPlasmaCanvasView ( TQWidget * parent,
m_scrollbar_top->setType ( KbfxSpinxScrollBar::UP ); m_scrollbar_top->setType ( KbfxSpinxScrollBar::UP );
m_scrollbar_bot->setType ( KbfxSpinxScrollBar::DOWN ); m_scrollbar_bot->setType ( KbfxSpinxScrollBar::DOWN );
connect ( m_scrollbar_top, TQT_SIGNAL ( scroll ( int, int ) ), this, connect ( m_scrollbar_top, TQ_SIGNAL ( scroll ( int, int ) ), this,
TQT_SLOT ( scrollBy ( int, int ) ) ); TQ_SLOT ( scrollBy ( int, int ) ) );
connect ( m_scrollbar_bot, TQT_SIGNAL ( scroll ( int, int ) ), this, connect ( m_scrollbar_bot, TQ_SIGNAL ( scroll ( int, int ) ), this,
TQT_SLOT ( scrollBy ( int, int ) ) ); TQ_SLOT ( scrollBy ( int, int ) ) );
placeScrollBars (); placeScrollBars ();
} }

@ -43,8 +43,8 @@ KbfxPlasmaIndexView::KbfxPlasmaIndexView ( TQWidget * parent, const char *name,
m_currentItem = 0L; m_currentItem = 0L;
m_selectedItem = 0L; m_selectedItem = 0L;
// m_pluginList = ""; // m_pluginList = "";
connect ( this, TQT_SIGNAL ( clicked ( KbfxPlasmaIndexItem * ) ), this, connect ( this, TQ_SIGNAL ( clicked ( KbfxPlasmaIndexItem * ) ), this,
TQT_SLOT ( slotClicked ( KbfxPlasmaIndexItem * ) ) ); TQ_SLOT ( slotClicked ( KbfxPlasmaIndexItem * ) ) );
m_currentView = 0; m_currentView = 0;
setDragAutoScroll ( true ); setDragAutoScroll ( true );
} }
@ -167,8 +167,8 @@ KbfxPlasmaIndexView::contentsContextMenuEvent ( TQContextMenuEvent * event )
event = event; event = event;
/* /*
m_pluginMenu = new TDEPopupMenu ( this );; m_pluginMenu = new TDEPopupMenu ( this );;
connect ( m_pluginMenu, TQT_SIGNAL ( activated ( int ) ), this, connect ( m_pluginMenu, TQ_SIGNAL ( activated ( int ) ), this,
TQT_SLOT ( contextMenuSlot ( int ) ) ); TQ_SLOT ( contextMenuSlot ( int ) ) );
m_pluginMenu->insertTitle ( "Insert Plugin", 0, 0 ); m_pluginMenu->insertTitle ( "Insert Plugin", 0, 0 );
int _index = 1; int _index = 1;
@ -317,7 +317,7 @@ KbfxPlasmaIndexView::contentsMouseMoveEvent ( TQMouseEvent * me )
this->setCursor ( TQCursor ( TQt::PointingHandCursor ) ); this->setCursor ( TQCursor ( TQt::PointingHandCursor ) );
TQTimer::singleShot ( 800, this, TQT_SLOT ( checkMousePos () ) ); TQTimer::singleShot ( 800, this, TQ_SLOT ( checkMousePos () ) );
if ( contentsToViewport ( me->pos () ).y () < this->height () / 5 ) if ( contentsToViewport ( me->pos () ).y () < this->height () / 5 )
{ {

@ -60,14 +60,14 @@ void KbfxSpinx::createKbfx()
else else
{ {
createRMenu(); createRMenu();
connect ( m_menu,TQT_SIGNAL ( aboutToHide () ),kbfxBtn,TQT_SLOT ( toggle() ) ); connect ( m_menu,TQ_SIGNAL ( aboutToHide () ),kbfxBtn,TQ_SLOT ( toggle() ) );
} }
kmenu_timer = new TQTimer ( this,"Fade Timer" ); kmenu_timer = new TQTimer ( this,"Fade Timer" );
connect ( kmenu_timer, TQT_SIGNAL ( timeout() ), kbfxBtn, TQT_SLOT ( toggleKMenu () ) ); connect ( kmenu_timer, TQ_SIGNAL ( timeout() ), kbfxBtn, TQ_SLOT ( toggleKMenu () ) );
connect ( kbfxBtn , TQT_SIGNAL ( pressed() ),this,TQT_SLOT ( showKbfxMenu() ) ); connect ( kbfxBtn , TQ_SIGNAL ( pressed() ),this,TQ_SLOT ( showKbfxMenu() ) );
connect ( kbfxBtn , TQT_SIGNAL ( showToolTip() ),this,TQT_SLOT ( ToolTip() ) ); connect ( kbfxBtn , TQ_SIGNAL ( showToolTip() ),this,TQ_SLOT ( ToolTip() ) );
if ( m_kicker_auto_adjust ) if ( m_kicker_auto_adjust )
m_parent->resize ( m_parent->width(),kbfxBtn->height() ); m_parent->resize ( m_parent->width(),kbfxBtn->height() );
@ -82,8 +82,8 @@ void KbfxSpinx::createKbfx()
l_path.append("/"); l_path.append("/");
l_watch->addDir(l_path); l_watch->addDir(l_path);
l_watch->startScan( TRUE, FALSE); l_watch->startScan( TRUE, FALSE);
connect ( l_watch, TQT_SIGNAL ( dirty(const TQString&) ), connect ( l_watch, TQ_SIGNAL ( dirty(const TQString&) ),
this, TQT_SLOT ( dirtyReaload(const TQString&) ) ); this, TQ_SLOT ( dirtyReaload(const TQString&) ) );
delete l_user; delete l_user;
} }
} }
@ -172,8 +172,8 @@ void KbfxSpinx::ToolTip ()
popx -= tooltip->width(); popx -= tooltip->width();
} }
connect ( kbfxBtn, TQT_SIGNAL ( leave () ), tooltip, TQT_SLOT ( hideToolTip () ) ); connect ( kbfxBtn, TQ_SIGNAL ( leave () ), tooltip, TQ_SLOT ( hideToolTip () ) );
connect ( kbfxBtn, TQT_SIGNAL ( clicked () ), tooltip, TQT_SLOT ( hideToolTip () ) ); connect ( kbfxBtn, TQ_SIGNAL ( clicked () ), tooltip, TQ_SLOT ( hideToolTip () ) );
tooltip->setStartPos ( popx, popy ); tooltip->setStartPos ( popx, popy );
tooltip->show (); tooltip->show ();
} }

@ -86,8 +86,8 @@ KbfxSpinxMenuWidget::init()
m_search->resize ( ConfigInit ().m_searchBox_w - m_searchTag->width (), m_search->resize ( ConfigInit ().m_searchBox_w - m_searchTag->width (),
ConfigInit ().m_searchBox_h ); ConfigInit ().m_searchBox_h );
connect (m_searchTag, TQT_SIGNAL (mouseDoubleClicked ( const ButtonState & )), this, connect (m_searchTag, TQ_SIGNAL (mouseDoubleClicked ( const ButtonState & )), this,
TQT_SLOT (search_clear ( const ButtonState & ))); TQ_SLOT (search_clear ( const ButtonState & )));
int frameHeight = ConfigInit().m_listBox_h; int frameHeight = ConfigInit().m_listBox_h;
@ -143,37 +143,37 @@ KbfxSpinxMenuWidget::init()
loadHistory (); loadHistory ();
connect ( m_indexView, TQT_SIGNAL ( loadRequest ( KbfxSignal ) ), m_canvasView, connect ( m_indexView, TQ_SIGNAL ( loadRequest ( KbfxSignal ) ), m_canvasView,
TQT_SLOT ( handleLoadRequest ( KbfxSignal ) ) ); TQ_SLOT ( handleLoadRequest ( KbfxSignal ) ) );
connect ( m_indexLeftView, TQT_SIGNAL ( loadRequest ( KbfxSignal ) ), m_canvasView, connect ( m_indexLeftView, TQ_SIGNAL ( loadRequest ( KbfxSignal ) ), m_canvasView,
TQT_SLOT ( handleLoadRequest ( KbfxSignal ) ) ); TQ_SLOT ( handleLoadRequest ( KbfxSignal ) ) );
connect ( m_canvasView, TQT_SIGNAL ( clicked () ), this, TQT_SLOT ( hideMenu () ) ); connect ( m_canvasView, TQ_SIGNAL ( clicked () ), this, TQ_SLOT ( hideMenu () ) );
connect ( m_search, TQT_SIGNAL ( textChanged ( const TQString & ) ), m_canvasView, connect ( m_search, TQ_SIGNAL ( textChanged ( const TQString & ) ), m_canvasView,
TQT_SLOT ( search ( const TQString & ) ) ); TQ_SLOT ( search ( const TQString & ) ) );
connect ( m_indexView, connect ( m_indexView,
TQT_SIGNAL ( pluginRequest ( TQString, KbfxPlasmaCanvasView * ) ), TQ_SIGNAL ( pluginRequest ( TQString, KbfxPlasmaCanvasView * ) ),
m_indexView, TQT_SLOT ( loadPlugin ( TQString, KbfxPlasmaCanvasView * ) ) ); m_indexView, TQ_SLOT ( loadPlugin ( TQString, KbfxPlasmaCanvasView * ) ) );
connect ( m_indexLeftView, connect ( m_indexLeftView,
TQT_SIGNAL ( pluginRequest ( TQString, KbfxPlasmaCanvasView * ) ), TQ_SIGNAL ( pluginRequest ( TQString, KbfxPlasmaCanvasView * ) ),
m_indexLeftView, m_indexLeftView,
TQT_SLOT ( loadPlugin ( TQString, KbfxPlasmaCanvasView * ) ) ); TQ_SLOT ( loadPlugin ( TQString, KbfxPlasmaCanvasView * ) ) );
connect ( m_indexView, connect ( m_indexView,
TQT_SIGNAL ( clearSelected() ), TQ_SIGNAL ( clearSelected() ),
m_indexLeftView, TQT_SLOT ( clearSelection() ) ); m_indexLeftView, TQ_SLOT ( clearSelection() ) );
connect ( m_indexLeftView, connect ( m_indexLeftView,
TQT_SIGNAL ( clearSelected() ), TQ_SIGNAL ( clearSelected() ),
m_indexView, m_indexView,
TQT_SLOT ( clearSelection() ) ); TQ_SLOT ( clearSelection() ) );
connect (this,TQT_SIGNAL(refresh()),m_canvasView,TQT_SLOT(reload())); connect (this,TQ_SIGNAL(refresh()),m_canvasView,TQ_SLOT(reload()));
connect (this,TQT_SIGNAL(runItem()),m_canvasView,TQT_SLOT(execFirst())); connect (this,TQ_SIGNAL(runItem()),m_canvasView,TQ_SLOT(execFirst()));
KbfxSpinxToolButton *logout = new KbfxSpinxToolButton ( m_toolBarBot ); KbfxSpinxToolButton *logout = new KbfxSpinxToolButton ( m_toolBarBot );
KbfxSpinxToolButton *lock = new KbfxSpinxToolButton ( m_toolBarBot ); KbfxSpinxToolButton *lock = new KbfxSpinxToolButton ( m_toolBarBot );
@ -200,8 +200,8 @@ KbfxSpinxMenuWidget::init()
m_toolBarBot->addButton ( logout ); m_toolBarBot->addButton ( logout );
m_toolBarBot->addButton ( lock ); m_toolBarBot->addButton ( lock );
connect ( logout,TQT_SIGNAL ( clicked() ),this , TQT_SLOT ( hideMenu() ) ); connect ( logout,TQ_SIGNAL ( clicked() ),this , TQ_SLOT ( hideMenu() ) );
connect ( lock ,TQT_SIGNAL ( clicked() ),this , TQT_SLOT ( hideMenu() ) ); connect ( lock ,TQ_SIGNAL ( clicked() ),this , TQ_SLOT ( hideMenu() ) );
} }

@ -44,7 +44,7 @@ KbfxSpinxScrollBar::KbfxSpinxScrollBar ( TQWidget * parent, const char *name, in
m_triAngle = TQPointArray ( 3 ); m_triAngle = TQPointArray ( 3 );
m_dir = DOWN; m_dir = DOWN;
m_timer = new TQTimer ( this,"ScrollTimer" ); m_timer = new TQTimer ( this,"ScrollTimer" );
connect ( m_timer,TQT_SIGNAL ( timeout() ),this,TQT_SLOT ( timeoutslot() ) ); connect ( m_timer,TQ_SIGNAL ( timeout() ),this,TQ_SLOT ( timeoutslot() ) );
m_pressed = false; m_pressed = false;
} }

@ -28,7 +28,7 @@ KbfxSpinxToolButton::KbfxSpinxToolButton ( TQWidget * parent , const char * name
m_fadeTime = ConfigInit().m_fadeTime; m_fadeTime = ConfigInit().m_fadeTime;
fade_timer = new TQTimer ( this,"Fade Timer" ); fade_timer = new TQTimer ( this,"Fade Timer" );
connect ( fade_timer,TQT_SIGNAL ( timeout() ),this,TQT_SLOT ( fade() ) ); connect ( fade_timer,TQ_SIGNAL ( timeout() ),this,TQ_SLOT ( fade() ) );
} }

@ -61,9 +61,9 @@ KbfxToolTip::KbfxToolTip ( TQWidget * parent, const char *name, WFlags fl ) :
_update_timer = new TQTimer ( this ); _update_timer = new TQTimer ( this );
_move_timer = new TQTimer ( this ); _move_timer = new TQTimer ( this );
connect ( _hide_timer, TQT_SIGNAL ( timeout () ), this, TQT_SLOT ( hide () ) ); connect ( _hide_timer, TQ_SIGNAL ( timeout () ), this, TQ_SLOT ( hide () ) );
connect ( _hide_timer, TQT_SIGNAL ( timeout () ), _agent, TQT_SLOT ( hide () ) ); connect ( _hide_timer, TQ_SIGNAL ( timeout () ), _agent, TQ_SLOT ( hide () ) );
connect ( _update_timer, TQT_SIGNAL ( timeout () ), this, TQT_SLOT ( logoMove () ) ); connect ( _update_timer, TQ_SIGNAL ( timeout () ), this, TQ_SLOT ( logoMove () ) );
TQCursor kbfxCursor; TQCursor kbfxCursor;
kbfxCursor.setShape ( TQt::PointingHandCursor ); kbfxCursor.setShape ( TQt::PointingHandCursor );

Loading…
Cancel
Save