diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-05 22:07:15 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-05 22:07:15 +0000 |
commit | 421b60af92c83b889f8903c2898f2bd07186fcd8 (patch) | |
tree | ad873a24c9438baed4942fda795430a4c3dc9a9a /configdialog/kbfxconfigapp.cpp | |
parent | 39e896bddf25bf34cbf8be814d959181e2c1d1dd (diff) | |
download | kbfx-421b60af92c83b889f8903c2898f2bd07186fcd8.tar.gz kbfx-421b60af92c83b889f8903c2898f2bd07186fcd8.zip |
TQt4 port kbfx
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kbfx@1230544 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'configdialog/kbfxconfigapp.cpp')
-rw-r--r-- | configdialog/kbfxconfigapp.cpp | 80 |
1 files changed, 40 insertions, 40 deletions
diff --git a/configdialog/kbfxconfigapp.cpp b/configdialog/kbfxconfigapp.cpp index ac17881..127a7f2 100644 --- a/configdialog/kbfxconfigapp.cpp +++ b/configdialog/kbfxconfigapp.cpp @@ -21,8 +21,8 @@ #include "kbfxconfigapp.h" -KbfxConfigApp::KbfxConfigApp ( QWidget* parent, const char* name, WFlags fl ) - : KbfxConfigDlgMain ( parent,name,fl ) +KbfxConfigApp::KbfxConfigApp ( TQWidget* tqparent, const char* name, WFlags fl ) + : KbfxConfigDlgMain ( tqparent,name,fl ) { // m_KbfxVersion = tr2i18n("<p align='center'>Running KBFX version: " APPLICATION_VERSION "</p>"); m_KbfxVersion = tr2i18n ( "<p align='center'>%1</p>" ); @@ -79,62 +79,62 @@ void KbfxConfigApp::InitForm() lb_Main->insertItem ( img_themes, tr2i18n ( "Themes" ), THEMES ); KbfxConfigDlgThemes *pageThemes = new KbfxConfigDlgThemes(); ws_Main->addWidget ( pageThemes, THEMES ); - connect ( this, SIGNAL ( KbfxConfigDlgThemesChanged() ), - pageThemes, SLOT ( ChangeForm() ) ); + connect ( this, TQT_SIGNAL ( KbfxConfigDlgThemesChanged() ), + pageThemes, TQT_SLOT ( ChangeForm() ) ); emit KbfxConfigDlgThemesChanged(); - connect ( pageThemes->KbfxGetMoreThemes, SIGNAL ( clicked() ), - this, SLOT ( KbfxGetMoreThemesClicked() ) ); - connect ( this, SIGNAL ( KbfxThemeDoInstall ( QString & ) ), - pageThemes, SLOT ( KbfxThemeInstall ( QString & ) ) ); + connect ( pageThemes->KbfxGetMoreThemes, TQT_SIGNAL ( clicked() ), + this, TQT_SLOT ( KbfxGetMoreThemesClicked() ) ); + connect ( this, TQT_SIGNAL ( KbfxThemeDoInstall ( TQString & ) ), + pageThemes, TQT_SLOT ( KbfxThemeInstall ( TQString & ) ) ); /* initialize Button page */ lb_Main->insertItem ( img_button, tr2i18n ( "Start Button" ), BUTTON ); KbfxConfigDlgButton *pageButton = new KbfxConfigDlgButton(); ws_Main->addWidget ( pageButton, BUTTON ); - connect ( this, SIGNAL ( KbfxConfigDlgButtonChanged() ), - pageButton, SLOT ( ChangeForm() ) ); + connect ( this, TQT_SIGNAL ( KbfxConfigDlgButtonChanged() ), + pageButton, TQT_SLOT ( ChangeForm() ) ); emit KbfxConfigDlgButtonChanged(); /* initialize Fonts page */ lb_Main->insertItem ( img_fonts, tr2i18n ( "Fonts" ), FONTS ); KbfxConfigDlgFonts *pageFonts = new KbfxConfigDlgFonts(); ws_Main->addWidget ( pageFonts, FONTS ); - connect ( this, SIGNAL ( KbfxConfigDlgFontsChanged() ), - pageFonts, SLOT ( ChangeForm() ) ); + connect ( this, TQT_SIGNAL ( KbfxConfigDlgFontsChanged() ), + pageFonts, TQT_SLOT ( ChangeForm() ) ); emit KbfxConfigDlgFontsChanged(); /* initialize Layout Page */ lb_Main->insertItem ( img_search, tr2i18n ( "Layout" ), LAYOUT ); KbfxConfigDlgLayout *pageLayout = new KbfxConfigDlgLayout(); ws_Main->addWidget ( pageLayout, LAYOUT ); - connect ( this, SIGNAL ( KbfxConfigDlgLayoutChanged() ), - pageLayout, SLOT ( ChangeForm() ) ); - connect ( this, SIGNAL ( KbfxConfigDlgLayoutLeft() ), - pageLayout, SLOT ( LayoutFormLeft() ) ); + connect ( this, TQT_SIGNAL ( KbfxConfigDlgLayoutChanged() ), + pageLayout, TQT_SLOT ( ChangeForm() ) ); + connect ( this, TQT_SIGNAL ( KbfxConfigDlgLayoutLeft() ), + pageLayout, TQT_SLOT ( LayoutFormLeft() ) ); emit KbfxConfigDlgLayoutChanged(); /* initialize Plugins Page */ lb_Main->insertItem ( img_plugins, tr2i18n ( "Plugins" ), PLUGINS ); KbfxConfigDlgPlugins *pagePlugins = new KbfxConfigDlgPlugins(); ws_Main->addWidget ( pagePlugins, PLUGINS ); - connect ( this, SIGNAL ( KbfxConfigDlgPluginsChanged() ), - pagePlugins, SLOT ( ChangeForm() ) ); + connect ( this, TQT_SIGNAL ( KbfxConfigDlgPluginsChanged() ), + pagePlugins, TQT_SLOT ( ChangeForm() ) ); emit KbfxConfigDlgPluginsChanged(); /* initialize Tooltip page */ lb_Main->insertItem ( img_tooltip, tr2i18n ( "Tooltip" ), TOOLTIP ); KbfxConfigDlgTooltip *pageTooltip = new KbfxConfigDlgTooltip(); ws_Main->addWidget ( pageTooltip, TOOLTIP ); - connect ( this, SIGNAL ( KbfxConfigDlgTooltipChanged() ), - pageTooltip, SLOT ( ChangeForm() ) ); + connect ( this, TQT_SIGNAL ( KbfxConfigDlgTooltipChanged() ), + pageTooltip, TQT_SLOT ( ChangeForm() ) ); emit KbfxConfigDlgTooltipChanged(); /* initialize Menu Style page */ lb_Main->insertItem ( img_style, tr2i18n ( "Menu Style" ), STYLE ); KbfxConfigDlgStyle *pageStyle = new KbfxConfigDlgStyle(); ws_Main->addWidget ( pageStyle, STYLE ); - connect ( this, SIGNAL ( KbfxConfigDlgStyleChanged() ), - pageStyle, SLOT ( ChangeForm() ) ); + connect ( this, TQT_SIGNAL ( KbfxConfigDlgStyleChanged() ), + pageStyle, TQT_SLOT ( ChangeForm() ) ); emit KbfxConfigDlgStyleChanged(); /* initialize About page */ @@ -143,14 +143,14 @@ void KbfxConfigApp::InitForm() ws_Main->addWidget ( pageAbout,ABOUT ); pageAbout->KbfxLabelVersion->setText ( m_KbfxVersion2 ); - connect ( btn_Default, SIGNAL ( clicked() ), - this, SLOT ( btn_DefaultClicked() ) ); - connect ( btn_Help, SIGNAL ( clicked() ), - this, SLOT ( btn_HelpClicked() ) ); - connect ( lb_Main, SIGNAL ( highlighted ( int ) ), - this, SLOT ( KbfxMenuItemChanged ( int ) ) ); - connect ( btn_SaveApply, SIGNAL ( clicked() ), - this, SLOT ( btn_SaveApplyClicked() ) ); + connect ( btn_Default, TQT_SIGNAL ( clicked() ), + this, TQT_SLOT ( btn_DefaultClicked() ) ); + connect ( btn_Help, TQT_SIGNAL ( clicked() ), + this, TQT_SLOT ( btn_HelpClicked() ) ); + connect ( lb_Main, TQT_SIGNAL ( highlighted ( int ) ), + this, TQT_SLOT ( KbfxMenuItemChanged ( int ) ) ); + connect ( btn_SaveApply, TQT_SIGNAL ( clicked() ), + this, TQT_SLOT ( btn_SaveApplyClicked() ) ); m_KbfxPage = THEMES; lb_Main->setCurrentItem ( THEMES ); @@ -350,8 +350,8 @@ void KbfxConfigApp::browserInit() { /* initialize NewsBrowser widget */ kio = new KbfxKioDownload(); - connect ( kio, SIGNAL ( KbfxKioDownloadReady() ), - this, SLOT ( KbfxNewsBrowserLoad() ) ); + connect ( kio, TQT_SIGNAL ( KbfxKioDownloadReady() ), + this, TQT_SLOT ( KbfxNewsBrowserLoad() ) ); kio->KbfxKioDownloadStart ( m_KbfxNewsBrowserAddress ); } @@ -363,17 +363,17 @@ void KbfxConfigApp::KbfxNewsBrowserLoad() browser = new KHTMLPart ( KBFXNewsBrowser ); browser->openURL ( kio->KbfxBrowserTmpFile() ); browser->view()->resize ( KBFXNewsBrowser->width(), KBFXNewsBrowser->height() ); - browser->view()->setVScrollBarMode ( QScrollView::AlwaysOff ); - browser->view()->setHScrollBarMode ( QScrollView::AlwaysOff ); - browser->view()->setFocusPolicy ( QWidget::NoFocus ); + browser->view()->setVScrollBarMode ( TQScrollView::AlwaysOff ); + browser->view()->setHScrollBarMode ( TQScrollView::AlwaysOff ); + browser->view()->setFocusPolicy ( TQ_NoFocus ); browser->view()->show(); connect ( browser->browserExtension(), - SIGNAL ( openURLRequest ( const KURL &, const KParts::URLArgs & ) ), + TQT_SIGNAL ( openURLRequest ( const KURL &, const KParts::URLArgs & ) ), this, - SLOT ( KbfxNewsBrowserOpenURLRequest ( const KURL &, const KParts::URLArgs & ) ) ); - connect ( browser, SIGNAL ( completed() ), - this, SLOT ( KbfxNewsBrowserCompleted() ) ); + TQT_SLOT ( KbfxNewsBrowserOpenURLRequest ( const KURL &, const KParts::URLArgs & ) ) ); + connect ( browser, TQT_SIGNAL ( completed() ), + this, TQT_SLOT ( KbfxNewsBrowserCompleted() ) ); } } @@ -384,7 +384,7 @@ void KbfxConfigApp::KbfxGetMoreThemesClicked() return ; } -void KbfxConfigApp::KbfxThemeInstall ( QString & themeURL ) +void KbfxConfigApp::KbfxThemeInstall ( TQString & themeURL ) { emit KbfxThemeDoInstall ( themeURL ); } |