summaryrefslogtreecommitdiffstats
path: root/kcontrol
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
commitc663b6440964f6ac48027143ac9e63298991f9d0 (patch)
tree6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /kcontrol
parenta061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff)
downloadtdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz
tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kcontrol')
-rw-r--r--kcontrol/access/kaccess.cpp72
-rw-r--r--kcontrol/access/kaccess.h18
-rw-r--r--kcontrol/access/kcmaccess.cpp310
-rw-r--r--kcontrol/access/kcmaccess.h34
-rw-r--r--kcontrol/accessibility/accessibility.cpp16
-rw-r--r--kcontrol/accessibility/accessibility.h2
-rw-r--r--kcontrol/arts/arts.cpp184
-rw-r--r--kcontrol/arts/arts.h40
-rw-r--r--kcontrol/arts/krichtextlabel.cpp44
-rw-r--r--kcontrol/arts/krichtextlabel.h18
-rw-r--r--kcontrol/background/bgadvanced.cpp132
-rw-r--r--kcontrol/background/bgadvanced.h48
-rw-r--r--kcontrol/background/bgdefaults.h4
-rw-r--r--kcontrol/background/bgdialog.cpp198
-rw-r--r--kcontrol/background/bgdialog.h24
-rw-r--r--kcontrol/background/bghash.h6
-rw-r--r--kcontrol/background/bgmonitor.cpp82
-rw-r--r--kcontrol/background/bgmonitor.h46
-rw-r--r--kcontrol/background/bgrender.cpp178
-rw-r--r--kcontrol/background/bgrender.h52
-rw-r--r--kcontrol/background/bgsettings.cpp166
-rw-r--r--kcontrol/background/bgsettings.h128
-rw-r--r--kcontrol/background/bgwallpaper.cpp48
-rw-r--r--kcontrol/background/bgwallpaper.h14
-rw-r--r--kcontrol/background/main.cpp14
-rw-r--r--kcontrol/background/main.h2
-rw-r--r--kcontrol/bell/bell.cpp46
-rw-r--r--kcontrol/bell/bell.h6
-rw-r--r--kcontrol/clock/dtime.cpp138
-rw-r--r--kcontrol/clock/dtime.h44
-rw-r--r--kcontrol/clock/main.cpp16
-rw-r--r--kcontrol/clock/main.h4
-rw-r--r--kcontrol/clock/tzone.cpp44
-rw-r--r--kcontrol/clock/tzone.h6
-rw-r--r--kcontrol/colors/colorscm.cpp236
-rw-r--r--kcontrol/colors/colorscm.h38
-rw-r--r--kcontrol/colors/widgetcanvas.cpp274
-rw-r--r--kcontrol/colors/widgetcanvas.h84
-rw-r--r--kcontrol/componentchooser/componentchooser.cpp120
-rw-r--r--kcontrol/componentchooser/componentchooser.h28
-rw-r--r--kcontrol/componentchooser/kcm_componentchooser.cpp10
-rw-r--r--kcontrol/componentchooser/kcm_componentchooser.h2
-rw-r--r--kcontrol/crypto/certexport.cpp54
-rw-r--r--kcontrol/crypto/certexport.h8
-rw-r--r--kcontrol/crypto/crypto.cpp718
-rw-r--r--kcontrol/crypto/crypto.h198
-rw-r--r--kcontrol/crypto/kdatetimedlg.cpp36
-rw-r--r--kcontrol/crypto/kdatetimedlg.h14
-rw-r--r--kcontrol/css/kcmcss.cpp134
-rw-r--r--kcontrol/css/kcmcss.h6
-rw-r--r--kcontrol/css/template.cpp18
-rw-r--r--kcontrol/css/template.h10
-rw-r--r--kcontrol/display/display.cpp32
-rw-r--r--kcontrol/display/display.h8
-rw-r--r--kcontrol/dnssd/kcmdnssd.cpp62
-rw-r--r--kcontrol/dnssd/kcmdnssd.h6
-rw-r--r--kcontrol/ebrowsing/filteropts.cpp10
-rw-r--r--kcontrol/ebrowsing/filteropts.h4
-rw-r--r--kcontrol/ebrowsing/main.cpp30
-rw-r--r--kcontrol/ebrowsing/main.h6
-rw-r--r--kcontrol/ebrowsing/plugins/ikws/ikwsopts.cpp114
-rw-r--r--kcontrol/ebrowsing/plugins/ikws/ikwsopts.h14
-rw-r--r--kcontrol/ebrowsing/plugins/ikws/kuriikwsfilter.cpp4
-rw-r--r--kcontrol/ebrowsing/plugins/ikws/kuriikwsfilter.h4
-rw-r--r--kcontrol/ebrowsing/plugins/ikws/kuriikwsfiltereng.cpp134
-rw-r--r--kcontrol/ebrowsing/plugins/ikws/kuriikwsfiltereng.h28
-rw-r--r--kcontrol/ebrowsing/plugins/ikws/kurisearchfilter.cpp10
-rw-r--r--kcontrol/ebrowsing/plugins/ikws/kurisearchfilter.h8
-rw-r--r--kcontrol/ebrowsing/plugins/ikws/searchprovider.cpp16
-rw-r--r--kcontrol/ebrowsing/plugins/ikws/searchprovider.h32
-rw-r--r--kcontrol/ebrowsing/plugins/ikws/searchproviderdlg.cpp26
-rw-r--r--kcontrol/ebrowsing/plugins/ikws/searchproviderdlg.h2
-rw-r--r--kcontrol/ebrowsing/plugins/localdomain/localdomainurifilter.cpp28
-rw-r--r--kcontrol/ebrowsing/plugins/localdomain/localdomainurifilter.h12
-rw-r--r--kcontrol/ebrowsing/plugins/shorturi/kshorturifilter.cpp98
-rw-r--r--kcontrol/ebrowsing/plugins/shorturi/kshorturifilter.h18
-rw-r--r--kcontrol/energy/energy.cpp44
-rw-r--r--kcontrol/energy/energy.h8
-rw-r--r--kcontrol/filetypes/control.cpp2
-rw-r--r--kcontrol/filetypes/filegroupdetails.cpp26
-rw-r--r--kcontrol/filetypes/filegroupdetails.h6
-rw-r--r--kcontrol/filetypes/filetypedetails.cpp104
-rw-r--r--kcontrol/filetypes/filetypedetails.h24
-rw-r--r--kcontrol/filetypes/filetypesview.cpp130
-rw-r--r--kcontrol/filetypes/filetypesview.h32
-rw-r--r--kcontrol/filetypes/keditfiletype.cpp28
-rw-r--r--kcontrol/filetypes/kservicelistwidget.cpp90
-rw-r--r--kcontrol/filetypes/kservicelistwidget.h16
-rw-r--r--kcontrol/filetypes/kserviceselectdlg.cpp14
-rw-r--r--kcontrol/filetypes/kserviceselectdlg.h2
-rw-r--r--kcontrol/filetypes/newtypedlg.cpp30
-rw-r--r--kcontrol/filetypes/newtypedlg.h12
-rw-r--r--kcontrol/filetypes/typeslistitem.cpp110
-rw-r--r--kcontrol/filetypes/typeslistitem.h56
-rw-r--r--kcontrol/fonts/fonts.cpp180
-rw-r--r--kcontrol/fonts/fonts.h44
-rw-r--r--kcontrol/fonts/kxftconfig.cpp186
-rw-r--r--kcontrol/fonts/kxftconfig.h78
-rw-r--r--kcontrol/iccconfig/iccconfig.cpp100
-rw-r--r--kcontrol/iccconfig/iccconfig.h20
-rw-r--r--kcontrol/icons/icons.cpp200
-rw-r--r--kcontrol/icons/icons.h54
-rw-r--r--kcontrol/icons/iconthemes.cpp112
-rw-r--r--kcontrol/icons/iconthemes.h24
-rw-r--r--kcontrol/icons/main.cpp16
-rw-r--r--kcontrol/icons/main.h8
-rw-r--r--kcontrol/info/info.cpp140
-rw-r--r--kcontrol/info/info.h56
-rw-r--r--kcontrol/info/info_aix.cpp76
-rw-r--r--kcontrol/info/info_fbsd.cpp148
-rw-r--r--kcontrol/info/info_generic.cpp22
-rw-r--r--kcontrol/info/info_hpux.cpp216
-rw-r--r--kcontrol/info/info_linux.cpp158
-rw-r--r--kcontrol/info/info_netbsd.cpp90
-rw-r--r--kcontrol/info/info_openbsd.cpp84
-rw-r--r--kcontrol/info/info_osx.cpp42
-rw-r--r--kcontrol/info/info_sgi.cpp26
-rw-r--r--kcontrol/info/info_solaris.cpp76
-rw-r--r--kcontrol/info/info_svr4.cpp38
-rw-r--r--kcontrol/info/main.cpp26
-rw-r--r--kcontrol/info/memory.cpp86
-rw-r--r--kcontrol/info/memory.h42
-rw-r--r--kcontrol/info/memory_linux.cpp4
-rw-r--r--kcontrol/info/memory_osx.cpp2
-rw-r--r--kcontrol/info/opengl.cpp140
-rw-r--r--kcontrol/input/core/themepage.cpp40
-rw-r--r--kcontrol/input/core/themepage.h6
-rw-r--r--kcontrol/input/logitechmouse.cpp40
-rw-r--r--kcontrol/input/logitechmouse.h18
-rw-r--r--kcontrol/input/main.cpp16
-rw-r--r--kcontrol/input/mouse.cpp146
-rw-r--r--kcontrol/input/mouse.h42
-rw-r--r--kcontrol/input/xcursor/previewwidget.cpp40
-rw-r--r--kcontrol/input/xcursor/previewwidget.h8
-rw-r--r--kcontrol/input/xcursor/themepage.cpp160
-rw-r--r--kcontrol/input/xcursor/themepage.h26
-rw-r--r--kcontrol/ioslaveinfo/kcmioslaveinfo.cpp54
-rw-r--r--kcontrol/ioslaveinfo/kcmioslaveinfo.h14
-rw-r--r--kcontrol/joystick/caldialog.cpp36
-rw-r--r--kcontrol/joystick/caldialog.h6
-rw-r--r--kcontrol/joystick/joydevice.cpp4
-rw-r--r--kcontrol/joystick/joydevice.h14
-rw-r--r--kcontrol/joystick/joystick.cpp4
-rw-r--r--kcontrol/joystick/joystick.h2
-rw-r--r--kcontrol/joystick/joywidget.cpp90
-rw-r--r--kcontrol/joystick/joywidget.h22
-rw-r--r--kcontrol/joystick/poswidget.cpp12
-rw-r--r--kcontrol/joystick/poswidget.h6
-rw-r--r--kcontrol/kcontrol/aboutwidget.cpp48
-rw-r--r--kcontrol/kcontrol/aboutwidget.h18
-rw-r--r--kcontrol/kcontrol/dockcontainer.cpp82
-rw-r--r--kcontrol/kcontrol/dockcontainer.h20
-rw-r--r--kcontrol/kcontrol/global.cpp46
-rw-r--r--kcontrol/kcontrol/global.h48
-rw-r--r--kcontrol/kcontrol/helpwidget.cpp10
-rw-r--r--kcontrol/kcontrol/helpwidget.h12
-rw-r--r--kcontrol/kcontrol/indexwidget.cpp50
-rw-r--r--kcontrol/kcontrol/indexwidget.h10
-rw-r--r--kcontrol/kcontrol/kcrootonly.cpp10
-rw-r--r--kcontrol/kcontrol/kcrootonly.h2
-rw-r--r--kcontrol/kcontrol/main.cpp22
-rw-r--r--kcontrol/kcontrol/moduleIface.cpp12
-rw-r--r--kcontrol/kcontrol/moduleIface.h18
-rw-r--r--kcontrol/kcontrol/moduleiconview.cpp38
-rw-r--r--kcontrol/kcontrol/moduleiconview.h22
-rw-r--r--kcontrol/kcontrol/modulemenu.cpp30
-rw-r--r--kcontrol/kcontrol/modulemenu.h18
-rw-r--r--kcontrol/kcontrol/modules.cpp60
-rw-r--r--kcontrol/kcontrol/modules.h30
-rw-r--r--kcontrol/kcontrol/moduletreeview.cpp126
-rw-r--r--kcontrol/kcontrol/moduletreeview.h50
-rw-r--r--kcontrol/kcontrol/proxywidget.cpp110
-rw-r--r--kcontrol/kcontrol/proxywidget.h10
-rw-r--r--kcontrol/kcontrol/searchwidget.cpp66
-rw-r--r--kcontrol/kcontrol/searchwidget.h34
-rw-r--r--kcontrol/kcontrol/toplevel.cpp126
-rw-r--r--kcontrol/kcontrol/toplevel.h14
-rw-r--r--kcontrol/kded/kcmkded.cpp118
-rw-r--r--kcontrol/kded/kcmkded.h26
-rw-r--r--kcontrol/kdm/background.cpp22
-rw-r--r--kcontrol/kdm/background.h10
-rw-r--r--kcontrol/kdm/kbackedcombobox.cpp6
-rw-r--r--kcontrol/kdm/kbackedcombobox.h10
-rw-r--r--kcontrol/kdm/kdm-appear.cpp216
-rw-r--r--kcontrol/kdm/kdm-appear.h36
-rw-r--r--kcontrol/kdm/kdm-conv.cpp164
-rw-r--r--kcontrol/kdm/kdm-conv.h26
-rw-r--r--kcontrol/kdm/kdm-font.cpp52
-rw-r--r--kcontrol/kdm/kdm-font.h4
-rw-r--r--kcontrol/kdm/kdm-shut.cpp80
-rw-r--r--kcontrol/kdm/kdm-shut.h8
-rw-r--r--kcontrol/kdm/kdm-users.cpp240
-rw-r--r--kcontrol/kdm/kdm-users.h34
-rw-r--r--kcontrol/kdm/main.cpp82
-rw-r--r--kcontrol/kdm/main.h14
-rw-r--r--kcontrol/keys/commandShortcuts.cpp72
-rw-r--r--kcontrol/keys/commandShortcuts.h24
-rw-r--r--kcontrol/keys/kaccelaction.h60
-rw-r--r--kcontrol/keys/keyconfig.cpp104
-rw-r--r--kcontrol/keys/keyconfig.h32
-rw-r--r--kcontrol/keys/khotkeys.cpp28
-rw-r--r--kcontrol/keys/khotkeys.h12
-rw-r--r--kcontrol/keys/main.cpp22
-rw-r--r--kcontrol/keys/main.h8
-rw-r--r--kcontrol/keys/modifiers.cpp64
-rw-r--r--kcontrol/keys/modifiers.h14
-rw-r--r--kcontrol/keys/shortcuts.cpp96
-rw-r--r--kcontrol/keys/shortcuts.h26
-rw-r--r--kcontrol/keys/treeview.cpp100
-rw-r--r--kcontrol/keys/treeview.h42
-rw-r--r--kcontrol/kfontinst/kcmfontinst/KCmFontInst.cpp138
-rw-r--r--kcontrol/kfontinst/kcmfontinst/KCmFontInst.h14
-rw-r--r--kcontrol/kfontinst/kcmfontinst/KFileFontIconView.cpp16
-rw-r--r--kcontrol/kfontinst/kcmfontinst/KFileFontIconView.h10
-rw-r--r--kcontrol/kfontinst/kcmfontinst/KFileFontView.cpp136
-rw-r--r--kcontrol/kfontinst/kcmfontinst/KFileFontView.h60
-rw-r--r--kcontrol/kfontinst/kcmfontinst/PrintDialog.cpp24
-rw-r--r--kcontrol/kfontinst/kcmfontinst/PrintDialog.h6
-rw-r--r--kcontrol/kfontinst/kcmfontinst/SettingsDialog.cpp26
-rw-r--r--kcontrol/kfontinst/kcmfontinst/SettingsDialog.h4
-rw-r--r--kcontrol/kfontinst/kfile-plugin/KFileFont.cpp42
-rw-r--r--kcontrol/kfontinst/kfile-plugin/KFileFont.h2
-rw-r--r--kcontrol/kfontinst/kfontinst/FontEngine.cpp26
-rw-r--r--kcontrol/kfontinst/kfontinst/FontEngine.h18
-rw-r--r--kcontrol/kfontinst/kfontinst/Fontmap.cpp102
-rw-r--r--kcontrol/kfontinst/kfontinst/Fontmap.h24
-rw-r--r--kcontrol/kfontinst/kfontinst/Main.cpp16
-rw-r--r--kcontrol/kfontinst/kfontinst/XConfig.cpp44
-rw-r--r--kcontrol/kfontinst/kfontinst/XConfig.h24
-rw-r--r--kcontrol/kfontinst/kio/KioFonts.cpp396
-rw-r--r--kcontrol/kfontinst/kio/KioFonts.h50
-rw-r--r--kcontrol/kfontinst/lib/FcEngine.cpp158
-rw-r--r--kcontrol/kfontinst/lib/FcEngine.h52
-rw-r--r--kcontrol/kfontinst/lib/Misc.cpp48
-rw-r--r--kcontrol/kfontinst/lib/Misc.h40
-rw-r--r--kcontrol/kfontinst/thumbnail/FontThumbnail.cpp10
-rw-r--r--kcontrol/kfontinst/thumbnail/FontThumbnail.h2
-rw-r--r--kcontrol/kfontinst/viewpart/FontPreview.cpp22
-rw-r--r--kcontrol/kfontinst/viewpart/FontPreview.h24
-rw-r--r--kcontrol/kfontinst/viewpart/FontViewPart.cpp86
-rw-r--r--kcontrol/kfontinst/viewpart/FontViewPart.h8
-rw-r--r--kcontrol/kfontinst/viewpart/FontViewPartFactory.cpp6
-rw-r--r--kcontrol/kfontinst/viewpart/FontViewPartFactory.h2
-rw-r--r--kcontrol/kfontinst/viewpart/FontViewerApp.cpp10
-rw-r--r--kcontrol/kfontinst/viewpart/KfiPrint.cpp30
-rw-r--r--kcontrol/kfontinst/viewpart/KfiPrint.h4
-rw-r--r--kcontrol/kicker/advancedDialog.cpp54
-rw-r--r--kcontrol/kicker/advancedDialog.h2
-rw-r--r--kcontrol/kicker/applettab_impl.cpp76
-rw-r--r--kcontrol/kicker/applettab_impl.h12
-rw-r--r--kcontrol/kicker/extensionInfo.cpp18
-rw-r--r--kcontrol/kicker/extensionInfo.h20
-rw-r--r--kcontrol/kicker/hidingconfig.cpp20
-rw-r--r--kcontrol/kicker/hidingconfig.h2
-rw-r--r--kcontrol/kicker/hidingtab_impl.cpp60
-rw-r--r--kcontrol/kicker/hidingtab_impl.h2
-rw-r--r--kcontrol/kicker/lookandfeelconfig.cpp20
-rw-r--r--kcontrol/kicker/lookandfeelconfig.h2
-rw-r--r--kcontrol/kicker/lookandfeeltab_impl.cpp66
-rw-r--r--kcontrol/kicker/lookandfeeltab_impl.h12
-rw-r--r--kcontrol/kicker/lookandfeeltab_kcm.cpp10
-rw-r--r--kcontrol/kicker/lookandfeeltab_kcm.h4
-rw-r--r--kcontrol/kicker/main.cpp74
-rw-r--r--kcontrol/kicker/main.h18
-rw-r--r--kcontrol/kicker/menuconfig.cpp20
-rw-r--r--kcontrol/kicker/menuconfig.h2
-rw-r--r--kcontrol/kicker/menutab_impl.cpp86
-rw-r--r--kcontrol/kicker/menutab_impl.h20
-rw-r--r--kcontrol/kicker/positionconfig.cpp20
-rw-r--r--kcontrol/kicker/positionconfig.h2
-rw-r--r--kcontrol/kicker/positiontab_impl.cpp174
-rw-r--r--kcontrol/kicker/positiontab_impl.h10
-rw-r--r--kcontrol/kio/cache.cpp28
-rw-r--r--kcontrol/kio/cache.h4
-rw-r--r--kcontrol/kio/fakeuaprovider.cpp48
-rw-r--r--kcontrol/kio/fakeuaprovider.h14
-rw-r--r--kcontrol/kio/kcookiesmain.cpp18
-rw-r--r--kcontrol/kio/kcookiesmain.h6
-rw-r--r--kcontrol/kio/kcookiesmanagement.cpp136
-rw-r--r--kcontrol/kio/kcookiesmanagement.h36
-rw-r--r--kcontrol/kio/kcookiespolicies.cpp124
-rw-r--r--kcontrol/kio/kcookiespolicies.h16
-rw-r--r--kcontrol/kio/kenvvarproxydlg.cpp62
-rw-r--r--kcontrol/kio/kenvvarproxydlg.h6
-rw-r--r--kcontrol/kio/kmanualproxydlg.cpp90
-rw-r--r--kcontrol/kio/kmanualproxydlg.h22
-rw-r--r--kcontrol/kio/kproxydlg.cpp82
-rw-r--r--kcontrol/kio/kproxydlg.h14
-rw-r--r--kcontrol/kio/kproxydlgbase.cpp8
-rw-r--r--kcontrol/kio/kproxydlgbase.h16
-rw-r--r--kcontrol/kio/ksaveioconfig.cpp42
-rw-r--r--kcontrol/kio/ksaveioconfig.h10
-rw-r--r--kcontrol/kio/main.cpp32
-rw-r--r--kcontrol/kio/main.h6
-rw-r--r--kcontrol/kio/netpref.cpp50
-rw-r--r--kcontrol/kio/netpref.h12
-rw-r--r--kcontrol/kio/policydlg.cpp28
-rw-r--r--kcontrol/kio/policydlg.h18
-rw-r--r--kcontrol/kio/smbrodlg.cpp70
-rw-r--r--kcontrol/kio/smbrodlg.h18
-rw-r--r--kcontrol/kio/socks.cpp68
-rw-r--r--kcontrol/kio/socks.h10
-rw-r--r--kcontrol/kio/uagentproviderdlg.cpp48
-rw-r--r--kcontrol/kio/uagentproviderdlg.h20
-rw-r--r--kcontrol/kio/useragentdlg.cpp114
-rw-r--r--kcontrol/kio/useragentdlg.h8
-rw-r--r--kcontrol/knotify/knotify.cpp56
-rw-r--r--kcontrol/knotify/knotify.h10
-rw-r--r--kcontrol/konq/behaviour.cpp120
-rw-r--r--kcontrol/konq/behaviour.h28
-rw-r--r--kcontrol/konq/browser.cpp30
-rw-r--r--kcontrol/konq/browser.h6
-rw-r--r--kcontrol/konq/desktop.cpp74
-rw-r--r--kcontrol/konq/desktop.h6
-rw-r--r--kcontrol/konq/desktopbehavior_impl.cpp118
-rw-r--r--kcontrol/konq/desktopbehavior_impl.h8
-rw-r--r--kcontrol/konq/fontopts.cpp158
-rw-r--r--kcontrol/konq/fontopts.h46
-rw-r--r--kcontrol/konq/main.cpp20
-rw-r--r--kcontrol/konq/previews.cpp58
-rw-r--r--kcontrol/konq/previews.h10
-rw-r--r--kcontrol/konq/rootopts.cpp74
-rw-r--r--kcontrol/konq/rootopts.h6
-rw-r--r--kcontrol/konqhtml/advancedTabDialog.cpp42
-rw-r--r--kcontrol/konqhtml/advancedTabDialog.h2
-rw-r--r--kcontrol/konqhtml/appearance.cpp238
-rw-r--r--kcontrol/konqhtml/appearance.h36
-rw-r--r--kcontrol/konqhtml/domainlistview.cpp76
-rw-r--r--kcontrol/konqhtml/domainlistview.h34
-rw-r--r--kcontrol/konqhtml/filteropts.cpp116
-rw-r--r--kcontrol/konqhtml/filteropts.h24
-rw-r--r--kcontrol/konqhtml/htmlopts.cpp126
-rw-r--r--kcontrol/konqhtml/htmlopts.h40
-rw-r--r--kcontrol/konqhtml/javaopts.cpp114
-rw-r--r--kcontrol/konqhtml/javaopts.h28
-rw-r--r--kcontrol/konqhtml/jsopts.cpp64
-rw-r--r--kcontrol/konqhtml/jsopts.h18
-rw-r--r--kcontrol/konqhtml/jspolicies.cpp188
-rw-r--r--kcontrol/konqhtml/jspolicies.h26
-rw-r--r--kcontrol/konqhtml/khttpoptdlg.cpp28
-rw-r--r--kcontrol/konqhtml/khttpoptdlg.h22
-rw-r--r--kcontrol/konqhtml/main.cpp28
-rw-r--r--kcontrol/konqhtml/main.h6
-rw-r--r--kcontrol/konqhtml/pluginopts.cpp200
-rw-r--r--kcontrol/konqhtml/pluginopts.h38
-rw-r--r--kcontrol/konqhtml/policies.cpp14
-rw-r--r--kcontrol/konqhtml/policies.h18
-rw-r--r--kcontrol/konqhtml/policydlg.cpp52
-rw-r--r--kcontrol/konqhtml/policydlg.h34
-rw-r--r--kcontrol/konsole/kcmkonsole.cpp56
-rw-r--r--kcontrol/konsole/kcmkonsole.h2
-rw-r--r--kcontrol/konsole/schemaeditor.cpp166
-rw-r--r--kcontrol/konsole/schemaeditor.h26
-rw-r--r--kcontrol/konsole/sessioneditor.cpp100
-rw-r--r--kcontrol/konsole/sessioneditor.h18
-rw-r--r--kcontrol/krdb/krdb.cpp192
-rw-r--r--kcontrol/kthememanager/knewthemedlg.cpp30
-rw-r--r--kcontrol/kthememanager/knewthemedlg.h28
-rw-r--r--kcontrol/kthememanager/ktheme.cpp294
-rw-r--r--kcontrol/kthememanager/ktheme.h86
-rw-r--r--kcontrol/kthememanager/kthemedlg.ui.h2
-rw-r--r--kcontrol/kthememanager/kthememanager.cpp120
-rw-r--r--kcontrol/kthememanager/kthememanager.h18
-rw-r--r--kcontrol/launch/kcmlaunch.cpp60
-rw-r--r--kcontrol/launch/kcmlaunch.h10
-rw-r--r--kcontrol/locale/kcmlocale.cpp238
-rw-r--r--kcontrol/locale/kcmlocale.h34
-rw-r--r--kcontrol/locale/klocalesample.cpp74
-rw-r--r--kcontrol/locale/klocalesample.h14
-rw-r--r--kcontrol/locale/localemon.cpp164
-rw-r--r--kcontrol/locale/localemon.h36
-rw-r--r--kcontrol/locale/localenum.cpp92
-rw-r--r--kcontrol/locale/localenum.h28
-rw-r--r--kcontrol/locale/localeother.cpp48
-rw-r--r--kcontrol/locale/localeother.h12
-rw-r--r--kcontrol/locale/localetime.cpp174
-rw-r--r--kcontrol/locale/localetime.h50
-rw-r--r--kcontrol/locale/main.cpp2
-rw-r--r--kcontrol/locale/toplevel.cpp164
-rw-r--r--kcontrol/locale/toplevel.h10
-rw-r--r--kcontrol/nics/nic.cpp66
-rw-r--r--kcontrol/nics/nic.h6
-rw-r--r--kcontrol/performance/kcmperformance.cpp24
-rw-r--r--kcontrol/performance/kcmperformance.h4
-rw-r--r--kcontrol/performance/konqueror.cpp42
-rw-r--r--kcontrol/performance/konqueror.h4
-rw-r--r--kcontrol/performance/system.cpp16
-rw-r--r--kcontrol/performance/system.h2
-rw-r--r--kcontrol/privacy/kprivacymanager.cpp38
-rw-r--r--kcontrol/privacy/kprivacymanager.h4
-rw-r--r--kcontrol/privacy/privacy.cpp88
-rw-r--r--kcontrol/privacy/privacy.h26
-rw-r--r--kcontrol/randr/configdialog.cpp22
-rw-r--r--kcontrol/randr/configdialog.h26
-rw-r--r--kcontrol/randr/krandrbindings.cpp6
-rw-r--r--kcontrol/randr/krandrmodule.cpp88
-rw-r--r--kcontrol/randr/krandrmodule.h8
-rw-r--r--kcontrol/randr/krandrpassivepopup.cpp20
-rw-r--r--kcontrol/randr/krandrpassivepopup.h20
-rw-r--r--kcontrol/randr/krandrtray.cpp68
-rw-r--r--kcontrol/randr/krandrtray.h12
-rw-r--r--kcontrol/samba/kcmsambaimports.cpp18
-rw-r--r--kcontrol/samba/kcmsambaimports.h10
-rw-r--r--kcontrol/samba/kcmsambalog.cpp42
-rw-r--r--kcontrol/samba/kcmsambalog.h28
-rw-r--r--kcontrol/samba/kcmsambastatistics.cpp114
-rw-r--r--kcontrol/samba/kcmsambastatistics.h52
-rw-r--r--kcontrol/samba/ksmbstatus.cpp42
-rw-r--r--kcontrol/samba/ksmbstatus.h20
-rw-r--r--kcontrol/samba/main.cpp16
-rw-r--r--kcontrol/screensaver/advanceddialog.cpp62
-rw-r--r--kcontrol/screensaver/advanceddialog.h34
-rw-r--r--kcontrol/screensaver/kssmonitor.h4
-rw-r--r--kcontrol/screensaver/kswidget.cpp2
-rw-r--r--kcontrol/screensaver/kswidget.h2
-rw-r--r--kcontrol/screensaver/saverconfig.cpp2
-rw-r--r--kcontrol/screensaver/saverconfig.h28
-rw-r--r--kcontrol/screensaver/saverlist.cpp2
-rw-r--r--kcontrol/screensaver/saverlist.h6
-rw-r--r--kcontrol/screensaver/scrnsave.cpp220
-rw-r--r--kcontrol/screensaver/scrnsave.h42
-rw-r--r--kcontrol/smartcard/smartcard.cpp116
-rw-r--r--kcontrol/smartcard/smartcard.h14
-rw-r--r--kcontrol/smserver/kcmsmserver.cpp22
-rw-r--r--kcontrol/smserver/kcmsmserver.h2
-rw-r--r--kcontrol/smserver/smserverconfigimpl.cpp2
-rw-r--r--kcontrol/smserver/smserverconfigimpl.h4
-rw-r--r--kcontrol/spellchecking/spellchecking.cpp16
-rw-r--r--kcontrol/spellchecking/spellchecking.h2
-rw-r--r--kcontrol/style/kcmstyle.cpp334
-rw-r--r--kcontrol/style/kcmstyle.h114
-rw-r--r--kcontrol/style/keramik/keramikconf.cpp28
-rw-r--r--kcontrol/style/keramik/keramikconf.h8
-rw-r--r--kcontrol/style/main.cpp4
-rw-r--r--kcontrol/style/menupreview.cpp36
-rw-r--r--kcontrol/style/menupreview.h6
-rw-r--r--kcontrol/style/styleconfdialog.cpp6
-rw-r--r--kcontrol/style/styleconfdialog.h2
-rw-r--r--kcontrol/style/stylepreview.ui.h32
-rw-r--r--kcontrol/taskbar/kcmtaskbar.cpp68
-rw-r--r--kcontrol/taskbar/kcmtaskbar.h22
-rw-r--r--kcontrol/usbview/kcmusb.cpp68
-rw-r--r--kcontrol/usbview/kcmusb.h12
-rw-r--r--kcontrol/usbview/usbdb.cpp66
-rw-r--r--kcontrol/usbview/usbdb.h14
-rw-r--r--kcontrol/usbview/usbdevices.cpp108
-rw-r--r--kcontrol/usbview/usbdevices.h26
-rw-r--r--kcontrol/view1394/view1394.cpp72
-rw-r--r--kcontrol/view1394/view1394.h22
-rw-r--r--kcontrol/xinerama/kcmxinerama.cpp86
-rw-r--r--kcontrol/xinerama/kcmxinerama.h12
451 files changed, 11562 insertions, 11562 deletions
diff --git a/kcontrol/access/kaccess.cpp b/kcontrol/access/kaccess.cpp
index 5956697b9..10c593ed7 100644
--- a/kcontrol/access/kaccess.cpp
+++ b/kcontrol/access/kaccess.cpp
@@ -1,11 +1,11 @@
#include <unistd.h>
#include <stdlib.h>
-#include <qtimer.h>
-#include <qpainter.h>
-#include <qvbox.h>
-#include <qlayout.h>
-#include <qlabel.h>
+#include <tqtimer.h>
+#include <tqpainter.h>
+#include <tqvbox.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
#include <kdialogbase.h>
#include <kmessagebox.h>
@@ -96,10 +96,10 @@ KAccessApp::KAccessApp(bool allowStyles, bool GUIenabled)
overlay(0), wm(0, KWinModule::INFO_DESKTOP)
{
_activeWindow = wm.activeWindow();
- connect(&wm, SIGNAL(activeWindowChanged(WId)), this, SLOT(activeWindowChanged(WId)));
+ connect(&wm, TQT_SIGNAL(activeWindowChanged(WId)), this, TQT_SLOT(activeWindowChanged(WId)));
- artsBellTimer = new QTimer( this );
- connect( artsBellTimer, SIGNAL( timeout() ), SLOT( slotArtsBellTimeout() ));
+ artsBellTimer = new TQTimer( this );
+ connect( artsBellTimer, TQT_SIGNAL( timeout() ), TQT_SLOT( slotArtsBellTimeout() ));
features = 0;
requestedFeatures = 0;
@@ -132,7 +132,7 @@ void KAccessApp::readSettings()
_artsBellFile = config->readPathEntry("ArtsBellFile");
_visibleBell = config->readBoolEntry("VisibleBell", false);
_visibleBellInvert = config->readBoolEntry("VisibleBellInvert", false);
- QColor def(Qt::red);
+ TQColor def(Qt::red);
_visibleBellColor = config->readColorEntry("VisibleBellColor", &def);
_visibleBellPause = config->readNumEntry("VisibleBellPause", 500);
@@ -361,10 +361,10 @@ bool KAccessApp::x11EventFilter(XEvent *event)
}
-void VisualBell::paintEvent(QPaintEvent *event)
+void VisualBell::paintEvent(TQPaintEvent *event)
{
- QWidget::paintEvent(event);
- QTimer::singleShot(_pause, this, SLOT(hide()));
+ TQWidget::paintEvent(event);
+ TQTimer::singleShot(_pause, this, TQT_SLOT(hide()));
}
@@ -438,10 +438,10 @@ void KAccessApp::xkbBellNotify(XkbBellNotifyEvent *event)
if (_visibleBellInvert)
{
- QPixmap screen = QPixmap::grabWindow(id, 0, 0, window.size.width, window.size.height);
- QPixmap invert(window.size.width, window.size.height);
- QPainter p(&invert);
- p.setRasterOp(QPainter::NotCopyROP);
+ TQPixmap screen = TQPixmap::grabWindow(id, 0, 0, window.size.width, window.size.height);
+ TQPixmap invert(window.size.width, window.size.height);
+ TQPainter p(&invert);
+ p.setRasterOp(TQPainter::NotCopyROP);
p.drawPixmap(0, 0, screen);
overlay->setBackgroundPixmap(invert);
}
@@ -462,7 +462,7 @@ void KAccessApp::xkbBellNotify(XkbBellNotifyEvent *event)
}
}
-QString mouseKeysShortcut (Display *display) {
+TQString mouseKeysShortcut (Display *display) {
// Calculate the keycode
KeySym sym = XK_MouseKeys_Enable;
KeyCode code = XKeysymToKeycode(display, sym);
@@ -513,7 +513,7 @@ QString mouseKeysShortcut (Display *display) {
ev.xkey.keycode = code;
ev.xkey.state = 0;
KKey key = KKey(KKeyNative(&ev));
- QString keyname = key.toString();
+ TQString keyname = key.toString();
unsigned int AltMask = KKeyNative::modX(KKey::ALT);
unsigned int WinMask = KKeyNative::modX(KKey::WIN);
@@ -565,33 +565,33 @@ void KAccessApp::createDialogContents() {
0, "AccessXWarning", true, true,
KStdGuiItem::cont(), KStdGuiItem::cancel());
- QVBox *topcontents = new QVBox (dialog);
+ TQVBox *topcontents = new TQVBox (dialog);
topcontents->setSpacing(KDialog::spacingHint()*2);
topcontents->setMargin(KDialog::marginHint());
- QWidget *contents = new QWidget(topcontents);
- QHBoxLayout * lay = new QHBoxLayout(contents);
+ TQWidget *contents = new TQWidget(topcontents);
+ TQHBoxLayout * lay = new TQHBoxLayout(contents);
lay->setSpacing(KDialog::spacingHint());
- QLabel *label1 = new QLabel( contents);
- QPixmap pixmap = KApplication::kApplication()->iconLoader()->loadIcon("messagebox_warning", KIcon::NoGroup, KIcon::SizeMedium, KIcon::DefaultState, 0, true);
+ TQLabel *label1 = new TQLabel( contents);
+ TQPixmap pixmap = KApplication::kApplication()->iconLoader()->loadIcon("messagebox_warning", KIcon::NoGroup, KIcon::SizeMedium, KIcon::DefaultState, 0, true);
if (pixmap.isNull())
- pixmap = QMessageBox::standardIcon(QMessageBox::Warning);
+ pixmap = TQMessageBox::standardIcon(TQMessageBox::Warning);
label1->setPixmap(pixmap);
lay->addWidget( label1, 0, Qt::AlignCenter );
lay->addSpacing(KDialog::spacingHint());
- QVBoxLayout * vlay = new QVBoxLayout(lay);
+ TQVBoxLayout * vlay = new TQVBoxLayout(lay);
- featuresLabel = new QLabel( "", contents );
+ featuresLabel = new TQLabel( "", contents );
featuresLabel->setAlignment( WordBreak|AlignVCenter );
vlay->addWidget( featuresLabel );
vlay->addStretch();
- QHBoxLayout * hlay = new QHBoxLayout(vlay);
+ TQHBoxLayout * hlay = new TQHBoxLayout(vlay);
- QLabel *showModeLabel = new QLabel( i18n("&When a gesture was used:"), contents );
+ TQLabel *showModeLabel = new TQLabel( i18n("&When a gesture was used:"), contents );
hlay->addWidget( showModeLabel );
showModeCombobox = new KComboBox (contents);
@@ -605,9 +605,9 @@ void KAccessApp::createDialogContents() {
dialog->setMainWidget(topcontents);
dialog->enableButtonSeparator(false);
- connect (dialog, SIGNAL(yesClicked()), this, SLOT(yesClicked()));
- connect (dialog, SIGNAL(noClicked()), this, SLOT(noClicked()));
- connect (dialog, SIGNAL(closeClicked()), this, SLOT(dialogClosed()));
+ connect (dialog, TQT_SIGNAL(yesClicked()), this, TQT_SLOT(yesClicked()));
+ connect (dialog, TQT_SIGNAL(noClicked()), this, TQT_SLOT(noClicked()));
+ connect (dialog, TQT_SIGNAL(closeClicked()), this, TQT_SLOT(dialogClosed()));
}
}
@@ -634,8 +634,8 @@ void KAccessApp::xkbControlsNotify(XkbControlsNotifyEvent *event)
enabled = requestedFeatures & ~features;
disabled = features & ~requestedFeatures;
- QStringList enabledFeatures;
- QStringList disabledFeatures;
+ TQStringList enabledFeatures;
+ TQStringList disabledFeatures;
if (enabled & XkbStickyKeysMask)
enabledFeatures << i18n("Sticky keys");
@@ -657,7 +657,7 @@ void KAccessApp::xkbControlsNotify(XkbControlsNotifyEvent *event)
else if (disabled & XkbMouseKeysMask)
disabledFeatures << i18n("Mouse keys");
- QString question;
+ TQString question;
switch (enabledFeatures.count()) {
case 0: switch (disabledFeatures.count()) {
case 1: question = i18n("Do you really want to deactivate \"%1\"?")
@@ -723,7 +723,7 @@ void KAccessApp::xkbControlsNotify(XkbControlsNotifyEvent *event)
.arg(enabledFeatures[2]).arg(enabledFeatures[3]);
break;
}
- QString explanation;
+ TQString explanation;
if (enabledFeatures.count()+disabledFeatures.count() == 1) {
explanation = i18n("An application has requested to change this setting.");
@@ -733,7 +733,7 @@ void KAccessApp::xkbControlsNotify(XkbControlsNotifyEvent *event)
else if ((enabled | disabled) == XkbStickyKeysMask)
explanation = i18n("You pressed the Shift key 5 consecutive times or an application has requested to change this setting.");
else if ((enabled | disabled) == XkbMouseKeysMask) {
- QString shortcut = mouseKeysShortcut(qt_xdisplay());
+ TQString shortcut = mouseKeysShortcut(qt_xdisplay());
if (!shortcut.isEmpty() && !shortcut.isNull())
explanation = i18n("You pressed %1 or an application has requested to change this setting.").arg(shortcut);
}
diff --git a/kcontrol/access/kaccess.h b/kcontrol/access/kaccess.h
index d75d0bdb6..daecba440 100644
--- a/kcontrol/access/kaccess.h
+++ b/kcontrol/access/kaccess.h
@@ -2,8 +2,8 @@
#define __K_ACCESS_H__
-#include <qwidget.h>
-#include <qcolor.h>
+#include <tqwidget.h>
+#include <tqcolor.h>
#include <kuniqueapplication.h>
@@ -62,23 +62,23 @@ private:
bool _systemBell, _artsBell, _visibleBell, _visibleBellInvert;
bool _artsBellBlocked;
- QString _artsBellFile;
- QColor _visibleBellColor;
+ TQString _artsBellFile;
+ TQColor _visibleBellColor;
int _visibleBellPause;
bool _gestures, _gestureConfirmation;
bool _kNotifyModifiers, _kNotifyAccessX;
- QWidget *overlay;
+ TQWidget *overlay;
- QTimer *artsBellTimer;
+ TQTimer *artsBellTimer;
KWinModule wm;
WId _activeWindow;
KDialogBase *dialog;
- QLabel *featuresLabel;
+ TQLabel *featuresLabel;
KComboBox *showModeCombobox;
int keys[8];
@@ -93,13 +93,13 @@ class VisualBell : public QWidget
public:
VisualBell(int pause)
- : QWidget(0, 0, WX11BypassWM), _pause(pause)
+ : TQWidget(0, 0, WX11BypassWM), _pause(pause)
{};
protected:
- void paintEvent(QPaintEvent *);
+ void paintEvent(TQPaintEvent *);
private:
diff --git a/kcontrol/access/kcmaccess.cpp b/kcontrol/access/kcmaccess.cpp
index 661748e1d..d7e114c55 100644
--- a/kcontrol/access/kcmaccess.cpp
+++ b/kcontrol/access/kcmaccess.cpp
@@ -11,16 +11,16 @@
#include <dcopref.h>
-#include <qtabwidget.h>
-#include <qlayout.h>
-#include <qgroupbox.h>
-#include <qlabel.h>
-#include <qcheckbox.h>
-#include <qlineedit.h>
-#include <qradiobutton.h>
-#include <qwhatsthis.h>
-#include <qslider.h>
-#include <qspinbox.h>
+#include <tqtabwidget.h>
+#include <tqlayout.h>
+#include <tqgroupbox.h>
+#include <tqlabel.h>
+#include <tqcheckbox.h>
+#include <tqlineedit.h>
+#include <tqradiobutton.h>
+#include <tqwhatsthis.h>
+#include <tqslider.h>
+#include <tqspinbox.h>
#include <kcombobox.h>
@@ -43,7 +43,7 @@
ExtendedIntNumInput::ExtendedIntNumInput
- (QWidget* parent, const char* name)
+ (TQWidget* parent, const char* name)
: KIntNumInput(parent, name)
{
}
@@ -55,10 +55,10 @@ void ExtendedIntNumInput::setRange(int min, int max, int step, bool slider) {
KIntNumInput::setRange (min,max,step, slider);
if (slider) {
- disconnect(m_slider, SIGNAL(valueChanged(int)),
- m_spin, SLOT(setValue(int)));
- disconnect(m_spin, SIGNAL(valueChanged(int)),
- this, SLOT(spinValueChanged(int)));
+ disconnect(m_slider, TQT_SIGNAL(valueChanged(int)),
+ m_spin, TQT_SLOT(setValue(int)));
+ disconnect(m_spin, TQT_SIGNAL(valueChanged(int)),
+ this, TQT_SLOT(spinValueChanged(int)));
this->min = min;
this->max = max;
@@ -72,10 +72,10 @@ void ExtendedIntNumInput::setRange(int min, int max, int step, bool slider) {
double logVal = alpha * (log(value())-log(min));
m_slider->setValue ((int)floor (0.5 + logVal));
- connect(m_slider, SIGNAL(valueChanged(int)),
- this, SLOT(slotSliderValueChanged(int)));
- connect(m_spin, SIGNAL(valueChanged(int)),
- this, SLOT(slotSpinValueChanged(int)));
+ connect(m_slider, TQT_SIGNAL(valueChanged(int)),
+ this, TQT_SLOT(slotSliderValueChanged(int)));
+ connect(m_spin, TQT_SIGNAL(valueChanged(int)),
+ this, TQT_SLOT(slotSpinValueChanged(int)));
}
}
@@ -109,7 +109,7 @@ static bool needToRunKAccessDaemon( KConfig *config )
return true;
}
-QString mouseKeysShortcut (Display *display) {
+TQString mouseKeysShortcut (Display *display) {
// Calculate the keycode
KeySym sym = XK_MouseKeys_Enable;
KeyCode code = XKeysymToKeycode(display, sym);
@@ -159,7 +159,7 @@ QString mouseKeysShortcut (Display *display) {
ev.xkey.keycode = code;
ev.xkey.state = 0;
KKey key = KKey(KKeyNative(&ev));
- QString keyname = key.toString();
+ TQString keyname = key.toString();
unsigned int AltMask = KKeyNative::modX(KKey::ALT);
unsigned int WinMask = KKeyNative::modX(KKey::WIN);
@@ -197,7 +197,7 @@ QString mouseKeysShortcut (Display *display) {
if ((modifiers & ShiftMask) != 0)
keyname = KKey::modFlagLabel(KKey::SHIFT) + "+" + keyname;
- QString result;
+ TQString result;
if ((modifiers & ScrollMask) != 0)
if ((modifiers & LockMask) != 0)
if ((modifiers & NumMask) != 0)
@@ -221,7 +221,7 @@ QString mouseKeysShortcut (Display *display) {
return result.arg(keyname);
}
-KAccessConfig::KAccessConfig(QWidget *parent, const char *)
+KAccessConfig::KAccessConfig(TQWidget *parent, const char *)
: KCModule(parent, "kcmaccess")
{
@@ -234,89 +234,89 @@ KAccessConfig::KAccessConfig(QWidget *parent, const char *)
setAboutData( about );
- QVBoxLayout *main = new QVBoxLayout(this, 0, KDialogBase::spacingHint());
- QTabWidget *tab = new QTabWidget(this);
+ TQVBoxLayout *main = new TQVBoxLayout(this, 0, KDialogBase::spacingHint());
+ TQTabWidget *tab = new TQTabWidget(this);
main->addWidget(tab);
// bell settings ---------------------------------------
- QWidget *bell = new QWidget(this);
+ TQWidget *bell = new TQWidget(this);
- QVBoxLayout *vbox = new QVBoxLayout(bell, KDialogBase::marginHint(),
+ TQVBoxLayout *vbox = new TQVBoxLayout(bell, KDialogBase::marginHint(),
KDialogBase::spacingHint());
- QGroupBox *grp = new QGroupBox(i18n("Audible Bell"), bell);
+ TQGroupBox *grp = new TQGroupBox(i18n("Audible Bell"), bell);
grp->setColumnLayout( 0, Qt::Horizontal );
vbox->addWidget(grp);
- QVBoxLayout *vvbox = new QVBoxLayout(grp->layout(),
+ TQVBoxLayout *vvbox = new TQVBoxLayout(grp->layout(),
KDialogBase::spacingHint());
- systemBell = new QCheckBox(i18n("Use &system bell"), grp);
+ systemBell = new TQCheckBox(i18n("Use &system bell"), grp);
vvbox->addWidget(systemBell);
- customBell = new QCheckBox(i18n("Us&e customized bell"), grp);
+ customBell = new TQCheckBox(i18n("Us&e customized bell"), grp);
vvbox->addWidget(customBell);
- QWhatsThis::add( systemBell, i18n("If this option is checked, the default system bell will be used. See the"
+ TQWhatsThis::add( systemBell, i18n("If this option is checked, the default system bell will be used. See the"
" \"System Bell\" control module for how to customize the system bell."
" Normally, this is just a \"beep\".") );
- QWhatsThis::add( customBell, i18n("Check this option if you want to use a customized bell, playing"
+ TQWhatsThis::add( customBell, i18n("Check this option if you want to use a customized bell, playing"
" a sound file. If you do this, you will probably want to turn off the system bell.<p> Please note"
" that on slow machines this may cause a \"lag\" between the event causing the bell and the sound being played.") );
- QHBoxLayout *hbox = new QHBoxLayout(vvbox, KDialogBase::spacingHint());
+ TQHBoxLayout *hbox = new TQHBoxLayout(vvbox, KDialogBase::spacingHint());
hbox->addSpacing(24);
- soundEdit = new QLineEdit(grp);
- soundLabel = new QLabel(soundEdit, i18n("Sound &to play:"), grp);
+ soundEdit = new TQLineEdit(grp);
+ soundLabel = new TQLabel(soundEdit, i18n("Sound &to play:"), grp);
hbox->addWidget(soundLabel);
hbox->addWidget(soundEdit);
- soundButton = new QPushButton(i18n("Browse..."), grp);
+ soundButton = new TQPushButton(i18n("Browse..."), grp);
hbox->addWidget(soundButton);
- QString wtstr = i18n("If the option \"Use customized bell\" is enabled, you can choose a sound file here."
+ TQString wtstr = i18n("If the option \"Use customized bell\" is enabled, you can choose a sound file here."
" Click \"Browse...\" to choose a sound file using the file dialog.");
- QWhatsThis::add( soundEdit, wtstr );
- QWhatsThis::add( soundLabel, wtstr );
- QWhatsThis::add( soundButton, wtstr );
+ TQWhatsThis::add( soundEdit, wtstr );
+ TQWhatsThis::add( soundLabel, wtstr );
+ TQWhatsThis::add( soundButton, wtstr );
- connect(soundButton, SIGNAL(clicked()), this, SLOT(selectSound()));
+ connect(soundButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(selectSound()));
- connect(customBell, SIGNAL(clicked()), this, SLOT(checkAccess()));
+ connect(customBell, TQT_SIGNAL(clicked()), this, TQT_SLOT(checkAccess()));
- connect(systemBell, SIGNAL(clicked()), this, SLOT(configChanged()));
- connect(customBell, SIGNAL(clicked()), this, SLOT(configChanged()));
- connect(soundEdit, SIGNAL(textChanged(const QString&)), this, SLOT(configChanged()));
+ connect(systemBell, TQT_SIGNAL(clicked()), this, TQT_SLOT(configChanged()));
+ connect(customBell, TQT_SIGNAL(clicked()), this, TQT_SLOT(configChanged()));
+ connect(soundEdit, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(configChanged()));
// -----------------------------------------------------
// visible bell ----------------------------------------
- grp = new QGroupBox(i18n("Visible Bell"), bell);
+ grp = new TQGroupBox(i18n("Visible Bell"), bell);
grp->setColumnLayout( 0, Qt::Horizontal );
vbox->addWidget(grp);
- vvbox = new QVBoxLayout(grp->layout(), KDialog::spacingHint());
+ vvbox = new TQVBoxLayout(grp->layout(), KDialog::spacingHint());
- visibleBell = new QCheckBox(i18n("&Use visible bell"), grp);
+ visibleBell = new TQCheckBox(i18n("&Use visible bell"), grp);
vvbox->addWidget(visibleBell);
- QWhatsThis::add( visibleBell, i18n("This option will turn on the \"visible bell\", i.e. a visible"
+ TQWhatsThis::add( visibleBell, i18n("This option will turn on the \"visible bell\", i.e. a visible"
" notification shown every time that normally just a bell would occur. This is especially useful"
" for deaf people.") );
- hbox = new QHBoxLayout(vvbox, KDialog::spacingHint());
+ hbox = new TQHBoxLayout(vvbox, KDialog::spacingHint());
hbox->addSpacing(24);
- invertScreen = new QRadioButton(i18n("I&nvert screen"), grp);
+ invertScreen = new TQRadioButton(i18n("I&nvert screen"), grp);
hbox->addWidget(invertScreen);
- hbox = new QHBoxLayout(vvbox, KDialog::spacingHint());
- QWhatsThis::add( invertScreen, i18n("All screen colors will be inverted for the amount of time specified below.") );
+ hbox = new TQHBoxLayout(vvbox, KDialog::spacingHint());
+ TQWhatsThis::add( invertScreen, i18n("All screen colors will be inverted for the amount of time specified below.") );
hbox->addSpacing(24);
- flashScreen = new QRadioButton(i18n("F&lash screen"), grp);
+ flashScreen = new TQRadioButton(i18n("F&lash screen"), grp);
hbox->addWidget(flashScreen);
- QWhatsThis::add( flashScreen, i18n("The screen will turn to a custom color for the amount of time specified below.") );
+ TQWhatsThis::add( flashScreen, i18n("The screen will turn to a custom color for the amount of time specified below.") );
hbox->addSpacing(12);
colorButton = new KColorButton(grp);
colorButton->setFixedWidth(colorButton->sizeHint().height()*2);
hbox->addWidget(colorButton);
hbox->addStretch();
- QWhatsThis::add( colorButton, i18n("Click here to choose the color used for the \"flash screen\" visible bell.") );
+ TQWhatsThis::add( colorButton, i18n("Click here to choose the color used for the \"flash screen\" visible bell.") );
- hbox = new QHBoxLayout(vvbox, KDialog::spacingHint());
+ hbox = new TQHBoxLayout(vvbox, KDialog::spacingHint());
hbox->addSpacing(24);
durationSlider = new ExtendedIntNumInput(grp);
@@ -324,18 +324,18 @@ KAccessConfig::KAccessConfig(QWidget *parent, const char *)
durationSlider->setLabel(i18n("Duration:"));
durationSlider->setSuffix(i18n(" msec"));
hbox->addWidget(durationSlider);
- QWhatsThis::add( durationSlider, i18n("Here you can customize the duration of the \"visible bell\" effect being shown.") );
+ TQWhatsThis::add( durationSlider, i18n("Here you can customize the duration of the \"visible bell\" effect being shown.") );
- connect(invertScreen, SIGNAL(clicked()), this, SLOT(configChanged()));
- connect(flashScreen, SIGNAL(clicked()), this, SLOT(configChanged()));
- connect(visibleBell, SIGNAL(clicked()), this, SLOT(configChanged()));
- connect(visibleBell, SIGNAL(clicked()), this, SLOT(checkAccess()));
- connect(colorButton, SIGNAL(clicked()), this, SLOT(changeFlashScreenColor()));
+ connect(invertScreen, TQT_SIGNAL(clicked()), this, TQT_SLOT(configChanged()));
+ connect(flashScreen, TQT_SIGNAL(clicked()), this, TQT_SLOT(configChanged()));
+ connect(visibleBell, TQT_SIGNAL(clicked()), this, TQT_SLOT(configChanged()));
+ connect(visibleBell, TQT_SIGNAL(clicked()), this, TQT_SLOT(checkAccess()));
+ connect(colorButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(changeFlashScreenColor()));
- connect(invertScreen, SIGNAL(clicked()), this, SLOT(invertClicked()));
- connect(flashScreen, SIGNAL(clicked()), this, SLOT(flashClicked()));
+ connect(invertScreen, TQT_SIGNAL(clicked()), this, TQT_SLOT(invertClicked()));
+ connect(flashScreen, TQT_SIGNAL(clicked()), this, TQT_SLOT(flashClicked()));
- connect(durationSlider, SIGNAL(valueChanged(int)), this, SLOT(configChanged()));
+ connect(durationSlider, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(configChanged()));
vbox->addStretch();
@@ -345,82 +345,82 @@ KAccessConfig::KAccessConfig(QWidget *parent, const char *)
// modifier key settings -------------------------------
- QWidget *modifiers = new QWidget(this);
+ TQWidget *modifiers = new TQWidget(this);
- vbox = new QVBoxLayout(modifiers, KDialog::marginHint(), KDialog::spacingHint());
+ vbox = new TQVBoxLayout(modifiers, KDialog::marginHint(), KDialog::spacingHint());
- grp = new QGroupBox(i18n("S&ticky Keys"), modifiers);
+ grp = new TQGroupBox(i18n("S&ticky Keys"), modifiers);
grp->setColumnLayout( 0, Qt::Horizontal );
vbox->addWidget(grp);
- vvbox = new QVBoxLayout(grp->layout(), KDialog::spacingHint());
+ vvbox = new TQVBoxLayout(grp->layout(), KDialog::spacingHint());
- stickyKeys = new QCheckBox(i18n("Use &sticky keys"), grp);
+ stickyKeys = new TQCheckBox(i18n("Use &sticky keys"), grp);
vvbox->addWidget(stickyKeys);
- hbox = new QHBoxLayout(vvbox, KDialog::spacingHint());
+ hbox = new TQHBoxLayout(vvbox, KDialog::spacingHint());
hbox->addSpacing(24);
- stickyKeysLock = new QCheckBox(i18n("&Lock sticky keys"), grp);
+ stickyKeysLock = new TQCheckBox(i18n("&Lock sticky keys"), grp);
hbox->addWidget(stickyKeysLock);
- hbox = new QHBoxLayout(vvbox, KDialog::spacingHint());
+ hbox = new TQHBoxLayout(vvbox, KDialog::spacingHint());
hbox->addSpacing(24);
- stickyKeysAutoOff = new QCheckBox(i18n("Turn sticky keys off when two keys are pressed simultaneously"), grp);
+ stickyKeysAutoOff = new TQCheckBox(i18n("Turn sticky keys off when two keys are pressed simultaneously"), grp);
hbox->addWidget(stickyKeysAutoOff);
- hbox = new QHBoxLayout(vvbox, KDialog::spacingHint());
+ hbox = new TQHBoxLayout(vvbox, KDialog::spacingHint());
hbox->addSpacing(24);
- stickyKeysBeep = new QCheckBox(i18n("Use system bell whenever a modifier gets latched, locked or unlocked"), grp);
+ stickyKeysBeep = new TQCheckBox(i18n("Use system bell whenever a modifier gets latched, locked or unlocked"), grp);
hbox->addWidget(stickyKeysBeep);
- grp = new QGroupBox(i18n("Locking Keys"), modifiers);
+ grp = new TQGroupBox(i18n("Locking Keys"), modifiers);
grp->setColumnLayout( 0, Qt::Horizontal );
vbox->addWidget(grp);
- vvbox = new QVBoxLayout(grp->layout(), KDialog::spacingHint());
+ vvbox = new TQVBoxLayout(grp->layout(), KDialog::spacingHint());
- toggleKeysBeep = new QCheckBox(i18n("Use system bell whenever a locking key gets activated or deactivated"), grp);
+ toggleKeysBeep = new TQCheckBox(i18n("Use system bell whenever a locking key gets activated or deactivated"), grp);
vvbox->addWidget(toggleKeysBeep);
- kNotifyModifiers = new QCheckBox(i18n("Use KDE's system notification mechanism whenever a modifier or locking key changes its state"), grp);
+ kNotifyModifiers = new TQCheckBox(i18n("Use KDE's system notification mechanism whenever a modifier or locking key changes its state"), grp);
vvbox->addWidget(kNotifyModifiers);
- hbox = new QHBoxLayout(vvbox, KDialog::spacingHint());
+ hbox = new TQHBoxLayout(vvbox, KDialog::spacingHint());
hbox->addStretch(1);
- kNotifyModifiersButton = new QPushButton(i18n("Configure System Notification..."), grp);
- kNotifyModifiersButton->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
+ kNotifyModifiersButton = new TQPushButton(i18n("Configure System Notification..."), grp);
+ kNotifyModifiersButton->setSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed);
hbox->addWidget(kNotifyModifiersButton);
- connect(stickyKeys, SIGNAL(clicked()), this, SLOT(configChanged()));
- connect(stickyKeysLock, SIGNAL(clicked()), this, SLOT(configChanged()));
- connect(stickyKeysAutoOff, SIGNAL(clicked()), this, SLOT(configChanged()));
- connect(stickyKeys, SIGNAL(clicked()), this, SLOT(checkAccess()));
+ connect(stickyKeys, TQT_SIGNAL(clicked()), this, TQT_SLOT(configChanged()));
+ connect(stickyKeysLock, TQT_SIGNAL(clicked()), this, TQT_SLOT(configChanged()));
+ connect(stickyKeysAutoOff, TQT_SIGNAL(clicked()), this, TQT_SLOT(configChanged()));
+ connect(stickyKeys, TQT_SIGNAL(clicked()), this, TQT_SLOT(checkAccess()));
- connect(stickyKeysBeep, SIGNAL(clicked()), this, SLOT(configChanged()));
- connect(toggleKeysBeep, SIGNAL(clicked()), this, SLOT(configChanged()));
- connect(kNotifyModifiers, SIGNAL(clicked()), this, SLOT(configChanged()));
- connect(kNotifyModifiers, SIGNAL(clicked()), this, SLOT(checkAccess()));
- connect(kNotifyModifiersButton, SIGNAL(clicked()), this, SLOT(configureKNotify()));
+ connect(stickyKeysBeep, TQT_SIGNAL(clicked()), this, TQT_SLOT(configChanged()));
+ connect(toggleKeysBeep, TQT_SIGNAL(clicked()), this, TQT_SLOT(configChanged()));
+ connect(kNotifyModifiers, TQT_SIGNAL(clicked()), this, TQT_SLOT(configChanged()));
+ connect(kNotifyModifiers, TQT_SIGNAL(clicked()), this, TQT_SLOT(checkAccess()));
+ connect(kNotifyModifiersButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(configureKNotify()));
vbox->addStretch();
tab->addTab(modifiers, i18n("&Modifier Keys"));
// key filter settings ---------------------------------
- QWidget *filters = new QWidget(this);
+ TQWidget *filters = new TQWidget(this);
- vbox = new QVBoxLayout(filters, KDialog::marginHint(), KDialog::spacingHint());
+ vbox = new TQVBoxLayout(filters, KDialog::marginHint(), KDialog::spacingHint());
- grp = new QGroupBox(i18n("Slo&w Keys"), filters);
+ grp = new TQGroupBox(i18n("Slo&w Keys"), filters);
grp->setColumnLayout( 0, Qt::Horizontal );
vbox->addWidget(grp);
- vvbox = new QVBoxLayout(grp->layout(), KDialog::spacingHint());
+ vvbox = new TQVBoxLayout(grp->layout(), KDialog::spacingHint());
- slowKeys = new QCheckBox(i18n("&Use slow keys"), grp);
+ slowKeys = new TQCheckBox(i18n("&Use slow keys"), grp);
vvbox->addWidget(slowKeys);
- hbox = new QHBoxLayout(vvbox, KDialog::spacingHint());
+ hbox = new TQHBoxLayout(vvbox, KDialog::spacingHint());
hbox->addSpacing(24);
slowKeysDelay = new ExtendedIntNumInput(grp);
slowKeysDelay->setSuffix(i18n(" msec"));
@@ -428,31 +428,31 @@ KAccessConfig::KAccessConfig(QWidget *parent, const char *)
slowKeysDelay->setLabel(i18n("Acceptance dela&y:"));
hbox->addWidget(slowKeysDelay);
- hbox = new QHBoxLayout(vvbox, KDialog::spacingHint());
+ hbox = new TQHBoxLayout(vvbox, KDialog::spacingHint());
hbox->addSpacing(24);
- slowKeysPressBeep = new QCheckBox(i18n("&Use system bell whenever a key is pressed"), grp);
+ slowKeysPressBeep = new TQCheckBox(i18n("&Use system bell whenever a key is pressed"), grp);
hbox->addWidget(slowKeysPressBeep);
- hbox = new QHBoxLayout(vvbox, KDialog::spacingHint());
+ hbox = new TQHBoxLayout(vvbox, KDialog::spacingHint());
hbox->addSpacing(24);
- slowKeysAcceptBeep = new QCheckBox(i18n("&Use system bell whenever a key is accepted"), grp);
+ slowKeysAcceptBeep = new TQCheckBox(i18n("&Use system bell whenever a key is accepted"), grp);
hbox->addWidget(slowKeysAcceptBeep);
- hbox = new QHBoxLayout(vvbox, KDialog::spacingHint());
+ hbox = new TQHBoxLayout(vvbox, KDialog::spacingHint());
hbox->addSpacing(24);
- slowKeysRejectBeep = new QCheckBox(i18n("&Use system bell whenever a key is rejected"), grp);
+ slowKeysRejectBeep = new TQCheckBox(i18n("&Use system bell whenever a key is rejected"), grp);
hbox->addWidget(slowKeysRejectBeep);
- grp = new QGroupBox(i18n("Bounce Keys"), filters);
+ grp = new TQGroupBox(i18n("Bounce Keys"), filters);
grp->setColumnLayout( 0, Qt::Horizontal );
vbox->addWidget(grp);
- vvbox = new QVBoxLayout(grp->layout(), KDialog::spacingHint());
+ vvbox = new TQVBoxLayout(grp->layout(), KDialog::spacingHint());
- bounceKeys = new QCheckBox(i18n("Use bou&nce keys"), grp);
+ bounceKeys = new TQCheckBox(i18n("Use bou&nce keys"), grp);
vvbox->addWidget(bounceKeys);
- hbox = new QHBoxLayout(vvbox, KDialog::spacingHint());
+ hbox = new TQHBoxLayout(vvbox, KDialog::spacingHint());
hbox->addSpacing(24);
bounceKeysDelay = new ExtendedIntNumInput(grp);
bounceKeysDelay->setSuffix(i18n(" msec"));
@@ -460,56 +460,56 @@ KAccessConfig::KAccessConfig(QWidget *parent, const char *)
bounceKeysDelay->setLabel(i18n("D&ebounce time:"));
hbox->addWidget(bounceKeysDelay);
- hbox = new QHBoxLayout(vvbox, KDialog::spacingHint());
+ hbox = new TQHBoxLayout(vvbox, KDialog::spacingHint());
hbox->addSpacing(24);
- bounceKeysRejectBeep = new QCheckBox(i18n("Use the system bell whenever a key is rejected"), grp);
+ bounceKeysRejectBeep = new TQCheckBox(i18n("Use the system bell whenever a key is rejected"), grp);
hbox->addWidget(bounceKeysRejectBeep);
- connect(slowKeysDelay, SIGNAL(valueChanged(int)), this, SLOT(configChanged()));
- connect(slowKeys, SIGNAL(clicked()), this, SLOT(configChanged()));
- connect(slowKeys, SIGNAL(clicked()), this, SLOT(checkAccess()));
+ connect(slowKeysDelay, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(configChanged()));
+ connect(slowKeys, TQT_SIGNAL(clicked()), this, TQT_SLOT(configChanged()));
+ connect(slowKeys, TQT_SIGNAL(clicked()), this, TQT_SLOT(checkAccess()));
- connect(slowKeysPressBeep, SIGNAL(clicked()), this, SLOT(configChanged()));
- connect(slowKeysAcceptBeep, SIGNAL(clicked()), this, SLOT(configChanged()));
- connect(slowKeysRejectBeep, SIGNAL(clicked()), this, SLOT(configChanged()));
+ connect(slowKeysPressBeep, TQT_SIGNAL(clicked()), this, TQT_SLOT(configChanged()));
+ connect(slowKeysAcceptBeep, TQT_SIGNAL(clicked()), this, TQT_SLOT(configChanged()));
+ connect(slowKeysRejectBeep, TQT_SIGNAL(clicked()), this, TQT_SLOT(configChanged()));
- connect(bounceKeysDelay, SIGNAL(valueChanged(int)), this, SLOT(configChanged()));
- connect(bounceKeys, SIGNAL(clicked()), this, SLOT(configChanged()));
- connect(bounceKeysRejectBeep, SIGNAL(clicked()), this, SLOT(configChanged()));
- connect(bounceKeys, SIGNAL(clicked()), this, SLOT(checkAccess()));
+ connect(bounceKeysDelay, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(configChanged()));
+ connect(bounceKeys, TQT_SIGNAL(clicked()), this, TQT_SLOT(configChanged()));
+ connect(bounceKeysRejectBeep, TQT_SIGNAL(clicked()), this, TQT_SLOT(configChanged()));
+ connect(bounceKeys, TQT_SIGNAL(clicked()), this, TQT_SLOT(checkAccess()));
vbox->addStretch();
tab->addTab(filters, i18n("&Keyboard Filters"));
// gestures --------------------------------------------
- QWidget *features = new QWidget(this);
+ TQWidget *features = new TQWidget(this);
- vbox = new QVBoxLayout(features, KDialog::marginHint(), KDialog::spacingHint());
+ vbox = new TQVBoxLayout(features, KDialog::marginHint(), KDialog::spacingHint());
- grp = new QGroupBox(i18n("Activation Gestures"), features);
+ grp = new TQGroupBox(i18n("Activation Gestures"), features);
grp->setColumnLayout( 0, Qt::Horizontal );
vbox->addWidget(grp);
- vvbox = new QVBoxLayout(grp->layout(), KDialog::spacingHint());
+ vvbox = new TQVBoxLayout(grp->layout(), KDialog::spacingHint());
- gestures = new QCheckBox(i18n("Use gestures for activating sticky keys and slow keys"), grp);
+ gestures = new TQCheckBox(i18n("Use gestures for activating sticky keys and slow keys"), grp);
vvbox->addWidget(gestures);
- QString shortcut = mouseKeysShortcut(this->x11Display());
+ TQString shortcut = mouseKeysShortcut(this->x11Display());
if (shortcut.isEmpty())
- QWhatsThis::add (gestures, i18n("Here you can activate keyboard gestures that turn on the following features: \n"
+ TQWhatsThis::add (gestures, i18n("Here you can activate keyboard gestures that turn on the following features: \n"
"Sticky keys: Press Shift key 5 consecutive times\n"
"Slow keys: Hold down Shift for 8 seconds"));
else
- QWhatsThis::add (gestures, i18n("Here you can activate keyboard gestures that turn on the following features: \n"
+ TQWhatsThis::add (gestures, i18n("Here you can activate keyboard gestures that turn on the following features: \n"
"Mouse Keys: %1\n"
"Sticky keys: Press Shift key 5 consecutive times\n"
"Slow keys: Hold down Shift for 8 seconds").arg(shortcut));
- timeout = new QCheckBox(i18n("Turn sticky keys and slow keys off after a certain period of inactivity"), grp);
+ timeout = new TQCheckBox(i18n("Turn sticky keys and slow keys off after a certain period of inactivity"), grp);
vvbox->addWidget(timeout);
- hbox = new QHBoxLayout(vvbox, KDialog::spacingHint());
+ hbox = new TQHBoxLayout(vvbox, KDialog::spacingHint());
hbox->addSpacing(24);
timeoutDelay = new KIntNumInput(grp);
timeoutDelay->setSuffix(i18n(" min"));
@@ -517,37 +517,37 @@ KAccessConfig::KAccessConfig(QWidget *parent, const char *)
timeoutDelay->setLabel(i18n("Timeout:"));
hbox->addWidget(timeoutDelay);
- grp = new QGroupBox(i18n("Notification"), features);
+ grp = new TQGroupBox(i18n("Notification"), features);
grp->setColumnLayout( 0, Qt::Horizontal );
vbox->addWidget(grp);
- vvbox = new QVBoxLayout(grp->layout(), KDialog::spacingHint());
+ vvbox = new TQVBoxLayout(grp->layout(), KDialog::spacingHint());
- accessxBeep = new QCheckBox(i18n("Use the system bell whenever a gesture is used to turn an accessibility feature on or off"), grp);
+ accessxBeep = new TQCheckBox(i18n("Use the system bell whenever a gesture is used to turn an accessibility feature on or off"), grp);
vvbox->addWidget(accessxBeep);
- gestureConfirmation = new QCheckBox(i18n("Show a confirmation dialog whenever a keyboard accessibility feature is turned on or off"), grp);
+ gestureConfirmation = new TQCheckBox(i18n("Show a confirmation dialog whenever a keyboard accessibility feature is turned on or off"), grp);
vvbox->addWidget(gestureConfirmation);
- QWhatsThis::add (gestureConfirmation, i18n("If this option is checked, KDE will show a confirmation dialog whenever a keyboard accessibility feature is turned on or off.\nBe sure you know what you are doing if you uncheck it, as the keyboard accessibility settings will then always be applied without confirmation.") );
+ TQWhatsThis::add (gestureConfirmation, i18n("If this option is checked, KDE will show a confirmation dialog whenever a keyboard accessibility feature is turned on or off.\nBe sure you know what you are doing if you uncheck it, as the keyboard accessibility settings will then always be applied without confirmation.") );
- kNotifyAccessX = new QCheckBox(i18n("Use KDE's system notification mechanism whenever a keyboard accessibility feature is turned on or off"), grp);
+ kNotifyAccessX = new TQCheckBox(i18n("Use KDE's system notification mechanism whenever a keyboard accessibility feature is turned on or off"), grp);
vvbox->addWidget(kNotifyAccessX);
- hbox = new QHBoxLayout(vvbox, KDialog::spacingHint());
+ hbox = new TQHBoxLayout(vvbox, KDialog::spacingHint());
hbox->addStretch(1);
- kNotifyAccessXButton = new QPushButton(i18n("Configure System Notification..."), grp);
- kNotifyAccessXButton->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
+ kNotifyAccessXButton = new TQPushButton(i18n("Configure System Notification..."), grp);
+ kNotifyAccessXButton->setSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed);
hbox->addWidget(kNotifyAccessXButton);
- connect(gestures, SIGNAL(clicked()), this, SLOT(configChanged()));
- connect(timeout, SIGNAL(clicked()), this, SLOT(configChanged()));
- connect(timeout, SIGNAL(clicked()), this, SLOT(checkAccess()));
- connect(timeoutDelay, SIGNAL(valueChanged(int)), this, SLOT(configChanged()));
- connect(accessxBeep, SIGNAL(clicked()), this, SLOT(configChanged()));
- connect(gestureConfirmation, SIGNAL(clicked()), this, SLOT(configChanged()));
- connect(kNotifyAccessX, SIGNAL(clicked()), this, SLOT(configChanged()));
- connect(kNotifyAccessX, SIGNAL(clicked()), this, SLOT(checkAccess()));
- connect(kNotifyAccessXButton, SIGNAL(clicked()), this, SLOT(configureKNotify()));
+ connect(gestures, TQT_SIGNAL(clicked()), this, TQT_SLOT(configChanged()));
+ connect(timeout, TQT_SIGNAL(clicked()), this, TQT_SLOT(configChanged()));
+ connect(timeout, TQT_SIGNAL(clicked()), this, TQT_SLOT(checkAccess()));
+ connect(timeoutDelay, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(configChanged()));
+ connect(accessxBeep, TQT_SIGNAL(clicked()), this, TQT_SLOT(configChanged()));
+ connect(gestureConfirmation, TQT_SIGNAL(clicked()), this, TQT_SLOT(configChanged()));
+ connect(kNotifyAccessX, TQT_SIGNAL(clicked()), this, TQT_SLOT(configChanged()));
+ connect(kNotifyAccessX, TQT_SIGNAL(clicked()), this, TQT_SLOT(checkAccess()));
+ connect(kNotifyAccessXButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(configureKNotify()));
vbox->addStretch();
@@ -578,12 +578,12 @@ void KAccessConfig::changeFlashScreenColor()
void KAccessConfig::selectSound()
{
- QStringList list = KGlobal::dirs()->findDirs("sound", "");
- QString start;
+ TQStringList list = KGlobal::dirs()->findDirs("sound", "");
+ TQString start;
if (list.count()>0)
start = list[0];
// TODO: Why only wav's? How can I find out what artsd supports?
- QString fname = KFileDialog::getOpenFileName(start, i18n("*.wav|WAV Files"));
+ TQString fname = KFileDialog::getOpenFileName(start, i18n("*.wav|WAV Files"));
if (!fname.isEmpty())
soundEdit->setText(fname);
}
@@ -614,7 +614,7 @@ void KAccessConfig::load( bool useDefaults )
visibleBell->setChecked(config->readBoolEntry("VisibleBell", false));
invertScreen->setChecked(config->readBoolEntry("VisibleBellInvert", true));
flashScreen->setChecked(!invertScreen->isChecked());
- QColor def(Qt::red);
+ TQColor def(Qt::red);
colorButton->setColor(config->readColorEntry("VisibleBellColor", &def));
durationSlider->setValue(config->readNumEntry("VisibleBellPause", 500));
@@ -783,7 +783,7 @@ void KAccessConfig::checkAccess()
extern "C"
{
- KDE_EXPORT KCModule *create_access(QWidget *parent, const char *name)
+ KDE_EXPORT KCModule *create_access(TQWidget *parent, const char *name)
{
return new KAccessConfig(parent, name);
}
diff --git a/kcontrol/access/kcmaccess.h b/kcontrol/access/kcmaccess.h
index c40152324..058b1c491 100644
--- a/kcontrol/access/kcmaccess.h
+++ b/kcontrol/access/kcmaccess.h
@@ -33,7 +33,7 @@ class ExtendedIntNumInput : public KIntNumInput
* Constructs an input control for integer values
* with base 10 and initial value 0.
*/
- ExtendedIntNumInput(QWidget *parent=0, const char *name=0);
+ ExtendedIntNumInput(TQWidget *parent=0, const char *name=0);
/**
* Destructor
@@ -63,7 +63,7 @@ class KAccessConfig : public KCModule
public:
- KAccessConfig(QWidget *parent = 0L, const char *name = 0L);
+ KAccessConfig(TQWidget *parent = 0L, const char *name = 0L);
virtual ~KAccessConfig();
void load();
@@ -83,28 +83,28 @@ protected slots:
private:
- QCheckBox *systemBell, *customBell, *visibleBell;
- QRadioButton *invertScreen, *flashScreen;
- QLabel *soundLabel, *colorLabel;
- QLineEdit *soundEdit;
- QPushButton *soundButton;
+ TQCheckBox *systemBell, *customBell, *visibleBell;
+ TQRadioButton *invertScreen, *flashScreen;
+ TQLabel *soundLabel, *colorLabel;
+ TQLineEdit *soundEdit;
+ TQPushButton *soundButton;
KColorButton *colorButton;
ExtendedIntNumInput *durationSlider;
- QCheckBox *stickyKeys, *stickyKeysLock, *stickyKeysAutoOff;
- QCheckBox *stickyKeysBeep, *toggleKeysBeep, *kNotifyModifiers;
- QPushButton *kNotifyModifiersButton;
+ TQCheckBox *stickyKeys, *stickyKeysLock, *stickyKeysAutoOff;
+ TQCheckBox *stickyKeysBeep, *toggleKeysBeep, *kNotifyModifiers;
+ TQPushButton *kNotifyModifiersButton;
- QCheckBox *slowKeys, *bounceKeys;
+ TQCheckBox *slowKeys, *bounceKeys;
ExtendedIntNumInput *slowKeysDelay, *bounceKeysDelay;
- QCheckBox *slowKeysPressBeep, *slowKeysAcceptBeep;
- QCheckBox *slowKeysRejectBeep, *bounceKeysRejectBeep;
+ TQCheckBox *slowKeysPressBeep, *slowKeysAcceptBeep;
+ TQCheckBox *slowKeysRejectBeep, *bounceKeysRejectBeep;
- QCheckBox *gestures, *gestureConfirmation;
- QCheckBox *timeout;
+ TQCheckBox *gestures, *gestureConfirmation;
+ TQCheckBox *timeout;
KIntNumInput *timeoutDelay;
- QCheckBox *accessxBeep, *kNotifyAccessX;
- QPushButton *kNotifyAccessXButton;
+ TQCheckBox *accessxBeep, *kNotifyAccessX;
+ TQPushButton *kNotifyAccessXButton;
};
diff --git a/kcontrol/accessibility/accessibility.cpp b/kcontrol/accessibility/accessibility.cpp
index de7b9953b..7cd8fa29b 100644
--- a/kcontrol/accessibility/accessibility.cpp
+++ b/kcontrol/accessibility/accessibility.cpp
@@ -18,9 +18,9 @@
* *
****************************************************************************/
-#include <qcheckbox.h>
-#include <qradiobutton.h>
-#include <qtabwidget.h>
+#include <tqcheckbox.h>
+#include <tqradiobutton.h>
+#include <tqtabwidget.h>
#include <kaboutdata.h>
#include <kcolorbutton.h>
@@ -31,7 +31,7 @@
#include "accessibility.moc"
-typedef KGenericFactory<AccessibilityConfig, QWidget> AccessibilityFactory;
+typedef KGenericFactory<AccessibilityConfig, TQWidget> AccessibilityFactory;
K_EXPORT_COMPONENT_FACTORY( kcm_accessibility, AccessibilityFactory("kcmaccessibility") )
/**
@@ -53,7 +53,7 @@ K_EXPORT_COMPONENT_FACTORY( kcm_accessibility, AccessibilityFactory("kcmaccessib
// return false; // don't need it
// }
-AccessibilityConfig::AccessibilityConfig(QWidget *parent, const char *name, const QStringList &)
+AccessibilityConfig::AccessibilityConfig(TQWidget *parent, const char *name, const TQStringList &)
: AccessibilityConfigWidget( parent, name){
KAboutData *about =
@@ -65,9 +65,9 @@ AccessibilityConfig::AccessibilityConfig(QWidget *parent, const char *name, cons
about->addAuthor("Josť Pablo Ezequiel FernŠndez", I18N_NOOP("Author") , "pupeno@kde.org");
setAboutData( about );
- kdDebug() << "Running: AccessibilityConfig::AccessibilityConfig(QWidget *parent, const char *name, const QStringList &)" << endl;
+ kdDebug() << "Running: AccessibilityConfig::AccessibilityConfig(TQWidget *parent, const char *name, const TQStringList &)" << endl;
// TODO: set the KURL Dialog to open just audio files
- connect( mainTab, SIGNAL(currentChanged(QWidget*)), this, SIGNAL(quickHelpChanged()) );
+ connect( mainTab, TQT_SIGNAL(currentChanged(TQWidget*)), this, TQT_SIGNAL(quickHelpChanged()) );
load();
}
@@ -101,7 +101,7 @@ void AccessibilityConfig::load( bool useDefaults )
invertScreen->setChecked(bell->readBoolEntry("Invert", true));
flashScreen->setChecked(bell->readBoolEntry("Flash", false));
// TODO: There has to be a cleaner way.
- QColor *redColor = new QColor(Qt::red);
+ TQColor *redColor = new TQColor(Qt::red);
flashScreenColor->setColor(bell->readColorEntry("FlashColor", redColor));
delete redColor;
visibleBellDuration->setValue(bell->readNumEntry("Duration", 500));
diff --git a/kcontrol/accessibility/accessibility.h b/kcontrol/accessibility/accessibility.h
index ad94dcdcc..9b4c833c3 100644
--- a/kcontrol/accessibility/accessibility.h
+++ b/kcontrol/accessibility/accessibility.h
@@ -32,7 +32,7 @@ class AccessibilityConfig : public AccessibilityConfigWidget {
/**
* Constructor
*/
- AccessibilityConfig(QWidget *parent = 0L, const char *name = 0L, const QStringList &foo = QStringList());
+ AccessibilityConfig(TQWidget *parent = 0L, const char *name = 0L, const TQStringList &foo = TQStringList());
/**
* Destructor
diff --git a/kcontrol/arts/arts.cpp b/kcontrol/arts/arts.cpp
index a8edb30a2..792951aec 100644
--- a/kcontrol/arts/arts.cpp
+++ b/kcontrol/arts/arts.cpp
@@ -25,14 +25,14 @@
#include <unistd.h>
-#include <qcombobox.h>
-#include <qdir.h>
-#include <qlayout.h>
-#include <qpushbutton.h>
-#include <qregexp.h>
-#include <qslider.h>
-#include <qtabwidget.h>
-#include <qwhatsthis.h>
+#include <tqcombobox.h>
+#include <tqdir.h>
+#include <tqlayout.h>
+#include <tqpushbutton.h>
+#include <tqregexp.h>
+#include <tqslider.h>
+#include <tqtabwidget.h>
+#include <tqwhatsthis.h>
#include <dcopref.h>
@@ -55,7 +55,7 @@
extern "C" {
KDE_EXPORT void init_arts();
- KDE_EXPORT KCModule *create_arts(QWidget *parent, const char* /*name*/)
+ KDE_EXPORT KCModule *create_arts(TQWidget *parent, const char* /*name*/)
{
KGlobal::locale()->insertCatalogue("kcmarts");
return new KArtsModule(parent, "kcmarts" );
@@ -69,13 +69,13 @@ static bool startArts()
config->setGroup("Arts");
bool startServer = config->readBoolEntry("StartServer",true);
bool startRealtime = config->readBoolEntry("StartRealtime",true);
- QString args = config->readEntry("Arguments","-F 10 -S 4096 -s 60 -m artsmessage -c drkonqi -l 3 -f");
+ TQString args = config->readEntry("Arguments","-F 10 -S 4096 -s 60 -m artsmessage -c drkonqi -l 3 -f");
delete config;
if (startServer)
kapp->kdeinitExec(startRealtime?"artswrapper":"artsd",
- QStringList::split(" ",args));
+ TQStringList::split(" ",args));
return startServer;
}
@@ -100,10 +100,10 @@ void KArtsModule::initAudioIOList()
*artsd << "artsd";
*artsd << "-A";
- connect(artsd, SIGNAL(processExited(KProcess*)),
- this, SLOT(slotArtsdExited(KProcess*)));
- connect(artsd, SIGNAL(receivedStderr(KProcess*, char*, int)),
- this, SLOT(slotProcessArtsdOutput(KProcess*, char*, int)));
+ connect(artsd, TQT_SIGNAL(processExited(KProcess*)),
+ this, TQT_SLOT(slotArtsdExited(KProcess*)));
+ connect(artsd, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)),
+ this, TQT_SLOT(slotProcessArtsdOutput(KProcess*, char*, int)));
if (!artsd->start(KProcess::Block, KProcess::Stderr)) {
KMessageBox::error(0, i18n("Unable to start the sound server to "
@@ -124,13 +124,13 @@ void KArtsModule::slotProcessArtsdOutput(KProcess*, char* buf, int len)
{
// XXX(gioele): I suppose this will be called with full lines, am I wrong?
- QStringList availableIOs = QStringList::split("\n", QCString(buf, len));
+ TQStringList availableIOs = TQStringList::split("\n", TQCString(buf, len));
// valid entries have two leading spaces
- availableIOs = availableIOs.grep(QRegExp("^ {2}"));
+ availableIOs = availableIOs.grep(TQRegExp("^ {2}"));
availableIOs.sort();
- QString name, fullName;
- QStringList::Iterator it;
+ TQString name, fullName;
+ TQStringList::Iterator it;
for (it = availableIOs.begin(); it != availableIOs.end(); ++it) {
name = (*it).left(12).stripWhiteSpace();
fullName = (*it).mid(12).stripWhiteSpace();
@@ -138,7 +138,7 @@ void KArtsModule::slotProcessArtsdOutput(KProcess*, char* buf, int len)
}
}
-KArtsModule::KArtsModule(QWidget *parent, const char *name)
+KArtsModule::KArtsModule(TQWidget *parent, const char *name)
: KCModule(parent, name), configChanged(false)
{
setButtons(Default|Apply);
@@ -151,8 +151,8 @@ KArtsModule::KArtsModule(QWidget *parent, const char *name)
initAudioIOList();
- QVBoxLayout *layout = new QVBoxLayout(this, 0, KDialog::spacingHint());
- QTabWidget *tab = new QTabWidget(this);
+ TQVBoxLayout *layout = new TQVBoxLayout(this, 0, KDialog::spacingHint());
+ TQTabWidget *tab = new TQTabWidget(this);
layout->addWidget(tab);
general = new generalTab(tab);
@@ -179,18 +179,18 @@ KArtsModule::KArtsModule(QWidget *parent, const char *name)
customRate = hardware->customRate;
samplingRate = hardware->samplingRate;
- QString deviceHint = i18n("Normally, the sound server defaults to using the device called <b>/dev/dsp</b> for sound output. That should work in most cases. On some systems where devfs is used, however, you may need to use <b>/dev/sound/dsp</b> instead. Other alternatives are things like <b>/dev/dsp0</b> or <b>/dev/dsp1</b>, if you have a soundcard that supports multiple outputs, or you have multiple soundcards.");
+ TQString deviceHint = i18n("Normally, the sound server defaults to using the device called <b>/dev/dsp</b> for sound output. That should work in most cases. On some systems where devfs is used, however, you may need to use <b>/dev/sound/dsp</b> instead. Other alternatives are things like <b>/dev/dsp0</b> or <b>/dev/dsp1</b>, if you have a soundcard that supports multiple outputs, or you have multiple soundcards.");
- QString rateHint = i18n("Normally, the sound server defaults to using a sampling rate of 44100 Hz (CD quality), which is supported on almost any hardware. If you are using certain <b>Yamaha soundcards</b>, you might need to configure this to 48000 Hz here, if you are using <b>old SoundBlaster cards</b>, like SoundBlaster Pro, you might need to change this to 22050 Hz. All other values are possible, too, and may make sense in certain contexts (i.e. professional studio equipment).");
+ TQString rateHint = i18n("Normally, the sound server defaults to using a sampling rate of 44100 Hz (CD quality), which is supported on almost any hardware. If you are using certain <b>Yamaha soundcards</b>, you might need to configure this to 48000 Hz here, if you are using <b>old SoundBlaster cards</b>, like SoundBlaster Pro, you might need to change this to 22050 Hz. All other values are possible, too, and may make sense in certain contexts (i.e. professional studio equipment).");
- QString optionsHint = i18n("This configuration module is intended to cover almost every aspect of the aRts sound server that you can configure. However, there are some things which may not be available here, so you can add <b>command line options</b> here which will be passed directly to <b>artsd</b>. The command line options will override the choices made in the GUI. To see the possible choices, open a Konsole window, and type <b>artsd -h</b>.");
+ TQString optionsHint = i18n("This configuration module is intended to cover almost every aspect of the aRts sound server that you can configure. However, there are some things which may not be available here, so you can add <b>command line options</b> here which will be passed directly to <b>artsd</b>. The command line options will override the choices made in the GUI. To see the possible choices, open a Konsole window, and type <b>artsd -h</b>.");
- QWhatsThis::add(customDevice, deviceHint);
- QWhatsThis::add(deviceName, deviceHint);
- QWhatsThis::add(customRate, rateHint);
- QWhatsThis::add(samplingRate, rateHint);
- QWhatsThis::add(hardware->customOptions, optionsHint);
- QWhatsThis::add(hardware->addOptions, optionsHint);
+ TQWhatsThis::add(customDevice, deviceHint);
+ TQWhatsThis::add(deviceName, deviceHint);
+ TQWhatsThis::add(customRate, rateHint);
+ TQWhatsThis::add(samplingRate, rateHint);
+ TQWhatsThis::add(hardware->customOptions, optionsHint);
+ TQWhatsThis::add(hardware->addOptions, optionsHint);
hardware->audioIO->insertItem( i18n( "Autodetect" ) );
for (AudioIOElement *a = audioIOList.first(); a != 0; a = audioIOList.next())
@@ -199,7 +199,7 @@ KArtsModule::KArtsModule(QWidget *parent, const char *name)
deviceManager = new DeviceManager();
deviceManager->initManager();
- QString s;
+ TQString s;
for ( int i = 0; i < deviceManager->midiPorts()+deviceManager->synthDevices(); i++)
{
if ( strcmp( deviceManager->type( i ), "" ) != 0 )
@@ -216,31 +216,31 @@ KArtsModule::KArtsModule(QWidget *parent, const char *name)
suspendTime->setRange( 1, 999, 1, true );
- connect(startServer,SIGNAL(clicked()),this,SLOT(slotChanged()));
- connect(networkTransparent,SIGNAL(clicked()),this,SLOT(slotChanged()));
- connect(startRealtime,SIGNAL(clicked()),this,SLOT(slotChanged()));
- connect(fullDuplex,SIGNAL(clicked()),this,SLOT(slotChanged()));
- connect(customDevice, SIGNAL(clicked()), SLOT(slotChanged()));
- connect(deviceName, SIGNAL(textChanged(const QString&)), SLOT(slotChanged()));
- connect(customRate, SIGNAL(clicked()), SLOT(slotChanged()));
- connect(samplingRate, SIGNAL(valueChanged(const QString&)), SLOT(slotChanged()));
-// connect(general->volumeSystray, SIGNAL(clicked()), this, SLOT(slotChanged()) );
-
- connect(hardware->audioIO,SIGNAL(highlighted(int)),SLOT(slotChanged()));
- connect(hardware->audioIO,SIGNAL(activated(int)),SLOT(slotChanged()));
- connect(hardware->customOptions,SIGNAL(clicked()),SLOT(slotChanged()));
- connect(hardware->addOptions,SIGNAL(textChanged(const QString&)),SLOT(slotChanged()));
- connect(hardware->soundQuality,SIGNAL(highlighted(int)),SLOT(slotChanged()));
- connect(hardware->soundQuality,SIGNAL(activated(int)),SLOT(slotChanged()));
- connect(general->latencySlider,SIGNAL(valueChanged(int)),SLOT(slotChanged()));
- connect(autoSuspend,SIGNAL(clicked()),SLOT(slotChanged()));
- connect(suspendTime,SIGNAL(valueChanged(int)),SLOT(slotChanged()));
- connect(general->testSound,SIGNAL(clicked()),SLOT(slotTestSound()));
- connect(hardware->midiDevice, SIGNAL( highlighted(int) ), this, SLOT( slotChanged() ) );
- connect(hardware->midiDevice, SIGNAL( activated(int) ), this, SLOT( slotChanged() ) );
- connect(hardware->midiUseMapper, SIGNAL( clicked() ), this, SLOT( slotChanged() ) );
- connect(hardware->midiMapper, SIGNAL( textChanged( const QString& ) ),
- this, SLOT( slotChanged() ) );
+ connect(startServer,TQT_SIGNAL(clicked()),this,TQT_SLOT(slotChanged()));
+ connect(networkTransparent,TQT_SIGNAL(clicked()),this,TQT_SLOT(slotChanged()));
+ connect(startRealtime,TQT_SIGNAL(clicked()),this,TQT_SLOT(slotChanged()));
+ connect(fullDuplex,TQT_SIGNAL(clicked()),this,TQT_SLOT(slotChanged()));
+ connect(customDevice, TQT_SIGNAL(clicked()), TQT_SLOT(slotChanged()));
+ connect(deviceName, TQT_SIGNAL(textChanged(const TQString&)), TQT_SLOT(slotChanged()));
+ connect(customRate, TQT_SIGNAL(clicked()), TQT_SLOT(slotChanged()));
+ connect(samplingRate, TQT_SIGNAL(valueChanged(const TQString&)), TQT_SLOT(slotChanged()));
+// connect(general->volumeSystray, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotChanged()) );
+
+ connect(hardware->audioIO,TQT_SIGNAL(highlighted(int)),TQT_SLOT(slotChanged()));
+ connect(hardware->audioIO,TQT_SIGNAL(activated(int)),TQT_SLOT(slotChanged()));
+ connect(hardware->customOptions,TQT_SIGNAL(clicked()),TQT_SLOT(slotChanged()));
+ connect(hardware->addOptions,TQT_SIGNAL(textChanged(const TQString&)),TQT_SLOT(slotChanged()));
+ connect(hardware->soundQuality,TQT_SIGNAL(highlighted(int)),TQT_SLOT(slotChanged()));
+ connect(hardware->soundQuality,TQT_SIGNAL(activated(int)),TQT_SLOT(slotChanged()));
+ connect(general->latencySlider,TQT_SIGNAL(valueChanged(int)),TQT_SLOT(slotChanged()));
+ connect(autoSuspend,TQT_SIGNAL(clicked()),TQT_SLOT(slotChanged()));
+ connect(suspendTime,TQT_SIGNAL(valueChanged(int)),TQT_SLOT(slotChanged()));
+ connect(general->testSound,TQT_SIGNAL(clicked()),TQT_SLOT(slotTestSound()));
+ connect(hardware->midiDevice, TQT_SIGNAL( highlighted(int) ), this, TQT_SLOT( slotChanged() ) );
+ connect(hardware->midiDevice, TQT_SIGNAL( activated(int) ), this, TQT_SLOT( slotChanged() ) );
+ connect(hardware->midiUseMapper, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotChanged() ) );
+ connect(hardware->midiMapper, TQT_SIGNAL( textChanged( const TQString& ) ),
+ this, TQT_SLOT( slotChanged() ) );
KAboutData *about = new KAboutData(I18N_NOOP("kcmarts"),
I18N_NOOP("The Sound Server Control Module"),
@@ -261,9 +261,9 @@ void KArtsModule::load( bool useDefaults )
fullDuplex->setChecked(config->readBoolEntry("FullDuplex",false));
autoSuspend->setChecked(config->readBoolEntry("AutoSuspend",true));
suspendTime->setValue(config->readNumEntry("SuspendTime",60));
- deviceName->setText(config->readEntry("DeviceName",QString::null));
+ deviceName->setText(config->readEntry("DeviceName",TQString::null));
customDevice->setChecked(!deviceName->text().isEmpty());
- hardware->addOptions->setText(config->readEntry("AddOptions",QString::null));
+ hardware->addOptions->setText(config->readEntry("AddOptions",TQString::null));
hardware->customOptions->setChecked(!hardware->addOptions->text().isEmpty());
general->latencySlider->setValue(config->readNumEntry("Latency",250));
@@ -291,7 +291,7 @@ void KArtsModule::load( bool useDefaults )
break;
}
- QString audioIO = config->readEntry("AudioIO", QString::null);
+ TQString audioIO = config->readEntry("AudioIO", TQString::null);
hardware->audioIO->setCurrentItem(0);
for(AudioIOElement *a = audioIOList.first(); a != 0; a = audioIOList.next())
{
@@ -310,7 +310,7 @@ void KArtsModule::load( bool useDefaults )
midiConfig->setGroup( "Configuration" );
hardware->midiDevice->setCurrentItem( midiConfig->readNumEntry( "midiDevice", 0 ) );
- QString mapurl( midiConfig->readPathEntry( "mapFilename" ) );
+ TQString mapurl( midiConfig->readPathEntry( "mapFilename" ) );
hardware->midiMapper->setURL( mapurl );
hardware->midiUseMapper->setChecked( midiConfig->readBoolEntry( "useMidiMapper", false ) );
hardware->midiMapper->setEnabled( hardware->midiUseMapper->isChecked() );
@@ -329,7 +329,7 @@ KArtsModule::~KArtsModule() {
void KArtsModule::saveParams( void )
{
- QString audioIO;
+ TQString audioIO;
int item = hardware->audioIO->currentItem() - 1; // first item: "default"
@@ -337,9 +337,9 @@ void KArtsModule::saveParams( void )
audioIO = audioIOList.at(item)->name;
}
- QString dev = customDevice->isChecked() ? deviceName->text() : QString::null;
+ TQString dev = customDevice->isChecked() ? deviceName->text() : TQString::null;
int rate = customRate->isChecked()?samplingRate->value() : 0;
- QString addOptions;
+ TQString addOptions;
if(hardware->customOptions->isChecked())
addOptions = hardware->addOptions->text();
@@ -419,10 +419,10 @@ int KArtsModule::userSavedChanges()
if (!configChanged)
return KMessageBox::Yes;
- QString question = i18n("The settings have changed since the last time "
+ TQString question = i18n("The settings have changed since the last time "
"you restarted the sound server.\n"
"Do you want to save them?");
- QString caption = i18n("Save Sound Server Settings?");
+ TQString caption = i18n("Save Sound Server Settings?");
reply = KMessageBox::questionYesNo(this, question, caption,KStdGuiItem::save(),KStdGuiItem::discard());
if ( reply == KMessageBox::Yes)
{
@@ -494,12 +494,12 @@ void KArtsModule::updateWidgets()
"missing or disabled"));
}
deviceName->setEnabled(customDevice->isChecked());
- QString audioIO;
+ TQString audioIO;
int item = hardware->audioIO->currentItem() - 1; // first item: "default"
if (item >= 0)
{
audioIO = audioIOList.at(item)->name;
- bool jack = (audioIO == QString::fromLatin1("jack"));
+ bool jack = (audioIO == TQString::fromLatin1("jack"));
if(jack)
{
customRate->setChecked(false);
@@ -542,8 +542,8 @@ bool KArtsModule::realtimeIsPossible()
*checkProcess << "artswrapper";
*checkProcess << "check";
- connect(checkProcess, SIGNAL(processExited(KProcess*)),
- this, SLOT(slotArtsdExited(KProcess*)));
+ connect(checkProcess, TQT_SIGNAL(processExited(KProcess*)),
+ this, TQT_SLOT(slotArtsdExited(KProcess*)));
if (!checkProcess->start(KProcess::Block))
{
delete checkProcess;
@@ -608,60 +608,60 @@ void init_arts()
startArts();
}
-QString KArtsModule::createArgs(bool netTrans,
+TQString KArtsModule::createArgs(bool netTrans,
bool duplex, int fragmentCount,
int fragmentSize,
- const QString &deviceName,
- int rate, int bits, const QString &audioIO,
- const QString &addOptions, bool autoSuspend,
+ const TQString &deviceName,
+ int rate, int bits, const TQString &audioIO,
+ const TQString &addOptions, bool autoSuspend,
int suspendTime
)
{
- QString args;
+ TQString args;
if(fragmentCount)
- args += QString::fromLatin1(" -F %1").arg(fragmentCount);
+ args += TQString::fromLatin1(" -F %1").arg(fragmentCount);
if(fragmentSize)
- args += QString::fromLatin1(" -S %1").arg(fragmentSize);
+ args += TQString::fromLatin1(" -S %1").arg(fragmentSize);
if (!audioIO.isEmpty())
- args += QString::fromLatin1(" -a %1").arg(audioIO);
+ args += TQString::fromLatin1(" -a %1").arg(audioIO);
if (duplex)
- args += QString::fromLatin1(" -d");
+ args += TQString::fromLatin1(" -d");
if (netTrans)
- args += QString::fromLatin1(" -n");
+ args += TQString::fromLatin1(" -n");
if (!deviceName.isEmpty())
- args += QString::fromLatin1(" -D ") + deviceName;
+ args += TQString::fromLatin1(" -D ") + deviceName;
if (rate)
- args += QString::fromLatin1(" -r %1").arg(rate);
+ args += TQString::fromLatin1(" -r %1").arg(rate);
if (bits)
- args += QString::fromLatin1(" -b %1").arg(bits);
+ args += TQString::fromLatin1(" -b %1").arg(bits);
if (autoSuspend && suspendTime)
- args += QString::fromLatin1(" -s %1").arg(suspendTime);
+ args += TQString::fromLatin1(" -s %1").arg(suspendTime);
if (!addOptions.isEmpty())
- args += QChar(' ') + addOptions;
+ args += TQChar(' ') + addOptions;
- args += QString::fromLatin1(" -m artsmessage");
- args += QString::fromLatin1(" -c drkonqi");
- args += QString::fromLatin1(" -l 3");
- args += QString::fromLatin1(" -f");
+ args += TQString::fromLatin1(" -m artsmessage");
+ args += TQString::fromLatin1(" -c drkonqi");
+ args += TQString::fromLatin1(" -l 3");
+ args += TQString::fromLatin1(" -f");
return args;
}
KStartArtsProgressDialog::KStartArtsProgressDialog(KArtsModule *parent, const char *name,
- const QString &caption, const QString &text)
+ const TQString &caption, const TQString &text)
: KProgressDialog(parent, name, caption, text, true), m_module(parent), m_shutdown(false)
{
- connect(&m_timer, SIGNAL(timeout()), this, SLOT(slotProgress()));
+ connect(&m_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotProgress()));
progressBar()->setTotalSteps(20);
m_timeStep = 700;
m_timer.start(m_timeStep);
@@ -707,7 +707,7 @@ KStartArtsProgressDialog::slotFinished()
{
progressBar()->setProgress(20);
m_timer.stop();
- QTimer::singleShot(1000, this, SLOT(close()));
+ TQTimer::singleShot(1000, this, TQT_SLOT(close()));
}
diff --git a/kcontrol/arts/arts.h b/kcontrol/arts/arts.h
index e69f5767d..80df5bd8e 100644
--- a/kcontrol/arts/arts.h
+++ b/kcontrol/arts/arts.h
@@ -28,12 +28,12 @@
#include <kapplication.h>
-#include <qbuttongroup.h>
-#include <qcheckbox.h>
-#include <qlabel.h>
-#include <qlineedit.h>
-#include <qradiobutton.h>
-#include <qtimer.h>
+#include <tqbuttongroup.h>
+#include <tqcheckbox.h>
+#include <tqlabel.h>
+#include <tqlineedit.h>
+#include <tqradiobutton.h>
+#include <tqtimer.h>
#include <kcmodule.h>
#include <knuminput.h>
@@ -52,7 +52,7 @@ class KArtsModule : public KCModule
public:
- KArtsModule(QWidget *parent=0, const char *name=0);
+ KArtsModule(TQWidget *parent=0, const char *name=0);
~KArtsModule();
void saveParams( void );
@@ -75,18 +75,18 @@ private:
void updateWidgets ();
void calculateLatency();
- QString createArgs(bool netTrans,bool duplex, int fragmentCount,
+ TQString createArgs(bool netTrans,bool duplex, int fragmentCount,
int fragmentSize,
- const QString &deviceName,
- int rate, int bits, const QString &audioIO,
- const QString &addOptions, bool autoSuspend,
+ const TQString &deviceName,
+ int rate, int bits, const TQString &audioIO,
+ const TQString &addOptions, bool autoSuspend,
int suspendTime);
int userSavedChanges();
- QCheckBox *startServer, *startRealtime, *networkTransparent,
+ TQCheckBox *startServer, *startRealtime, *networkTransparent,
*fullDuplex, *customDevice, *customRate, *autoSuspend;
- QLineEdit *deviceName;
- QSpinBox *samplingRate;
+ TQLineEdit *deviceName;
+ TQSpinBox *samplingRate;
KIntNumInput *suspendTime;
generalTab *general;
hardwareTab *hardware;
@@ -100,14 +100,14 @@ private:
class AudioIOElement {
public:
- AudioIOElement(const QString &name, const QString &fullName)
+ AudioIOElement(const TQString &name, const TQString &fullName)
: name(name), fullName(fullName) {;}
- QString name;
- QString fullName;
+ TQString name;
+ TQString fullName;
};
void initAudioIOList();
- QPtrList<AudioIOElement> audioIOList;
+ TQPtrList<AudioIOElement> audioIOList;
void restartServer();
bool realtimeIsPossible();
@@ -119,13 +119,13 @@ class KStartArtsProgressDialog : public KProgressDialog
Q_OBJECT
public:
KStartArtsProgressDialog(KArtsModule *parent, const char *name,
- const QString &caption, const QString &text);
+ const TQString &caption, const TQString &text);
public slots:
void slotProgress();
void slotFinished();
private:
- QTimer m_timer;
+ TQTimer m_timer;
int m_timeStep;
KArtsModule *m_module;
bool m_shutdown;
diff --git a/kcontrol/arts/krichtextlabel.cpp b/kcontrol/arts/krichtextlabel.cpp
index 7e292cde1..5c7618a1b 100644
--- a/kcontrol/arts/krichtextlabel.cpp
+++ b/kcontrol/arts/krichtextlabel.cpp
@@ -18,35 +18,35 @@
#include "krichtextlabel.h"
-#include <qtooltip.h>
-#include <qstylesheet.h>
-#include <qsimplerichtext.h>
+#include <tqtooltip.h>
+#include <tqstylesheet.h>
+#include <tqsimplerichtext.h>
#include <kglobalsettings.h>
-static QString qrichtextify( const QString& text )
+static TQString qrichtextify( const TQString& text )
{
if ( text.isEmpty() || text[0] == '<' )
return text;
- QStringList lines = QStringList::split('\n', text);
- for(QStringList::Iterator it = lines.begin(); it != lines.end(); ++it)
+ TQStringList lines = TQStringList::split('\n', text);
+ for(TQStringList::Iterator it = lines.begin(); it != lines.end(); ++it)
{
- *it = QStyleSheet::convertFromPlainText( *it, QStyleSheetItem::WhiteSpaceNormal );
+ *it = TQStyleSheet::convertFromPlainText( *it, TQStyleSheetItem::WhiteSpaceNormal );
}
- return lines.join(QString::null);
+ return lines.join(TQString::null);
}
-KRichTextLabel::KRichTextLabel( const QString &text , QWidget *parent, const char *name )
- : QLabel ( parent, name ) {
+KRichTextLabel::KRichTextLabel( const TQString &text , TQWidget *parent, const char *name )
+ : TQLabel ( parent, name ) {
m_defaultWidth = QMIN(500, KGlobalSettings::desktopGeometry(this).width()*3/5);
setAlignment( Qt::WordBreak );
setText(text);
}
-KRichTextLabel::KRichTextLabel( QWidget *parent, const char *name )
- : QLabel ( parent, name ) {
+KRichTextLabel::KRichTextLabel( TQWidget *parent, const char *name )
+ : TQLabel ( parent, name ) {
m_defaultWidth = QMIN(500, KGlobalSettings::desktopGeometry(this).width()*3/5);
setAlignment( Qt::WordBreak );
}
@@ -57,17 +57,17 @@ void KRichTextLabel::setDefaultWidth(int defaultWidth)
updateGeometry();
}
-QSizePolicy KRichTextLabel::sizePolicy() const
+TQSizePolicy KRichTextLabel::sizePolicy() const
{
- return QSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Minimum, false);
+ return TQSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::Minimum, false);
}
-QSize KRichTextLabel::minimumSizeHint() const
+TQSize KRichTextLabel::minimumSizeHint() const
{
- QString qt_text = qrichtextify( text() );
+ TQString qt_text = qrichtextify( text() );
int pref_width = 0;
int pref_height = 0;
- QSimpleRichText rt(qt_text, font());
+ TQSimpleRichText rt(qt_text, font());
pref_width = m_defaultWidth;
rt.setWidth(pref_width);
int used_width = rt.widthUsed();
@@ -94,19 +94,19 @@ QSize KRichTextLabel::minimumSizeHint() const
pref_width = used_width;
}
- return QSize(pref_width, rt.height());
+ return TQSize(pref_width, rt.height());
}
-QSize KRichTextLabel::sizeHint() const
+TQSize KRichTextLabel::sizeHint() const
{
return minimumSizeHint();
}
-void KRichTextLabel::setText( const QString &text ) {
+void KRichTextLabel::setText( const TQString &text ) {
if (!text.startsWith("<qt>"))
- QLabel::setText("<qt>"+text+"</qt>");
+ TQLabel::setText("<qt>"+text+"</qt>");
else
- QLabel::setText(text);
+ TQLabel::setText(text);
}
void KRichTextLabel::virtual_hook( int, void* )
diff --git a/kcontrol/arts/krichtextlabel.h b/kcontrol/arts/krichtextlabel.h
index e03fe2509..40ead0375 100644
--- a/kcontrol/arts/krichtextlabel.h
+++ b/kcontrol/arts/krichtextlabel.h
@@ -19,12 +19,12 @@
#ifndef KRICHTEXTLABEL_H
#define KRICHTEXTLABEL_H
-#include <qlabel.h>
+#include <tqlabel.h>
#include <kdelibs_export.h>
/**
- * @short A replacement for QLabel that supports richtext and proper layout management
+ * @short A replacement for TQLabel that supports richtext and proper layout management
*
* @author Waldo Bastian <bastian@kde.org>
*/
@@ -32,25 +32,25 @@
/*
* QLabel
*/
-class KDEUI_EXPORT KRichTextLabel : public QLabel {
+class KDEUI_EXPORT KRichTextLabel : public TQLabel {
Q_OBJECT
public:
/**
* Default constructor.
*/
- KRichTextLabel( QWidget *parent, const char *name = 0 );
- KRichTextLabel( const QString &text, QWidget *parent, const char *name = 0 );
+ KRichTextLabel( TQWidget *parent, const char *name = 0 );
+ KRichTextLabel( const TQString &text, TQWidget *parent, const char *name = 0 );
int defaultWidth() const { return m_defaultWidth; }
void setDefaultWidth(int defaultWidth);
- virtual QSize minimumSizeHint() const;
- virtual QSize sizeHint() const;
- QSizePolicy sizePolicy() const;
+ virtual TQSize minimumSizeHint() const;
+ virtual TQSize sizeHint() const;
+ TQSizePolicy sizePolicy() const;
public slots:
- void setText( const QString & );
+ void setText( const TQString & );
protected:
int m_defaultWidth;
diff --git a/kcontrol/background/bgadvanced.cpp b/kcontrol/background/bgadvanced.cpp
index 3218ec470..e1f9ece96 100644
--- a/kcontrol/background/bgadvanced.cpp
+++ b/kcontrol/background/bgadvanced.cpp
@@ -20,17 +20,17 @@
Boston, MA 02110-1301, USA.
*/
-#include <qbuttongroup.h>
-#include <qcheckbox.h>
-#include <qheader.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qlineedit.h>
-#include <qcombobox.h>
-#include <qpushbutton.h>
-#include <qslider.h>
-#include <qspinbox.h>
-#include <qwhatsthis.h>
+#include <tqbuttongroup.h>
+#include <tqcheckbox.h>
+#include <tqheader.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqlineedit.h>
+#include <tqcombobox.h>
+#include <tqpushbutton.h>
+#include <tqslider.h>
+#include <tqspinbox.h>
+#include <tqwhatsthis.h>
#include <kconfig.h>
#include <kcolorbutton.h>
@@ -48,12 +48,12 @@
/**** BGAdvancedDialog ****/
-static QCString desktopConfigname()
+static TQCString desktopConfigname()
{
int desktop=0;
if (qt_xdisplay())
desktop = DefaultScreen(qt_xdisplay());
- QCString name;
+ TQCString name;
if (desktop == 0)
name = "kdesktoprc";
else
@@ -64,7 +64,7 @@ static QCString desktopConfigname()
BGAdvancedDialog::BGAdvancedDialog(KBackgroundRenderer *_r,
- QWidget *parent,
+ TQWidget *parent,
bool m_multidesktop)
: KDialogBase(parent, "BGAdvancedDialog",
true, i18n("Advanced Background Settings"),
@@ -77,12 +77,12 @@ BGAdvancedDialog::BGAdvancedDialog(KBackgroundRenderer *_r,
dlg->m_listPrograms->header()->setStretchEnabled ( true, 1 );
dlg->m_listPrograms->setAllColumnsShowFocus(true);
- connect(dlg->m_listPrograms, SIGNAL(clicked(QListViewItem *)),
- SLOT(slotProgramItemClicked(QListViewItem *)));
+ connect(dlg->m_listPrograms, TQT_SIGNAL(clicked(TQListViewItem *)),
+ TQT_SLOT(slotProgramItemClicked(TQListViewItem *)));
// Load programs
- QStringList lst = KBackgroundProgram::list();
- QStringList::Iterator it;
+ TQStringList lst = KBackgroundProgram::list();
+ TQStringList::Iterator it;
for (it=lst.begin(); it != lst.end(); ++it)
addProgram(*it);
@@ -100,15 +100,15 @@ BGAdvancedDialog::BGAdvancedDialog(KBackgroundRenderer *_r,
dlg->m_spinCache->setSpecialValueText(i18n("Unlimited"));
dlg->m_spinCache->setSuffix(i18n(" KB"));
- connect(dlg->m_buttonAdd, SIGNAL(clicked()),
- SLOT(slotAdd()));
- connect(dlg->m_buttonRemove, SIGNAL(clicked()),
- SLOT(slotRemove()));
- connect(dlg->m_buttonModify, SIGNAL(clicked()),
- SLOT(slotModify()));
+ connect(dlg->m_buttonAdd, TQT_SIGNAL(clicked()),
+ TQT_SLOT(slotAdd()));
+ connect(dlg->m_buttonRemove, TQT_SIGNAL(clicked()),
+ TQT_SLOT(slotRemove()));
+ connect(dlg->m_buttonModify, TQT_SIGNAL(clicked()),
+ TQT_SLOT(slotModify()));
- connect(dlg->m_listPrograms, SIGNAL(doubleClicked(QListViewItem *)),
- SLOT(slotProgramItemDoubleClicked(QListViewItem *)));
+ connect(dlg->m_listPrograms, TQT_SIGNAL(doubleClicked(TQListViewItem *)),
+ TQT_SLOT(slotProgramItemDoubleClicked(TQListViewItem *)));
}
else
{
@@ -119,8 +119,8 @@ BGAdvancedDialog::BGAdvancedDialog(KBackgroundRenderer *_r,
dlg->m_groupCache->hide();
}
- connect( dlg->m_cbProgram, SIGNAL(toggled(bool)),
- SLOT(slotEnableProgram(bool)));
+ connect( dlg->m_cbProgram, TQT_SIGNAL(toggled(bool)),
+ TQT_SLOT(slotEnableProgram(bool)));
m_backgroundMode = m_oldBackgroundMode = r->backgroundMode();
if (m_oldBackgroundMode == KBackgroundSettings::Program)
@@ -146,23 +146,23 @@ int BGAdvancedDialog::cacheSize()
return dlg->m_spinCache->value();
}
-QColor BGAdvancedDialog::textColor()
+TQColor BGAdvancedDialog::textColor()
{
return dlg->m_colorText->color();
}
-void BGAdvancedDialog::setTextColor(const QColor &color)
+void BGAdvancedDialog::setTextColor(const TQColor &color)
{
dlg->m_colorText->setColor(color);
}
-QColor BGAdvancedDialog::textBackgroundColor()
+TQColor BGAdvancedDialog::textBackgroundColor()
{
return dlg->m_cbSolidTextBackground->isChecked() ?
- dlg->m_colorTextBackground->color() : QColor();
+ dlg->m_colorTextBackground->color() : TQColor();
}
-void BGAdvancedDialog::setTextBackgroundColor(const QColor &color)
+void BGAdvancedDialog::setTextBackgroundColor(const TQColor &color)
{
dlg->m_colorTextBackground->blockSignals(true);
dlg->m_cbSolidTextBackground->blockSignals(true);
@@ -214,7 +214,7 @@ int BGAdvancedDialog::textWidth() const
void BGAdvancedDialog::updateUI()
{
- QString prog = r->KBackgroundProgram::name();
+ TQString prog = r->KBackgroundProgram::name();
dlg->m_cbProgram->blockSignals(true);
if ((r->backgroundMode() == KBackgroundSettings::Program)
@@ -238,7 +238,7 @@ void BGAdvancedDialog::updateUI()
dlg->m_cbProgram->blockSignals(false);
}
-void BGAdvancedDialog::removeProgram(const QString &name)
+void BGAdvancedDialog::removeProgram(const TQString &name)
{
if (m_programItems.find(name))
{
@@ -247,7 +247,7 @@ void BGAdvancedDialog::removeProgram(const QString &name)
}
}
-void BGAdvancedDialog::addProgram(const QString &name)
+void BGAdvancedDialog::addProgram(const TQString &name)
{
removeProgram(name);
@@ -255,7 +255,7 @@ void BGAdvancedDialog::addProgram(const QString &name)
if (prog.command().isEmpty() || (prog.isGlobal() && !prog.isAvailable()))
return;
- QListViewItem *item = new QListViewItem(dlg->m_listPrograms);
+ TQListViewItem *item = new TQListViewItem(dlg->m_listPrograms);
item->setText(0, prog.name());
item->setText(1, prog.comment());
item->setText(2, i18n("%1 min.").arg(prog.refresh()));
@@ -263,11 +263,11 @@ void BGAdvancedDialog::addProgram(const QString &name)
m_programItems.insert(name, item);
}
-void BGAdvancedDialog::selectProgram(const QString &name)
+void BGAdvancedDialog::selectProgram(const TQString &name)
{
if (m_programItems.find(name))
{
- QListViewItem *item = m_programItems[name];
+ TQListViewItem *item = m_programItems[name];
dlg->m_listPrograms->ensureItemVisible(item);
dlg->m_listPrograms->setSelected(item, true);
m_selectedProgram = name;
@@ -278,9 +278,9 @@ void BGAdvancedDialog::slotAdd()
{
KProgramEditDialog dlg;
dlg.exec();
- if (dlg.result() == QDialog::Accepted)
+ if (dlg.result() == TQDialog::Accepted)
{
- QString program = dlg.program();
+ TQString program = dlg.program();
addProgram(program);
selectProgram(program);
}
@@ -309,7 +309,7 @@ void BGAdvancedDialog::slotRemove()
prog.remove();
removeProgram(m_selectedProgram);
- m_selectedProgram = QString::null;
+ m_selectedProgram = TQString::null;
}
/*
@@ -322,9 +322,9 @@ void BGAdvancedDialog::slotModify()
KProgramEditDialog dlg(m_selectedProgram);
dlg.exec();
- if (dlg.result() == QDialog::Accepted)
+ if (dlg.result() == TQDialog::Accepted)
{
- QString program = dlg.program();
+ TQString program = dlg.program();
if (program != m_selectedProgram)
{
KBackgroundProgram prog(m_selectedProgram);
@@ -336,14 +336,14 @@ void BGAdvancedDialog::slotModify()
}
}
-void BGAdvancedDialog::slotProgramItemClicked(QListViewItem *item)
+void BGAdvancedDialog::slotProgramItemClicked(TQListViewItem *item)
{
if (item)
m_selectedProgram = item->text(0);
slotProgramChanged();
}
-void BGAdvancedDialog::slotProgramItemDoubleClicked(QListViewItem *item)
+void BGAdvancedDialog::slotProgramItemDoubleClicked(TQListViewItem *item)
{
slotProgramItemClicked(item);
slotModify();
@@ -363,7 +363,7 @@ void BGAdvancedDialog::slotEnableProgram(bool b)
if (b)
{
dlg->m_listPrograms->blockSignals(true);
- QListViewItem *cur = dlg->m_listPrograms->currentItem();
+ TQListViewItem *cur = dlg->m_listPrograms->currentItem();
dlg->m_listPrograms->setSelected(cur, true);
dlg->m_listPrograms->ensureItemVisible(cur);
dlg->m_listPrograms->blockSignals(false);
@@ -375,7 +375,7 @@ void BGAdvancedDialog::slotEnableProgram(bool b)
}
}
-QString BGAdvancedDialog::backgroundProgram() const
+TQString BGAdvancedDialog::backgroundProgram() const
{
return m_selectedProgram;
}
@@ -387,48 +387,48 @@ int BGAdvancedDialog::backgroundMode() const
/**** KProgramEditDialog ****/
-KProgramEditDialog::KProgramEditDialog(const QString &program, QWidget *parent, char *name)
+KProgramEditDialog::KProgramEditDialog(const TQString &program, TQWidget *parent, char *name)
: KDialogBase(parent, name, true, i18n("Configure Background Program"),
Ok | Cancel, Ok, true)
{
- QFrame *frame = makeMainWidget();
+ TQFrame *frame = makeMainWidget();
- QGridLayout *grid = new QGridLayout(frame, 6, 2, 0, spacingHint());
+ TQGridLayout *grid = new TQGridLayout(frame, 6, 2, 0, spacingHint());
grid->addColSpacing(1, 300);
- QLabel *lbl = new QLabel(i18n("&Name:"), frame);
+ TQLabel *lbl = new TQLabel(i18n("&Name:"), frame);
grid->addWidget(lbl, 0, 0);
- m_NameEdit = new QLineEdit(frame);
+ m_NameEdit = new TQLineEdit(frame);
lbl->setBuddy(m_NameEdit);
grid->addWidget(m_NameEdit, 0, 1);
- lbl = new QLabel(i18n("Co&mment:"), frame);
+ lbl = new TQLabel(i18n("Co&mment:"), frame);
grid->addWidget(lbl, 1, 0);
- m_CommentEdit = new QLineEdit(frame);
+ m_CommentEdit = new TQLineEdit(frame);
lbl->setBuddy(m_CommentEdit);
grid->addWidget(m_CommentEdit, 1, 1);
- lbl = new QLabel(i18n("Comman&d:"), frame);
+ lbl = new TQLabel(i18n("Comman&d:"), frame);
grid->addWidget(lbl, 2, 0);
- m_CommandEdit = new QLineEdit(frame);
+ m_CommandEdit = new TQLineEdit(frame);
lbl->setBuddy(m_CommandEdit);
grid->addWidget(m_CommandEdit, 2, 1);
- lbl = new QLabel(i18n("&Preview cmd:"), frame);
+ lbl = new TQLabel(i18n("&Preview cmd:"), frame);
grid->addWidget(lbl, 3, 0);
- m_PreviewEdit = new QLineEdit(frame);
+ m_PreviewEdit = new TQLineEdit(frame);
lbl->setBuddy(m_PreviewEdit);
grid->addWidget(m_PreviewEdit, 3, 1);
- lbl = new QLabel(i18n("&Executable:"), frame);
+ lbl = new TQLabel(i18n("&Executable:"), frame);
grid->addWidget(lbl, 4, 0);
- m_ExecEdit = new QLineEdit(frame);
+ m_ExecEdit = new TQLineEdit(frame);
lbl->setBuddy(m_ExecEdit);
grid->addWidget(m_ExecEdit, 4, 1);
- lbl = new QLabel(i18n("&Refresh time:"), frame);
+ lbl = new TQLabel(i18n("&Refresh time:"), frame);
grid->addWidget(lbl, 5, 0);
- m_RefreshEdit = new QSpinBox(frame);
+ m_RefreshEdit = new TQSpinBox(frame);
m_RefreshEdit->setRange(5, 60);
m_RefreshEdit->setSteps(5, 10);
m_RefreshEdit->setSuffix(i18n(" min"));
@@ -459,14 +459,14 @@ KProgramEditDialog::KProgramEditDialog(const QString &program, QWidget *parent,
}
-QString KProgramEditDialog::program()const
+TQString KProgramEditDialog::program()const
{
return m_NameEdit->text();
}
void KProgramEditDialog::slotOk()
{
- QString s = m_NameEdit->text();
+ TQString s = m_NameEdit->text();
if (s.isEmpty()) {
KMessageBox::sorry(this, i18n("You did not fill in the `Name' field.\n"
"This is a required field."));
@@ -477,7 +477,7 @@ void KProgramEditDialog::slotOk()
if ((s != m_Program) && !prog.command().isEmpty()) {
int ret = KMessageBox::warningContinueCancel(this,
i18n("There is already a program with the name `%1'.\n"
- "Do you want to overwrite it?").arg(s),QString::null,i18n("Overwrite"));
+ "Do you want to overwrite it?").arg(s),TQString::null,i18n("Overwrite"));
if (ret != KMessageBox::Continue)
return;
}
diff --git a/kcontrol/background/bgadvanced.h b/kcontrol/background/bgadvanced.h
index 6ede665a1..8c2a0b801 100644
--- a/kcontrol/background/bgadvanced.h
+++ b/kcontrol/background/bgadvanced.h
@@ -23,9 +23,9 @@
#ifndef BGADVANCED_H
#define BGADVANCED_H
-#include <qdict.h>
-#include <qlistview.h>
-#include <qstringlist.h>
+#include <tqdict.h>
+#include <tqlistview.h>
+#include <tqstringlist.h>
#include <kdialogbase.h>
@@ -40,14 +40,14 @@ class BGAdvancedDialog : public KDialogBase
{
Q_OBJECT
public:
- BGAdvancedDialog(KBackgroundRenderer *_r, QWidget *parent, bool m_multidesktop);
+ BGAdvancedDialog(KBackgroundRenderer *_r, TQWidget *parent, bool m_multidesktop);
void setCacheSize(int s);
int cacheSize();
- QColor textColor();
- void setTextColor(const QColor &color);
- QColor textBackgroundColor();
- void setTextBackgroundColor(const QColor &color);
+ TQColor textColor();
+ void setTextColor(const TQColor &color);
+ TQColor textBackgroundColor();
+ void setTextBackgroundColor(const TQColor &color);
bool shadowEnabled();
void setShadowEnabled(bool enabled);
void setTextLines(int lines);
@@ -59,7 +59,7 @@ public:
void makeReadOnly();
- QString backgroundProgram() const;
+ TQString backgroundProgram() const;
int backgroundMode() const;
public slots:
@@ -68,13 +68,13 @@ public slots:
void slotModify();
protected:
- void addProgram(const QString &name);
- void removeProgram(const QString &name);
- void selectProgram(const QString &name);
+ void addProgram(const TQString &name);
+ void removeProgram(const TQString &name);
+ void selectProgram(const TQString &name);
protected slots:
- void slotProgramItemClicked(QListViewItem *item);
- void slotProgramItemDoubleClicked(QListViewItem *item);
+ void slotProgramItemClicked(TQListViewItem *item);
+ void slotProgramItemDoubleClicked(TQListViewItem *item);
void slotProgramChanged();
void slotEnableProgram(bool b);
@@ -83,9 +83,9 @@ private:
BGAdvancedBase *dlg;
- QWidget *m_pMonitor;
- QDict<QListViewItem> m_programItems;
- QString m_selectedProgram;
+ TQWidget *m_pMonitor;
+ TQDict<TQListViewItem> m_programItems;
+ TQString m_selectedProgram;
int m_oldBackgroundMode;
int m_backgroundMode;
};
@@ -98,21 +98,21 @@ class KProgramEditDialog: public KDialogBase
Q_OBJECT
public:
- KProgramEditDialog(const QString &program=QString::null, QWidget *parent=0L,
+ KProgramEditDialog(const TQString &program=TQString::null, TQWidget *parent=0L,
char *name=0L);
/** The program name is here in case the user changed it */
- QString program()const;
+ TQString program()const;
public slots:
void slotOk();
private:
- QString m_Program;
- QLineEdit *m_NameEdit, *m_CommentEdit;
- QLineEdit *m_ExecEdit, *m_CommandEdit;
- QLineEdit *m_PreviewEdit;
- QSpinBox *m_RefreshEdit;
+ TQString m_Program;
+ TQLineEdit *m_NameEdit, *m_CommentEdit;
+ TQLineEdit *m_ExecEdit, *m_CommandEdit;
+ TQLineEdit *m_PreviewEdit;
+ TQSpinBox *m_RefreshEdit;
KBackgroundProgram *m_Prog;
};
diff --git a/kcontrol/background/bgdefaults.h b/kcontrol/background/bgdefaults.h
index 99846f0b0..b7de45bda 100644
--- a/kcontrol/background/bgdefaults.h
+++ b/kcontrol/background/bgdefaults.h
@@ -26,8 +26,8 @@
// Per desktop defaults
// Before you change this get in touch with me (torsten@kde.org)
// Thanks!!
-#define _defColorA QColor("#003082")
-#define _defColorB QColor("#C0C0C0")
+#define _defColorA TQColor("#003082")
+#define _defColorB TQColor("#C0C0C0")
#define _defBackgroundMode KBackgroundSettings::Flat
#define _defWallpaperMode KBackgroundSettings::NoWallpaper
#define _defMultiMode KBackgroundSettings::NoMulti
diff --git a/kcontrol/background/bgdialog.cpp b/kcontrol/background/bgdialog.cpp
index 6a7e44234..ae76b701a 100644
--- a/kcontrol/background/bgdialog.cpp
+++ b/kcontrol/background/bgdialog.cpp
@@ -29,16 +29,16 @@
#include <config.h>
-#include <qbuttongroup.h>
-#include <qcheckbox.h>
-#include <qlabel.h>
-#include <qpainter.h>
-#include <qradiobutton.h>
-#include <qslider.h>
-#include <qtimer.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
-#include <qapplication.h>
+#include <tqbuttongroup.h>
+#include <tqcheckbox.h>
+#include <tqlabel.h>
+#include <tqpainter.h>
+#include <tqradiobutton.h>
+#include <tqslider.h>
+#include <tqtimer.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
+#include <tqapplication.h>
#include <kconfig.h>
#include <kdebug.h>
@@ -66,7 +66,7 @@
#define NR_PREDEF_PATTERNS 6
-BGDialog::BGDialog(QWidget* parent, KConfig* _config, bool _multidesktop)
+BGDialog::BGDialog(TQWidget* parent, KConfig* _config, bool _multidesktop)
: BGDialog_UI(parent, "BGDialog")
{
m_pGlobals = new KGlobalBackgroundSettings(_config);
@@ -77,20 +77,20 @@ BGDialog::BGDialog(QWidget* parent, KConfig* _config, bool _multidesktop)
KWinModule *m_kwin;
m_kwin = new KWinModule(this);
m_curDesk = m_kwin->currentDesktop();
- QSize s(m_kwin->numberOfViewports(m_kwin->currentDesktop()));
+ TQSize s(m_kwin->numberOfViewports(m_kwin->currentDesktop()));
m_useViewports = s.width() * s.height() > 1;
m_numDesks = m_multidesktop ? KWin::numberOfDesktops() : 1;
m_numViewports = s.width() * s.height();
- m_numScreens = QApplication::desktop()->numScreens();
+ m_numScreens = TQApplication::desktop()->numScreens();
- QCString multiHead = getenv("KDE_MULTIHEAD");
+ TQCString multiHead = getenv("KDE_MULTIHEAD");
if (multiHead.lower() == "true")
{
m_numScreens = 1;
}
- QPoint vx(m_kwin->currentViewport(m_kwin->currentDesktop()));
+ TQPoint vx(m_kwin->currentViewport(m_kwin->currentDesktop()));
int t_eViewport = (vx.x() * vx.y());
if (t_eViewport < 1) {
t_eViewport = 1;
@@ -101,7 +101,7 @@ BGDialog::BGDialog(QWidget* parent, KConfig* _config, bool _multidesktop)
m_desk = m_multidesktop ? (m_useViewports ? (((m_desk - 1) * m_numViewports) + t_eViewport) : m_desk) : m_desk;
m_numDesks = m_multidesktop ? (m_useViewports ? (m_numDesks * m_numViewports) : m_numDesks) : m_numDesks;
- m_screen = QApplication::desktop()->screenNumber(this);
+ m_screen = TQApplication::desktop()->screenNumber(this);
if (m_screen >= (int)m_numScreens)
m_screen = m_numScreens-1;
@@ -124,62 +124,62 @@ BGDialog::BGDialog(QWidget* parent, KConfig* _config, bool _multidesktop)
m_eScreen = 0;
}
- connect(m_buttonIdentifyScreens, SIGNAL(clicked()), SLOT(slotIdentifyScreens()));
+ connect(m_buttonIdentifyScreens, TQT_SIGNAL(clicked()), TQT_SLOT(slotIdentifyScreens()));
// preview monitor
m_pMonitorArrangement = new BGMonitorArrangement(m_screenArrangement, "monitor arrangement");
- connect(m_pMonitorArrangement, SIGNAL(imageDropped(const QString &)), SLOT(slotImageDropped(const QString &)));
+ connect(m_pMonitorArrangement, TQT_SIGNAL(imageDropped(const TQString &)), TQT_SLOT(slotImageDropped(const TQString &)));
if( m_multidesktop)
{
// desktop
- connect(m_comboDesktop, SIGNAL(activated(int)),
- SLOT(slotSelectDesk(int)));
+ connect(m_comboDesktop, TQT_SIGNAL(activated(int)),
+ TQT_SLOT(slotSelectDesk(int)));
}
if (m_numScreens > 1)
{
- connect(m_comboScreen, SIGNAL(activated(int)),
- SLOT(slotSelectScreen(int)));
+ connect(m_comboScreen, TQT_SIGNAL(activated(int)),
+ TQT_SLOT(slotSelectScreen(int)));
}
// background image settings
- QIconSet iconSet = SmallIconSet(QString::fromLatin1("fileopen"));
- QPixmap pixMap = iconSet.pixmap( QIconSet::Small, QIconSet::Normal );
+ TQIconSet iconSet = SmallIconSet(TQString::fromLatin1("fileopen"));
+ TQPixmap pixMap = iconSet.pixmap( TQIconSet::Small, TQIconSet::Normal );
m_urlWallpaperButton->setIconSet( iconSet );
m_urlWallpaperButton->setFixedSize( pixMap.width()+8, pixMap.height()+8 );
- QToolTip::add(m_urlWallpaperButton, i18n("Open file dialog"));
-
- connect(m_buttonGroupBackground, SIGNAL(clicked(int)),
- SLOT(slotWallpaperTypeChanged(int)));
- connect(m_urlWallpaperBox, SIGNAL(activated(int)),
- SLOT(slotWallpaper(int)));
- connect(m_urlWallpaperButton, SIGNAL(clicked()),
- SLOT(slotWallpaperSelection()));
- connect(m_comboWallpaperPos, SIGNAL(activated(int)),
- SLOT(slotWallpaperPos(int)));
- connect(m_buttonSetupWallpapers, SIGNAL(clicked()),
- SLOT(slotSetupMulti()));
+ TQToolTip::add(m_urlWallpaperButton, i18n("Open file dialog"));
+
+ connect(m_buttonGroupBackground, TQT_SIGNAL(clicked(int)),
+ TQT_SLOT(slotWallpaperTypeChanged(int)));
+ connect(m_urlWallpaperBox, TQT_SIGNAL(activated(int)),
+ TQT_SLOT(slotWallpaper(int)));
+ connect(m_urlWallpaperButton, TQT_SIGNAL(clicked()),
+ TQT_SLOT(slotWallpaperSelection()));
+ connect(m_comboWallpaperPos, TQT_SIGNAL(activated(int)),
+ TQT_SLOT(slotWallpaperPos(int)));
+ connect(m_buttonSetupWallpapers, TQT_SIGNAL(clicked()),
+ TQT_SLOT(slotSetupMulti()));
// set up the background colour stuff
- connect(m_colorPrimary, SIGNAL(changed(const QColor &)),
- SLOT(slotPrimaryColor(const QColor &)));
- connect(m_colorSecondary, SIGNAL(changed(const QColor &)),
- SLOT(slotSecondaryColor(const QColor &)));
- connect(m_comboPattern, SIGNAL(activated(int)),
- SLOT(slotPattern(int)));
+ connect(m_colorPrimary, TQT_SIGNAL(changed(const TQColor &)),
+ TQT_SLOT(slotPrimaryColor(const TQColor &)));
+ connect(m_colorSecondary, TQT_SIGNAL(changed(const TQColor &)),
+ TQT_SLOT(slotSecondaryColor(const TQColor &)));
+ connect(m_comboPattern, TQT_SIGNAL(activated(int)),
+ TQT_SLOT(slotPattern(int)));
// blend
- connect(m_comboBlend, SIGNAL(activated(int)), SLOT(slotBlendMode(int)));
- connect(m_sliderBlend, SIGNAL(valueChanged(int)),
- SLOT(slotBlendBalance(int)));
- connect(m_cbBlendReverse, SIGNAL(toggled(bool)),
- SLOT(slotBlendReverse(bool)));
+ connect(m_comboBlend, TQT_SIGNAL(activated(int)), TQT_SLOT(slotBlendMode(int)));
+ connect(m_sliderBlend, TQT_SIGNAL(valueChanged(int)),
+ TQT_SLOT(slotBlendBalance(int)));
+ connect(m_cbBlendReverse, TQT_SIGNAL(toggled(bool)),
+ TQT_SLOT(slotBlendReverse(bool)));
// advanced options
- connect(m_buttonAdvanced, SIGNAL(clicked()),
- SLOT(slotAdvanced()));
+ connect(m_buttonAdvanced, TQT_SIGNAL(clicked()),
+ TQT_SLOT(slotAdvanced()));
- connect(m_buttonGetNew, SIGNAL(clicked()),
- SLOT(slotGetNewStuff()));
+ connect(m_buttonGetNew, TQT_SIGNAL(clicked()),
+ TQT_SLOT(slotGetNewStuff()));
// renderers
m_renderer.resize(m_numDesks+1);
@@ -196,19 +196,19 @@ BGDialog::BGDialog(QWidget* parent, KConfig* _config, bool _multidesktop)
// Setup the merged-screen renderer
KBackgroundRenderer * r = new KBackgroundRenderer(eDesk, 0, false, _config);
m_renderer[i].insert( 0, r );
- connect( r, SIGNAL(imageDone(int,int)), SLOT(slotPreviewDone(int,int)) );
+ connect( r, TQT_SIGNAL(imageDone(int,int)), TQT_SLOT(slotPreviewDone(int,int)) );
// Setup the common-screen renderer
r = new KBackgroundRenderer(eDesk, 0, true, _config);
m_renderer[i].insert( 1, r );
- connect( r, SIGNAL(imageDone(int,int)), SLOT(slotPreviewDone(int,int)) );
+ connect( r, TQT_SIGNAL(imageDone(int,int)), TQT_SLOT(slotPreviewDone(int,int)) );
// Setup the remaining renderers for each screen
for (unsigned j=0; j < m_numScreens; ++j )
{
r = new KBackgroundRenderer(eDesk, j, true, _config);
m_renderer[i].insert( j+2, r );
- connect( r, SIGNAL(imageDone(int,int)), SLOT(slotPreviewDone(int,int)) );
+ connect( r, TQT_SIGNAL(imageDone(int,int)), TQT_SLOT(slotPreviewDone(int,int)) );
}
}
}
@@ -223,14 +223,14 @@ BGDialog::BGDialog(QWidget* parent, KConfig* _config, bool _multidesktop)
// set up the common desktop renderer
KBackgroundRenderer * r = new KBackgroundRenderer(0, 0, false, _config);
m_renderer[0].insert(0, r);
- connect(r, SIGNAL(imageDone(int,int)), SLOT(slotPreviewDone(int,int)));
+ connect(r, TQT_SIGNAL(imageDone(int,int)), TQT_SLOT(slotPreviewDone(int,int)));
// set up all the other desktop renderers
for (unsigned i = 0; i < m_numDesks; ++i)
{
r = new KBackgroundRenderer(i, 0, false, _config);
m_renderer[i+1].insert(0, r);
- connect(r, SIGNAL(imageDone(int,int)), SLOT(slotPreviewDone(int,int)));
+ connect(r, TQT_SIGNAL(imageDone(int,int)), TQT_SLOT(slotPreviewDone(int,int)));
}
}
@@ -257,7 +257,7 @@ BGDialog::BGDialog(QWidget* parent, KConfig* _config, bool _multidesktop)
updateUI();
#if (QT_VERSION-0 >= 0x030200)
- connect( qApp->desktop(), SIGNAL( resized( int )), SLOT( desktopResized())); // RANDR support
+ connect( qApp->desktop(), TQT_SIGNAL( resized( int )), TQT_SLOT( desktopResized())); // RANDR support
#endif
}
@@ -380,7 +380,7 @@ void BGDialog::defaults()
eRenderer()->setWallpaper( eRenderer()->wallpaper() );
}
-QString BGDialog::quickHelp() const
+TQString BGDialog::quickHelp() const
{
return i18n("<h1>Background</h1> This module allows you to control the"
" appearance of the virtual desktops. KDE offers a variety of options"
@@ -405,23 +405,23 @@ void BGDialog::slotIdentifyScreens()
// Taken from PositionTab::showIdentify in kdebase/kcontrol/kicker/positiontab_impl.cpp
for(unsigned s = 0; s < m_numScreens; s++)
{
- QLabel *screenLabel = new QLabel(0,"Screen Identify", WDestructiveClose | WStyle_Customize | WX11BypassWM);
+ TQLabel *screenLabel = new TQLabel(0,"Screen Identify", WDestructiveClose | WStyle_Customize | WX11BypassWM);
- QFont identifyFont(KGlobalSettings::generalFont());
+ TQFont identifyFont(KGlobalSettings::generalFont());
identifyFont.setPixelSize(100);
screenLabel->setFont(identifyFont);
- screenLabel->setFrameStyle(QFrame::Panel);
- screenLabel->setFrameShadow(QFrame::Plain);
+ screenLabel->setFrameStyle(TQFrame::Panel);
+ screenLabel->setFrameShadow(TQFrame::Plain);
screenLabel->setAlignment(Qt::AlignCenter);
screenLabel->setNum(int(s + 1));
// BUGLET: we should not allow the identification to be entered again
// until the timer fires.
- QTimer::singleShot(1500, screenLabel, SLOT(close()));
+ TQTimer::singleShot(1500, screenLabel, TQT_SLOT(close()));
- QPoint screenCenter(QApplication::desktop()->screenGeometry(s).center());
- QRect targetGeometry(QPoint(0,0),screenLabel->sizeHint());
+ TQPoint screenCenter(TQApplication::desktop()->screenGeometry(s).center());
+ TQRect targetGeometry(TQPoint(0,0),screenLabel->sizeHint());
targetGeometry.moveCenter(screenCenter);
screenLabel->setGeometry(targetGeometry);
@@ -448,7 +448,7 @@ void BGDialog::initUI()
// Screens
for (unsigned i = 0; i < m_numScreens; ++i)
- m_comboScreen->insertItem( i18n("Screen %1").arg(QString::number(i+1)) );
+ m_comboScreen->insertItem( i18n("Screen %1").arg(TQString::number(i+1)) );
// Patterns
m_comboPattern->insertItem(i18n("Single Color"));
@@ -460,7 +460,7 @@ void BGDialog::initUI()
m_patterns = KBackgroundPattern::list();
m_patterns.sort(); // Defined order
- QStringList::Iterator it;
+ TQStringList::Iterator it;
for (it=m_patterns.begin(); it != m_patterns.end(); ++it)
{
KBackgroundPattern pat(*it);
@@ -497,20 +497,20 @@ void BGDialog::initUI()
void BGDialog::loadWallpaperFilesList() {
// Wallpapers
- // the following QMap is lower cased names mapped to cased names and URLs
+ // the following TQMap is lower cased names mapped to cased names and URLs
// this way we get case insensitive sorting
- QMap<QString, QPair<QString, QString> > papers;
+ TQMap<TQString, QPair<TQString, TQString> > papers;
//search for .desktop files before searching for images without .desktop files
- QStringList lst = m_pDirs->findAllResources("wallpaper", "*desktop", false, true);
- QStringList files;
- for (QStringList::ConstIterator it = lst.begin(); it != lst.end(); ++it)
+ TQStringList lst = m_pDirs->findAllResources("wallpaper", "*desktop", false, true);
+ TQStringList files;
+ for (TQStringList::ConstIterator it = lst.begin(); it != lst.end(); ++it)
{
KSimpleConfig fileConfig(*it);
fileConfig.setGroup("Wallpaper");
- QString imageCaption = fileConfig.readEntry("Name");
- QString fileName = fileConfig.readEntry("File");
+ TQString imageCaption = fileConfig.readEntry("Name");
+ TQString fileName = fileConfig.readEntry("File");
if (imageCaption.isEmpty())
{
@@ -520,15 +520,15 @@ void BGDialog::loadWallpaperFilesList() {
}
// avoid name collisions
- QString rs = imageCaption;
- QString lrs = rs.lower();
+ TQString rs = imageCaption;
+ TQString lrs = rs.lower();
for (int n = 1; papers.find(lrs) != papers.end(); ++n)
{
- rs = imageCaption + " (" + QString::number(n) + ')';
+ rs = imageCaption + " (" + TQString::number(n) + ')';
lrs = rs.lower();
}
int slash = (*it).findRev('/') + 1;
- QString directory = (*it).left(slash);
+ TQString directory = (*it).left(slash);
bool canLoadScaleable = false;
#ifdef HAVE_LIBART
canLoadScaleable = true;
@@ -541,13 +541,13 @@ void BGDialog::loadWallpaperFilesList() {
//now find any wallpapers that don't have a .desktop file
lst = m_pDirs->findAllResources("wallpaper", "*", false, true);
- for (QStringList::ConstIterator it = lst.begin(); it != lst.end(); ++it)
+ for (TQStringList::ConstIterator it = lst.begin(); it != lst.end(); ++it)
{
if ( !(*it).endsWith(".desktop") && files.grep(*it).empty() ) {
// First try to see if we have a comment describing the image. If we do
// just use the first line of said comment.
KFileMetaInfo metaInfo(*it);
- QString imageCaption;
+ TQString imageCaption;
if (metaInfo.isValid() && metaInfo.item("Comment").isValid())
imageCaption = metaInfo.item("Comment").string().section('\n', 0, 0);
@@ -568,11 +568,11 @@ void BGDialog::loadWallpaperFilesList() {
}
// avoid name collisions
- QString rs = imageCaption;
- QString lrs = rs.lower();
+ TQString rs = imageCaption;
+ TQString lrs = rs.lower();
for (int n = 1; papers.find(lrs) != papers.end(); ++n)
{
- rs = imageCaption + " (" + QString::number(n) + ')';
+ rs = imageCaption + " (" + TQString::number(n) + ')';
lrs = rs.lower();
}
papers[lrs] = qMakePair(rs, *it);
@@ -583,7 +583,7 @@ void BGDialog::loadWallpaperFilesList() {
comboWallpaper->clear();
m_wallpaper.clear();
int i = 0;
- for (QMap<QString, QPair<QString, QString> >::Iterator it = papers.begin();
+ for (TQMap<TQString, QPair<TQString, TQString> >::Iterator it = papers.begin();
it != papers.end();
++it)
{
@@ -593,7 +593,7 @@ void BGDialog::loadWallpaperFilesList() {
}
}
-void BGDialog::setWallpaper(const QString &s)
+void BGDialog::setWallpaper(const TQString &s)
{
KComboBox *comboWallpaper = m_urlWallpaperBox;
comboWallpaper->blockSignals(true);
@@ -601,7 +601,7 @@ void BGDialog::setWallpaper(const QString &s)
if (m_wallpaper.find(s) == m_wallpaper.end())
{
int i = comboWallpaper->count();
- QString imageCaption;
+ TQString imageCaption;
int slash = s.findRev('/') + 1;
int endDot = s.findRev('.');
@@ -628,13 +628,13 @@ void BGDialog::setWallpaper(const QString &s)
void BGDialog::slotWallpaperSelection()
{
- KFileDialog dlg( QString::null, QString::null, this,
+ KFileDialog dlg( TQString::null, TQString::null, this,
"file dialog", true );
KImageFilePreview* previewWidget = new KImageFilePreview(&dlg);
dlg.setPreviewWidget(previewWidget);
- QStringList mimeTypes = KImageIO::mimeTypes( KImageIO::Reading );
+ TQStringList mimeTypes = KImageIO::mimeTypes( KImageIO::Reading );
#ifdef HAVE_LIBART
mimeTypes += "image/svg+xml";
#endif
@@ -643,8 +643,8 @@ void BGDialog::slotWallpaperSelection()
dlg.setCaption( i18n("Select Wallpaper") );
int j = m_urlWallpaperBox->currentItem();
- QString uri;
- for(QMap<QString,int>::ConstIterator it = m_wallpaper.begin();
+ TQString uri;
+ for(TQMap<TQString,int>::ConstIterator it = m_wallpaper.begin();
it != m_wallpaper.end();
++it)
{
@@ -659,7 +659,7 @@ void BGDialog::slotWallpaperSelection()
dlg.setSelection( uri );
}
- if ( dlg.exec() == QDialog::Accepted )
+ if ( dlg.exec() == TQDialog::Accepted )
{
setWallpaper(dlg.selectedFile());
@@ -819,7 +819,7 @@ void BGDialog::slotPreviewDone(int desk_done, int screen_done)
r->saveCacheFile();
KPixmap pm;
- if (QPixmap::defaultDepth() < 15)
+ if (TQPixmap::defaultDepth() < 15)
pm.convertFromImage(r->image(), KPixmap::LowColor);
else
pm.convertFromImage(r->image());
@@ -839,7 +839,7 @@ void BGDialog::slotPreviewDone(int desk_done, int screen_done)
}
}
-void BGDialog::slotImageDropped(const QString &uri)
+void BGDialog::slotImageDropped(const TQString &uri)
{
setWallpaper(uri);
@@ -911,8 +911,8 @@ void BGDialog::slotWallpaperTypeChanged(int i)
r->setMultiWallpaperMode(KBackgroundSettings::NoMultiRandom);
int j = m_urlWallpaperBox->currentItem();
- QString path;
- for(QMap<QString,int>::ConstIterator it = m_wallpaper.begin();
+ TQString path;
+ for(TQMap<TQString,int>::ConstIterator it = m_wallpaper.begin();
it != m_wallpaper.end();
++it)
{
@@ -929,7 +929,7 @@ void BGDialog::slotWallpaperTypeChanged(int i)
// If the image is greater than 800x600 default to using scaled mode,
// otherwise default to tiled.
- QSize s = metaInfo.item("Dimensions").value().toSize();
+ TQSize s = metaInfo.item("Dimensions").value().toSize();
if (s.width() >= 800 && s.height() >= 600)
m_wallpaperPos = KBackgroundSettings::Scaled;
else
@@ -997,7 +997,7 @@ void BGDialog::slotSetupMulti()
KBackgroundRenderer *r = eRenderer();
BGMultiWallpaperDialog dlg(r, topLevelWidget());
- if (dlg.exec() == QDialog::Accepted) {
+ if (dlg.exec() == TQDialog::Accepted) {
r->stop();
m_slideShowRandom = r->multiWallpaperMode();
r->setWallpaperMode(m_wallpaperPos);
@@ -1008,7 +1008,7 @@ void BGDialog::slotSetupMulti()
}
}
-void BGDialog::slotPrimaryColor(const QColor &color)
+void BGDialog::slotPrimaryColor(const TQColor &color)
{
KBackgroundRenderer *r = eRenderer();
@@ -1023,7 +1023,7 @@ void BGDialog::slotPrimaryColor(const QColor &color)
emit changed(true);
}
-void BGDialog::slotSecondaryColor(const QColor &color)
+void BGDialog::slotSecondaryColor(const TQColor &color)
{
KBackgroundRenderer *r = eRenderer();
diff --git a/kcontrol/background/bgdialog.h b/kcontrol/background/bgdialog.h
index 8782b73f7..30bb0f004 100644
--- a/kcontrol/background/bgdialog.h
+++ b/kcontrol/background/bgdialog.h
@@ -20,9 +20,9 @@
#ifndef _BGDIALOG_H_
#define _BGDIALOG_H_
-#include <qptrvector.h>
-#include <qmap.h>
-#include <qvaluevector.h>
+#include <tqptrvector.h>
+#include <tqmap.h>
+#include <tqvaluevector.h>
#include "bgdialog_ui.h"
#include "bgrender.h"
@@ -36,7 +36,7 @@ class BGDialog : public BGDialog_UI
{
Q_OBJECT
public:
- BGDialog(QWidget* parent, KConfig* _config, bool _multidesktop = true);
+ BGDialog(TQWidget* parent, KConfig* _config, bool _multidesktop = true);
~BGDialog();
void load( bool useDefaults );
@@ -45,7 +45,7 @@ public:
void makeReadOnly();
- QString quickHelp() const;
+ TQString quickHelp() const;
signals:
void changed(bool);
@@ -55,7 +55,7 @@ protected:
void updateUI();
KBackgroundRenderer * eRenderer();
- void setWallpaper(const QString &);
+ void setWallpaper(const TQString &);
void loadWallpaperFilesList();
@@ -68,10 +68,10 @@ protected slots:
void slotWallpaperPos(int);
void slotWallpaperSelection();
void slotSetupMulti();
- void slotPrimaryColor(const QColor &color);
- void slotSecondaryColor(const QColor &color);
+ void slotPrimaryColor(const TQColor &color);
+ void slotSecondaryColor(const TQColor &color);
void slotPattern(int pattern);
- void slotImageDropped(const QString &uri);
+ void slotImageDropped(const TQString &uri);
void slotPreviewDone(int desk, int screen);
void slotAdvanced();
void slotGetNewStuff();
@@ -95,9 +95,9 @@ protected:
int m_screen;
int m_eDesk;
int m_eScreen;
- QValueVector< QPtrVector<KBackgroundRenderer> > m_renderer; // m_renderer[desk][screen]
- QMap<QString,int> m_wallpaper;
- QStringList m_patterns;
+ TQValueVector< TQPtrVector<KBackgroundRenderer> > m_renderer; // m_renderer[desk][screen]
+ TQMap<TQString,int> m_wallpaper;
+ TQStringList m_patterns;
int m_slideShowRandom; // Remembers last Slide Show setting
int m_wallpaperPos; // Remembers last wallpaper pos
diff --git a/kcontrol/background/bghash.h b/kcontrol/background/bghash.h
index 932c6ebab..ab13daf90 100644
--- a/kcontrol/background/bghash.h
+++ b/kcontrol/background/bghash.h
@@ -2,13 +2,13 @@
#define BGHASH_H
/*
- * QString -> int hash. From Qt's QGDict::hashKeyString().
+ * TQString -> int hash. From Qt's TQGDict::hashKeyString().
*/
-static int QHash(QString key)
+static int QHash(TQString key)
{
int g, h = 0;
- const QChar *p = key.unicode();
+ const TQChar *p = key.unicode();
for (unsigned i=0; i < key.length(); i++) {
h = (h << 4) + p[i].cell();
if ((g = (h & 0xf0000000)))
diff --git a/kcontrol/background/bgmonitor.cpp b/kcontrol/background/bgmonitor.cpp
index 6af2f7458..f78a7b616 100644
--- a/kcontrol/background/bgmonitor.cpp
+++ b/kcontrol/background/bgmonitor.cpp
@@ -27,9 +27,9 @@
#include <kpixmap.h>
#include <kstandarddirs.h>
#include <kurldrag.h>
-#include <qapplication.h>
-#include <qpixmap.h>
-#include <qwhatsthis.h>
+#include <tqapplication.h>
+#include <tqpixmap.h>
+#include <tqwhatsthis.h>
#include "bgmonitor.h"
@@ -38,17 +38,17 @@
// Geometry of "display" part of monitor image: (23,14)-[151x115]
//BEGIN class BGMonitorArrangement
-BGMonitorArrangement::BGMonitorArrangement(QWidget *parent, const char *name)
- : QWidget(parent, name)
+BGMonitorArrangement::BGMonitorArrangement(TQWidget *parent, const char *name)
+ : TQWidget(parent, name)
{
- m_pBGMonitor.resize( QApplication::desktop()->numScreens(), 0l );
+ m_pBGMonitor.resize( TQApplication::desktop()->numScreens(), 0l );
- for (int screen = 0; screen < QApplication::desktop()->numScreens(); ++screen)
+ for (int screen = 0; screen < TQApplication::desktop()->numScreens(); ++screen)
{
BGMonitorLabel * label = new BGMonitorLabel(this);
m_pBGMonitor[screen] = label;
- connect( label->monitor(), SIGNAL(imageDropped(const QString &)), this, SIGNAL(imageDropped(const QString &)) );
+ connect( label->monitor(), TQT_SIGNAL(imageDropped(const TQString &)), this, TQT_SIGNAL(imageDropped(const TQString &)) );
}
parent->setFixedSize(200, 186);
@@ -63,27 +63,27 @@ BGMonitor * BGMonitorArrangement::monitor( unsigned screen ) const
}
-QRect BGMonitorArrangement::expandToPreview( QRect r ) const
+TQRect BGMonitorArrangement::expandToPreview( TQRect r ) const
{
double scaleX = 200.0 / 151.0;
double scaleY = 186.0 / 115.0;
- return QRect( int(r.x()*scaleX), int(r.y()*scaleY), int(r.width()*scaleX), int(r.height()*scaleY) );
+ return TQRect( int(r.x()*scaleX), int(r.y()*scaleY), int(r.width()*scaleX), int(r.height()*scaleY) );
}
-QSize BGMonitorArrangement::expandToPreview( QSize s ) const
+TQSize BGMonitorArrangement::expandToPreview( TQSize s ) const
{
double scaleX = 200.0 / 151.0;
double scaleY = 186.0 / 115.0;
- return QSize( int(s.width()*scaleX), int(s.height()*scaleY) );
+ return TQSize( int(s.width()*scaleX), int(s.height()*scaleY) );
}
-QPoint BGMonitorArrangement::expandToPreview( QPoint p ) const
+TQPoint BGMonitorArrangement::expandToPreview( TQPoint p ) const
{
double scaleX = 200.0 / 151.0;
double scaleY = 186.0 / 115.0;
- return QPoint( int(p.x()*scaleX), int(p.y()*scaleY) );
+ return TQPoint( int(p.x()*scaleX), int(p.y()*scaleY) );
}
@@ -94,11 +94,11 @@ void BGMonitorArrangement::updateArrangement()
// image that contains the preview of the background. The monitor image
// will set the background preview back to the normal value.
- QRect overallGeometry;
- for (int screen = 0; screen < QApplication::desktop()->numScreens(); ++screen)
- overallGeometry |= QApplication::desktop()->screenGeometry(screen);
+ TQRect overallGeometry;
+ for (int screen = 0; screen < TQApplication::desktop()->numScreens(); ++screen)
+ overallGeometry |= TQApplication::desktop()->screenGeometry(screen);
- QRect expandedOverallGeometry = expandToPreview(overallGeometry);
+ TQRect expandedOverallGeometry = expandToPreview(overallGeometry);
double scale = QMIN(
double(width()) / double(expandedOverallGeometry.width()),
@@ -107,16 +107,16 @@ void BGMonitorArrangement::updateArrangement()
m_combinedPreviewSize = overallGeometry.size() * scale;
- m_maxPreviewSize = QSize(0,0);
+ m_maxPreviewSize = TQSize(0,0);
int previousMax = 0;
- for (int screen = 0; screen < QApplication::desktop()->numScreens(); ++screen)
+ for (int screen = 0; screen < TQApplication::desktop()->numScreens(); ++screen)
{
- QPoint topLeft = (QApplication::desktop()->screenGeometry(screen).topLeft() - overallGeometry.topLeft()) * scale;
- QPoint expandedTopLeft = expandToPreview(topLeft);
+ TQPoint topLeft = (TQApplication::desktop()->screenGeometry(screen).topLeft() - overallGeometry.topLeft()) * scale;
+ TQPoint expandedTopLeft = expandToPreview(topLeft);
- QSize previewSize = QApplication::desktop()->screenGeometry(screen).size() * scale;
- QSize expandedPreviewSize = expandToPreview(previewSize);
+ TQSize previewSize = TQApplication::desktop()->screenGeometry(screen).size() * scale;
+ TQSize expandedPreviewSize = expandToPreview(previewSize);
if ( (previewSize.width() * previewSize.height()) > previousMax )
{
@@ -124,16 +124,16 @@ void BGMonitorArrangement::updateArrangement()
m_maxPreviewSize = previewSize;
}
- m_pBGMonitor[screen]->setPreviewPosition( QRect( topLeft, previewSize ) );
- m_pBGMonitor[screen]->setGeometry( QRect( expandedTopLeft, expandedPreviewSize ) );
+ m_pBGMonitor[screen]->setPreviewPosition( TQRect( topLeft, previewSize ) );
+ m_pBGMonitor[screen]->setGeometry( TQRect( expandedTopLeft, expandedPreviewSize ) );
m_pBGMonitor[screen]->updateMonitorGeometry();
}
}
-void BGMonitorArrangement::resizeEvent( QResizeEvent * e )
+void BGMonitorArrangement::resizeEvent( TQResizeEvent * e )
{
- QWidget::resizeEvent(e);
+ TQWidget::resizeEvent(e);
updateArrangement();
}
@@ -142,9 +142,9 @@ void BGMonitorArrangement::setPixmap( const KPixmap & pm )
{
for (unsigned screen = 0; screen < m_pBGMonitor.size(); ++screen)
{
- QRect position = m_pBGMonitor[screen]->previewPosition();
+ TQRect position = m_pBGMonitor[screen]->previewPosition();
- QPixmap monitorPixmap( position.size(), pm.depth() );
+ TQPixmap monitorPixmap( position.size(), pm.depth() );
copyBlt( &monitorPixmap, 0, 0, &pm, position.x(), position.y(), position.width(), position.height() );
m_pBGMonitor[screen]->monitor()->setPixmap(monitorPixmap);
}
@@ -154,15 +154,15 @@ void BGMonitorArrangement::setPixmap( const KPixmap & pm )
//BEGIN class BGMonitorLabel
-BGMonitorLabel::BGMonitorLabel(QWidget *parent, const char *name)
- : QLabel(parent, name)
+BGMonitorLabel::BGMonitorLabel(TQWidget *parent, const char *name)
+ : TQLabel(parent, name)
{
setAlignment(AlignCenter);
setScaledContents(true);
- setPixmap( QPixmap( locate("data", "kcontrol/pics/monitor.png") ) );
+ setPixmap( TQPixmap( locate("data", "kcontrol/pics/monitor.png") ) );
m_pBGMonitor = new BGMonitor(this);
- QWhatsThis::add( this, i18n("This picture of a monitor contains a preview of what the current settings will look like on your desktop.") );
+ TQWhatsThis::add( this, i18n("This picture of a monitor contains a preview of what the current settings will look like on your desktop.") );
}
@@ -171,14 +171,14 @@ void BGMonitorLabel::updateMonitorGeometry()
double scaleX = double(width()) / double(sizeHint().width());
double scaleY = double(height()) / double(sizeHint().height());
- kdDebug() << k_funcinfo << " Setting geometry to " << QRect( int(23*scaleX), int(14*scaleY), int(151*scaleX), int(115*scaleY) ) << endl;
+ kdDebug() << k_funcinfo << " Setting geometry to " << TQRect( int(23*scaleX), int(14*scaleY), int(151*scaleX), int(115*scaleY) ) << endl;
m_pBGMonitor->setGeometry( int(23*scaleX), int(14*scaleY), int(151*scaleX), int(115*scaleY) );
}
-void BGMonitorLabel::resizeEvent( QResizeEvent * e )
+void BGMonitorLabel::resizeEvent( TQResizeEvent * e )
{
- QWidget::resizeEvent(e);
+ TQWidget::resizeEvent(e);
updateMonitorGeometry();
}
//END class BGMonitorLabel
@@ -186,8 +186,8 @@ void BGMonitorLabel::resizeEvent( QResizeEvent * e )
//BEGIN class BGMonitor
-BGMonitor::BGMonitor(QWidget *parent, const char *name)
- : QLabel(parent, name)
+BGMonitor::BGMonitor(TQWidget *parent, const char *name)
+ : TQLabel(parent, name)
{
setAlignment(AlignCenter);
setScaledContents(true);
@@ -195,7 +195,7 @@ BGMonitor::BGMonitor(QWidget *parent, const char *name)
}
-void BGMonitor::dropEvent(QDropEvent *e)
+void BGMonitor::dropEvent(TQDropEvent *e)
{
if (!KURLDrag::canDecode(e))
return;
@@ -208,7 +208,7 @@ void BGMonitor::dropEvent(QDropEvent *e)
}
}
-void BGMonitor::dragEnterEvent(QDragEnterEvent *e)
+void BGMonitor::dragEnterEvent(TQDragEnterEvent *e)
{
if (KURLDrag::canDecode(e))
e->accept(rect());
diff --git a/kcontrol/background/bgmonitor.h b/kcontrol/background/bgmonitor.h
index 1e714194e..92cf5eef4 100644
--- a/kcontrol/background/bgmonitor.h
+++ b/kcontrol/background/bgmonitor.h
@@ -25,9 +25,9 @@
#ifndef _BGMONITOR_H_
#define _BGMONITOR_H_
-#include <qlabel.h>
-#include <qvaluevector.h>
-#include <qwidget.h>
+#include <tqlabel.h>
+#include <tqvaluevector.h>
+#include <tqwidget.h>
class BGMonitor;
class BGMonitorLabel;
@@ -41,32 +41,32 @@ class BGMonitorArrangement : public QWidget
{
Q_OBJECT
public:
- BGMonitorArrangement(QWidget *parent, const char *name=0L);
+ BGMonitorArrangement(TQWidget *parent, const char *name=0L);
/**
* Splits up the pixmap according to monitor geometries and sets each
* BGMonitor pixmap accordingly.
*/
void setPixmap( const KPixmap & pm );
- QSize combinedPreviewSize() const { return m_combinedPreviewSize; }
- QSize maxPreviewSize() const { return m_maxPreviewSize; }
+ TQSize combinedPreviewSize() const { return m_combinedPreviewSize; }
+ TQSize maxPreviewSize() const { return m_maxPreviewSize; }
unsigned numMonitors() const { return m_pBGMonitor.size(); }
BGMonitor * monitor( unsigned screen ) const;
void updateArrangement();
signals:
- void imageDropped(const QString &);
+ void imageDropped(const TQString &);
protected:
- virtual void resizeEvent( QResizeEvent * );
- QRect expandToPreview( QRect r ) const;
- QSize expandToPreview( QSize s ) const;
- QPoint expandToPreview( QPoint p ) const;
+ virtual void resizeEvent( TQResizeEvent * );
+ TQRect expandToPreview( TQRect r ) const;
+ TQSize expandToPreview( TQSize s ) const;
+ TQPoint expandToPreview( TQPoint p ) const;
- QValueVector<BGMonitorLabel*> m_pBGMonitor;
- QSize m_combinedPreviewSize;
- QSize m_maxPreviewSize;
+ TQValueVector<BGMonitorLabel*> m_pBGMonitor;
+ TQSize m_combinedPreviewSize;
+ TQSize m_maxPreviewSize;
};
/**
@@ -75,18 +75,18 @@ protected:
class BGMonitorLabel : public QLabel
{
public:
- BGMonitorLabel(QWidget *parent, const char *name=0L);
+ BGMonitorLabel(TQWidget *parent, const char *name=0L);
BGMonitor * monitor() const { return m_pBGMonitor; }
void updateMonitorGeometry();
- void setPreviewPosition( QRect r ) { m_previewPosition = r; }
- QRect previewPosition() const { return m_previewPosition; }
+ void setPreviewPosition( TQRect r ) { m_previewPosition = r; }
+ TQRect previewPosition() const { return m_previewPosition; }
protected:
- virtual void resizeEvent( QResizeEvent * );
+ virtual void resizeEvent( TQResizeEvent * );
BGMonitor * m_pBGMonitor;
- QRect m_previewPosition;
+ TQRect m_previewPosition;
};
@@ -97,14 +97,14 @@ class BGMonitor : public QLabel
{
Q_OBJECT
public:
- BGMonitor(QWidget *parent, const char *name=0L);
+ BGMonitor(TQWidget *parent, const char *name=0L);
signals:
- void imageDropped(const QString &);
+ void imageDropped(const TQString &);
protected:
- virtual void dropEvent(QDropEvent *);
- virtual void dragEnterEvent(QDragEnterEvent *);
+ virtual void dropEvent(TQDropEvent *);
+ virtual void dragEnterEvent(TQDragEnterEvent *);
};
diff --git a/kcontrol/background/bgrender.cpp b/kcontrol/background/bgrender.cpp
index 47d52b193..4aca82145 100644
--- a/kcontrol/background/bgrender.cpp
+++ b/kcontrol/background/bgrender.cpp
@@ -14,11 +14,11 @@
#include <stdlib.h>
#include <utime.h>
-#include <qtimer.h>
-#include <qpainter.h>
-#include <qimage.h>
-#include <qfileinfo.h>
-#include <qdir.h>
+#include <tqtimer.h>
+#include <tqpainter.h>
+#include <tqimage.h>
+#include <tqfileinfo.h>
+#include <tqdir.h>
#include <dcopclient.h>
#include <kapplication.h>
@@ -61,8 +61,8 @@ KBackgroundRenderer::KBackgroundRenderer(int desk, int screen, bool drawBackgrou
m_Cached = false;
m_TilingEnabled = false;
- m_pTimer = new QTimer(this);
- connect(m_pTimer, SIGNAL(timeout()), SLOT(render()));
+ m_pTimer = new TQTimer(this);
+ connect(m_pTimer, TQT_SIGNAL(timeout()), TQT_SLOT(render()));
}
@@ -74,7 +74,7 @@ KBackgroundRenderer::~KBackgroundRenderer()
}
-void KBackgroundRenderer::setSize(const QSize &size)
+void KBackgroundRenderer::setSize(const TQSize &size)
{
m_rSize = m_Size = size;
}
@@ -91,7 +91,7 @@ void KBackgroundRenderer::desktopResized()
}
-void KBackgroundRenderer::tile(QImage& dest, QRect rect, const QImage& src)
+void KBackgroundRenderer::tile(TQImage& dest, TQRect rect, const TQImage& src)
{
rect &= dest.rect();
@@ -110,19 +110,19 @@ void KBackgroundRenderer::tile(QImage& dest, QRect rect, const QImage& src)
* Build a command line to run the program.
*/
-QString KBackgroundRenderer::buildCommand()
+TQString KBackgroundRenderer::buildCommand()
{
- QString num;
+ TQString num;
int pos = 0;
- QString cmd;
+ TQString cmd;
if (m_bPreview)
cmd = previewCommand();
else
cmd = command();
if (cmd.isEmpty())
- return QString();
+ return TQString();
while ((pos = cmd.find('%', pos)) != -1) {
@@ -182,13 +182,13 @@ int KBackgroundRenderer::doBackground(bool quit)
}
int retval = Done;
- QString file;
+ TQString file;
static unsigned int tileWidth = 0;
static unsigned int tileHeight = 0;
if( tileWidth == 0 )
{
- int tile_val = QPixmap::defaultDepth() >= 24 ? 1 : 2;
+ int tile_val = TQPixmap::defaultDepth() >= 24 ? 1 : 2;
// some dithering may be needed even with bpb==15/16, so don't use tileWidth==1
// for them
// with tileWidth>2, repainting the desktop causes nasty effect (XFree86 4.1.0 )
@@ -238,15 +238,15 @@ int KBackgroundRenderer::doBackground(bool quit)
delete m_pProc;
m_pProc = new KShellProcess;
*m_pProc << file;
- connect(m_pProc, SIGNAL(processExited(KProcess *)),
- SLOT(slotBackgroundDone(KProcess *)));
+ connect(m_pProc, TQT_SIGNAL(processExited(KProcess *)),
+ TQT_SLOT(slotBackgroundDone(KProcess *)));
m_pProc->start(KShellProcess::NotifyOnExit);
retval = Wait;
break;
case HorizontalGradient:
{
- QSize size = m_Size;
+ TQSize size = m_Size;
// on <16bpp displays the gradient sucks when tiled because of dithering
if( canTile())
size.setHeight( tileHeight );
@@ -256,7 +256,7 @@ int KBackgroundRenderer::doBackground(bool quit)
}
case VerticalGradient:
{
- QSize size = m_Size;
+ TQSize size = m_Size;
// on <16bpp displays the gradient sucks when tiled because of dithering
if( canTile())
size.setWidth( tileWidth );
@@ -298,14 +298,14 @@ int KBackgroundRenderer::doWallpaper(bool quit)
int wpmode= enabled()?wallpaperMode():NoWallpaper;
- m_Wallpaper = QImage();
+ m_Wallpaper = TQImage();
if (wpmode != NoWallpaper) {
wp_load:
if (currentWallpaper().isEmpty()) {
wpmode = NoWallpaper;
goto wp_out;
}
- QString file = m_pDirs->findResource("wallpaper", currentWallpaper());
+ TQString file = m_pDirs->findResource("wallpaper", currentWallpaper());
if (file.isEmpty()) {
wpmode = NoWallpaper;
goto wp_out;
@@ -362,7 +362,7 @@ wp_load:
}
if (svgEngine->load(svgWidth, svgHeight, file )) {
- QImage *image = svgEngine->image();
+ TQImage *image = svgEngine->image();
m_Wallpaper = *image;
delete image;
} else {
@@ -394,7 +394,7 @@ wp_load:
{
xs = ys = 1;
}
- if( m_Wallpaper.size() != QSize( xs, ys ))
+ if( m_Wallpaper.size() != TQSize( xs, ys ))
m_Wallpaper = m_Wallpaper.smoothScale(xs, ys);
}
@@ -456,7 +456,7 @@ wp_out:
int ww = m_Wallpaper.width(); // wallpaper width/height
int wh = m_Wallpaper.height();
- m_WallpaperRect = QRect(); // to be filled destination rectangle; may exceed desktop!
+ m_WallpaperRect = TQRect(); // to be filled destination rectangle; may exceed desktop!
switch (wpmode)
{
@@ -474,7 +474,7 @@ wp_out:
case Scaled:
ww = w;
wh = h;
- if( m_WallpaperRect.size() != QSize( w, h ))
+ if( m_WallpaperRect.size() != TQSize( w, h ))
m_Wallpaper = m_Wallpaper.smoothScale( w, h );
m_WallpaperRect.setRect(0, 0, w, h);
break;
@@ -495,7 +495,7 @@ wp_out:
wh = (int)(sx * wh);
ww = w;
}
- if( m_WallpaperRect.size() != QSize( ww, wh ))
+ if( m_WallpaperRect.size() != TQSize( ww, wh ))
m_Wallpaper = m_Wallpaper.smoothScale(ww, wh);
m_WallpaperRect.setRect((w - ww) / 2, (h - wh) / 2, ww, wh);
break;
@@ -511,7 +511,7 @@ wp_out:
wh = (int)(sx * wh);
ww = w;
}
- if( m_WallpaperRect.size() != QSize( ww, wh ))
+ if( m_WallpaperRect.size() != TQSize( ww, wh ))
m_Wallpaper = m_Wallpaper.smoothScale(ww, wh);
m_WallpaperRect.setRect(0, 0, w, h);
break;
@@ -529,7 +529,7 @@ wp_out:
wh = h;
ww = (int)(sy*ww);
}
- if( m_WallpaperRect.size() != QSize( ww, wh ))
+ if( m_WallpaperRect.size() != TQSize( ww, wh ))
m_Wallpaper = m_Wallpaper.smoothScale(ww, wh);
m_WallpaperRect.setRect((w - ww) / 2, (h - wh) / 2,w, h);
break;
@@ -563,10 +563,10 @@ void KBackgroundRenderer::wallpaperBlend()
}
// works only for NoBlending and no alpha in wallpaper
-// but is much faster than QImage fidling
+// but is much faster than TQImage fidling
void KBackgroundRenderer::fastWallpaperBlend()
{
- m_Image = QImage();
+ m_Image = TQImage();
// copy background to m_pPixmap
if( !enabled() || (wallpaperMode() == NoWallpaper && canTile())) {
// if there's no wallpaper, no need to tile the pixmap to the size of desktop, as X does
@@ -584,22 +584,22 @@ void KBackgroundRenderer::fastWallpaperBlend()
m_Pixmap.convertFromImage( m_Wallpaper );
return;
}
- else if( m_WallpaperRect.contains( QRect( QPoint( 0, 0 ), m_Size ))
+ else if( m_WallpaperRect.contains( TQRect( TQPoint( 0, 0 ), m_Size ))
&& !m_Wallpaper.hasAlphaBuffer()) // wallpaper covers all and no blending
- m_Pixmap = QPixmap( m_Size );
+ m_Pixmap = TQPixmap( m_Size );
else if (m_Background.size() == m_Size)
m_Pixmap.convertFromImage( m_Background );
else {
- m_Pixmap = QPixmap( m_Size );
- QPainter p( &m_Pixmap );
- QPixmap pm;
+ m_Pixmap = TQPixmap( m_Size );
+ TQPainter p( &m_Pixmap );
+ TQPixmap pm;
pm.convertFromImage( m_Background );
p.drawTiledPixmap( 0, 0, m_Size.width(), m_Size.height(), pm );
}
// paint/alpha-blend wallpaper to destination rectangle of m_pPixmap
if (m_WallpaperRect.isValid()) {
- QPixmap wp_pixmap;
+ TQPixmap wp_pixmap;
if( useShm() && !m_Wallpaper.hasAlphaBuffer()) {
KPixmapIO io;
wp_pixmap = io.convertToPixmap( m_Wallpaper );
@@ -619,7 +619,7 @@ void KBackgroundRenderer::fastWallpaperBlend()
void KBackgroundRenderer::fullWallpaperBlend()
{
- m_Pixmap = QPixmap();
+ m_Pixmap = TQPixmap();
int w = m_Size.width(); // desktop width/height
int h = m_Size.height();
// copy background to m_pImage
@@ -631,7 +631,7 @@ void KBackgroundRenderer::fullWallpaperBlend()
} else {
m_Image.create(w, h, 32);
- tile(m_Image, QRect(0, 0, w, h), m_Background);
+ tile(m_Image, TQRect(0, 0, w, h), m_Background);
}
// blend wallpaper to destination rectangle of m_pImage
@@ -644,8 +644,8 @@ void KBackgroundRenderer::fullWallpaperBlend()
int wh = m_Wallpaper.height();
for (int y = m_WallpaperRect.top(); y < m_WallpaperRect.bottom(); y += wh) {
for (int x = m_WallpaperRect.left(); x < m_WallpaperRect.right(); x += ww) {
- blend(m_Image, QRect(x, y, ww, wh), m_Wallpaper,
- QPoint(-QMIN(x, 0), -QMIN(y, 0)), blendFactor);
+ blend(m_Image, TQRect(x, y, ww, wh), m_Wallpaper,
+ TQPoint(-QMIN(x, 0), -QMIN(y, 0)), blendFactor);
}
}
}
@@ -714,10 +714,10 @@ void KBackgroundRenderer::fullWallpaperBlend()
}
/* Alpha blend an area from <src> with offset <soffs> to rectangle <dr> of <dst>
- * Default offset is QPoint(0, 0).
+ * Default offset is TQPoint(0, 0).
* blendfactor = [0, 100%]
*/
-void KBackgroundRenderer::blend(QImage& dst, QRect dr, const QImage& src, QPoint soffs, int blendFactor)
+void KBackgroundRenderer::blend(TQImage& dst, TQRect dr, const TQImage& src, TQPoint soffs, int blendFactor)
{
int x, y, a;
dr &= dst.rect();
@@ -785,17 +785,17 @@ void KBackgroundRenderer::render()
return;
if( !(m_State & InitCheck)) {
- QString f = cacheFileName();
+ TQString f = cacheFileName();
if( useCacheFile()) {
- QString w = m_pDirs->findResource("wallpaper", currentWallpaper());
- QFileInfo wi( w );
- QFileInfo fi( f );
+ TQString w = m_pDirs->findResource("wallpaper", currentWallpaper());
+ TQFileInfo wi( w );
+ TQFileInfo fi( f );
if( wi.lastModified().isValid() && fi.lastModified().isValid()
&& wi.lastModified() < fi.lastModified()) {
- QImage im;
+ TQImage im;
if( im.load( f, "PNG" )) {
m_Image = im;
- m_Pixmap = QPixmap( m_Size );
+ m_Pixmap = TQPixmap( m_Size );
m_Pixmap.convertFromImage( m_Image );
m_Cached = true;
m_State |= InitCheck | BackgroundDone | WallpaperDone;
@@ -857,9 +857,9 @@ void KBackgroundRenderer::setBusyCursor(bool isBusy) {
return;
m_isBusyCursor = isBusy;
if(isBusy)
- QApplication::setOverrideCursor( KCursor::workingCursor() );
+ TQApplication::setOverrideCursor( KCursor::workingCursor() );
else
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
}
/*
@@ -882,18 +882,18 @@ void KBackgroundRenderer::stop()
void KBackgroundRenderer::cleanup()
{
setBusyCursor(false);
- m_Background = QImage();
- m_Image = QImage();
- m_Pixmap = QPixmap();
- m_Wallpaper = QImage();
+ m_Background = TQImage();
+ m_Image = TQImage();
+ m_Pixmap = TQPixmap();
+ m_Wallpaper = TQImage();
delete m_pProc; m_pProc = 0L;
m_State = 0;
- m_WallpaperRect = QRect();
+ m_WallpaperRect = TQRect();
m_Cached = false;
}
-void KBackgroundRenderer::setPreview(const QSize &size)
+void KBackgroundRenderer::setPreview(const TQSize &size)
{
if (size.isNull())
m_bPreview = false;
@@ -904,24 +904,24 @@ void KBackgroundRenderer::setPreview(const QSize &size)
}
-QPixmap KBackgroundRenderer::pixmap()
+TQPixmap KBackgroundRenderer::pixmap()
{
if (m_State & AllDone) {
if( m_Pixmap.isNull())
m_Pixmap.convertFromImage( m_Image );
return m_Pixmap;
}
- return QPixmap();
+ return TQPixmap();
}
-QImage KBackgroundRenderer::image()
+TQImage KBackgroundRenderer::image()
{
if (m_State & AllDone) {
if( m_Image.isNull())
fullWallpaperBlend(); // create from m_Pixmap
return m_Image;
}
- return QImage();
+ return TQImage();
}
@@ -943,12 +943,12 @@ void KBackgroundRenderer::createTempFile()
m_Tempfile = new KTempFile();
}
-QString KBackgroundRenderer::cacheFileName()
+TQString KBackgroundRenderer::cacheFileName()
{
- QString f = fingerprint();
+ TQString f = fingerprint();
f.replace ( ':', '_' ); // avoid characters that shouldn't be in filenames
f.replace ( '/', '#' );
- f = locateLocal( "cache", QString( "background/%1x%2_%3.png" )
+ f = locateLocal( "cache", TQString( "background/%1x%2_%3.png" )
.arg( m_Size.width()).arg( m_Size.height()).arg( f ));
return f;
}
@@ -961,7 +961,7 @@ bool KBackgroundRenderer::useCacheFile() const
return false; // don't cache these at all
if( wallpaperMode() == NoWallpaper )
return false; // generating only background patterns should be always faster
- QString file = currentWallpaper();
+ TQString file = currentWallpaper();
if( file.endsWith(".svg") || file.endsWith(".svgz"))
return true; // cache these, they can be bloody slow
switch( backgroundMode())
@@ -989,21 +989,21 @@ void KBackgroundRenderer::saveCacheFile()
return;
if( m_Image.isNull())
fullWallpaperBlend(); // generate from m_Pixmap
- QString f = cacheFileName();
+ TQString f = cacheFileName();
if( KStandardDirs::exists( f ) || m_Cached )
- utime( QFile::encodeName( f ), NULL );
+ utime( TQFile::encodeName( f ), NULL );
else {
m_Image.save( f, "PNG" );
// remove old entries from the cache
- QDir dir( locateLocal( "cache", "background/" ));
- if( const QFileInfoList* list = dir.entryInfoList( "*.png", QDir::Files, QDir::Time | QDir::Reversed )) {
+ TQDir dir( locateLocal( "cache", "background/" ));
+ if( const QFileInfoList* list = dir.entryInfoList( "*.png", TQDir::Files, TQDir::Time | TQDir::Reversed )) {
int size = 0;
for( QFileInfoListIterator it( *list );
- QFileInfo* info = it.current();
+ TQFileInfo* info = it.current();
++it )
size += info->size();
for( QFileInfoListIterator it( *list );
- QFileInfo* info = it.current();
+ TQFileInfo* info = it.current();
++it ) {
if( size < 8 * 1024 * 1024 )
break;
@@ -1012,7 +1012,7 @@ void KBackgroundRenderer::saveCacheFile()
&& ( time_t ) info->lastModified().toTime_t() >= time( NULL ) - 10 * 60 )
break;
size -= info->size();
- QFile::remove( info->absFilePath());
+ TQFile::remove( info->absFilePath());
}
}
}
@@ -1032,7 +1032,7 @@ KVirtualBGRenderer::KVirtualBGRenderer( int desk, KConfig *config )
int screen_number = 0;
if (qt_xdisplay())
screen_number = DefaultScreen(qt_xdisplay());
- QCString configname;
+ TQCString configname;
if (screen_number == 0)
configname = "kdesktoprc";
else
@@ -1067,7 +1067,7 @@ KBackgroundRenderer * KVirtualBGRenderer::renderer(unsigned screen)
}
-QPixmap KVirtualBGRenderer::pixmap()
+TQPixmap KVirtualBGRenderer::pixmap()
{
if (m_numRenderers == 1)
return m_renderer[0]->pixmap();
@@ -1123,7 +1123,7 @@ void KVirtualBGRenderer::changeWallpaper()
int KVirtualBGRenderer::hash()
{
- QString fp;
+ TQString fp;
for (unsigned i=0; i<m_numRenderers; ++i)
{
fp += m_renderer[i]->fingerprint();
@@ -1158,7 +1158,7 @@ void KVirtualBGRenderer::desktopResized()
if (m_pPixmap)
{
delete m_pPixmap;
- m_pPixmap = new QPixmap(m_size);
+ m_pPixmap = new TQPixmap(m_size);
m_pPixmap->fill(Qt::black);
}
@@ -1166,7 +1166,7 @@ void KVirtualBGRenderer::desktopResized()
}
-void KVirtualBGRenderer::setPreview(const QSize & size)
+void KVirtualBGRenderer::setPreview(const TQSize & size)
{
if (m_size == size)
return;
@@ -1177,22 +1177,22 @@ void KVirtualBGRenderer::setPreview(const QSize & size)
m_pPixmap->resize(m_size);
// Scaling factors
- m_scaleX = float(m_size.width()) / float(QApplication::desktop()->size().width());
- m_scaleY = float(m_size.height()) / float(QApplication::desktop()->size().height());
+ m_scaleX = float(m_size.width()) / float(TQApplication::desktop()->size().width());
+ m_scaleY = float(m_size.height()) / float(TQApplication::desktop()->size().height());
// Scale renderers appropriately
for (unsigned i=0; i<m_renderer.size(); ++i)
{
- QSize unscaledRendererSize = renderSize(i);
+ TQSize unscaledRendererSize = renderSize(i);
- m_renderer[i]->setPreview( QSize(
+ m_renderer[i]->setPreview( TQSize(
int(unscaledRendererSize.width() * m_scaleX),
int(unscaledRendererSize.height() * m_scaleY) ) );
}
}
-QSize KVirtualBGRenderer::renderSize(int screen)
+TQSize KVirtualBGRenderer::renderSize(int screen)
{
return m_bDrawBackgroundPerScreen ? KApplication::desktop()->screenGeometry(screen).size() : KApplication::desktop()->geometry().size();
}
@@ -1201,7 +1201,7 @@ QSize KVirtualBGRenderer::renderSize(int screen)
void KVirtualBGRenderer::initRenderers()
{
m_pConfig->setGroup("Background Common");
- m_bDrawBackgroundPerScreen = m_pConfig->readBoolEntry( QString("DrawBackgroundPerScreen_%1").arg(m_desk), _defDrawBackgroundPerScreen );
+ m_bDrawBackgroundPerScreen = m_pConfig->readBoolEntry( TQString("DrawBackgroundPerScreen_%1").arg(m_desk), _defDrawBackgroundPerScreen );
m_bCommonScreen = m_pConfig->readBoolEntry("CommonScreen", _defCommonScreen);
@@ -1223,7 +1223,7 @@ void KVirtualBGRenderer::initRenderers()
KBackgroundRenderer * r = new KBackgroundRenderer( m_desk, eScreen, m_bDrawBackgroundPerScreen, m_pConfig );
m_renderer.insert( i, r );
r->setSize(renderSize(i));
- connect( r, SIGNAL(imageDone(int,int)), this, SLOT(screenDone(int,int)) );
+ connect( r, TQT_SIGNAL(imageDone(int,int)), this, TQT_SLOT(screenDone(int,int)) );
}
}
@@ -1263,21 +1263,21 @@ void KVirtualBGRenderer::screenDone(int _desk, int _screen)
{
// There's more than one renderer, so we are drawing each output to our own pixmap
- QRect overallGeometry;
+ TQRect overallGeometry;
for (int i=0; i < KApplication::desktop()->numScreens(); ++i) {
overallGeometry |= KApplication::desktop()->screenGeometry(i);
}
- QPoint drawPos = KApplication::desktop()->screenGeometry(screen).topLeft() - overallGeometry.topLeft();
+ TQPoint drawPos = KApplication::desktop()->screenGeometry(screen).topLeft() - overallGeometry.topLeft();
drawPos.setX( int(drawPos.x() * m_scaleX) );
drawPos.setY( int(drawPos.y() * m_scaleY) );
- QPixmap source = m_renderer[screen]->pixmap();
- QSize renderSize = this->renderSize(screen);
+ TQPixmap source = m_renderer[screen]->pixmap();
+ TQSize renderSize = this->renderSize(screen);
renderSize.setWidth( int(renderSize.width() * m_scaleX) );
renderSize.setHeight( int(renderSize.height() * m_scaleY) );
- QPainter p(m_pPixmap);
+ TQPainter p(m_pPixmap);
if (renderSize == source.size())
p.drawPixmap( drawPos, source );
@@ -1308,7 +1308,7 @@ void KVirtualBGRenderer::start()
if (m_numRenderers > 1)
{
- m_pPixmap = new QPixmap(m_size);
+ m_pPixmap = new TQPixmap(m_size);
// If are screen sizes do not properly tile the overall virtual screen
// size, then we want the untiled parts to be black for use in desktop
// previews, etc
diff --git a/kcontrol/background/bgrender.h b/kcontrol/background/bgrender.h
index 39e00ff5d..055512618 100644
--- a/kcontrol/background/bgrender.h
+++ b/kcontrol/background/bgrender.h
@@ -11,10 +11,10 @@
#ifndef BGRender_h_Included
#define BGRender_h_Included
-#include <qobject.h>
-#include <qptrvector.h>
-#include <qimage.h>
-#include <qpixmap.h>
+#include <tqobject.h>
+#include <tqptrvector.h>
+#include <tqimage.h>
+#include <tqpixmap.h>
#include "bgsettings.h"
@@ -30,13 +30,13 @@ class KShellProcess;
class KStandardDirs;
/**
- * This class renders a desktop background to a QImage. The operation is
+ * This class renders a desktop background to a TQImage. The operation is
* asynchronous: connect to the signal imageDone() to find out when the
* rendering is finished. It also has support for preview images, like
* the monitor in kcmdisplay.
*/
class KBackgroundRenderer:
- public QObject,
+ public TQObject,
public KBackgroundSettings
{
Q_OBJECT
@@ -47,11 +47,11 @@ public:
void load(int desk, int screen, bool drawBackgroundPerScreen, bool reparseConfig=true);
- void setPreview(const QSize &size);
- void setSize(const QSize &size);
+ void setPreview(const TQSize &size);
+ void setSize(const TQSize &size);
- QPixmap pixmap();
- QImage image();
+ TQPixmap pixmap();
+ TQImage image();
bool isActive() { return m_State & Rendering; }
void cleanup();
void saveCacheFile();
@@ -79,10 +79,10 @@ private:
WallpaperStarted = 0x10, WallpaperDone = 0x20,
AllDone = 0x40 };
- QString buildCommand();
+ TQString buildCommand();
void createTempFile();
- void tile(QImage& dst, QRect rect, const QImage& src);
- void blend(QImage& dst, QRect dr, const QImage& src, QPoint soffs = QPoint(0, 0), int blendFactor=100);
+ void tile(TQImage& dst, TQRect rect, const TQImage& src);
+ void blend(TQImage& dst, TQRect dr, const TQImage& src, TQPoint soffs = TQPoint(0, 0), int blendFactor=100);
void wallpaperBlend();
void fastWallpaperBlend();
@@ -91,7 +91,7 @@ private:
int doBackground(bool quit=false);
int doWallpaper(bool quit=false);
void setBusyCursor(bool isBusy);
- QString cacheFileName();
+ TQString cacheFileName();
bool useCacheFile() const;
bool canTile() const;
@@ -103,11 +103,11 @@ private:
bool m_TilingEnabled;
KTempFile* m_Tempfile;
- QSize m_Size, m_rSize;
- QRect m_WallpaperRect;
- QImage m_Image, m_Background, m_Wallpaper;
- QPixmap m_Pixmap;
- QTimer *m_pTimer;
+ TQSize m_Size, m_rSize;
+ TQRect m_WallpaperRect;
+ TQImage m_Image, m_Background, m_Wallpaper;
+ TQPixmap m_Pixmap;
+ TQTimer *m_pTimer;
KStandardDirs *m_pDirs;
KShellProcess *m_pProc;
@@ -130,9 +130,9 @@ public:
KBackgroundRenderer * renderer(unsigned screen);
unsigned numRenderers() const { return m_numRenderers; }
- QPixmap pixmap();
+ TQPixmap pixmap();
- void setPreview(const QSize & size);
+ void setPreview(const TQSize & size);
bool needProgramUpdate();
void programUpdate();
@@ -159,7 +159,7 @@ private slots:
void screenDone(int desk, int screen);
private:
- QSize renderSize(int screen); // the size the renderer should be
+ TQSize renderSize(int screen); // the size the renderer should be
void initRenderers();
KConfig *m_pConfig;
@@ -170,11 +170,11 @@ private:
bool m_bDrawBackgroundPerScreen;
bool m_bCommonScreen;
bool m_bDeleteConfig;
- QSize m_size;
+ TQSize m_size;
- QMemArray<bool> m_bFinished;
- QPtrVector<KBackgroundRenderer> m_renderer;
- QPixmap *m_pPixmap;
+ TQMemArray<bool> m_bFinished;
+ TQPtrVector<KBackgroundRenderer> m_renderer;
+ TQPixmap *m_pPixmap;
};
diff --git a/kcontrol/background/bgsettings.cpp b/kcontrol/background/bgsettings.cpp
index 9b657393f..8d3bdac0f 100644
--- a/kcontrol/background/bgsettings.cpp
+++ b/kcontrol/background/bgsettings.cpp
@@ -17,8 +17,8 @@
#undef Bool
#undef Unsorted
-#include <qdir.h>
-#include <qpixmap.h>
+#include <tqdir.h>
+#include <tqpixmap.h>
#include <dcopclient.h>
#include <kapplication.h>
@@ -37,7 +37,7 @@
/**** KBackgroundPattern ****/
-KBackgroundPattern::KBackgroundPattern(QString name)
+KBackgroundPattern::KBackgroundPattern(TQString name)
{
dirty = false;
hashdirty = true;
@@ -70,7 +70,7 @@ void KBackgroundPattern::copyConfig(const KBackgroundPattern *settings)
m_File = settings->m_File;
}
-void KBackgroundPattern::load(QString name)
+void KBackgroundPattern::load(TQString name)
{
m_Name = name;
init();
@@ -91,12 +91,12 @@ void KBackgroundPattern::init(bool force_rw)
m_pConfig->setGroup("KDE Desktop Pattern");
- QFileInfo fi(m_File);
+ TQFileInfo fi(m_File);
m_bReadOnly = !fi.isWritable();
}
-void KBackgroundPattern::setComment(const QString &comment)
+void KBackgroundPattern::setComment(const TQString &comment)
{
if (m_Comment == comment)
return;
@@ -105,7 +105,7 @@ void KBackgroundPattern::setComment(const QString &comment)
}
-void KBackgroundPattern::setPattern(QString pattern)
+void KBackgroundPattern::setPattern(TQString pattern)
{
if (m_Pattern == pattern)
return;
@@ -147,10 +147,10 @@ bool KBackgroundPattern::isAvailable()
{
if (m_Pattern.isEmpty())
return false;
- QString file = m_Pattern;
+ TQString file = m_Pattern;
if (file.at(0) != '/')
file = m_pDirs->findResource("dtop_pattern", file);
- QFileInfo fi(file);
+ TQFileInfo fi(file);
return (fi.exists());
}
@@ -159,11 +159,11 @@ bool KBackgroundPattern::remove()
{
if (m_bReadOnly)
return false;
- return !unlink(QFile::encodeName(m_File));
+ return !unlink(TQFile::encodeName(m_File));
}
-QString KBackgroundPattern::fingerprint()
+TQString KBackgroundPattern::fingerprint()
{
return m_File;
}
@@ -180,14 +180,14 @@ int KBackgroundPattern::hash()
/* static */
-QStringList KBackgroundPattern::list()
+TQStringList KBackgroundPattern::list()
{
KStandardDirs *dirs = KGlobal::dirs();
dirs->addResourceType("dtop_pattern", dirs->kde_default("data") +
"kdesktop/patterns");
- QStringList lst = dirs->findAllResources("dtop_pattern", "*.desktop",
+ TQStringList lst = dirs->findAllResources("dtop_pattern", "*.desktop",
false, true);
- QStringList::Iterator it;
+ TQStringList::Iterator it;
for (it=lst.begin(); it!=lst.end(); ++it) {
// Strip path and suffix
int pos = (*it).findRev('/');
@@ -204,7 +204,7 @@ QStringList KBackgroundPattern::list()
/**** KBackgroundProgram ****/
-KBackgroundProgram::KBackgroundProgram(QString name)
+KBackgroundProgram::KBackgroundProgram(TQString name)
{
dirty = false;
hashdirty = true;
@@ -262,7 +262,7 @@ void KBackgroundProgram::init(bool force_rw)
}
-void KBackgroundProgram::load(const QString &name)
+void KBackgroundProgram::load(const TQString &name)
{
m_Name = name;
init();
@@ -270,7 +270,7 @@ void KBackgroundProgram::load(const QString &name)
}
-void KBackgroundProgram::setComment(const QString &comment)
+void KBackgroundProgram::setComment(const TQString &comment)
{
if (m_Comment == comment)
return;
@@ -279,7 +279,7 @@ void KBackgroundProgram::setComment(const QString &comment)
}
-void KBackgroundProgram::setExecutable(const QString &executable)
+void KBackgroundProgram::setExecutable(const TQString &executable)
{
if (m_Executable == executable)
return;
@@ -288,7 +288,7 @@ void KBackgroundProgram::setExecutable(const QString &executable)
}
-void KBackgroundProgram::setCommand(const QString &command)
+void KBackgroundProgram::setCommand(const TQString &command)
{
if (m_Command == command)
return;
@@ -297,7 +297,7 @@ void KBackgroundProgram::setCommand(const QString &command)
}
-void KBackgroundProgram::setPreviewCommand(const QString &command)
+void KBackgroundProgram::setPreviewCommand(const TQString &command)
{
if (m_PreviewCommand == command)
return;
@@ -358,7 +358,7 @@ bool KBackgroundProgram::remove()
{
if (m_bReadOnly)
return false;
- return !unlink(QFile::encodeName(m_File));
+ return !unlink(TQFile::encodeName(m_File));
}
@@ -374,9 +374,9 @@ void KBackgroundProgram::update()
}
-QString KBackgroundProgram::fingerprint()
+TQString KBackgroundProgram::fingerprint()
{
- return QString("co:%1;re:%2").arg(m_Command).arg(m_Refresh);
+ return TQString("co:%1;re:%2").arg(m_Command).arg(m_Refresh);
}
@@ -391,14 +391,14 @@ int KBackgroundProgram::hash()
/* static */
-QStringList KBackgroundProgram::list()
+TQStringList KBackgroundProgram::list()
{
KStandardDirs *dirs = KGlobal::dirs();
dirs->addResourceType("dtop_program", dirs->kde_default("data") +
"kdesktop/programs");
- QStringList lst = dirs->findAllResources("dtop_program", "*.desktop",
+ TQStringList lst = dirs->findAllResources("dtop_program", "*.desktop",
false, true);
- QStringList::Iterator it;
+ TQStringList::Iterator it;
for (it=lst.begin(); it!=lst.end(); ++it) {
// Strip path and suffix
int pos = (*it).findRev('/');
@@ -428,7 +428,7 @@ KBackgroundSettings::KBackgroundSettings(int desk, int screen, bool drawBackgrou
// Default values.
defColorA = _defColorA;
defColorB = _defColorB;
- if (QPixmap::defaultDepth() > 8)
+ if (TQPixmap::defaultDepth() > 8)
defBackgroundMode = _defBackgroundMode;
else
defBackgroundMode = Flat;
@@ -495,7 +495,7 @@ KBackgroundSettings::KBackgroundSettings(int desk, int screen, bool drawBackgrou
int screen_number = 0;
if (qt_xdisplay())
screen_number = DefaultScreen(qt_xdisplay());
- QCString configname;
+ TQCString configname;
if (screen_number == 0)
configname = "kdesktoprc";
else
@@ -558,7 +558,7 @@ void KBackgroundSettings::load(int desk, int screen, bool drawBackgroundPerScree
}
-void KBackgroundSettings::setColorA(const QColor& color)
+void KBackgroundSettings::setColorA(const TQColor& color)
{
if (m_ColorA == color)
return;
@@ -567,7 +567,7 @@ void KBackgroundSettings::setColorA(const QColor& color)
}
-void KBackgroundSettings::setColorB(const QColor& color)
+void KBackgroundSettings::setColorB(const TQColor& color)
{
if (m_ColorB == color)
return;
@@ -576,7 +576,7 @@ void KBackgroundSettings::setColorB(const QColor& color)
}
-void KBackgroundSettings::setPatternName(QString name)
+void KBackgroundSettings::setPatternName(TQString name)
{
int ohash = KBackgroundPattern::hash();
KBackgroundPattern::load(name);
@@ -588,7 +588,7 @@ void KBackgroundSettings::setPatternName(QString name)
}
-void KBackgroundSettings::setProgram(QString name)
+void KBackgroundSettings::setProgram(TQString name)
{
int ohash = KBackgroundProgram::hash();
KBackgroundProgram::load(name);
@@ -633,7 +633,7 @@ void KBackgroundSettings::setReverseBlending(bool value)
}
-void KBackgroundSettings::setWallpaper(QString wallpaper)
+void KBackgroundSettings::setWallpaper(TQString wallpaper)
{
dirty = hashdirty = true;
m_Wallpaper = wallpaper;
@@ -649,7 +649,7 @@ void KBackgroundSettings::setWallpaperMode(int mode)
}
-void KBackgroundSettings::setWallpaperList(QStringList list)
+void KBackgroundSettings::setWallpaperList(TQStringList list)
{
KStandardDirs *d = KGlobal::dirs();
if (m_WallpaperList == list)
@@ -657,10 +657,10 @@ void KBackgroundSettings::setWallpaperList(QStringList list)
dirty = hashdirty = true;
m_WallpaperList.clear();
- for(QStringList::ConstIterator it = list.begin();
+ for(TQStringList::ConstIterator it = list.begin();
it != list.end(); ++it)
{
- QString rpath = d->relativeLocation("wallpaper", *it);
+ TQString rpath = d->relativeLocation("wallpaper", *it);
m_WallpaperList.append( !rpath.isEmpty() ? rpath : *it );
}
updateWallpaperFiles();
@@ -704,9 +704,9 @@ bool KBackgroundSettings::optimize() const
case AlwaysOpt :
return true;
case Opt16bpp :
- return QPixmap::defaultDepth() >= 16;
+ return TQPixmap::defaultDepth() >= 16;
case Opt15bpp :
- return QPixmap::defaultDepth() >= 15;
+ return TQPixmap::defaultDepth() >= 15;
case NeverOpt :
default :
return false;
@@ -721,12 +721,12 @@ void KBackgroundSettings::setUseShm(bool use)
m_bShm = use;
}
-QString KBackgroundSettings::configGroupName() const
+TQString KBackgroundSettings::configGroupName() const
{
- QString screenName;
+ TQString screenName;
if (m_bDrawBackgroundPerScreen)
- screenName = QString("Screen%1").arg(QString::number(m_Screen));
- return QString("Desktop%1%2").arg(m_Desk).arg(screenName);
+ screenName = TQString("Screen%1").arg(TQString::number(m_Screen));
+ return TQString("Desktop%1%2").arg(m_Desk).arg(screenName);
}
void KBackgroundSettings::readSettings(bool reparse)
@@ -740,7 +740,7 @@ void KBackgroundSettings::readSettings(bool reparse)
m_ColorA = m_pConfig->readColorEntry("Color1", &defColorA);
m_ColorB = m_pConfig->readColorEntry("Color2", &defColorB);
- QString s = m_pConfig->readPathEntry("Pattern");
+ TQString s = m_pConfig->readPathEntry("Pattern");
if (!s.isEmpty())
KBackgroundPattern::load(s);
@@ -853,25 +853,25 @@ void KBackgroundSettings::writeSettings()
*/
void KBackgroundSettings::updateWallpaperFiles()
{
- QStringList::Iterator it;
+ TQStringList::Iterator it;
m_WallpaperFiles.clear();
for (it=m_WallpaperList.begin(); it!=m_WallpaperList.end(); ++it) {
- QString file = locate("wallpaper", *it);
+ TQString file = locate("wallpaper", *it);
if (file.isEmpty())
continue;
- QFileInfo fi(file);
+ TQFileInfo fi(file);
if (!fi.exists())
continue;
if (fi.isFile() && fi.isReadable())
m_WallpaperFiles.append(file);
if (fi.isDir()) {
- QDir dir(file);
- QStringList lst = dir.entryList(QDir::Files | QDir::Readable);
- QStringList::Iterator it;
+ TQDir dir(file);
+ TQStringList lst = dir.entryList(TQDir::Files | TQDir::Readable);
+ TQStringList::Iterator it;
for (it=lst.begin(); it!=lst.end(); ++it)
{
file = dir.absFilePath(*it);
- QFileInfo fi(file);
+ TQFileInfo fi(file);
if (fi.isFile() && fi.isReadable())
m_WallpaperFiles.append(file);
}
@@ -889,8 +889,8 @@ void KBackgroundSettings::randomizeWallpaperFiles()
return;
KRandomSequence rseq;
- QStringList tmpList = m_WallpaperFiles;
- QStringList randomList;
+ TQStringList tmpList = m_WallpaperFiles;
+ TQStringList randomList;
randomList.append(tmpList.front());
tmpList.pop_front();
while(tmpList.count())
@@ -904,21 +904,21 @@ void KBackgroundSettings::randomizeWallpaperFiles()
m_WallpaperFiles = randomList;
}
-QStringList KBackgroundSettings::wallpaperList() const
+TQStringList KBackgroundSettings::wallpaperList() const
{
if ( m_WallpaperMode == NoWallpaper )
- return QStringList();
+ return TQStringList();
if ( m_MultiMode == NoMulti || m_MultiMode == NoMultiRandom )
- return QStringList(m_Wallpaper);
+ return TQStringList(m_Wallpaper);
return m_WallpaperList;
}
-QStringList KBackgroundSettings::wallpaperFiles() const
+TQStringList KBackgroundSettings::wallpaperFiles() const
{
if ( m_WallpaperMode == NoWallpaper )
- return QStringList();
+ return TQStringList();
if ( m_MultiMode == NoMulti || m_MultiMode == NoMultiRandom )
- return QStringList(m_Wallpaper);
+ return TQStringList(m_Wallpaper);
return m_WallpaperFiles;
}
@@ -930,7 +930,7 @@ void KBackgroundSettings::changeWallpaper(bool init)
if (m_WallpaperFiles.count() == 0) {
if( init ) {
m_CurrentWallpaper = 0;
- m_CurrentWallpaperName = QString();
+ m_CurrentWallpaperName = TQString();
}
return;
}
@@ -967,16 +967,16 @@ void KBackgroundSettings::changeWallpaper(bool init)
}
-QString KBackgroundSettings::currentWallpaper() const
+TQString KBackgroundSettings::currentWallpaper() const
{
if ( m_WallpaperMode == NoWallpaper )
- return QString::null;
+ return TQString::null;
if (m_MultiMode == NoMulti || m_MultiMode == NoMultiRandom)
return m_Wallpaper;
if (m_CurrentWallpaper >= 0 && m_CurrentWallpaper < (int) m_WallpaperFiles.count())
return m_WallpaperFiles[m_CurrentWallpaper];
- return QString::null;
+ return TQString::null;
}
bool KBackgroundSettings::discardCurrentWallpaper()
@@ -1007,39 +1007,39 @@ bool KBackgroundSettings::needWallpaperChange()
* that only a different final result will give a different fingerprint.
*/
-QString KBackgroundSettings::fingerprint()
+TQString KBackgroundSettings::fingerprint()
{
- QString s = QString("bm:%1;en:%2").arg(m_BackgroundMode).arg(m_bEnabled);
+ TQString s = TQString("bm:%1;en:%2").arg(m_BackgroundMode).arg(m_bEnabled);
switch (m_BackgroundMode) {
case Flat:
- s += QString("ca:%1;").arg(m_ColorA.rgb());
+ s += TQString("ca:%1;").arg(m_ColorA.rgb());
break;
case Program:
- s += QString("pr:%1;").arg(KBackgroundProgram::hash());
+ s += TQString("pr:%1;").arg(KBackgroundProgram::hash());
break;
case Pattern:
- s += QString("ca:%1;cb:%2;pt:%3;").arg(m_ColorA.rgb())
+ s += TQString("ca:%1;cb:%2;pt:%3;").arg(m_ColorA.rgb())
.arg(m_ColorB.rgb()).arg(KBackgroundPattern::hash());
break;
default:
- s += QString("ca:%1;cb:%2;").arg(m_ColorA.rgb()).arg(m_ColorB.rgb());
+ s += TQString("ca:%1;cb:%2;").arg(m_ColorA.rgb()).arg(m_ColorB.rgb());
break;
}
- s += QString("wm:%1;").arg(m_WallpaperMode);
+ s += TQString("wm:%1;").arg(m_WallpaperMode);
if (m_WallpaperMode != NoWallpaper)
{
Q_UINT32 rh = KGlobal::dirs()->calcResourceHash("wallpaper", currentWallpaper(), false);
- s += QString("wp:%2:%1;").arg(rh).arg(currentWallpaper());
+ s += TQString("wp:%2:%1;").arg(rh).arg(currentWallpaper());
}
- s += QString("blm:%1;").arg(m_BlendMode);
+ s += TQString("blm:%1;").arg(m_BlendMode);
if (m_BlendMode != NoBlending) {
- s += QString("blb:%1;").arg(m_BlendBalance);
- s += QString("rbl:%1;").arg(int(m_ReverseBlending));
+ s += TQString("blb:%1;").arg(m_BlendBalance);
+ s += TQString("rbl:%1;").arg(int(m_ReverseBlending));
}
- s += QString::number( m_bShm );
- s += QString::number( m_MinOptimizationDepth );
+ s += TQString::number( m_bShm );
+ s += TQString::number( m_MinOptimizationDepth );
return s;
}
@@ -1073,14 +1073,14 @@ KGlobalBackgroundSettings::KGlobalBackgroundSettings(KConfig *_config)
}
-QString KGlobalBackgroundSettings::deskName(int desk)
+TQString KGlobalBackgroundSettings::deskName(int desk)
{
return m_Names[desk];
}
/*
-void KGlobalBackgroundSettings::setDeskName(int desk, QString name)
+void KGlobalBackgroundSettings::setDeskName(int desk, TQString name)
{
if (name == m_Names[desk])
return;
@@ -1164,7 +1164,7 @@ void KGlobalBackgroundSettings::setExportBackground(bool _export)
m_bExport = _export;
}
-void KGlobalBackgroundSettings::setTextColor(QColor _color)
+void KGlobalBackgroundSettings::setTextColor(TQColor _color)
{
if (_color == m_TextColor)
return;
@@ -1172,7 +1172,7 @@ void KGlobalBackgroundSettings::setTextColor(QColor _color)
m_TextColor = _color;
}
-void KGlobalBackgroundSettings::setTextBackgroundColor(QColor _color)
+void KGlobalBackgroundSettings::setTextBackgroundColor(TQColor _color)
{
if (_color == m_TextBackgroundColor)
return;
@@ -1218,7 +1218,7 @@ void KGlobalBackgroundSettings::readSettings()
NETRootInfo info( qt_xdisplay(), NET::DesktopNames | NET::NumberOfDesktops );
m_bDrawBackgroundPerScreen.resize(info.numberOfDesktops());
for ( int i = 0 ; i < info.numberOfDesktops() ; ++i )
- m_bDrawBackgroundPerScreen[i] = m_pConfig->readBoolEntry( QString("DrawBackgroundPerScreen_%1").arg(i), _defDrawBackgroundPerScreen );
+ m_bDrawBackgroundPerScreen[i] = m_pConfig->readBoolEntry( TQString("DrawBackgroundPerScreen_%1").arg(i), _defDrawBackgroundPerScreen );
m_TextColor = KGlobalSettings::textColor();
m_pConfig->setGroup("FMSettings");
@@ -1229,7 +1229,7 @@ void KGlobalBackgroundSettings::readSettings()
m_textWidth = m_pConfig->readNumEntry("TextWidth", DEFAULT_TEXTWIDTH);
for ( int i = 0 ; i < info.numberOfDesktops() ; ++i )
- m_Names.append( QString::fromUtf8(info.desktopName(i+1)) );
+ m_Names.append( TQString::fromUtf8(info.desktopName(i+1)) );
dirty = false;
}
@@ -1248,7 +1248,7 @@ void KGlobalBackgroundSettings::writeSettings()
m_pConfig->writeEntry("CacheSize", m_CacheSize);
for ( unsigned i = 0 ; i < m_bDrawBackgroundPerScreen.size() ; ++i )
- m_pConfig->writeEntry(QString("DrawBackgroundPerScreen_%1").arg(i), m_bDrawBackgroundPerScreen[i] );
+ m_pConfig->writeEntry(TQString("DrawBackgroundPerScreen_%1").arg(i), m_bDrawBackgroundPerScreen[i] );
m_pConfig->setGroup("FMSettings");
m_pConfig->writeEntry("NormalTextColor", m_TextColor);
@@ -1261,7 +1261,7 @@ void KGlobalBackgroundSettings::writeSettings()
dirty = false;
// tell kdesktop to get it's butt in gear and pick up the new settings
- QByteArray data;
+ TQByteArray data;
kapp->dcopClient()->send("kdesktop", "KDesktopIface", "configure()", data);
}
diff --git a/kcontrol/background/bgsettings.h b/kcontrol/background/bgsettings.h
index 928f66360..bdf971c3c 100644
--- a/kcontrol/background/bgsettings.h
+++ b/kcontrol/background/bgsettings.h
@@ -12,11 +12,11 @@
#define __BGSettings_h_Included__
-#include <qstringlist.h>
-#include <qcolor.h>
-#include <qvaluevector.h>
+#include <tqstringlist.h>
+#include <tqcolor.h>
+#include <tqvaluevector.h>
-template <class QString, class T> class QMap;
+template <class TQString, class T> class QMap;
class KStandardDirs;
class KSimpleConfig;
class KConfig;
@@ -32,19 +32,19 @@ class QImage;
class KBackgroundPattern
{
public:
- KBackgroundPattern(QString name=QString::null);
+ KBackgroundPattern(TQString name=TQString::null);
~KBackgroundPattern();
void copyConfig(const KBackgroundPattern*);
- QString name() const { return m_Name; }
- void load(QString name);
+ TQString name() const { return m_Name; }
+ void load(TQString name);
- void setComment(const QString &comment);
- QString comment() const {return m_Comment; }
+ void setComment(const TQString &comment);
+ TQString comment() const {return m_Comment; }
- void setPattern(QString file);
- QString pattern() const { return m_Pattern; }
+ void setPattern(TQString file);
+ TQString pattern() const { return m_Pattern; }
void readSettings();
void writeSettings();
@@ -55,17 +55,17 @@ public:
int hash();
- static QStringList list();
+ static TQStringList list();
private:
void init(bool force_rw=false);
- QString fingerprint();
+ TQString fingerprint();
bool dirty, hashdirty;
bool m_bReadOnly;
int m_Hash;
- QString m_Name, m_Comment;
- QString m_Pattern, m_File;
+ TQString m_Name, m_Comment;
+ TQString m_Pattern, m_File;
KStandardDirs *m_pDirs;
KSimpleConfig *m_pConfig;
};
@@ -90,28 +90,28 @@ private:
class KBackgroundProgram
{
public:
- KBackgroundProgram(QString name=QString::null);
+ KBackgroundProgram(TQString name=TQString::null);
~KBackgroundProgram();
void copyConfig(const KBackgroundProgram*);
- QString name()const { return m_Name; }
- void load(const QString & name);
+ TQString name()const { return m_Name; }
+ void load(const TQString & name);
- void setComment(const QString &comment);
- QString comment()const { return m_Comment; }
+ void setComment(const TQString &comment);
+ TQString comment()const { return m_Comment; }
- void setCommand(const QString &command);
- QString command()const { return m_Command; }
+ void setCommand(const TQString &command);
+ TQString command()const { return m_Command; }
- void setPreviewCommand(const QString &command);
- QString previewCommand()const { return m_PreviewCommand; }
+ void setPreviewCommand(const TQString &command);
+ TQString previewCommand()const { return m_PreviewCommand; }
void setRefresh(int refresh);
int refresh()const { return m_Refresh; }
- void setExecutable(const QString &executable);
- QString executable()const { return m_Executable; }
+ void setExecutable(const TQString &executable);
+ TQString executable()const { return m_Executable; }
void readSettings();
void writeSettings();
@@ -125,18 +125,18 @@ public:
bool isGlobal()const { return m_bReadOnly; }
bool remove();
- static QStringList list();
+ static TQStringList list();
private:
void init(bool force_rw=false);
- QString fingerprint();
+ TQString fingerprint();
bool dirty, hashdirty;
bool m_bReadOnly;
int m_Refresh, m_Hash, m_LastChange;
- QString m_Name, m_Command;
- QString m_PreviewCommand, m_Comment;
- QString m_Executable, m_File;
+ TQString m_Name, m_Command;
+ TQString m_PreviewCommand, m_Comment;
+ TQString m_Executable, m_File;
KStandardDirs *m_pDirs;
KSimpleConfig *m_pConfig;
};
@@ -169,13 +169,13 @@ public:
// void load(int desk, int screen, bool drawBackgroundPerScreen, bool reparseConfig=true);
void load(int desk, int screen, bool drawBackgroundPerScreen, bool reparseConfig);
- void setColorA(const QColor &color);
- QColor colorA() const { return m_ColorA; }
- void setColorB(const QColor &color);
- QColor colorB() const { return m_ColorB; }
+ void setColorA(const TQColor &color);
+ TQColor colorA() const { return m_ColorA; }
+ void setColorB(const TQColor &color);
+ TQColor colorB() const { return m_ColorB; }
- void setProgram(QString program);
- void setPatternName(QString pattern);
+ void setProgram(TQString program);
+ void setPatternName(TQString pattern);
enum BackgroundMode {
Flat, Pattern, Program,
@@ -201,8 +201,8 @@ public:
void setBlendBalance(int value);
int blendBalance() const { return m_BlendBalance; }
- void setWallpaper(QString name);
- QString wallpaper() const { return m_Wallpaper; }
+ void setWallpaper(TQString name);
+ TQString wallpaper() const { return m_Wallpaper; }
enum WallpaperMode {
NoWallpaper, Centred, Tiled, CenterTiled, CentredMaxpect, TiledMaxpect,
@@ -211,9 +211,9 @@ public:
void setWallpaperMode(int mode);
int wallpaperMode() const { return m_WallpaperMode; }
- void setWallpaperList(QStringList);
- QStringList wallpaperList() const;
- QStringList wallpaperFiles() const;
+ void setWallpaperList(TQStringList);
+ TQStringList wallpaperList() const;
+ TQStringList wallpaperFiles() const;
void setWallpaperChangeInterval(int);
int wallpaperChangeInterval() const { return m_Interval; }
@@ -238,7 +238,7 @@ public:
void updateWallpaperFiles();
void randomizeWallpaperFiles();
- QString currentWallpaper() const;
+ TQString currentWallpaper() const;
/**
* @return true if the currentWallpaper has changed
*/
@@ -248,10 +248,10 @@ public:
void readSettings(bool reparse=false);
void writeSettings();
- QString configGroupName() const;
+ TQString configGroupName() const;
int hash();
- QString fingerprint();
+ TQString fingerprint();
void setEnabled( const bool enable );
bool enabled() const { return m_bEnabled; }
@@ -263,10 +263,10 @@ private:
bool hashdirty;
int m_Screen, m_Desk, m_Hash;
- QColor m_ColorA, defColorA;
- QColor m_ColorB, defColorB;
- QString m_Wallpaper;
- QStringList m_WallpaperList, m_WallpaperFiles;
+ TQColor m_ColorA, defColorA;
+ TQColor m_ColorB, defColorB;
+ TQString m_Wallpaper;
+ TQStringList m_WallpaperList, m_WallpaperFiles;
int m_BackgroundMode, defBackgroundMode;
int m_WallpaperMode, defWallpaperMode;
@@ -280,7 +280,7 @@ private:
int m_MultiMode, defMultiMode;
int m_Interval, m_LastChange;
int m_CurrentWallpaper;
- QString m_CurrentWallpaperName;
+ TQString m_CurrentWallpaperName;
KConfig *m_pConfig;
KStandardDirs *m_pDirs;
@@ -288,10 +288,10 @@ private:
bool m_bEnabled;
public:
- QMap<QString,int> m_BMMap;
- QMap<QString,int> m_WMMap;
- QMap<QString,int> m_MMMap;
- QMap<QString,int> m_BlMMap;
+ TQMap<TQString,int> m_BMMap;
+ TQMap<TQString,int> m_WMMap;
+ TQMap<TQString,int> m_MMMap;
+ TQMap<TQString,int> m_BlMMap;
char *m_BMRevMap[16];
char *m_WMRevMap[16];
char *m_MMRevMap[16];
@@ -307,8 +307,8 @@ class KGlobalBackgroundSettings
public:
KGlobalBackgroundSettings(KConfig *config);
- QString deskName(int desk);
- //void setDeskName(int desk, QString name);
+ TQString deskName(int desk);
+ //void setDeskName(int desk, TQString name);
int cacheSize() { return m_CacheSize; }
void setCacheSize(int size);
@@ -331,11 +331,11 @@ public:
bool exportBackground() {return m_bExport; }
void setExportBackground(bool _export);
- void setTextColor(QColor _color);
- QColor textColor() const { return m_TextColor; }
+ void setTextColor(TQColor _color);
+ TQColor textColor() const { return m_TextColor; }
- void setTextBackgroundColor(QColor _color);
- QColor textBackgroundColor() const { return m_TextBackgroundColor; }
+ void setTextBackgroundColor(TQColor _color);
+ TQColor textBackgroundColor() const { return m_TextBackgroundColor; }
void setShadowEnabled(bool enabled);
bool shadowEnabled() const { return m_shadowEnabled; }
@@ -356,16 +356,16 @@ private:
bool m_bDock;
bool m_bLimitCache, m_bExport;
int m_CacheSize;
- QStringList m_Names;
+ TQStringList m_Names;
- QColor m_TextColor;
- QColor m_TextBackgroundColor;
+ TQColor m_TextColor;
+ TQColor m_TextBackgroundColor;
bool m_shadowEnabled;
int m_textLines;
int m_textWidth;
KConfig *m_pConfig;
bool m_bDeleteConfig;
- QValueVector<bool> m_bDrawBackgroundPerScreen; // m_bDrawBackgroundPerScreen[desk]
+ TQValueVector<bool> m_bDrawBackgroundPerScreen; // m_bDrawBackgroundPerScreen[desk]
};
diff --git a/kcontrol/background/bgwallpaper.cpp b/kcontrol/background/bgwallpaper.cpp
index 9786059eb..82bb1d8af 100644
--- a/kcontrol/background/bgwallpaper.cpp
+++ b/kcontrol/background/bgwallpaper.cpp
@@ -22,10 +22,10 @@
#include <config.h>
-#include <qcheckbox.h>
-#include <qevent.h>
-#include <qpushbutton.h>
-#include <qspinbox.h>
+#include <tqcheckbox.h>
+#include <tqevent.h>
+#include <tqpushbutton.h>
+#include <tqspinbox.h>
#include <kfiledialog.h>
#include <kimageio.h>
@@ -39,23 +39,23 @@
/**** BGMultiWallpaperList ****/
-BGMultiWallpaperList::BGMultiWallpaperList(QWidget *parent, const char *name)
- : QListBox(parent, name)
+BGMultiWallpaperList::BGMultiWallpaperList(TQWidget *parent, const char *name)
+ : TQListBox(parent, name)
{
setAcceptDrops(true);
- setSelectionMode(QListBox::Extended);
+ setSelectionMode(TQListBox::Extended);
}
-void BGMultiWallpaperList::dragEnterEvent(QDragEnterEvent *ev)
+void BGMultiWallpaperList::dragEnterEvent(TQDragEnterEvent *ev)
{
ev->accept(KURLDrag::canDecode(ev));
}
-void BGMultiWallpaperList::dropEvent(QDropEvent *ev)
+void BGMultiWallpaperList::dropEvent(TQDropEvent *ev)
{
- QStringList files;
+ TQStringList files;
KURL::List urls;
KURLDrag::decode(ev, urls);
for(KURL::List::ConstIterator it = urls.begin();
@@ -95,7 +95,7 @@ void BGMultiWallpaperList::ensureSelectionVisible()
/**** BGMultiWallpaperDialog ****/
BGMultiWallpaperDialog::BGMultiWallpaperDialog(KBackgroundSettings *settings,
- QWidget *parent, const char *name)
+ TQWidget *parent, const char *name)
: KDialogBase(parent, name, true, i18n("Setup Slide Show"),
Ok | Cancel, Ok, true), m_pSettings(settings)
{
@@ -114,18 +114,18 @@ BGMultiWallpaperDialog::BGMultiWallpaperDialog(KBackgroundSettings *settings,
if (m_pSettings->multiWallpaperMode() == KBackgroundSettings::Random)
dlg->m_cbRandom->setChecked(true);
- connect(dlg->m_buttonAdd, SIGNAL(clicked()), SLOT(slotAdd()));
- connect(dlg->m_buttonRemove, SIGNAL(clicked()), SLOT(slotRemove()));
- connect(dlg->m_buttonMoveUp, SIGNAL(clicked()), SLOT(slotMoveUp()));
- connect(dlg->m_buttonMoveDown, SIGNAL(clicked()), SLOT(slotMoveDown()));
- connect(dlg->m_listImages, SIGNAL(clicked ( QListBoxItem * )), SLOT(slotItemSelected( QListBoxItem *)));
+ connect(dlg->m_buttonAdd, TQT_SIGNAL(clicked()), TQT_SLOT(slotAdd()));
+ connect(dlg->m_buttonRemove, TQT_SIGNAL(clicked()), TQT_SLOT(slotRemove()));
+ connect(dlg->m_buttonMoveUp, TQT_SIGNAL(clicked()), TQT_SLOT(slotMoveUp()));
+ connect(dlg->m_buttonMoveDown, TQT_SIGNAL(clicked()), TQT_SLOT(slotMoveDown()));
+ connect(dlg->m_listImages, TQT_SIGNAL(clicked ( TQListBoxItem * )), TQT_SLOT(slotItemSelected( TQListBoxItem *)));
dlg->m_buttonRemove->setEnabled( false );
dlg->m_buttonMoveUp->setEnabled( false );
dlg->m_buttonMoveDown->setEnabled( false );
}
-void BGMultiWallpaperDialog::slotItemSelected( QListBoxItem * )
+void BGMultiWallpaperDialog::slotItemSelected( TQListBoxItem * )
{
dlg->m_buttonRemove->setEnabled( dlg->m_listImages->hasSelection() );
setEnabledMoveButtons();
@@ -134,7 +134,7 @@ void BGMultiWallpaperDialog::slotItemSelected( QListBoxItem * )
void BGMultiWallpaperDialog::setEnabledMoveButtons()
{
bool hasSelection = dlg->m_listImages->hasSelection();
- QListBoxItem * item;
+ TQListBoxItem * item;
item = dlg->m_listImages->firstItem();
dlg->m_buttonMoveUp->setEnabled( hasSelection && item && !item->isSelected() );
@@ -144,7 +144,7 @@ void BGMultiWallpaperDialog::setEnabledMoveButtons()
void BGMultiWallpaperDialog::slotAdd()
{
- QStringList mimeTypes = KImageIO::mimeTypes( KImageIO::Reading );
+ TQStringList mimeTypes = KImageIO::mimeTypes( KImageIO::Reading );
#ifdef HAVE_LIBART
mimeTypes += "image/svg+xml";
#endif
@@ -160,7 +160,7 @@ void BGMultiWallpaperDialog::slotAdd()
KFile::LocalOnly);
fileDialog.setMode(mode);
fileDialog.exec();
- QStringList files = fileDialog.selectedFiles();
+ TQStringList files = fileDialog.selectedFiles();
if (files.isEmpty())
return;
@@ -172,7 +172,7 @@ void BGMultiWallpaperDialog::slotRemove()
int current = -1;
for ( unsigned i = 0; i < dlg->m_listImages->count();)
{
- QListBoxItem * item = dlg->m_listImages->item( i );
+ TQListBoxItem * item = dlg->m_listImages->item( i );
if ( item && item->isSelected())
{
dlg->m_listImages->removeItem(i);
@@ -194,7 +194,7 @@ void BGMultiWallpaperDialog::slotMoveUp()
{
for ( unsigned i = 1; i < dlg->m_listImages->count(); i++)
{
- QListBoxItem * item = dlg->m_listImages->item( i );
+ TQListBoxItem * item = dlg->m_listImages->item( i );
if ( item && item->isSelected() )
{
dlg->m_listImages->takeItem( item );
@@ -209,7 +209,7 @@ void BGMultiWallpaperDialog::slotMoveDown()
{
for ( unsigned i = dlg->m_listImages->count() - 1; i > 0; i--)
{
- QListBoxItem * item = dlg->m_listImages->item( i - 1 );
+ TQListBoxItem * item = dlg->m_listImages->item( i - 1 );
if ( item && item->isSelected())
{
dlg->m_listImages->takeItem( item );
@@ -222,7 +222,7 @@ void BGMultiWallpaperDialog::slotMoveDown()
void BGMultiWallpaperDialog::slotOk()
{
- QStringList lst;
+ TQStringList lst;
for (unsigned i=0; i < dlg->m_listImages->count(); i++)
lst.append(dlg->m_listImages->text(i));
m_pSettings->setWallpaperList(lst);
diff --git a/kcontrol/background/bgwallpaper.h b/kcontrol/background/bgwallpaper.h
index 0ecc1e6a4..d2771c884 100644
--- a/kcontrol/background/bgwallpaper.h
+++ b/kcontrol/background/bgwallpaper.h
@@ -23,8 +23,8 @@
#ifndef _BGWALLPAPER_H_
#define _BGWALLPAPER_H_
-#include <qlistbox.h>
-#include <qstringlist.h>
+#include <tqlistbox.h>
+#include <tqstringlist.h>
#include <kdialogbase.h>
@@ -34,10 +34,10 @@ class KBackgroundSettings;
class BGMultiWallpaperList : public QListBox
{
public:
- BGMultiWallpaperList(QWidget *parent, const char *name);
+ BGMultiWallpaperList(TQWidget *parent, const char *name);
- void dragEnterEvent(QDragEnterEvent *ev);
- void dropEvent(QDropEvent *ev);
+ void dragEnterEvent(TQDragEnterEvent *ev);
+ void dropEvent(TQDropEvent *ev);
bool hasSelection();
void ensureSelectionVisible();
};
@@ -46,7 +46,7 @@ class BGMultiWallpaperDialog : public KDialogBase
{
Q_OBJECT
public:
- BGMultiWallpaperDialog(KBackgroundSettings *settings, QWidget *parent, const char *name=0);
+ BGMultiWallpaperDialog(KBackgroundSettings *settings, TQWidget *parent, const char *name=0);
public slots:
void slotAdd();
@@ -54,7 +54,7 @@ public slots:
void slotMoveUp();
void slotMoveDown();
void slotOk();
- void slotItemSelected( QListBoxItem * );
+ void slotItemSelected( TQListBoxItem * );
private:
void setEnabledMoveButtons();
diff --git a/kcontrol/background/main.cpp b/kcontrol/background/main.cpp
index 7bcd5649b..da77d7cda 100644
--- a/kcontrol/background/main.cpp
+++ b/kcontrol/background/main.cpp
@@ -15,7 +15,7 @@
* License. See the file "COPYING" for the exact licensing terms.
*/
-#include <qlayout.h>
+#include <tqlayout.h>
#include <kapplication.h>
#include <kaboutdata.h>
#include <kconfig.h>
@@ -32,7 +32,7 @@
#include <X11/Xlib.h>
/**** DLL Interface ****/
-typedef KGenericFactory<KBackground, QWidget> KBackGndFactory;
+typedef KGenericFactory<KBackground, TQWidget> KBackGndFactory;
K_EXPORT_COMPONENT_FACTORY( kcm_background, KBackGndFactory("kcmbackground"))
/**** KBackground ****/
@@ -41,20 +41,20 @@ KBackground::~KBackground( )
delete m_pConfig;
}
-KBackground::KBackground(QWidget *parent, const char *name, const QStringList &/* */)
+KBackground::KBackground(TQWidget *parent, const char *name, const TQStringList &/* */)
: KCModule(KBackGndFactory::instance(), parent, name)
{
int screen_number = 0;
if (qt_xdisplay())
screen_number = DefaultScreen(qt_xdisplay());
- QCString configname;
+ TQCString configname;
if (screen_number == 0)
configname = "kdesktoprc";
else
configname.sprintf("kdesktop-screen-%drc", screen_number);
m_pConfig = new KConfig(configname, false, false);
- QVBoxLayout *layout = new QVBoxLayout(this);
+ TQVBoxLayout *layout = new TQVBoxLayout(this);
m_base = new BGDialog(this, m_pConfig);
setQuickHelp( m_base->quickHelp());
layout->add(m_base);
@@ -65,7 +65,7 @@ KBackground::KBackground(QWidget *parent, const char *name, const QStringList &/
// reparenting that is done.
setAcceptDrops(true);
- connect(m_base, SIGNAL(changed(bool)), SIGNAL(changed(bool)));
+ connect(m_base, TQT_SIGNAL(changed(bool)), TQT_SIGNAL(changed(bool)));
KAboutData *about =
new KAboutData(I18N_NOOP("kcmbackground"), I18N_NOOP("KDE Background Control Module"),
@@ -107,7 +107,7 @@ void KBackground::save()
int screen_number = 0;
if (qt_xdisplay())
screen_number = DefaultScreen(qt_xdisplay());
- QCString appname;
+ TQCString appname;
if (screen_number == 0)
appname = "kdesktop";
else
diff --git a/kcontrol/background/main.h b/kcontrol/background/main.h
index a220b57b6..100d9c2b9 100644
--- a/kcontrol/background/main.h
+++ b/kcontrol/background/main.h
@@ -23,7 +23,7 @@ class KBackground: public KCModule
Q_OBJECT
public:
- KBackground(QWidget *parent, const char *name, const QStringList &);
+ KBackground(TQWidget *parent, const char *name, const TQStringList &);
~KBackground();
virtual void load();
diff --git a/kcontrol/bell/bell.cpp b/kcontrol/bell/bell.cpp
index 707e6c151..10d774da7 100644
--- a/kcontrol/bell/bell.cpp
+++ b/kcontrol/bell/bell.cpp
@@ -19,11 +19,11 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#include <qcheckbox.h>
-#include <qgroupbox.h>
-#include <qlayout.h>
-#include <qpushbutton.h>
-#include <qwhatsthis.h>
+#include <tqcheckbox.h>
+#include <tqgroupbox.h>
+#include <tqlayout.h>
+#include <tqpushbutton.h>
+#include <tqwhatsthis.h>
#include <kaboutdata.h>
#include <kapplication.h>
@@ -40,7 +40,7 @@
extern "C"
{
- KDE_EXPORT KCModule *create_bell(QWidget *parent, const char *)
+ KDE_EXPORT KCModule *create_bell(TQWidget *parent, const char *)
{
return new KBellConfig(parent, "kcmbell");
}
@@ -64,27 +64,27 @@ extern "C"
}
}
-KBellConfig::KBellConfig(QWidget *parent, const char *name):
+KBellConfig::KBellConfig(TQWidget *parent, const char *name):
KCModule(parent, name)
{
- QBoxLayout *layout = new QVBoxLayout(this, 0, KDialog::spacingHint());
+ TQBoxLayout *layout = new TQVBoxLayout(this, 0, KDialog::spacingHint());
int row = 0;
- QGroupBox *box = new QGroupBox( i18n("Bell Settings"), this );
+ TQGroupBox *box = new TQGroupBox( i18n("Bell Settings"), this );
box->setColumnLayout( 0, Qt::Horizontal );
layout->addWidget(box);
layout->addStretch();
- QGridLayout *grid = new QGridLayout(box->layout(), KDialog::spacingHint());
+ TQGridLayout *grid = new TQGridLayout(box->layout(), KDialog::spacingHint());
grid->setColStretch(0, 0);
grid->setColStretch(1, 1);
grid->addColSpacing(0, 30);
- m_useBell = new QCheckBox( i18n("&Use system bell instead of system notification" ), box );
- QWhatsThis::add(m_useBell, i18n("You can use the standard system bell (PC speaker) or a "
+ m_useBell = new TQCheckBox( i18n("&Use system bell instead of system notification" ), box );
+ TQWhatsThis::add(m_useBell, i18n("You can use the standard system bell (PC speaker) or a "
"more sophisticated system notification, see the "
"\"System Notifications\" control module for the "
"\"Something Special Happened in the Program\" event."));
- connect(m_useBell, SIGNAL( toggled( bool )), SLOT( useBell( bool )));
+ connect(m_useBell, TQT_SIGNAL( toggled( bool )), TQT_SLOT( useBell( bool )));
row++;
grid->addMultiCellWidget(m_useBell, row, row, 0, 1);
@@ -99,7 +99,7 @@ KBellConfig::KBellConfig(QWidget *parent, const char *name):
m_volume->setSuffix("%");
m_volume->setSteps(5,25);
grid->addWidget(m_volume, ++row, 1);
- QWhatsThis::add( m_volume, i18n("Here you can customize the volume of the system bell. For further"
+ TQWhatsThis::add( m_volume, i18n("Here you can customize the volume of the system bell. For further"
" customization of the bell, see the \"Accessibility\" control module.") );
m_pitch = new KIntNumInput(m_volume, 800, box);
@@ -108,7 +108,7 @@ KBellConfig::KBellConfig(QWidget *parent, const char *name):
m_pitch->setSuffix(i18n(" Hz"));
m_pitch->setSteps(40,200);
grid->addWidget(m_pitch, ++row, 1);
- QWhatsThis::add( m_pitch, i18n("Here you can customize the pitch of the system bell. For further"
+ TQWhatsThis::add( m_pitch, i18n("Here you can customize the pitch of the system bell. For further"
" customization of the bell, see the \"Accessibility\" control module.") );
m_duration = new KIntNumInput(m_pitch, 100, box);
@@ -117,20 +117,20 @@ KBellConfig::KBellConfig(QWidget *parent, const char *name):
m_duration->setSuffix(i18n(" msec"));
m_duration->setSteps(20,100);
grid->addWidget(m_duration, ++row, 1);
- QWhatsThis::add( m_duration, i18n("Here you can customize the duration of the system bell. For further"
+ TQWhatsThis::add( m_duration, i18n("Here you can customize the duration of the system bell. For further"
" customization of the bell, see the \"Accessibility\" control module.") );
- QBoxLayout *boxLayout = new QHBoxLayout();
- m_testButton = new QPushButton(i18n("&Test"), box, "test");
+ TQBoxLayout *boxLayout = new TQHBoxLayout();
+ m_testButton = new TQPushButton(i18n("&Test"), box, "test");
boxLayout->addWidget(m_testButton, 0, AlignRight);
grid->addLayout( boxLayout, ++row, 1 );
- connect( m_testButton, SIGNAL(clicked()), SLOT(ringBell()));
- QWhatsThis::add( m_testButton, i18n("Click \"Test\" to hear how the system bell will sound using your changed settings.") );
+ connect( m_testButton, TQT_SIGNAL(clicked()), TQT_SLOT(ringBell()));
+ TQWhatsThis::add( m_testButton, i18n("Click \"Test\" to hear how the system bell will sound using your changed settings.") );
// watch for changes
- connect(m_volume, SIGNAL(valueChanged(int)), SLOT(changed()));
- connect(m_pitch, SIGNAL(valueChanged(int)), SLOT(changed()));
- connect(m_duration, SIGNAL(valueChanged(int)), SLOT(changed()));
+ connect(m_volume, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(changed()));
+ connect(m_pitch, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(changed()));
+ connect(m_duration, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(changed()));
KAboutData *about =
new KAboutData(I18N_NOOP("kcmbell"), I18N_NOOP("KDE Bell Control Module"),
diff --git a/kcontrol/bell/bell.h b/kcontrol/bell/bell.h
index ceaf875df..dc17def93 100644
--- a/kcontrol/bell/bell.h
+++ b/kcontrol/bell/bell.h
@@ -32,7 +32,7 @@ class KBellConfig : public KCModule
Q_OBJECT
public:
- KBellConfig(QWidget *parent, const char *name);
+ KBellConfig(TQWidget *parent, const char *name);
void load();
void load( bool useDefaults );
@@ -44,11 +44,11 @@ class KBellConfig : public KCModule
void useBell( bool );
private:
- QPushButton *m_testButton;
+ TQPushButton *m_testButton;
KIntNumInput *m_volume;
KIntNumInput *m_pitch;
KIntNumInput *m_duration;
- QCheckBox *m_useBell;
+ TQCheckBox *m_useBell;
};
#endif
diff --git a/kcontrol/clock/dtime.cpp b/kcontrol/clock/dtime.cpp
index ba8330c7a..109e436c4 100644
--- a/kcontrol/clock/dtime.cpp
+++ b/kcontrol/clock/dtime.cpp
@@ -22,15 +22,15 @@
#include <unistd.h>
#include <sys/types.h>
-#include <qcombobox.h>
-#include <qgroupbox.h>
-#include <qpushbutton.h>
-#include <qpainter.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qwhatsthis.h>
-#include <qcheckbox.h>
-#include <qregexp.h>
+#include <tqcombobox.h>
+#include <tqgroupbox.h>
+#include <tqpushbutton.h>
+#include <tqpainter.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqwhatsthis.h>
+#include <tqcheckbox.h>
+#include <tqregexp.h>
#include <kdebug.h>
#include <klocale.h>
@@ -42,22 +42,22 @@
#include "dtime.h"
#include "dtime.moc"
-HMSTimeWidget::HMSTimeWidget(QWidget *parent, const char *name) :
+HMSTimeWidget::HMSTimeWidget(TQWidget *parent, const char *name) :
KIntSpinBox(parent, name)
{
}
-QString HMSTimeWidget::mapValueToText(int value)
+TQString HMSTimeWidget::mapValueToText(int value)
{
- QString s = QString::number(value);
+ TQString s = TQString::number(value);
if( value < 10 ) {
s = "0" + s;
}
return s;
}
-Dtime::Dtime(QWidget * parent, const char *name)
- : QWidget(parent, name)
+Dtime::Dtime(TQWidget * parent, const char *name)
+ : TQWidget(parent, name)
{
// *************************************************************
// Start Dialog
@@ -65,51 +65,51 @@ Dtime::Dtime(QWidget * parent, const char *name)
// Time Server
- privateLayoutWidget = new QWidget( this, "layout1" );
- QHBoxLayout *layout1 = new QHBoxLayout( privateLayoutWidget, 0, 0, "ntplayout");
+ privateLayoutWidget = new TQWidget( this, "layout1" );
+ TQHBoxLayout *layout1 = new TQHBoxLayout( privateLayoutWidget, 0, 0, "ntplayout");
- setDateTimeAuto = new QCheckBox( privateLayoutWidget, "setDateTimeAuto" );
+ setDateTimeAuto = new TQCheckBox( privateLayoutWidget, "setDateTimeAuto" );
setDateTimeAuto->setText(i18n("Set date and time &automatically:"));
- connect(setDateTimeAuto, SIGNAL(toggled(bool)), this, SLOT(serverTimeCheck()));
- connect(setDateTimeAuto, SIGNAL(toggled(bool)), SLOT(configChanged()));
+ connect(setDateTimeAuto, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(serverTimeCheck()));
+ connect(setDateTimeAuto, TQT_SIGNAL(toggled(bool)), TQT_SLOT(configChanged()));
layout1->addWidget( setDateTimeAuto );
- timeServerList = new QComboBox( false, privateLayoutWidget, "timeServerList" );
- connect(timeServerList, SIGNAL(activated(int)), SLOT(configChanged()));
- connect(timeServerList, SIGNAL(textChanged(const QString &)), SLOT(configChanged()));
- connect(setDateTimeAuto, SIGNAL(toggled(bool)), timeServerList, SLOT(setEnabled(bool)));
+ timeServerList = new TQComboBox( false, privateLayoutWidget, "timeServerList" );
+ connect(timeServerList, TQT_SIGNAL(activated(int)), TQT_SLOT(configChanged()));
+ connect(timeServerList, TQT_SIGNAL(textChanged(const TQString &)), TQT_SLOT(configChanged()));
+ connect(setDateTimeAuto, TQT_SIGNAL(toggled(bool)), timeServerList, TQT_SLOT(setEnabled(bool)));
timeServerList->setEnabled(false);
timeServerList->setEditable(true);
layout1->addWidget( timeServerList );
findNTPutility();
// Date box
- QGroupBox* dateBox = new QGroupBox( this, "dateBox" );
+ TQGroupBox* dateBox = new TQGroupBox( this, "dateBox" );
- QVBoxLayout *l1 = new QVBoxLayout( dateBox, KDialog::spacingHint() );
+ TQVBoxLayout *l1 = new TQVBoxLayout( dateBox, KDialog::spacingHint() );
cal = new KDatePicker( dateBox );
cal->setMinimumSize(cal->sizeHint());
l1->addWidget( cal );
- QWhatsThis::add( cal, i18n("Here you can change the system date's day of the month, month and year.") );
+ TQWhatsThis::add( cal, i18n("Here you can change the system date's day of the month, month and year.") );
// Time frame
- QGroupBox* timeBox = new QGroupBox( this, "timeBox" );
+ TQGroupBox* timeBox = new TQGroupBox( this, "timeBox" );
- QVBoxLayout *v2 = new QVBoxLayout( timeBox, KDialog::spacingHint() );
+ TQVBoxLayout *v2 = new TQVBoxLayout( timeBox, KDialog::spacingHint() );
kclock = new Kclock( timeBox, "kclock" );
kclock->setMinimumSize(150,150);
v2->addWidget( kclock );
- QGridLayout *v3 = new QGridLayout( v2, 2, 9 );
+ TQGridLayout *v3 = new TQGridLayout( v2, 2, 9 );
// Even if the module's widgets are reversed (usually when using RTL
// languages), the placing of the time fields must always be H:M:S, from
// left to right.
- bool isRTL = QApplication::reverseLayout();
+ bool isRTL = TQApplication::reverseLayout();
- QSpacerItem *spacer1 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
+ TQSpacerItem *spacer1 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
v3->addMultiCell(spacer1, 0, 1, 1, 1);
hour = new HMSTimeWidget( timeBox );
@@ -118,9 +118,9 @@ Dtime::Dtime(QWidget * parent, const char *name)
hour->setValidator(new KStrictIntValidator(0, 23, hour));
v3->addMultiCellWidget(hour, 0, 1, isRTL ? 6 : 2, isRTL ? 6 : 2 );
- QLabel *dots1 = new QLabel(":", timeBox);
+ TQLabel *dots1 = new TQLabel(":", timeBox);
dots1->setMinimumWidth( 7 );
- dots1->setAlignment( QLabel::AlignCenter );
+ dots1->setAlignment( TQLabel::AlignCenter );
v3->addMultiCellWidget(dots1, 0, 1, 3, 3 );
minute = new HMSTimeWidget( timeBox );
@@ -130,9 +130,9 @@ Dtime::Dtime(QWidget * parent, const char *name)
minute->setValidator(new KStrictIntValidator(0, 59, minute));
v3->addMultiCellWidget(minute, 0, 1, 4, 4 );
- QLabel *dots2 = new QLabel(":", timeBox);
+ TQLabel *dots2 = new TQLabel(":", timeBox);
dots2->setMinimumWidth( 7 );
- dots2->setAlignment( QLabel::AlignCenter );
+ dots2->setAlignment( TQLabel::AlignCenter );
v3->addMultiCellWidget(dots2, 0, 1, 5, 5 );
second = new HMSTimeWidget( timeBox );
@@ -144,17 +144,17 @@ Dtime::Dtime(QWidget * parent, const char *name)
v3->addColSpacing(7, 7);
- QString wtstr = i18n("Here you can change the system time. Click into the"
+ TQString wtstr = i18n("Here you can change the system time. Click into the"
" hours, minutes or seconds field to change the relevant value, either"
" using the up and down buttons to the right or by entering a new value.");
- QWhatsThis::add( hour, wtstr );
- QWhatsThis::add( minute, wtstr );
- QWhatsThis::add( second, wtstr );
+ TQWhatsThis::add( hour, wtstr );
+ TQWhatsThis::add( minute, wtstr );
+ TQWhatsThis::add( second, wtstr );
- QSpacerItem *spacer3 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
+ TQSpacerItem *spacer3 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
v3->addMultiCell(spacer3, 0, 1, 9, 9);
- QGridLayout *top = new QGridLayout( this, 2,2, KDialog::spacingHint() );
+ TQGridLayout *top = new TQGridLayout( this, 2,2, KDialog::spacingHint() );
top->addWidget(dateBox, 1,0);
top->addWidget(timeBox, 1,1);
@@ -164,12 +164,12 @@ Dtime::Dtime(QWidget * parent, const char *name)
// End Dialog
// *************************************************************
- connect( hour, SIGNAL(valueChanged(int)), SLOT(set_time()) );
- connect( minute, SIGNAL(valueChanged(int)), SLOT(set_time()) );
- connect( second, SIGNAL(valueChanged(int)), SLOT(set_time()) );
- connect( cal, SIGNAL(dateChanged(QDate)), SLOT(changeDate(QDate)));
+ connect( hour, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(set_time()) );
+ connect( minute, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(set_time()) );
+ connect( second, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(set_time()) );
+ connect( cal, TQT_SIGNAL(dateChanged(TQDate)), TQT_SLOT(changeDate(TQDate)));
- connect( &internalTimer, SIGNAL(timeout()), SLOT(timeout()) );
+ connect( &internalTimer, TQT_SIGNAL(timeout()), TQT_SLOT(timeout()) );
load();
@@ -228,7 +228,7 @@ void Dtime::set_time()
emit timeChanged( TRUE );
}
-void Dtime::changeDate(QDate d)
+void Dtime::changeDate(TQDate d)
{
date = d;
emit timeChanged( TRUE );
@@ -242,7 +242,7 @@ void Dtime::load()
{
KConfig config("kcmclockrc", true, false);
config.setGroup("NTP");
- timeServerList->insertStringList(QStringList::split(',', config.readEntry("servers",
+ timeServerList->insertStringList(TQStringList::split(',', config.readEntry("servers",
i18n("Public Time Server (pool.ntp.org),\
asia.pool.ntp.org,\
europe.pool.ntp.org,\
@@ -251,8 +251,8 @@ oceania.pool.ntp.org"))));
setDateTimeAuto->setChecked(config.readBoolEntry("enabled", false));
// Reset to the current date and time
- time = QTime::currentTime();
- date = QDate::currentDate();
+ time = TQTime::currentTime();
+ date = TQDate::currentDate();
cal->setDate(date);
// start internal timer
@@ -267,11 +267,11 @@ void Dtime::save()
config.setGroup("NTP");
// Save the order, but don't duplicate!
- QStringList list;
+ TQStringList list;
if( timeServerList->count() != 0)
list.append(timeServerList->currentText());
for ( int i=0; i<timeServerList->count();i++ ) {
- QString text = timeServerList->text(i);
+ TQString text = timeServerList->text(i);
if( list.find(text) == list.end())
list.append(text);
// Limit so errors can go away and not stored forever
@@ -283,17 +283,17 @@ void Dtime::save()
if(setDateTimeAuto->isChecked() && !ntpUtility.isEmpty()){
// NTP Time setting
- QString timeServer = timeServerList->currentText();
- if( timeServer.find( QRegExp(".*\\(.*\\)$") ) != -1 ) {
- timeServer.replace( QRegExp(".*\\("), "" );
- timeServer.replace( QRegExp("\\).*"), "" );
+ TQString timeServer = timeServerList->currentText();
+ if( timeServer.find( TQRegExp(".*\\(.*\\)$") ) != -1 ) {
+ timeServer.replace( TQRegExp(".*\\("), "" );
+ timeServer.replace( TQRegExp("\\).*"), "" );
// Would this be better?: s/^.*\(([^)]*)\).*$/\1/
}
KProcess proc;
proc << ntpUtility << timeServer;
proc.start( KProcess::Block );
if( proc.exitStatus() != 0 ){
- KMessageBox::error( this, i18n(QString("Unable to contact time server: %1.").arg(timeServer).latin1()));
+ KMessageBox::error( this, i18n(TQString("Unable to contact time server: %1.").arg(timeServer).latin1()));
setDateTimeAuto->setChecked( false );
}
else {
@@ -345,7 +345,7 @@ void Dtime::save()
void Dtime::timeout()
{
// get current time
- time = QTime::currentTime();
+ time = TQTime::currentTime();
ontimeout = TRUE;
second->setValue(time.second());
@@ -356,7 +356,7 @@ void Dtime::timeout()
kclock->setTime( time );
}
-QString Dtime::quickHelp() const
+TQString Dtime::quickHelp() const
{
return i18n("<h1>Date & Time</h1> This control module can be used to set the system date and"
" time. As these settings do not only affect you as a user, but rather the whole system, you"
@@ -365,32 +365,32 @@ QString Dtime::quickHelp() const
" administrator.");
}
-void Kclock::setTime(const QTime &time)
+void Kclock::setTime(const TQTime &time)
{
this->time = time;
repaint();
}
-void Kclock::paintEvent( QPaintEvent * )
+void Kclock::paintEvent( TQPaintEvent * )
{
if ( !isVisible() )
return;
- QPainter paint;
+ TQPainter paint;
paint.begin( this );
- QPointArray pts;
- QPoint cp = rect().center();
+ TQPointArray pts;
+ TQPoint cp = rect().center();
int d = QMIN(width(),height());
- QColor hands = colorGroup().dark();
- QColor shadow = colorGroup().text();
+ TQColor hands = colorGroup().dark();
+ TQColor shadow = colorGroup().text();
paint.setPen( shadow );
paint.setBrush( shadow );
paint.setViewport(4,4,width(),height());
for ( int c=0 ; c < 2 ; c++ )
{
- QWMatrix matrix;
+ TQWMatrix matrix;
matrix.translate( cp.x(), cp.y() );
matrix.scale( d/1000.0F, d/1000.0F );
@@ -435,12 +435,12 @@ void Kclock::paintEvent( QPaintEvent * )
paint.end();
}
-QValidator::State KStrictIntValidator::validate( QString & input, int & d ) const
+TQValidator::State KStrictIntValidator::validate( TQString & input, int & d ) const
{
if( input.isEmpty() )
return Valid;
- State st = QIntValidator::validate( input, d );
+ State st = TQIntValidator::validate( input, d );
if( st == Intermediate )
return Invalid;
diff --git a/kcontrol/clock/dtime.h b/kcontrol/clock/dtime.h
index 5fcbb62df..cf6cccc63 100644
--- a/kcontrol/clock/dtime.h
+++ b/kcontrol/clock/dtime.h
@@ -22,14 +22,14 @@
#ifndef dtime_included
#define dtime_included
-#include <qdatetime.h>
-#include <qlineedit.h>
-#include <qspinbox.h>
-#include <qstring.h>
-#include <qtimer.h>
-#include <qvalidator.h>
-#include <qwidget.h>
-#include <qcheckbox.h>
+#include <tqdatetime.h>
+#include <tqlineedit.h>
+#include <tqspinbox.h>
+#include <tqstring.h>
+#include <tqtimer.h>
+#include <tqvalidator.h>
+#include <tqwidget.h>
+#include <tqcheckbox.h>
#include <kdatepicker.h>
#include <knuminput.h>
@@ -40,21 +40,21 @@ class HMSTimeWidget : public KIntSpinBox
{
Q_OBJECT
public:
- HMSTimeWidget(QWidget *parent=0, const char *name=0);
+ HMSTimeWidget(TQWidget *parent=0, const char *name=0);
protected:
- QString mapValueToText(int);
+ TQString mapValueToText(int);
};
class Dtime : public QWidget
{
Q_OBJECT
public:
- Dtime( QWidget *parent=0, const char* name=0 );
+ Dtime( TQWidget *parent=0, const char* name=0 );
void save();
void load();
- QString quickHelp() const;
+ TQString quickHelp() const;
signals:
void timeChanged(bool);
@@ -64,13 +64,13 @@ signals:
void serverTimeCheck();
void timeout();
void set_time();
- void changeDate(QDate);
+ void changeDate(TQDate);
private:
void findNTPutility();
QString ntpUtility;
- QWidget* privateLayoutWidget;
+ TQWidget* privateLayoutWidget;
QCheckBox *setDateTimeAuto;
QComboBox *timeServerList;
@@ -99,27 +99,27 @@ class Kclock : public QWidget
Q_OBJECT
public:
- Kclock( QWidget *parent=0, const char *name=0 )
- : QWidget(parent, name) {};
+ Kclock( TQWidget *parent=0, const char *name=0 )
+ : TQWidget(parent, name) {};
- void setTime(const QTime&);
+ void setTime(const TQTime&);
protected:
- virtual void paintEvent( QPaintEvent *event );
+ virtual void paintEvent( TQPaintEvent *event );
private:
QTime time;
};
-class KStrictIntValidator : public QIntValidator
+class KStrictIntValidator : public TQIntValidator
{
public:
- KStrictIntValidator(int bottom, int top, QWidget * parent,
+ KStrictIntValidator(int bottom, int top, TQWidget * parent,
const char * name = 0 )
- : QIntValidator(bottom, top, parent, name) {};
+ : TQIntValidator(bottom, top, parent, name) {};
- QValidator::State validate( QString & input, int & d ) const;
+ TQValidator::State validate( TQString & input, int & d ) const;
};
#endif // dtime_included
diff --git a/kcontrol/clock/main.cpp b/kcontrol/clock/main.cpp
index 8522973a1..86e47e7ad 100644
--- a/kcontrol/clock/main.cpp
+++ b/kcontrol/clock/main.cpp
@@ -20,8 +20,8 @@
*/
#include <unistd.h>
-#include <qlabel.h>
-#include <qlayout.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
#include <dcopclient.h>
@@ -36,10 +36,10 @@
#include "tzone.h"
#include "dtime.h"
-typedef KGenericFactory<KclockModule, QWidget> KlockModuleFactory;
+typedef KGenericFactory<KclockModule, TQWidget> KlockModuleFactory;
K_EXPORT_COMPONENT_FACTORY( kcm_clock, KlockModuleFactory("kcmkclock"))
-KclockModule::KclockModule(QWidget *parent, const char *name, const QStringList &)
+KclockModule::KclockModule(TQWidget *parent, const char *name, const TQStringList &)
: KCModule(KlockModuleFactory::instance(), parent, name)
{
KAboutData *about =
@@ -59,15 +59,15 @@ KclockModule::KclockModule(QWidget *parent, const char *name, const QStringList
KGlobal::locale()->insertCatalogue("timezones"); // For time zone translations
- QVBoxLayout *layout = new QVBoxLayout(this, 0, KDialog::spacingHint());
+ TQVBoxLayout *layout = new TQVBoxLayout(this, 0, KDialog::spacingHint());
dtime = new Dtime(this);
layout->addWidget(dtime);
- connect(dtime, SIGNAL(timeChanged(bool)), this, SIGNAL(changed(bool)));
+ connect(dtime, TQT_SIGNAL(timeChanged(bool)), this, TQT_SIGNAL(changed(bool)));
tzone = new Tzone(this);
layout->addWidget(tzone);
- connect(tzone, SIGNAL(zoneChanged(bool)), this, SIGNAL(changed(bool)));
+ connect(tzone, TQT_SIGNAL(zoneChanged(bool)), this, TQT_SIGNAL(changed(bool)));
layout->addStretch();
@@ -84,7 +84,7 @@ void KclockModule::save()
tzone->save();
// Tell the clock applet about the change so that it can update its timezone
- kapp->dcopClient()->send( "kicker", "ClockApplet", "reconfigure()", QByteArray() );
+ kapp->dcopClient()->send( "kicker", "ClockApplet", "reconfigure()", TQByteArray() );
}
void KclockModule::load()
diff --git a/kcontrol/clock/main.h b/kcontrol/clock/main.h
index 3c57469f0..53a060674 100644
--- a/kcontrol/clock/main.h
+++ b/kcontrol/clock/main.h
@@ -33,13 +33,13 @@ class KclockModule : public KCModule
Q_OBJECT
public:
- KclockModule(QWidget *parent, const char *name, const QStringList &);
+ KclockModule(TQWidget *parent, const char *name, const TQStringList &);
void save();
void load();
private:
- QTabWidget *tab;
+ TQTabWidget *tab;
Tzone *tzone;
Dtime *dtime;
};
diff --git a/kcontrol/clock/tzone.cpp b/kcontrol/clock/tzone.cpp
index fad22152a..506bde5b6 100644
--- a/kcontrol/clock/tzone.cpp
+++ b/kcontrol/clock/tzone.cpp
@@ -25,8 +25,8 @@
#include <time.h>
#include <config.h>
-#include <qlabel.h>
-#include <qfile.h>
+#include <tqlabel.h>
+#include <tqfile.h>
#include <kdebug.h>
#include <klocale.h>
@@ -46,15 +46,15 @@
#include <sys/stat.h>
#endif
-Tzone::Tzone(QWidget * parent, const char *name)
- : QVGroupBox(parent, name)
+Tzone::Tzone(TQWidget * parent, const char *name)
+ : TQVGroupBox(parent, name)
{
setTitle(i18n("To change the timezone, select your area from the list below"));
tzonelist = new KTimezoneWidget(this, "ComboBox_1", &m_zoneDb);
- connect( tzonelist, SIGNAL(selectionChanged()), SLOT(handleZoneChange()) );
+ connect( tzonelist, TQT_SIGNAL(selectionChanged()), TQT_SLOT(handleZoneChange()) );
- m_local = new QLabel(this);
+ m_local = new TQLabel(this);
load();
@@ -71,8 +71,8 @@ void Tzone::load()
void Tzone::currentZone()
{
- QString localZone(i18n("Current local timezone: %1 (%2)"));
- QCString result(100);
+ TQString localZone(i18n("Current local timezone: %1 (%2)"));
+ TQCString result(100);
time_t now = time(0);
tzset();
@@ -84,33 +84,33 @@ void Tzone::currentZone()
// on non-Solaris systems which do not use /etc/timezone?
void Tzone::save()
{
- QStringList selectedZones(tzonelist->selection());
+ TQStringList selectedZones(tzonelist->selection());
if (selectedZones.count() > 0)
{
// Find untranslated selected zone
- QString selectedzone(selectedZones[0]);
+ TQString selectedzone(selectedZones[0]);
#if defined(USE_SOLARIS) // MARCO
KTempFile tf( locateLocal( "tmp", "kde-tzone" ) );
tf.setAutoDelete( true );
- QTextStream *ts = tf.textStream();
+ TQTextStream *ts = tf.textStream();
# ifndef INITFILE
# define INITFILE "/etc/default/init"
# endif
- QFile fTimezoneFile(INITFILE);
+ TQFile fTimezoneFile(INITFILE);
bool updatedFile = false;
if (tf.status() == 0 && fTimezoneFile.open(IO_ReadOnly))
{
bool found = false;
- QTextStream is(&fTimezoneFile);
+ TQTextStream is(&fTimezoneFile);
- for (QString line = is.readLine(); !line.isNull();
+ for (TQString line = is.readLine(); !line.isNull();
line = is.readLine())
{
if (line.find("TZ=") == 0)
@@ -140,9 +140,9 @@ void Tzone::save()
if (fTimezoneFile.open(IO_WriteOnly | IO_Truncate))
{
- QTextStream os(&fTimezoneFile);
+ TQTextStream os(&fTimezoneFile);
- for (QString line = ts->readLine(); !line.isNull();
+ for (TQString line = ts->readLine(); !line.isNull();
line = ts->readLine())
{
os << line << endl;
@@ -156,22 +156,22 @@ void Tzone::save()
}
- QString val = selectedzone;
+ TQString val = selectedzone;
#else
- QFile fTimezoneFile("/etc/timezone");
+ TQFile fTimezoneFile("/etc/timezone");
if (fTimezoneFile.open(IO_WriteOnly | IO_Truncate) )
{
- QTextStream t(&fTimezoneFile);
+ TQTextStream t(&fTimezoneFile);
t << selectedzone;
fTimezoneFile.close();
}
- QString tz = "/usr/share/zoneinfo/" + selectedzone;
+ TQString tz = "/usr/share/zoneinfo/" + selectedzone;
kdDebug() << "Set time zone " << tz << endl;
- if (!QFile::remove("/etc/localtime"))
+ if (!TQFile::remove("/etc/localtime"))
{
//After the KDE 3.2 release, need to add an error message
}
@@ -180,7 +180,7 @@ void Tzone::save()
KMessageBox::error( 0, i18n("Error setting new timezone."),
i18n("Timezone Error"));
- QString val = ":" + tz;
+ TQString val = ":" + tz;
#endif // !USE_SOLARIS
setenv("TZ", val.ascii(), 1);
diff --git a/kcontrol/clock/tzone.h b/kcontrol/clock/tzone.h
index 618cb10c6..fe9119773 100644
--- a/kcontrol/clock/tzone.h
+++ b/kcontrol/clock/tzone.h
@@ -24,7 +24,7 @@
#include <ktimezones.h>
#include <ktimezonewidget.h>
-#include <qvgroupbox.h>
+#include <tqvgroupbox.h>
class QComboBox;
class QLabel;
@@ -34,7 +34,7 @@ class Tzone : public QVGroupBox
Q_OBJECT
public:
- Tzone( QWidget *parent=0, const char* name=0 );
+ Tzone( TQWidget *parent=0, const char* name=0 );
void save();
void load();
@@ -48,7 +48,7 @@ protected slots:
private:
void currentZone();
KTimezones m_zoneDb;
- QLabel *m_local;
+ TQLabel *m_local;
KTimezoneWidget *tzonelist;
};
diff --git a/kcontrol/colors/colorscm.cpp b/kcontrol/colors/colorscm.cpp
index 39e5574c2..d735d1248 100644
--- a/kcontrol/colors/colorscm.cpp
+++ b/kcontrol/colors/colorscm.cpp
@@ -12,15 +12,15 @@
#include <stdlib.h>
#include <unistd.h>
-#include <qcheckbox.h>
-#include <qcombobox.h>
-#include <qdir.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qpainter.h>
-#include <qslider.h>
-#include <qvgroupbox.h>
-#include <qwhatsthis.h>
+#include <tqcheckbox.h>
+#include <tqcombobox.h>
+#include <tqdir.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqpainter.h>
+#include <tqslider.h>
+#include <tqvgroupbox.h>
+#include <tqwhatsthis.h>
#include <kcolorbutton.h>
#include <kcursor.h>
@@ -46,25 +46,25 @@
/**** DLL Interface ****/
-typedef KGenericFactory<KColorScheme , QWidget> KolorFactory;
+typedef KGenericFactory<KColorScheme , TQWidget> KolorFactory;
K_EXPORT_COMPONENT_FACTORY( kcm_colors, KolorFactory("kcmcolors") )
class KColorSchemeEntry {
public:
- KColorSchemeEntry(const QString &_path, const QString &_name, bool _local)
+ KColorSchemeEntry(const TQString &_path, const TQString &_name, bool _local)
: path(_path), name(_name), local(_local) { }
- QString path;
- QString name;
+ TQString path;
+ TQString name;
bool local;
};
-class KColorSchemeList : public QPtrList<KColorSchemeEntry> {
+class KColorSchemeList : public TQPtrList<KColorSchemeEntry> {
public:
KColorSchemeList()
{ setAutoDelete(true); }
- int compareItems(QPtrCollection::Item item1, QPtrCollection::Item item2)
+ int compareItems(TQPtrCollection::Item item1, TQPtrCollection::Item item2)
{
KColorSchemeEntry *i1 = (KColorSchemeEntry*)item1;
KColorSchemeEntry *i2 = (KColorSchemeEntry*)item2;
@@ -77,22 +77,22 @@ public:
#define SIZE 8
// make a 24 * 8 pixmap with the main colors in a scheme
-QPixmap mkColorPreview(const WidgetCanvas *cs)
+TQPixmap mkColorPreview(const WidgetCanvas *cs)
{
- QPixmap group(SIZE*3,SIZE);
- QPixmap block(SIZE,SIZE);
- group.fill(QColor(0,0,0));
+ TQPixmap group(SIZE*3,SIZE);
+ TQPixmap block(SIZE,SIZE);
+ group.fill(TQColor(0,0,0));
block.fill(cs->back); bitBlt(&group,0*SIZE,0,&block,0,0,SIZE,SIZE);
block.fill(cs->window); bitBlt(&group,1*SIZE,0,&block,0,0,SIZE,SIZE);
block.fill(cs->aTitle); bitBlt(&group,2*SIZE,0,&block,0,0,SIZE,SIZE);
- QPainter p(&group);
+ TQPainter p(&group);
p.drawRect(0,0,3*SIZE,SIZE);
return group;
}
/**** KColorScheme ****/
-KColorScheme::KColorScheme(QWidget *parent, const char *name, const QStringList &)
+KColorScheme::KColorScheme(TQWidget *parent, const char *name, const TQStringList &)
: KCModule(KolorFactory::instance(), parent, name)
{
nSysSchemes = 2;
@@ -120,7 +120,7 @@ KColorScheme::KColorScheme(QWidget *parent, const char *name, const QStringList
// LAYOUT
- QGridLayout *topLayout = new QGridLayout( this, 3, 2, 0,
+ TQGridLayout *topLayout = new TQGridLayout( this, 3, 2, 0,
KDialog::spacingHint() );
topLayout->setRowStretch(0,0);
topLayout->setRowStretch(1,0);
@@ -130,28 +130,28 @@ KColorScheme::KColorScheme(QWidget *parent, const char *name, const QStringList
cs->setFixedHeight(160);
cs->setMinimumWidth(440);
- QWhatsThis::add( cs, i18n("This is a preview of the color settings which"
+ TQWhatsThis::add( cs, i18n("This is a preview of the color settings which"
" will be applied if you click \"Apply\" or \"OK\". You can click on"
" different parts of this preview image. The widget name in the"
" \"Widget color\" box will change to reflect the part of the preview"
" image you clicked.") );
- connect( cs, SIGNAL( widgetSelected( int ) ),
- SLOT( slotWidgetColor( int ) ) );
- connect( cs, SIGNAL( colorDropped( int, const QColor&)),
- SLOT( slotColorForWidget( int, const QColor&)));
+ connect( cs, TQT_SIGNAL( widgetSelected( int ) ),
+ TQT_SLOT( slotWidgetColor( int ) ) );
+ connect( cs, TQT_SIGNAL( colorDropped( int, const TQColor&)),
+ TQT_SLOT( slotColorForWidget( int, const TQColor&)));
topLayout->addMultiCellWidget( cs, 0, 0, 0, 1 );
- QGroupBox *group = new QVGroupBox( i18n("Color Scheme"), this );
+ TQGroupBox *group = new TQVGroupBox( i18n("Color Scheme"), this );
topLayout->addWidget( group, 1, 0 );
sList = new KListBox( group );
mSchemeList = new KColorSchemeList();
readSchemeNames();
sList->setCurrentItem( 0 );
- connect(sList, SIGNAL(highlighted(int)), SLOT(slotPreviewScheme(int)));
+ connect(sList, TQT_SIGNAL(highlighted(int)), TQT_SLOT(slotPreviewScheme(int)));
- QWhatsThis::add( sList, i18n("This is a list of predefined color schemes,"
+ TQWhatsThis::add( sList, i18n("This is a list of predefined color schemes,"
" including any that you may have created. You can preview an existing"
" color scheme by selecting it from the list. The current scheme will"
" be replaced by the selected color scheme.<p>"
@@ -159,41 +159,41 @@ KColorScheme::KColorScheme(QWidget *parent, const char *name, const QStringList
" to the current scheme, those changes will be lost if you select"
" another color scheme.") );
- addBt = new QPushButton(i18n("&Save Scheme..."), group);
- connect(addBt, SIGNAL(clicked()), SLOT(slotAdd()));
+ addBt = new TQPushButton(i18n("&Save Scheme..."), group);
+ connect(addBt, TQT_SIGNAL(clicked()), TQT_SLOT(slotAdd()));
- QWhatsThis::add( addBt, i18n("Press this button if you want to save"
+ TQWhatsThis::add( addBt, i18n("Press this button if you want to save"
" the current color settings as a color scheme. You will be"
" prompted for a name.") );
- removeBt = new QPushButton(i18n("R&emove Scheme"), group);
+ removeBt = new TQPushButton(i18n("R&emove Scheme"), group);
removeBt->setEnabled(FALSE);
- connect(removeBt, SIGNAL(clicked()), SLOT(slotRemove()));
+ connect(removeBt, TQT_SIGNAL(clicked()), TQT_SLOT(slotRemove()));
- QWhatsThis::add( removeBt, i18n("Press this button to remove the selected"
+ TQWhatsThis::add( removeBt, i18n("Press this button to remove the selected"
" color scheme. Note that this button is disabled if you do not have"
" permission to delete the color scheme.") );
- importBt = new QPushButton(i18n("I&mport Scheme..."), group);
- connect(importBt, SIGNAL(clicked()),SLOT(slotImport()));
+ importBt = new TQPushButton(i18n("I&mport Scheme..."), group);
+ connect(importBt, TQT_SIGNAL(clicked()),TQT_SLOT(slotImport()));
- QWhatsThis::add( importBt, i18n("Press this button to import a new color"
+ TQWhatsThis::add( importBt, i18n("Press this button to import a new color"
" scheme. Note that the color scheme will only be available for the"
" current user." ));
- QBoxLayout *stackLayout = new QVBoxLayout;
+ TQBoxLayout *stackLayout = new QVBoxLayout;
topLayout->addLayout(stackLayout, 1, 1);
- group = new QGroupBox(i18n("&Widget Color"), this);
+ group = new TQGroupBox(i18n("&Widget Color"), this);
stackLayout->addWidget(group);
- QBoxLayout *groupLayout = new QVBoxLayout(group, 10);
+ TQBoxLayout *groupLayout = new TQVBoxLayout(group, 10);
groupLayout->addSpacing(10);
- wcCombo = new QComboBox(false, group);
+ wcCombo = new TQComboBox(false, group);
for(int i=0; i < CSM_LAST;i++)
{
- wcCombo->insertItem(QString::null);
+ wcCombo->insertItem(TQString::null);
}
setColorName(i18n("Inactive Title Bar") , CSM_Inactive_title_bar);
@@ -221,60 +221,60 @@ KColorScheme::KColorScheme(QWidget *parent, const char *name, const QStringList
setColorName(i18n("Alternate Background in Lists"), CSM_Alternate_background);
wcCombo->adjustSize();
- connect(wcCombo, SIGNAL(activated(int)), SLOT(slotWidgetColor(int)));
+ connect(wcCombo, TQT_SIGNAL(activated(int)), TQT_SLOT(slotWidgetColor(int)));
groupLayout->addWidget(wcCombo);
- QWhatsThis::add( wcCombo, i18n("Click here to select an element of"
+ TQWhatsThis::add( wcCombo, i18n("Click here to select an element of"
" the KDE desktop whose color you want to change. You may either"
" choose the \"widget\" here, or click on the corresponding part"
" of the preview image above.") );
colorButton = new KColorButton( group );
- connect( colorButton, SIGNAL( changed(const QColor &)),
- SLOT(slotSelectColor(const QColor &)));
+ connect( colorButton, TQT_SIGNAL( changed(const TQColor &)),
+ TQT_SLOT(slotSelectColor(const TQColor &)));
groupLayout->addWidget( colorButton );
- QWhatsThis::add( colorButton, i18n("Click here to bring up a dialog"
+ TQWhatsThis::add( colorButton, i18n("Click here to bring up a dialog"
" box where you can choose a color for the \"widget\" selected"
" in the above list.") );
- cbShadeList = new QCheckBox(i18n("Shade sorted column in lists"), this);
+ cbShadeList = new TQCheckBox(i18n("Shade sorted column in lists"), this);
stackLayout->addWidget(cbShadeList);
- connect(cbShadeList, SIGNAL(toggled(bool)), this, SLOT(slotShadeSortColumnChanged(bool)));
+ connect(cbShadeList, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotShadeSortColumnChanged(bool)));
- QWhatsThis::add(cbShadeList,
+ TQWhatsThis::add(cbShadeList,
i18n("Check this box to show the sorted column in a list with a shaded background"));
- group = new QGroupBox( i18n("Con&trast"), this );
+ group = new TQGroupBox( i18n("Con&trast"), this );
stackLayout->addWidget(group);
- QVBoxLayout *groupLayout2 = new QVBoxLayout(group, 10);
+ TQVBoxLayout *groupLayout2 = new TQVBoxLayout(group, 10);
groupLayout2->addSpacing(10);
groupLayout = new QHBoxLayout;
groupLayout2->addLayout(groupLayout);
- sb = new QSlider( QSlider::Horizontal,group,"Slider" );
+ sb = new TQSlider( TQSlider::Horizontal,group,"Slider" );
sb->setRange( 0, 10 );
- sb->setFocusPolicy( QWidget::StrongFocus );
- connect(sb, SIGNAL(valueChanged(int)), SLOT(sliderValueChanged(int)));
+ sb->setFocusPolicy( TQWidget::StrongFocus );
+ connect(sb, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(sliderValueChanged(int)));
- QWhatsThis::add(sb, i18n("Use this slider to change the contrast level"
+ TQWhatsThis::add(sb, i18n("Use this slider to change the contrast level"
" of the current color scheme. Contrast does not affect all of the"
" colors, only the edges of 3D objects."));
- QLabel *label = new QLabel(sb, i18n("Low Contrast", "Low"), group);
+ TQLabel *label = new TQLabel(sb, i18n("Low Contrast", "Low"), group);
groupLayout->addWidget(label);
groupLayout->addWidget(sb, 10);
- label = new QLabel(group);
+ label = new TQLabel(group);
label->setText(i18n("High Contrast", "High"));
groupLayout->addWidget( label );
- cbExportColors = new QCheckBox(i18n("Apply colors to &non-KDE applications"), this);
+ cbExportColors = new TQCheckBox(i18n("Apply colors to &non-KDE applications"), this);
topLayout->addMultiCellWidget( cbExportColors, 2, 2, 0, 1 );
- connect(cbExportColors, SIGNAL(toggled(bool)), this, SLOT(changed()));
+ connect(cbExportColors, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(changed()));
- QWhatsThis::add(cbExportColors, i18n("Check this box to apply the"
+ TQWhatsThis::add(cbExportColors, i18n("Check this box to apply the"
" current color scheme to non-KDE applications."));
load();
@@ -296,7 +296,7 @@ KColorScheme::~KColorScheme()
delete mSchemeList;
}
-void KColorScheme::setColorName( const QString &name, int id )
+void KColorScheme::setColorName( const TQString &name, int id )
{
wcCombo->changeItem(name, id);
cs->addToolTip( id, name );
@@ -372,7 +372,7 @@ void KColorScheme::save()
// KDE-1.x support
KSimpleConfig *config =
- new KSimpleConfig( QDir::homeDirPath() + "/.kderc" );
+ new KSimpleConfig( TQDir::homeDirPath() + "/.kderc" );
config->setGroup( "General" );
config->writeEntry("background", cs->back );
config->writeEntry("selectBackground", cs->select );
@@ -388,7 +388,7 @@ void KColorScheme::save()
bool exportColors = cbExportColors->isChecked();
cfg2.writeEntry("exportKDEColors", exportColors);
cfg2.sync();
- QApplication::syncX();
+ TQApplication::syncX();
// Notify all qt-only apps of the KDE palette changes
uint flags = KRdbExportQtColors;
@@ -411,7 +411,7 @@ void KColorScheme::save()
int current = findSchemeByName(sCurrentScheme);
sList->setCurrentItem(0);
readScheme(0);
- QPixmap preview = mkColorPreview(cs);
+ TQPixmap preview = mkColorPreview(cs);
sList->changeItem(preview, sList->text(0), 0);
sList->setCurrentItem(current);
readScheme(current);
@@ -432,7 +432,7 @@ void KColorScheme::sliderValueChanged( int val )
cs->contrast = val;
cs->drawSampleWidgets();
- sCurrentScheme = QString::null;
+ sCurrentScheme = TQString::null;
emit changed(true);
}
@@ -485,7 +485,7 @@ void KColorScheme::slotRemove()
KColorSchemeEntry *entry = mSchemeList->at(ind-nSysSchemes);
if (!entry) return;
- if (unlink(QFile::encodeName(entry->path).data())) {
+ if (unlink(TQFile::encodeName(entry->path).data())) {
KMessageBox::error( 0,
i18n("This color scheme could not be removed.\n"
"Perhaps you do not have permission to alter the file"
@@ -508,11 +508,11 @@ void KColorScheme::slotRemove()
*/
void KColorScheme::slotAdd()
{
- QString sName;
+ TQString sName;
if (sList->currentItem() >= nSysSchemes)
sName = sList->currentText();
- QString sFile;
+ TQString sFile;
bool valid = false;
bool ok;
@@ -550,8 +550,8 @@ void KColorScheme::slotAdd()
valid = true;
}
- disconnect(sList, SIGNAL(highlighted(int)), this,
- SLOT(slotPreviewScheme(int)));
+ disconnect(sList, TQT_SIGNAL(highlighted(int)), this,
+ TQT_SLOT(slotPreviewScheme(int)));
if (exists != -1)
{
@@ -571,18 +571,18 @@ void KColorScheme::slotAdd()
}
slotSave();
- QPixmap preview = mkColorPreview(cs);
+ TQPixmap preview = mkColorPreview(cs);
int current = sList->currentItem();
sList->changeItem(preview, sList->text(current), current);
- connect(sList, SIGNAL(highlighted(int)), SLOT(slotPreviewScheme(int)));
+ connect(sList, TQT_SIGNAL(highlighted(int)), TQT_SLOT(slotPreviewScheme(int)));
slotPreviewScheme(current);
}
void KColorScheme::slotImport()
{
- QString location = locateLocal( "data", "kdisplay/color-schemes/" );
+ TQString location = locateLocal( "data", "kdisplay/color-schemes/" );
- KURL file ( KFileDialog::getOpenFileName(QString::null, "*.kcsrc", this) );
+ KURL file ( KFileDialog::getOpenFileName(TQString::null, "*.kcsrc", this) );
if ( file.isEmpty() )
return;
@@ -594,23 +594,23 @@ void KColorScheme::slotImport()
}
else
{
- QString sFile = location + file.fileName( false );
+ TQString sFile = location + file.fileName( false );
KSimpleConfig *config = new KSimpleConfig(sFile);
config->setGroup( "Color Scheme");
- QString sName = config->readEntry("Name", i18n("Untitled Theme"));
+ TQString sName = config->readEntry("Name", i18n("Untitled Theme"));
delete config;
insertEntry(sFile, sName);
- QPixmap preview = mkColorPreview(cs);
+ TQPixmap preview = mkColorPreview(cs);
int current = sList->currentItem();
sList->changeItem(preview, sList->text(current), current);
- connect(sList, SIGNAL(highlighted(int)), SLOT(slotPreviewScheme(int)));
+ connect(sList, TQT_SIGNAL(highlighted(int)), TQT_SLOT(slotPreviewScheme(int)));
slotPreviewScheme(current);
}
}
-QColor &KColorScheme::color(int index)
+TQColor &KColorScheme::color(int index)
{
switch(index) {
case CSM_Inactive_title_bar:
@@ -666,7 +666,7 @@ QColor &KColorScheme::color(int index)
}
-void KColorScheme::slotSelectColor(const QColor &col)
+void KColorScheme::slotSelectColor(const TQColor &col)
{
int selection;
selection = wcCombo->currentItem();
@@ -687,7 +687,7 @@ void KColorScheme::slotSelectColor(const QColor &col)
cs->drawSampleWidgets();
- sCurrentScheme = QString::null;
+ sCurrentScheme = TQString::null;
emit changed(true);
}
@@ -703,7 +703,7 @@ void KColorScheme::slotWidgetColor(int indx)
// Do not emit KCModule::changed()
colorButton->blockSignals( true );
- QColor col = color(indx);
+ TQColor col = color(indx);
colorButton->setColor( col );
colorPushColor = col;
@@ -711,7 +711,7 @@ void KColorScheme::slotWidgetColor(int indx)
}
-void KColorScheme::slotColorForWidget(int indx, const QColor& col)
+void KColorScheme::slotColorForWidget(int indx, const TQColor& col)
{
if (wcCombo->currentItem() != indx)
wcCombo->setCurrentItem( indx );
@@ -722,7 +722,7 @@ void KColorScheme::slotColorForWidget(int indx, const QColor& col)
void KColorScheme::slotShadeSortColumnChanged(bool b)
{
cs->shadeSortColumn = b;
- sCurrentScheme = QString::null;
+ sCurrentScheme = TQString::null;
emit changed(true);
}
@@ -736,25 +736,25 @@ void KColorScheme::readScheme( int index )
{
KConfigBase* config;
- QColor widget(239, 239, 239);
- QColor kde34Blue(103,141,178);
- QColor inactiveBackground(157,170,186);
- QColor activeBackground(65,142,220);
- QColor inactiveForeground(221,221,221);
- QColor activeBlend(107,145,184);
- QColor inactiveBlend(157,170,186);
- QColor activeTitleBtnBg(220,220,220);
- QColor inactiveTitleBtnBg(220,220,220);
- QColor alternateBackground(237,244,249);
-
- QColor button;
- if (QPixmap::defaultDepth() > 8)
+ TQColor widget(239, 239, 239);
+ TQColor kde34Blue(103,141,178);
+ TQColor inactiveBackground(157,170,186);
+ TQColor activeBackground(65,142,220);
+ TQColor inactiveForeground(221,221,221);
+ TQColor activeBlend(107,145,184);
+ TQColor inactiveBlend(157,170,186);
+ TQColor activeTitleBtnBg(220,220,220);
+ TQColor inactiveTitleBtnBg(220,220,220);
+ TQColor alternateBackground(237,244,249);
+
+ TQColor button;
+ if (TQPixmap::defaultDepth() > 8)
button.setRgb(221, 223, 228 );
else
button.setRgb(220, 220, 220);
- QColor link(0, 0, 238);
- QColor visitedLink(82, 24,139);
+ TQColor link(0, 0, 238);
+ TQColor visitedLink(82, 24,139);
// note: keep default color scheme in sync with default Current Scheme
if (index == 1) {
@@ -818,7 +818,7 @@ void KColorScheme::readScheme( int index )
cs->buttonTxt = config->readColorEntry( "buttonForeground", &black );
cs->link = config->readColorEntry( "linkColor", &link );
cs->visitedLink = config->readColorEntry( "visitedLinkColor", &visitedLink );
- QColor alternate = KGlobalSettings::calculateAlternateBackgroundColor(cs->window);
+ TQColor alternate = KGlobalSettings::calculateAlternateBackgroundColor(cs->window);
cs->alternateBackground = config->readColorEntry( "alternateBackground", &alternate );
if (index == 0)
@@ -860,14 +860,14 @@ void KColorScheme::readSchemeNames()
nSysSchemes = 2;
// Global + local schemes
- QStringList list = KGlobal::dirs()->findAllResources("data",
+ TQStringList list = KGlobal::dirs()->findAllResources("data",
"kdisplay/color-schemes/*.kcsrc", false, true);
// And add them
- for (QStringList::ConstIterator it = list.begin(); it != list.end(); ++it) {
+ for (TQStringList::ConstIterator it = list.begin(); it != list.end(); ++it) {
KSimpleConfig *config = new KSimpleConfig(*it);
config->setGroup("Color Scheme");
- QString str = config->readEntry("Name");
+ TQString str = config->readEntry("Name");
if (str.isEmpty()) {
str = config->readEntry("name");
if (str.isEmpty())
@@ -888,7 +888,7 @@ void KColorScheme::readSchemeNames()
{
sList->setCurrentItem(i);
readScheme(i);
- QPixmap preview = mkColorPreview(cs);
+ TQPixmap preview = mkColorPreview(cs);
sList->changeItem(preview, sList->text(i), i);
}
@@ -897,14 +897,14 @@ void KColorScheme::readSchemeNames()
/*
* Find scheme based on filename
*/
-int KColorScheme::findSchemeByName(const QString &scheme)
+int KColorScheme::findSchemeByName(const TQString &scheme)
{
if (scheme.isEmpty())
return 0;
if (scheme == "<default>")
return 1;
- QString search = scheme;
+ TQString search = scheme;
int i = search.findRev('/');
if (i >= 0)
search = search.mid(i+1);
@@ -952,23 +952,23 @@ void KColorScheme::slotPreviewScheme(int indx)
/* this function should dissappear: colorscm should work directly on a Qt palette, since
this will give us much more cusomization with qt-2.0.
*/
-QPalette KColorScheme::createPalette()
+TQPalette KColorScheme::createPalette()
{
- QColorGroup disabledgrp(cs->windowTxt, cs->back, cs->back.light(150),
+ TQColorGroup disabledgrp(cs->windowTxt, cs->back, cs->back.light(150),
cs->back.dark(), cs->back.dark(120), cs->back.dark(120),
cs->window);
- QColorGroup colgrp(cs->windowTxt, cs->back, cs->back.light(150),
+ TQColorGroup colgrp(cs->windowTxt, cs->back, cs->back.light(150),
cs->back.dark(), cs->back.dark(120), cs->txt, cs->window);
- colgrp.setColor(QColorGroup::Highlight, cs->select);
- colgrp.setColor(QColorGroup::HighlightedText, cs->selectTxt);
- colgrp.setColor(QColorGroup::Button, cs->button);
- colgrp.setColor(QColorGroup::ButtonText, cs->buttonTxt);
- return QPalette( colgrp, disabledgrp, colgrp);
+ colgrp.setColor(TQColorGroup::Highlight, cs->select);
+ colgrp.setColor(TQColorGroup::HighlightedText, cs->selectTxt);
+ colgrp.setColor(TQColorGroup::Button, cs->button);
+ colgrp.setColor(TQColorGroup::ButtonText, cs->buttonTxt);
+ return TQPalette( colgrp, disabledgrp, colgrp);
}
-void KColorScheme::insertEntry(const QString &sFile, const QString &sName)
+void KColorScheme::insertEntry(const TQString &sFile, const TQString &sName)
{
KColorSchemeEntry *newEntry = new KColorSchemeEntry(sFile, sName, true);
mSchemeList->inSort(newEntry);
diff --git a/kcontrol/colors/colorscm.h b/kcontrol/colors/colorscm.h
index 23b47c6a0..1494b072d 100644
--- a/kcontrol/colors/colorscm.h
+++ b/kcontrol/colors/colorscm.h
@@ -8,10 +8,10 @@
#ifndef __COLORSCM_H__
#define __COLORSCM_H__
-#include <qcolor.h>
-#include <qobject.h>
-#include <qstring.h>
-#include <qstringlist.h>
+#include <tqcolor.h>
+#include <tqobject.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
#include <kcmodule.h>
#include <kdialogbase.h>
@@ -39,7 +39,7 @@ class KColorScheme: public KCModule
Q_OBJECT
public:
- KColorScheme(QWidget *parent, const char *name, const QStringList &);
+ KColorScheme(TQWidget *parent, const char *name, const TQStringList &);
~KColorScheme();
virtual void load();
@@ -53,38 +53,38 @@ private slots:
void slotAdd();
void slotRemove();
void slotImport();
- void slotSelectColor(const QColor &col);
+ void slotSelectColor(const TQColor &col);
void slotWidgetColor(int);
- void slotColorForWidget(int, const QColor &);
+ void slotColorForWidget(int, const TQColor &);
void slotPreviewScheme(int);
void slotShadeSortColumnChanged(bool);
private:
- void setColorName( const QString &name, int id );
+ void setColorName( const TQString &name, int id );
void readScheme(int index=0);
void readSchemeNames();
- void insertEntry(const QString &sFile, const QString &sName);
- int findSchemeByName(const QString &scheme);
- QPalette createPalette();
+ void insertEntry(const TQString &sFile, const TQString &sName);
+ int findSchemeByName(const TQString &scheme);
+ TQPalette createPalette();
- QColor &color(int index);
+ TQColor &color(int index);
int nSysSchemes;
bool useRM;
- QColor colorPushColor;
- QSlider *sb;
- QComboBox *wcCombo;
- QPushButton *addBt, *removeBt, *importBt;
+ TQColor colorPushColor;
+ TQSlider *sb;
+ TQComboBox *wcCombo;
+ TQPushButton *addBt, *removeBt, *importBt;
KListBox *sList;
KColorSchemeList *mSchemeList;
- QString sCurrentScheme;
+ TQString sCurrentScheme;
KColorButton *colorButton;
WidgetCanvas *cs;
- QCheckBox *cbExportColors;
- QCheckBox *cbShadeList;
+ TQCheckBox *cbExportColors;
+ TQCheckBox *cbShadeList;
};
#endif
diff --git a/kcontrol/colors/widgetcanvas.cpp b/kcontrol/colors/widgetcanvas.cpp
index 42adcc3bb..67e68b3a3 100644
--- a/kcontrol/colors/widgetcanvas.cpp
+++ b/kcontrol/colors/widgetcanvas.cpp
@@ -5,13 +5,13 @@
// Copyright (c) Mark Donohoe 1998
//
-#include <qdrawutil.h>
-#include <qpainter.h>
-#include <qscrollbar.h>
-#include <qbitmap.h>
-#include <qtooltip.h>
-#include <qstyle.h>
-#include <qpopupmenu.h>
+#include <tqdrawutil.h>
+#include <tqpainter.h>
+#include <tqscrollbar.h>
+#include <tqbitmap.h>
+#include <tqtooltip.h>
+#include <tqstyle.h>
+#include <tqpopupmenu.h>
#include <kcolordrag.h>
#include <kpixmapeffect.h>
@@ -24,25 +24,25 @@
#include "widgetcanvas.moc"
#include "stdclient_bitmaps.h"
-static QPixmap* close_pix = 0;
-static QPixmap* maximize_pix = 0;
-static QPixmap* minimize_pix = 0;
-static QPixmap* normalize_pix = 0;
-static QPixmap* pinup_pix = 0;
-static QPixmap* pindown_pix = 0;
-static QPixmap* menu_pix = 0;
-
-static QPixmap* dis_close_pix = 0;
-static QPixmap* dis_maximize_pix = 0;
-static QPixmap* dis_minimize_pix = 0;
-static QPixmap* dis_normalize_pix = 0;
-static QPixmap* dis_pinup_pix = 0;
-static QPixmap* dis_pindown_pix = 0;
-static QPixmap* dis_menu_pix = 0;
-
-
-WidgetCanvas::WidgetCanvas( QWidget *parent, const char *name )
- : QWidget( parent, name ), shadeSortColumn( true )
+static TQPixmap* close_pix = 0;
+static TQPixmap* maximize_pix = 0;
+static TQPixmap* minimize_pix = 0;
+static TQPixmap* normalize_pix = 0;
+static TQPixmap* pinup_pix = 0;
+static TQPixmap* pindown_pix = 0;
+static TQPixmap* menu_pix = 0;
+
+static TQPixmap* dis_close_pix = 0;
+static TQPixmap* dis_maximize_pix = 0;
+static TQPixmap* dis_minimize_pix = 0;
+static TQPixmap* dis_normalize_pix = 0;
+static TQPixmap* dis_pinup_pix = 0;
+static TQPixmap* dis_pindown_pix = 0;
+static TQPixmap* dis_menu_pix = 0;
+
+
+WidgetCanvas::WidgetCanvas( TQWidget *parent, const char *name )
+ : TQWidget( parent, name ), shadeSortColumn( true )
{
setMouseTracking( true );
setBackgroundMode( NoBackground );
@@ -51,17 +51,17 @@ WidgetCanvas::WidgetCanvas( QWidget *parent, const char *name )
currentHotspot = -1;
}
-void WidgetCanvas::addToolTip( int area, const QString &tip )
+void WidgetCanvas::addToolTip( int area, const TQString &tip )
{
tips.insert(area, tip);
}
-void WidgetCanvas::paintEvent(QPaintEvent *)
+void WidgetCanvas::paintEvent(TQPaintEvent *)
{
bitBlt( this, 0, 0, &smplw );
}
-void WidgetCanvas::mousePressEvent( QMouseEvent *me )
+void WidgetCanvas::mousePressEvent( TQMouseEvent *me )
{
for ( int i = 0; i < MAX_HOTSPOTS; i++ )
if ( hotspots[i].rect.contains( me->pos() ) ) {
@@ -70,25 +70,25 @@ void WidgetCanvas::mousePressEvent( QMouseEvent *me )
}
}
-void WidgetCanvas::mouseMoveEvent( QMouseEvent *me )
+void WidgetCanvas::mouseMoveEvent( TQMouseEvent *me )
{
for ( int i = 0; i < MAX_HOTSPOTS; i++ )
if ( hotspots[i].rect.contains( me->pos() ) ) {
if ( i != currentHotspot ) {
- QString tip = tips[hotspots[i].number];
- QToolTip::remove( this );
- QToolTip::add( this, tip );
+ TQString tip = tips[hotspots[i].number];
+ TQToolTip::remove( this );
+ TQToolTip::add( this, tip );
currentHotspot = i;
}
return;
}
- QToolTip::remove( this );
+ TQToolTip::remove( this );
}
-void WidgetCanvas::dropEvent( QDropEvent *e)
+void WidgetCanvas::dropEvent( TQDropEvent *e)
{
- QColor c;
+ TQColor c;
if (KColorDrag::decode( e, c)) {
for ( int i = 0; i < MAX_HOTSPOTS; i++ )
if ( hotspots[i].rect.contains( e->pos() ) ) {
@@ -99,17 +99,17 @@ void WidgetCanvas::dropEvent( QDropEvent *e)
}
-void WidgetCanvas::dragEnterEvent( QDragEnterEvent *e)
+void WidgetCanvas::dragEnterEvent( TQDragEnterEvent *e)
{
e->accept( KColorDrag::canDecode( e));
}
-void WidgetCanvas::paletteChange(const QPalette &)
+void WidgetCanvas::paletteChange(const TQPalette &)
{
drawSampleWidgets();
}
-void WidgetCanvas::resizeEvent(QResizeEvent *)
+void WidgetCanvas::resizeEvent(TQResizeEvent *)
{
drawSampleWidgets();
}
@@ -118,13 +118,13 @@ void WidgetCanvas::resizeEvent(QResizeEvent *)
* This is necessary because otherwise the scrollbar in drawSampleWidgets()
* doesn't show the first time.
*/
-void WidgetCanvas::showEvent(QShowEvent *)
+void WidgetCanvas::showEvent(TQShowEvent *)
{
drawSampleWidgets();
}
-void WidgetCanvas::resetTitlebarPixmaps(const QColor &actMed,
- const QColor &disMed)
+void WidgetCanvas::resetTitlebarPixmaps(const TQColor &actMed,
+ const TQColor &disMed)
{
if(close_pix) delete close_pix;
if(maximize_pix) delete maximize_pix;
@@ -142,133 +142,133 @@ void WidgetCanvas::resetTitlebarPixmaps(const QColor &actMed,
if(dis_pindown_pix) delete dis_pindown_pix;
if(dis_menu_pix) delete dis_menu_pix;
- QPainter pact, pdis;
- QBitmap bitmap;
- QColor actHigh = actMed.light(150);
- QColor actLow = actMed.dark(120);
- QColor disHigh = disMed.light(150);
- QColor disLow = disMed.dark(120);
+ TQPainter pact, pdis;
+ TQBitmap bitmap;
+ TQColor actHigh = actMed.light(150);
+ TQColor actLow = actMed.dark(120);
+ TQColor disHigh = disMed.light(150);
+ TQColor disLow = disMed.dark(120);
- close_pix = new QPixmap(16, 16);
- dis_close_pix = new QPixmap(16, 16);
+ close_pix = new TQPixmap(16, 16);
+ dis_close_pix = new TQPixmap(16, 16);
pact.begin(close_pix); pdis.begin(dis_close_pix);
- bitmap = QBitmap(16, 16, close_white_bits, true);
+ bitmap = TQBitmap(16, 16, close_white_bits, true);
bitmap.setMask(bitmap);
pact.setPen(actHigh); pdis.setPen(disHigh);
pact.drawPixmap(0, 0, bitmap);
pdis.drawPixmap(0, 0, bitmap);
- bitmap = QBitmap(16, 16, close_dgray_bits, true);
+ bitmap = TQBitmap(16, 16, close_dgray_bits, true);
pact.setPen(actLow); pdis.setPen(disLow);
pact.drawPixmap(0, 0, bitmap);
pdis.drawPixmap(0, 0, bitmap);
pact.end(); pdis.end();
- bitmap = QBitmap(16, 16, close_mask_bits, true);
+ bitmap = TQBitmap(16, 16, close_mask_bits, true);
close_pix->setMask(bitmap); dis_close_pix->setMask(bitmap);
- minimize_pix = new QPixmap(16, 16);
- dis_minimize_pix = new QPixmap(16, 16);
+ minimize_pix = new TQPixmap(16, 16);
+ dis_minimize_pix = new TQPixmap(16, 16);
pact.begin(minimize_pix); pdis.begin(dis_minimize_pix);
- bitmap = QBitmap(16, 16, iconify_white_bits, true);
+ bitmap = TQBitmap(16, 16, iconify_white_bits, true);
bitmap.setMask(bitmap);
pact.setPen(actHigh); pdis.setPen(disHigh);
pact.drawPixmap(0, 0, bitmap);
pdis.drawPixmap(0, 0, bitmap);
- bitmap = QBitmap(16, 16, iconify_dgray_bits, true);
+ bitmap = TQBitmap(16, 16, iconify_dgray_bits, true);
pact.setPen(actLow); pdis.setPen(disLow);
pact.drawPixmap(0, 0, bitmap);
pdis.drawPixmap(0, 0, bitmap);
pact.end(); pdis.end();
- bitmap = QBitmap(16, 16, iconify_mask_bits, true);
+ bitmap = TQBitmap(16, 16, iconify_mask_bits, true);
minimize_pix->setMask(bitmap); dis_minimize_pix->setMask(bitmap);
- maximize_pix = new QPixmap(16, 16);
- dis_maximize_pix = new QPixmap(16, 16);
+ maximize_pix = new TQPixmap(16, 16);
+ dis_maximize_pix = new TQPixmap(16, 16);
pact.begin(maximize_pix); pdis.begin(dis_maximize_pix);
- bitmap = QBitmap(16, 16, maximize_white_bits, true);
+ bitmap = TQBitmap(16, 16, maximize_white_bits, true);
bitmap.setMask(bitmap);
pact.setPen(actHigh); pdis.setPen(disHigh);
pact.drawPixmap(0, 0, bitmap);
pdis.drawPixmap(0, 0, bitmap);
- bitmap = QBitmap(16, 16, maximize_dgray_bits, true);
+ bitmap = TQBitmap(16, 16, maximize_dgray_bits, true);
pact.setPen(actLow); pdis.setPen(disLow);
pact.drawPixmap(0, 0, bitmap);
pdis.drawPixmap(0, 0, bitmap);
pact.end(); pdis.end();
- bitmap = QBitmap(16, 16, maximize_mask_bits, true);
+ bitmap = TQBitmap(16, 16, maximize_mask_bits, true);
maximize_pix->setMask(bitmap); dis_maximize_pix->setMask(bitmap);
- normalize_pix = new QPixmap(16, 16);
- dis_normalize_pix = new QPixmap(16, 16);
+ normalize_pix = new TQPixmap(16, 16);
+ dis_normalize_pix = new TQPixmap(16, 16);
pact.begin(normalize_pix); pdis.begin(dis_normalize_pix);
- bitmap = QBitmap(16, 16, maximizedown_white_bits, true);
+ bitmap = TQBitmap(16, 16, maximizedown_white_bits, true);
bitmap.setMask(bitmap);
pact.setPen(actHigh); pdis.setPen(disHigh);
pact.drawPixmap(0, 0, bitmap);
pdis.drawPixmap(0, 0, bitmap);
- bitmap = QBitmap(16, 16, maximizedown_dgray_bits, true);
+ bitmap = TQBitmap(16, 16, maximizedown_dgray_bits, true);
pact.setPen(actLow); pdis.setPen(disLow);
pact.drawPixmap(0, 0, bitmap);
pdis.drawPixmap(0, 0, bitmap);
pact.end(); pdis.end();
- bitmap = QBitmap(16, 16, maximizedown_mask_bits, true);
+ bitmap = TQBitmap(16, 16, maximizedown_mask_bits, true);
normalize_pix->setMask(bitmap); dis_normalize_pix->setMask(bitmap);
- menu_pix = new QPixmap(16, 16);
- dis_menu_pix = new QPixmap(16, 16);
+ menu_pix = new TQPixmap(16, 16);
+ dis_menu_pix = new TQPixmap(16, 16);
pact.begin(menu_pix); pdis.begin(dis_menu_pix);
- bitmap = QBitmap(16, 16, menu_white_bits, true);
+ bitmap = TQBitmap(16, 16, menu_white_bits, true);
bitmap.setMask(bitmap);
pact.setPen(actHigh); pdis.setPen(disHigh);
pact.drawPixmap(0, 0, bitmap);
pdis.drawPixmap(0, 0, bitmap);
- bitmap = QBitmap(16, 16, menu_dgray_bits, true);
+ bitmap = TQBitmap(16, 16, menu_dgray_bits, true);
pact.setPen(actLow); pdis.setPen(disLow);
pact.drawPixmap(0, 0, bitmap);
pdis.drawPixmap(0, 0, bitmap);
pact.end(); pdis.end();
- bitmap = QBitmap(16, 16, menu_mask_bits, true);
+ bitmap = TQBitmap(16, 16, menu_mask_bits, true);
menu_pix->setMask(bitmap); dis_menu_pix->setMask(bitmap);
- pinup_pix = new QPixmap(16, 16);
- dis_pinup_pix = new QPixmap(16, 16);
+ pinup_pix = new TQPixmap(16, 16);
+ dis_pinup_pix = new TQPixmap(16, 16);
pact.begin(pinup_pix); pdis.begin(dis_pinup_pix);
- bitmap = QBitmap(16, 16, pinup_white_bits, true);
+ bitmap = TQBitmap(16, 16, pinup_white_bits, true);
bitmap.setMask(bitmap);
pact.setPen(actHigh); pdis.setPen(disHigh);
pact.drawPixmap(0, 0, bitmap);
pdis.drawPixmap(0, 0, bitmap);
- bitmap = QBitmap(16, 16, pinup_gray_bits, true);
+ bitmap = TQBitmap(16, 16, pinup_gray_bits, true);
pact.setPen(actMed); pdis.setPen(disMed);
pact.drawPixmap(0, 0, bitmap);
pdis.drawPixmap(0, 0, bitmap);
- bitmap = QBitmap(16, 16, pinup_dgray_bits, true);
+ bitmap = TQBitmap(16, 16, pinup_dgray_bits, true);
bitmap.setMask(bitmap);
pact.setPen(actLow); pdis.setPen(disLow);
pact.drawPixmap(0, 0, bitmap);
pdis.drawPixmap(0, 0, bitmap);
pact.end(); pdis.end();
- bitmap = QBitmap(16, 16, pinup_mask_bits, true);
+ bitmap = TQBitmap(16, 16, pinup_mask_bits, true);
pinup_pix->setMask(bitmap); dis_pinup_pix->setMask(bitmap);
- pindown_pix = new QPixmap(16, 16);
- dis_pindown_pix = new QPixmap(16, 16);
+ pindown_pix = new TQPixmap(16, 16);
+ dis_pindown_pix = new TQPixmap(16, 16);
pact.begin(pindown_pix); pdis.begin(dis_pindown_pix);
- bitmap = QBitmap(16, 16, pindown_white_bits, true);
+ bitmap = TQBitmap(16, 16, pindown_white_bits, true);
bitmap.setMask(bitmap);
pact.setPen(actHigh); pdis.setPen(disHigh);
pact.drawPixmap(0, 0, bitmap);
pdis.drawPixmap(0, 0, bitmap);
- bitmap = QBitmap(16, 16, pindown_gray_bits, true);
+ bitmap = TQBitmap(16, 16, pindown_gray_bits, true);
pact.setPen(actMed); pdis.setPen(disMed);
pact.drawPixmap(0, 0, bitmap);
pdis.drawPixmap(0, 0, bitmap);
- bitmap = QBitmap(16, 16, pindown_dgray_bits, true);
+ bitmap = TQBitmap(16, 16, pindown_dgray_bits, true);
bitmap.setMask(bitmap);
pact.setPen(actLow); pdis.setPen(disLow);
pact.drawPixmap(0, 0, bitmap);
pdis.drawPixmap(0, 0, bitmap);
pact.end(); pdis.end();
- bitmap = QBitmap(16, 16, pindown_mask_bits, true);
+ bitmap = TQBitmap(16, 16, pindown_mask_bits, true);
pindown_pix->setMask(bitmap); dis_pindown_pix->setMask(bitmap);
}
@@ -282,15 +282,15 @@ void WidgetCanvas::drawSampleWidgets()
// Keep in sync with kglobalsettings.
- QFont windowFontGuess(KGlobalSettings::generalFont().family(), 12, QFont::SansSerif, true);
+ TQFont windowFontGuess(KGlobalSettings::generalFont().family(), 12, TQFont::SansSerif, true);
windowFontGuess.setPixelSize(12);
c->setGroup("WM");
- QFont windowFont = c->readFontEntry("activeFont", &windowFontGuess);
+ TQFont windowFont = c->readFontEntry("activeFont", &windowFontGuess);
c->setGroup("General");
- QFont defaultMenuFont = KGlobalSettings::menuFont();
- QFont menuFont = c->readFontEntry("menuFont", &defaultMenuFont);
+ TQFont defaultMenuFont = KGlobalSettings::menuFont();
+ TQFont menuFont = c->readFontEntry("menuFont", &defaultMenuFont);
delete c;
c = 0;
@@ -301,7 +301,7 @@ void WidgetCanvas::drawSampleWidgets()
highlightVal=100+(2*contrast+4)*16/10;
lowlightVal=100+(2*contrast+4)*10;
- QColorGroup cg( txt, back,
+ TQColorGroup cg( txt, back,
back.light(highlightVal),
back.dark(lowlightVal),
back.dark(120),
@@ -309,26 +309,26 @@ void WidgetCanvas::drawSampleWidgets()
// We will need this brush.
- QBrush brush(SolidPattern);
+ TQBrush brush(SolidPattern);
brush.setColor( back );
// Create a scrollbar and redirect drawing into a temp. pixmap to save a
// lot of fiddly drawing later.
- QScrollBar *vertScrollBar = new QScrollBar( QScrollBar::Vertical, this );
- // TODO: vertScrollBar->setStyle( new QMotifStyle() );
+ TQScrollBar *vertScrollBar = new TQScrollBar( TQScrollBar::Vertical, this );
+ // TODO: vertScrollBar->setStyle( new TQMotifStyle() );
vertScrollBar->setGeometry( 400, 400, SCROLLBAR_SIZE, height());
vertScrollBar->setRange( 0, 0 );
- vertScrollBar->setPalette( QPalette(cg,cg,cg));
+ vertScrollBar->setPalette( TQPalette(cg,cg,cg));
vertScrollBar->show();
- QPixmap pm( vertScrollBar->width(), vertScrollBar->height() );
+ TQPixmap pm( vertScrollBar->width(), vertScrollBar->height() );
pm.fill( back );
#ifndef __osf__
- QPainter::redirect( vertScrollBar, &pm );
+ TQPainter::redirect( vertScrollBar, &pm );
#endif
vertScrollBar->repaint();
- QPainter::redirect( vertScrollBar, 0 );
+ TQPainter::redirect( vertScrollBar, 0 );
vertScrollBar->hide();
// Reset the titlebar pixmaps
@@ -342,7 +342,7 @@ void WidgetCanvas::drawSampleWidgets()
// Actually start painting in
- QPainter paint( &smplw );
+ TQPainter paint( &smplw );
// Inactive window
@@ -377,19 +377,19 @@ void WidgetCanvas::drawSampleWidgets()
int spot = 0;
hotspots[ spot++ ] =
- HotSpot( QRect( 65, 25-14, textLen, 14 ), CSM_Inactive_title_text );
+ HotSpot( TQRect( 65, 25-14, textLen, 14 ), CSM_Inactive_title_text );
hotspots[ spot++ ] =
- HotSpot( QRect( 60, 10, (width()-160)/2, 20 ), CSM_Inactive_title_bar );
+ HotSpot( TQRect( 60, 10, (width()-160)/2, 20 ), CSM_Inactive_title_bar );
hotspots[ spot++ ] =
- HotSpot( QRect( 60+(width()-160)/2, 10,
+ HotSpot( TQRect( 60+(width()-160)/2, 10,
(width()-160)/2, 20 ), CSM_Inactive_title_blend );
hotspots[spot++] =
- HotSpot(QRect(20, 12, 40, 20), CSM_Inactive_title_button);
+ HotSpot(TQRect(20, 12, 40, 20), CSM_Inactive_title_button);
hotspots[spot++] =
- HotSpot(QRect(tmp, 12, 60, 20), CSM_Inactive_title_button);
+ HotSpot(TQRect(tmp, 12, 60, 20), CSM_Inactive_title_button);
// Active window
@@ -420,44 +420,44 @@ void WidgetCanvas::drawSampleWidgets()
paint.drawPixmap(tmp+42, 35, *close_pix);
hotspots[ spot++ ] =
- HotSpot( QRect( 75, 50-14, textLen, 14 ), CSM_Active_title_text);
+ HotSpot( TQRect( 75, 50-14, textLen, 14 ), CSM_Active_title_text);
hotspots[ spot ++] =
- HotSpot( QRect( 65, 35, (width()-152)/2, 20 ), CSM_Active_title_bar );
+ HotSpot( TQRect( 65, 35, (width()-152)/2, 20 ), CSM_Active_title_bar );
hotspots[ spot ++] =
- HotSpot( QRect( 65+(width()-152)/2, 35,
+ HotSpot( TQRect( 65+(width()-152)/2, 35,
(width()-152)/2, 20 ), CSM_Active_title_blend );
hotspots[spot++] =
- HotSpot(QRect(25, 35, 40, 20), CSM_Active_title_button);
+ HotSpot(TQRect(25, 35, 40, 20), CSM_Active_title_button);
hotspots[spot++] =
- HotSpot(QRect(tmp, 35, 60, 20), CSM_Active_title_button);
+ HotSpot(TQRect(tmp, 35, 60, 20), CSM_Active_title_button);
// Menu bar
//qDrawShadePanel ( &paint, 25, 55, width()-52, 28, cg, FALSE, 2, &brush);
- kapp->style().drawPrimitive(QStyle::PE_PanelMenuBar, &paint,
- QRect(QPoint(25, 55), QSize(width()-52, 28)), cg);
+ kapp->style().drawPrimitive(TQStyle::PE_PanelMenuBar, &paint,
+ TQRect(TQPoint(25, 55), TQSize(width()-52, 28)), cg);
paint.setFont( menuFont );
paint.setPen(txt );
- QString file = i18n("File");
+ TQString file = i18n("File");
textLen = paint.fontMetrics().width( file );
//qDrawShadePanel ( &paint, 30, 59, textLen + 10, 21, cg, FALSE, 2, &brush);
- kapp->style().drawPrimitive(QStyle::PE_Panel, &paint,
- QRect(30, 59, textLen + 10, 21), cg);
+ kapp->style().drawPrimitive(TQStyle::PE_Panel, &paint,
+ TQRect(30, 59, textLen + 10, 21), cg);
paint.drawText( 35, 74, file );
hotspots[ spot++ ] =
- HotSpot( QRect( 35, 62, textLen, 14 ), CSM_Text );
+ HotSpot( TQRect( 35, 62, textLen, 14 ), CSM_Text );
hotspots[ spot++ ] =
- HotSpot( QRect( 27, 57, 33, 21 ), CSM_Background );
+ HotSpot( TQRect( 27, 57, 33, 21 ), CSM_Background );
paint.setFont( menuFont );
paint.setPen( txt );
paint.drawText( 35 + textLen + 20, 74, i18n("Edit") );
textLen = paint.fontMetrics().width( i18n("Edit") );
- hotspots[ spot++ ] = HotSpot( QRect( 35 + textLen + 20, 62, textLen, 14 ), CSM_Text );
+ hotspots[ spot++ ] = HotSpot( TQRect( 35 + textLen + 20, 62, textLen, 14 ), CSM_Text );
// Button Rects need to go before window
@@ -468,7 +468,7 @@ void WidgetCanvas::drawSampleWidgets()
height(), cg, TRUE, 2, &brush);
// Standard text
- QFont fnt = KGlobalSettings::generalFont();
+ TQFont fnt = KGlobalSettings::generalFont();
paint.setFont( fnt );
paint.setPen( windowTxt );
paint.drawText( 140, 127-20, i18n( "Standard text") );
@@ -476,7 +476,7 @@ void WidgetCanvas::drawSampleWidgets()
int column2 = 120 + textLen + 40 + 16;
hotspots[ spot++ ] =
- HotSpot( QRect( 140, 113-20, textLen, 14 ), CSM_Standard_text );
+ HotSpot( TQRect( 140, 113-20, textLen, 14 ), CSM_Standard_text );
// Selected text
textLen = paint.fontMetrics().width( i18n("Selected text") );
@@ -491,9 +491,9 @@ void WidgetCanvas::drawSampleWidgets()
paint.drawText( 140, 135, i18n( "Selected text") );
hotspots[ spot++ ] =
- HotSpot( QRect( 140, 121, textLen, 14 ), CSM_Select_text );
+ HotSpot( TQRect( 140, 121, textLen, 14 ), CSM_Select_text );
hotspots[ spot++ ] =
- HotSpot( QRect( 120, 115, textLen+40, 32), CSM_Select_background ); // select bg
+ HotSpot( TQRect( 120, 115, textLen+40, 32), CSM_Select_background ); // select bg
// Link
paint.setPen( link );
@@ -502,7 +502,7 @@ void WidgetCanvas::drawSampleWidgets()
paint.drawLine( column2+18, 109, column2+18+textLen, 109);
hotspots[ spot++ ] =
- HotSpot( QRect( column2+18, 113-20, textLen, 17 ), CSM_Link );
+ HotSpot( TQRect( column2+18, 113-20, textLen, 17 ), CSM_Link );
int column3 = column2 + 25 + textLen;
// Followed Link
@@ -512,24 +512,24 @@ void WidgetCanvas::drawSampleWidgets()
paint.drawLine( column3, 109, column3+textLen, 109);
hotspots[ spot++ ] =
- HotSpot( QRect( column3, 113-20, textLen, 17 ), CSM_Followed_Link );
+ HotSpot( TQRect( column3, 113-20, textLen, 17 ), CSM_Followed_Link );
// Button
int xpos = column2;
int ypos = 115 + 2;
textLen = paint.fontMetrics().width(i18n("Push Button"));
hotspots[ spot++ ] =
- HotSpot( QRect(xpos+16, ypos+((28-paint.fontMetrics().height())/2),
+ HotSpot( TQRect(xpos+16, ypos+((28-paint.fontMetrics().height())/2),
textLen, paint.fontMetrics().height()), CSM_Button_text );
hotspots[ spot++ ] =
- HotSpot( QRect(xpos, ypos, textLen+32, 28), CSM_Button_background );
+ HotSpot( TQRect(xpos, ypos, textLen+32, 28), CSM_Button_background );
//brush.setColor( button );
- QColorGroup cg2(cg);
- cg2.setColor(QColorGroup::Button, button);
- cg2.setColor(QColorGroup::Background, window);
+ TQColorGroup cg2(cg);
+ cg2.setColor(TQColorGroup::Button, button);
+ cg2.setColor(TQColorGroup::Background, window);
//qDrawWinButton(&paint, xpos, ypos, textLen+32, 28, cg, false, &brush);
- kapp->style().drawPrimitive(QStyle::PE_ButtonCommand, &paint,
- QRect(xpos, ypos, textLen+32, 28), cg2, QStyle::Style_Enabled | QStyle::Style_Raised);
+ kapp->style().drawPrimitive(TQStyle::PE_ButtonCommand, &paint,
+ TQRect(xpos, ypos, textLen+32, 28), cg2, TQStyle::Style_Enabled | TQStyle::Style_Raised);
paint.setPen(buttonTxt);
paint.drawText(xpos, ypos, textLen+32, 28, AlignCenter,
i18n("Push Button"));
@@ -547,20 +547,20 @@ void WidgetCanvas::drawSampleWidgets()
textLenNew = paint.fontMetrics().width( i18n("New") );
hotspots[ spot++ ] =
- HotSpot( QRect( 56, 83, textLenNew, 14 ), CSM_Text );
+ HotSpot( TQRect( 56, 83, textLenNew, 14 ), CSM_Text );
paint.setFont( menuFont );
textLenOpen = paint.fontMetrics().width( i18n("Menu item", "Open") );
hotspots[ spot++ ] =
- HotSpot( QRect( 56, 105, textLenOpen, 14 ), CSM_Text );
+ HotSpot( TQRect( 56, 105, textLenOpen, 14 ), CSM_Text );
paint.setFont( menuFont );
textLenSave = paint.fontMetrics().width( i18n("Menu item", "Save") );
- QPopupMenu *popup = new QPopupMenu( this );
+ TQPopupMenu *popup = new TQPopupMenu( this );
popup->setFont( menuFont );
- popup->setPalette( QPalette(cg,cg,cg));
+ popup->setPalette( TQPalette(cg,cg,cg));
popup->insertItem(i18n("New"));
popup->insertItem(i18n("Menu item", "Open"));
int id = popup->insertItem(i18n("Menu item", "Save"));
@@ -571,15 +571,15 @@ void WidgetCanvas::drawSampleWidgets()
//popup->sizeHint(); // Breaks with Qt 3.3
popup->resize(popup->sizeHint());
- pm = QPixmap::grabWidget( popup );
+ pm = TQPixmap::grabWidget( popup );
delete popup;
bitBlt(&smplw, 30, 80, &pm, 0, 0, pm.width(), pm.height());
hotspots[ spot++ ] =
- HotSpot( QRect( 28, 78, 88, 77 ), CSM_Background );
+ HotSpot( TQRect( 28, 78, 88, 77 ), CSM_Background );
hotspots[ spot++ ] =
- HotSpot( QRect(25, 80+5-4, width()-7-45-2-16, height()), CSM_Standard_background );
+ HotSpot( TQRect(25, 80+5-4, width()-7-45-2-16, height()), CSM_Standard_background );
// Valance
@@ -590,7 +590,7 @@ void WidgetCanvas::drawSampleWidgets()
// Stop the painting
hotspots[ spot++ ] =
- HotSpot( QRect( 0, 0, width(), height() ), CSM_Background ); // ?
+ HotSpot( TQRect( 0, 0, width(), height() ), CSM_Background ); // ?
repaint( FALSE );
}
diff --git a/kcontrol/colors/widgetcanvas.h b/kcontrol/colors/widgetcanvas.h
index e2f9bd057..4e78d599e 100644
--- a/kcontrol/colors/widgetcanvas.h
+++ b/kcontrol/colors/widgetcanvas.h
@@ -8,7 +8,7 @@
#ifndef __WIDGETCANVAS_H__
#define __WIDGETCANVAS_H__
-#include <qmap.h>
+#include <tqmap.h>
#include <kapplication.h>
#define MAX_HOTSPOTS 28
@@ -51,10 +51,10 @@ class HotSpot
{
public:
HotSpot() {}
- HotSpot( const QRect &r, int num )
+ HotSpot( const TQRect &r, int num )
: rect(r), number(num) {}
- QRect rect;
+ TQRect rect;
int number;
};
@@ -63,57 +63,57 @@ class WidgetCanvas : public QWidget
Q_OBJECT
public:
- WidgetCanvas( QWidget *parent=0, const char *name=0 );
+ WidgetCanvas( TQWidget *parent=0, const char *name=0 );
void drawSampleWidgets();
- void resetTitlebarPixmaps(const QColor &active,
- const QColor &inactive);
- void addToolTip( int area, const QString & );
- QPixmap smplw;
+ void resetTitlebarPixmaps(const TQColor &active,
+ const TQColor &inactive);
+ void addToolTip( int area, const TQString & );
+ TQPixmap smplw;
- QColor iaTitle;
- QColor iaTxt;
- QColor iaBlend;
- QColor iaFrame;
- QColor iaHandle;
- QColor aTitle;
- QColor aTxt;
- QColor aBlend;
- QColor aFrame;
- QColor aHandle;
- QColor back;
- QColor txt;
- QColor select;
- QColor selectTxt;
- QColor window;
- QColor windowTxt;
- QColor button;
- QColor buttonTxt;
- QColor aTitleBtn;
- QColor iTitleBtn;
- QColor link;
- QColor visitedLink;
- QColor alternateBackground;
+ TQColor iaTitle;
+ TQColor iaTxt;
+ TQColor iaBlend;
+ TQColor iaFrame;
+ TQColor iaHandle;
+ TQColor aTitle;
+ TQColor aTxt;
+ TQColor aBlend;
+ TQColor aFrame;
+ TQColor aHandle;
+ TQColor back;
+ TQColor txt;
+ TQColor select;
+ TQColor selectTxt;
+ TQColor window;
+ TQColor windowTxt;
+ TQColor button;
+ TQColor buttonTxt;
+ TQColor aTitleBtn;
+ TQColor iTitleBtn;
+ TQColor link;
+ TQColor visitedLink;
+ TQColor alternateBackground;
int contrast;
bool shadeSortColumn;
signals:
void widgetSelected( int );
- void colorDropped( int, const QColor&);
+ void colorDropped( int, const TQColor&);
protected:
- void redrawPopup(const QColorGroup &cg);
+ void redrawPopup(const TQColorGroup &cg);
- virtual void paintEvent( QPaintEvent * );
- virtual void mousePressEvent( QMouseEvent * );
- virtual void mouseMoveEvent( QMouseEvent * );
- virtual void resizeEvent( QResizeEvent * );
- virtual void showEvent( QShowEvent * );
- virtual void dropEvent( QDropEvent *);
- virtual void dragEnterEvent( QDragEnterEvent *);
- void paletteChange( const QPalette & );
+ virtual void paintEvent( TQPaintEvent * );
+ virtual void mousePressEvent( TQMouseEvent * );
+ virtual void mouseMoveEvent( TQMouseEvent * );
+ virtual void resizeEvent( TQResizeEvent * );
+ virtual void showEvent( TQShowEvent * );
+ virtual void dropEvent( TQDropEvent *);
+ virtual void dragEnterEvent( TQDragEnterEvent *);
+ void paletteChange( const TQPalette & );
- QMap<int,QString> tips;
+ TQMap<int,TQString> tips;
HotSpot hotspots[MAX_HOTSPOTS];
int currentHotspot;
};
diff --git a/kcontrol/componentchooser/componentchooser.cpp b/kcontrol/componentchooser/componentchooser.cpp
index 792b250a0..88fdeb165 100644
--- a/kcontrol/componentchooser/componentchooser.cpp
+++ b/kcontrol/componentchooser/componentchooser.cpp
@@ -19,11 +19,11 @@
#include "componentchooser.h"
#include "componentchooser.moc"
-#include <qcheckbox.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qradiobutton.h>
-#include <qwidgetstack.h>
+#include <tqcheckbox.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqradiobutton.h>
+#include <tqwidgetstack.h>
#include <dcopclient.h>
@@ -41,23 +41,23 @@
class MyListBoxItem: public QListBoxText
{
public:
- MyListBoxItem(const QString& text, const QString &file):QListBoxText(text),File(file){}
+ MyListBoxItem(const TQString& text, const TQString &file):TQListBoxText(text),File(file){}
virtual ~MyListBoxItem(){;}
- QString File;
+ TQString File;
};
//BEGIN General kpart based Component selection
-CfgComponent::CfgComponent(QWidget *parent):ComponentConfig_UI(parent),CfgPlugin(){
+CfgComponent::CfgComponent(TQWidget *parent):ComponentConfig_UI(parent),CfgPlugin(){
m_lookupDict.setAutoDelete(true);
m_revLookupDict.setAutoDelete(true);
- connect(ComponentSelector,SIGNAL(activated(const QString&)),this,SLOT(slotComponentChanged(const QString&)));
+ connect(ComponentSelector,TQT_SIGNAL(activated(const TQString&)),this,TQT_SLOT(slotComponentChanged(const TQString&)));
}
CfgComponent::~CfgComponent(){}
-void CfgComponent::slotComponentChanged(const QString&) {
+void CfgComponent::slotComponentChanged(const TQString&) {
emit changed(true);
}
@@ -66,7 +66,7 @@ void CfgComponent::save(KConfig *cfg) {
if (!m_lookupDict[ComponentSelector->currentText()])
return;
- QString ServiceTypeToConfigure=cfg->readEntry("ServiceTypeToConfigure");
+ TQString ServiceTypeToConfigure=cfg->readEntry("ServiceTypeToConfigure");
KConfig *store = new KConfig(cfg->readPathEntry("storeInFile","null"));
store->setGroup(cfg->readEntry("valueSection"));
store->writePathEntry(cfg->readEntry("valueName","kcm_componenchooser_null"),*m_lookupDict[ComponentSelector->currentText()]);
@@ -81,24 +81,24 @@ void CfgComponent::load(KConfig *cfg) {
m_lookupDict.clear();
m_revLookupDict.clear();
- QString ServiceTypeToConfigure=cfg->readEntry("ServiceTypeToConfigure");
+ TQString ServiceTypeToConfigure=cfg->readEntry("ServiceTypeToConfigure");
- QString MimeTypeOfInterest=cfg->readEntry("MimeTypeOfInterest");
+ TQString MimeTypeOfInterest=cfg->readEntry("MimeTypeOfInterest");
KTrader::OfferList offers = KTrader::self()->query(MimeTypeOfInterest, "'"+ServiceTypeToConfigure+"' in ServiceTypes");
for (KTrader::OfferList::Iterator tit = offers.begin(); tit != offers.end(); ++tit)
{
ComponentSelector->insertItem((*tit)->name());
- m_lookupDict.insert((*tit)->name(),new QString((*tit)->desktopEntryName()));
- m_revLookupDict.insert((*tit)->desktopEntryName(),new QString((*tit)->name()));
+ m_lookupDict.insert((*tit)->name(),new TQString((*tit)->desktopEntryName()));
+ m_revLookupDict.insert((*tit)->desktopEntryName(),new TQString((*tit)->name()));
}
KConfig *store = new KConfig(cfg->readPathEntry("storeInFile","null"));
store->setGroup(cfg->readEntry("valueSection"));
- QString setting=store->readEntry(cfg->readEntry("valueName","kcm_componenchooser_null"));
+ TQString setting=store->readEntry(cfg->readEntry("valueName","kcm_componenchooser_null"));
delete store;
if (setting.isEmpty()) setting=cfg->readEntry("defaultImplementation");
- QString *tmp=m_revLookupDict[setting];
+ TQString *tmp=m_revLookupDict[setting];
if (tmp)
for (int i=0;i<ComponentSelector->count();i++)
if ((*tmp)==ComponentSelector->text(i))
@@ -122,12 +122,12 @@ void CfgComponent::defaults()
//BEGIN Email client config
-CfgEmailClient::CfgEmailClient(QWidget *parent):EmailClientConfig_UI(parent),CfgPlugin(){
+CfgEmailClient::CfgEmailClient(TQWidget *parent):EmailClientConfig_UI(parent),CfgPlugin(){
pSettings = new KEMailSettings();
- connect(kmailCB, SIGNAL(toggled(bool)), SLOT(configChanged()) );
- connect(txtEMailClient, SIGNAL(textChanged(const QString&)), SLOT(configChanged()) );
- connect(chkRunTerminal, SIGNAL(clicked()), SLOT(configChanged()) );
+ connect(kmailCB, TQT_SIGNAL(toggled(bool)), TQT_SLOT(configChanged()) );
+ connect(txtEMailClient, TQT_SIGNAL(textChanged(const TQString&)), TQT_SLOT(configChanged()) );
+ connect(chkRunTerminal, TQT_SIGNAL(clicked()), TQT_SLOT(configChanged()) );
}
CfgEmailClient::~CfgEmailClient() {
@@ -141,7 +141,7 @@ void CfgEmailClient::defaults()
void CfgEmailClient::load(KConfig *)
{
- QString emailClient = pSettings->getSetting(KEMailSettings::ClientProgram);
+ TQString emailClient = pSettings->getSetting(KEMailSettings::ClientProgram);
bool useKMail = (emailClient.isEmpty());
kmailCB->setChecked(useKMail);
@@ -162,16 +162,16 @@ void CfgEmailClient::configChanged()
void CfgEmailClient::selectEmailClient()
{
KURL::List urlList;
- KOpenWithDlg dlg(urlList, i18n("Select preferred email client:"), QString::null, this);
+ KOpenWithDlg dlg(urlList, i18n("Select preferred email client:"), TQString::null, this);
// hide "Do not &close when command exits" here, we don't need it for a mail client
dlg.hideNoCloseOnExit();
- if (dlg.exec() != QDialog::Accepted) return;
- QString client = dlg.text();
+ if (dlg.exec() != TQDialog::Accepted) return;
+ TQString client = dlg.text();
// get the preferred Terminal Application
- KConfigGroup confGroup( KGlobal::config(), QString::fromLatin1("General") );
- QString preferredTerminal = confGroup.readPathEntry("TerminalApplication", QString::fromLatin1("konsole"));
- preferredTerminal += QString::fromLatin1(" -e ");
+ KConfigGroup confGroup( KGlobal::config(), TQString::fromLatin1("General") );
+ TQString preferredTerminal = confGroup.readPathEntry("TerminalApplication", TQString::fromLatin1("konsole"));
+ preferredTerminal += TQString::fromLatin1(" -e ");
int len = preferredTerminal.length();
bool b = client.left(len) == preferredTerminal;
@@ -188,7 +188,7 @@ void CfgEmailClient::save(KConfig *)
{
if (kmailCB->isChecked())
{
- pSettings->setSetting(KEMailSettings::ClientProgram, QString::null);
+ pSettings->setSetting(KEMailSettings::ClientProgram, TQString::null);
pSettings->setSetting(KEMailSettings::ClientTerminal, "false");
}
else
@@ -198,11 +198,11 @@ void CfgEmailClient::save(KConfig *)
}
// insure proper permissions -- contains sensitive data
- QString cfgName(KGlobal::dirs()->findResource("config", "emails"));
+ TQString cfgName(KGlobal::dirs()->findResource("config", "emails"));
if (!cfgName.isEmpty())
- ::chmod(QFile::encodeName(cfgName), 0600);
+ ::chmod(TQFile::encodeName(cfgName), 0600);
- kapp->dcopClient()->emitDCOPSignal("KDE_emailSettingsChanged()", QByteArray());
+ kapp->dcopClient()->emitDCOPSignal("KDE_emailSettingsChanged()", TQByteArray());
emit changed(false);
}
@@ -214,10 +214,10 @@ void CfgEmailClient::save(KConfig *)
//BEGIN Terminal Emulator Configuration
-CfgTerminalEmulator::CfgTerminalEmulator(QWidget *parent):TerminalEmulatorConfig_UI(parent),CfgPlugin(){
- connect(terminalLE,SIGNAL(textChanged(const QString &)), this, SLOT(configChanged()));
- connect(terminalCB,SIGNAL(toggled(bool)),this,SLOT(configChanged()));
- connect(otherCB,SIGNAL(toggled(bool)),this,SLOT(configChanged()));
+CfgTerminalEmulator::CfgTerminalEmulator(TQWidget *parent):TerminalEmulatorConfig_UI(parent),CfgPlugin(){
+ connect(terminalLE,TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(configChanged()));
+ connect(terminalCB,TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(configChanged()));
+ connect(otherCB,TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(configChanged()));
}
CfgTerminalEmulator::~CfgTerminalEmulator() {
@@ -237,7 +237,7 @@ void CfgTerminalEmulator::defaults()
void CfgTerminalEmulator::load(KConfig *) {
KConfig *config = new KConfig("kdeglobals", true);
config->setGroup("General");
- QString terminal = config->readPathEntry("TerminalApplication","konsole");
+ TQString terminal = config->readPathEntry("TerminalApplication","konsole");
if (terminal == "konsole")
{
terminalLE->setText("xterm");
@@ -262,7 +262,7 @@ void CfgTerminalEmulator::save(KConfig *) {
delete config;
KIPC::sendMessageAll(KIPC::SettingsChanged);
- kapp->dcopClient()->send("klauncher", "klauncher","reparseConfiguration()", QString::null);
+ kapp->dcopClient()->send("klauncher", "klauncher","reparseConfiguration()", TQString::null);
emit changed(false);
}
@@ -270,11 +270,11 @@ void CfgTerminalEmulator::save(KConfig *) {
void CfgTerminalEmulator::selectTerminalApp()
{
KURL::List urlList;
- KOpenWithDlg dlg(urlList, i18n("Select preferred terminal application:"), QString::null, this);
+ KOpenWithDlg dlg(urlList, i18n("Select preferred terminal application:"), TQString::null, this);
// hide "Run in &terminal" here, we don't need it for a Terminal Application
dlg.hideRunInTerminal();
- if (dlg.exec() != QDialog::Accepted) return;
- QString client = dlg.text();
+ if (dlg.exec() != TQDialog::Accepted) return;
+ TQString client = dlg.text();
if (!client.isEmpty())
{
@@ -286,10 +286,10 @@ void CfgTerminalEmulator::selectTerminalApp()
//BEGIN Browser Configuration
-CfgBrowser::CfgBrowser(QWidget *parent) : BrowserConfig_UI(parent),CfgPlugin(){
- connect(lineExec,SIGNAL(textChanged(const QString &)),this,SLOT(configChanged()));
- connect(radioKIO,SIGNAL(toggled(bool)),this,SLOT(configChanged()));
- connect(radioExec,SIGNAL(toggled(bool)),this,SLOT(configChanged()));
+CfgBrowser::CfgBrowser(TQWidget *parent) : BrowserConfig_UI(parent),CfgPlugin(){
+ connect(lineExec,TQT_SIGNAL(textChanged(const TQString &)),this,TQT_SLOT(configChanged()));
+ connect(radioKIO,TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(configChanged()));
+ connect(radioExec,TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(configChanged()));
}
CfgBrowser::~CfgBrowser() {
@@ -309,7 +309,7 @@ void CfgBrowser::defaults()
void CfgBrowser::load(KConfig *) {
KConfig *config = new KConfig("kdeglobals", true);
config->setGroup("General");
- QString exec = config->readEntry("BrowserApplication");
+ TQString exec = config->readEntry("BrowserApplication");
if (exec.isEmpty())
{
radioKIO->setChecked(true);
@@ -330,7 +330,7 @@ void CfgBrowser::load(KConfig *) {
if (m_browserService)
m_browserExec = m_browserService->desktopEntryName();
else
- m_browserExec = QString::null;
+ m_browserExec = TQString::null;
}
}
@@ -344,7 +344,7 @@ void CfgBrowser::save(KConfig *) {
KConfig *config = new KConfig("kdeglobals");
config->setGroup("General");
- QString exec;
+ TQString exec;
if (radioExec->isChecked())
{
exec = lineExec->text();
@@ -365,8 +365,8 @@ void CfgBrowser::save(KConfig *) {
void CfgBrowser::selectBrowser()
{
KURL::List urlList;
- KOpenWithDlg dlg(urlList, i18n("Select preferred Web browser application:"), QString::null, this);
- if (dlg.exec() != QDialog::Accepted) return;
+ KOpenWithDlg dlg(urlList, i18n("Select preferred Web browser application:"), TQString::null, this);
+ if (dlg.exec() != TQDialog::Accepted) return;
m_browserService = dlg.service();
if (m_browserService)
m_browserExec = m_browserService->desktopEntryName();
@@ -378,16 +378,16 @@ void CfgBrowser::selectBrowser()
//END Terminal Emulator Configuration
-ComponentChooser::ComponentChooser(QWidget *parent, const char *name):
+ComponentChooser::ComponentChooser(TQWidget *parent, const char *name):
ComponentChooser_UI(parent,name), configWidget(0) {
ComponentChooser_UILayout->setRowStretch(1, 1);
somethingChanged=false;
latestEditedService="";
- QStringList dummy;
- QStringList services=KGlobal::dirs()->findAllResources( "data","kcm_componentchooser/*.desktop",false,true,dummy);
- for (QStringList::Iterator it=services.begin();it!=services.end();++it)
+ TQStringList dummy;
+ TQStringList services=KGlobal::dirs()->findAllResources( "data","kcm_componentchooser/*.desktop",false,true,dummy);
+ for (TQStringList::Iterator it=services.begin();it!=services.end();++it)
{
KSimpleConfig cfg(*it);
ServiceChooser->insertItem(new MyListBoxItem(cfg.readEntry("Name",i18n("Unknown")),(*it)));
@@ -395,17 +395,17 @@ ComponentChooser::ComponentChooser(QWidget *parent, const char *name):
}
ServiceChooser->setFixedWidth(ServiceChooser->sizeHint().width());
ServiceChooser->sort();
- connect(ServiceChooser,SIGNAL(highlighted(QListBoxItem*)),this,SLOT(slotServiceSelected(QListBoxItem*)));
+ connect(ServiceChooser,TQT_SIGNAL(highlighted(TQListBoxItem*)),this,TQT_SLOT(slotServiceSelected(TQListBoxItem*)));
ServiceChooser->setSelected(0,true);
slotServiceSelected(ServiceChooser->item(0));
}
-void ComponentChooser::slotServiceSelected(QListBoxItem* it) {
+void ComponentChooser::slotServiceSelected(TQListBoxItem* it) {
if (!it) return;
if (somethingChanged) {
- if (KMessageBox::questionYesNo(this,i18n("<qt>You changed the default component of your choice. Do you want to save that change now?</qt>"),QString::null,KStdGuiItem::save(),KStdGuiItem::discard())==KMessageBox::Yes) save();
+ if (KMessageBox::questionYesNo(this,i18n("<qt>You changed the default component of your choice. Do you want to save that change now?</qt>"),TQString::null,KStdGuiItem::save(),KStdGuiItem::discard())==KMessageBox::Yes) save();
}
KSimpleConfig cfg(static_cast<MyListBoxItem*>(it)->File);
@@ -413,8 +413,8 @@ void ComponentChooser::slotServiceSelected(QListBoxItem* it) {
ComponentDescription->setMinimumSize(ComponentDescription->sizeHint());
- QString cfgType=cfg.readEntry("configurationType");
- QWidget *newConfigWidget = 0;
+ TQString cfgType=cfg.readEntry("configurationType");
+ TQWidget *newConfigWidget = 0;
if (cfgType.isEmpty() || (cfgType=="component"))
{
if (!(configWidget && configWidget->qt_cast("CfgComponent")))
@@ -460,7 +460,7 @@ void ComponentChooser::slotServiceSelected(QListBoxItem* it) {
configContainer->removeWidget(configWidget);
delete configWidget;
configWidget=newConfigWidget;
- connect(configWidget,SIGNAL(changed(bool)),this,SLOT(emitChanged(bool)));
+ connect(configWidget,TQT_SIGNAL(changed(bool)),this,TQT_SLOT(emitChanged(bool)));
configContainer->setMinimumSize(configWidget->sizeHint());
}
diff --git a/kcontrol/componentchooser/componentchooser.h b/kcontrol/componentchooser/componentchooser.h
index fdb863344..1ac405489 100644
--- a/kcontrol/componentchooser/componentchooser.h
+++ b/kcontrol/componentchooser/componentchooser.h
@@ -21,8 +21,8 @@
#include "emailclientconfig_ui.h"
#include "terminalemulatorconfig_ui.h"
#include "browserconfig_ui.h"
-#include <qdict.h>
-#include <qstring.h>
+#include <tqdict.h>
+#include <tqstring.h>
#include <kservice.h>
@@ -48,17 +48,17 @@ class CfgComponent: public ComponentConfig_UI,public CfgPlugin
{
Q_OBJECT
public:
- CfgComponent(QWidget *parent);
+ CfgComponent(TQWidget *parent);
virtual ~CfgComponent();
virtual void load(KConfig *cfg);
virtual void save(KConfig *cfg);
virtual void defaults();
protected:
- QDict<QString> m_lookupDict,m_revLookupDict;
+ TQDict<TQString> m_lookupDict,m_revLookupDict;
protected slots:
- void slotComponentChanged(const QString&);
+ void slotComponentChanged(const TQString&);
signals:
void changed(bool);
};
@@ -68,7 +68,7 @@ class CfgEmailClient: public EmailClientConfig_UI,public CfgPlugin
{
Q_OBJECT
public:
- CfgEmailClient(QWidget *parent);
+ CfgEmailClient(TQWidget *parent);
virtual ~CfgEmailClient();
virtual void load(KConfig *cfg);
virtual void save(KConfig *cfg);
@@ -88,7 +88,7 @@ class CfgTerminalEmulator: public TerminalEmulatorConfig_UI,public CfgPlugin
{
Q_OBJECT
public:
- CfgTerminalEmulator(QWidget *parent);
+ CfgTerminalEmulator(TQWidget *parent);
virtual ~CfgTerminalEmulator();
virtual void load(KConfig *cfg);
virtual void save(KConfig *cfg);
@@ -106,7 +106,7 @@ class CfgBrowser: public BrowserConfig_UI,public CfgPlugin
{
Q_OBJECT
public:
- CfgBrowser(QWidget *parent);
+ CfgBrowser(TQWidget *parent);
virtual ~CfgBrowser();
virtual void load(KConfig *cfg);
virtual void save(KConfig *cfg);
@@ -119,7 +119,7 @@ protected slots:
signals:
void changed(bool);
private:
- QString m_browserExec;
+ TQString m_browserExec;
KService::Ptr m_browserService;
};
@@ -130,20 +130,20 @@ class ComponentChooser : public ComponentChooser_UI
Q_OBJECT
public:
- ComponentChooser(QWidget *parent=0, const char *name=0);
+ ComponentChooser(TQWidget *parent=0, const char *name=0);
virtual ~ComponentChooser();
void load();
void save();
void restoreDefault();
private:
- QString latestEditedService;
+ TQString latestEditedService;
bool somethingChanged;
- QWidget *configWidget;
- QVBoxLayout *myLayout;
+ TQWidget *configWidget;
+ TQVBoxLayout *myLayout;
protected slots:
void emitChanged(bool);
- void slotServiceSelected(QListBoxItem *);
+ void slotServiceSelected(TQListBoxItem *);
signals:
void changed(bool);
diff --git a/kcontrol/componentchooser/kcm_componentchooser.cpp b/kcontrol/componentchooser/kcm_componentchooser.cpp
index 8e6ae7ba7..8bf1a026f 100644
--- a/kcontrol/componentchooser/kcm_componentchooser.cpp
+++ b/kcontrol/componentchooser/kcm_componentchooser.cpp
@@ -13,7 +13,7 @@
* *
***************************************************************************/
-#include <qlayout.h>
+#include <tqlayout.h>
#include <kaboutdata.h>
#include <kglobal.h>
@@ -22,12 +22,12 @@
#include "kcm_componentchooser.moc"
-KCMComponentChooser::KCMComponentChooser( QWidget *parent, const char *name ):
+KCMComponentChooser::KCMComponentChooser( TQWidget *parent, const char *name ):
KCModule(parent,name) {
- (new QVBoxLayout(this))->setAutoAdd(true);
+ (new TQVBoxLayout(this))->setAutoAdd(true);
m_chooser=new ComponentChooser(this,"ComponentChooser");
- connect(m_chooser,SIGNAL(changed(bool)),this,SIGNAL(changed(bool)));
+ connect(m_chooser,TQT_SIGNAL(changed(bool)),this,TQT_SIGNAL(changed(bool)));
setButtons( Help | Apply );
KAboutData *about =
@@ -55,7 +55,7 @@ void KCMComponentChooser::defaults(){
extern "C"
{
- KDE_EXPORT KCModule *create_componentchooser( QWidget *parent, const char * )
+ KDE_EXPORT KCModule *create_componentchooser( TQWidget *parent, const char * )
{
KGlobal::locale()->insertCatalogue("kcmcomponentchooser");
return new KCMComponentChooser( parent, "kcmcomponentchooser" );
diff --git a/kcontrol/componentchooser/kcm_componentchooser.h b/kcontrol/componentchooser/kcm_componentchooser.h
index eac9ad055..72dab21ba 100644
--- a/kcontrol/componentchooser/kcm_componentchooser.h
+++ b/kcontrol/componentchooser/kcm_componentchooser.h
@@ -26,7 +26,7 @@ class KCMComponentChooser : public KCModule
{
Q_OBJECT
public:
- KCMComponentChooser( QWidget *parent = 0, const char *name = 0 );
+ KCMComponentChooser( TQWidget *parent = 0, const char *name = 0 );
void load();
void save();
diff --git a/kcontrol/crypto/certexport.cpp b/kcontrol/crypto/certexport.cpp
index 7c31bb84b..9c60d4f00 100644
--- a/kcontrol/crypto/certexport.cpp
+++ b/kcontrol/crypto/certexport.cpp
@@ -24,52 +24,52 @@
#endif
#include "certexport.h"
-#include <qpushbutton.h>
+#include <tqpushbutton.h>
#include <klineedit.h>
#include <kfiledialog.h>
-#include <qradiobutton.h>
-#include <qvbuttongroup.h>
-#include <qlayout.h>
-#include <qlabel.h>
+#include <tqradiobutton.h>
+#include <tqvbuttongroup.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
#include <klocale.h>
#include <kdebug.h>
#include <kmessagebox.h>
#include <ksslall.h>
-KCertExport::KCertExport(QWidget *parent, const char *name)
+KCertExport::KCertExport(TQWidget *parent, const char *name)
: KDialog(parent, name, true) {
-QGridLayout *grid = new QGridLayout(this, 9, 6, marginHint(), spacingHint());
+TQGridLayout *grid = new TQGridLayout(this, 9, 6, marginHint(), spacingHint());
setCaption(i18n("X509 Certificate Export"));
- QVButtonGroup *bg = new QVButtonGroup(i18n("Format"), this);
- _pem = new QRadioButton(i18n("&PEM"), bg);
- _netscape = new QRadioButton(i18n("&Netscape"), bg);
- _der = new QRadioButton(i18n("&DER/ASN1"), bg);
- _text = new QRadioButton(i18n("&Text"), bg);
+ TQVButtonGroup *bg = new TQVButtonGroup(i18n("Format"), this);
+ _pem = new TQRadioButton(i18n("&PEM"), bg);
+ _netscape = new TQRadioButton(i18n("&Netscape"), bg);
+ _der = new TQRadioButton(i18n("&DER/ASN1"), bg);
+ _text = new TQRadioButton(i18n("&Text"), bg);
grid->addMultiCellWidget(bg, 0, 4, 0, 3);
_pem->setChecked(true);
- grid->addMultiCellWidget(new QLabel(i18n("Filename:"), this), 5, 5, 0, 3);
+ grid->addMultiCellWidget(new TQLabel(i18n("Filename:"), this), 5, 5, 0, 3);
_filename = new KLineEdit(this);
grid->addMultiCellWidget(_filename, 6, 6, 0, 4);
- connect(_filename, SIGNAL(textChanged(const QString &)), this, SLOT(slotTextChanged(const QString &)));
- connect(_filename, SIGNAL(returnPressed()), this, SLOT(slotExport()));
+ connect(_filename, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(slotTextChanged(const TQString &)));
+ connect(_filename, TQT_SIGNAL(returnPressed()), this, TQT_SLOT(slotExport()));
- _choose = new QPushButton("...", this);
+ _choose = new TQPushButton("...", this);
grid->addWidget(_choose, 6, 5);
- connect(_choose, SIGNAL(clicked()), this, SLOT(slotChoose()));
+ connect(_choose, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotChoose()));
- _export = new QPushButton(i18n("&Export"), this);
+ _export = new TQPushButton(i18n("&Export"), this);
grid->addWidget(_export, 8, 4);
- connect(_export, SIGNAL(clicked()), this, SLOT(slotExport()));
+ connect(_export, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotExport()));
_export->setEnabled(false);
- _cancel = new QPushButton(i18n("&Cancel"), this);
+ _cancel = new TQPushButton(i18n("&Cancel"), this);
grid->addWidget(_cancel, 8, 5);
- connect(_cancel, SIGNAL(clicked()), this, SLOT(reject()));
+ connect(_cancel, TQT_SIGNAL(clicked()), this, TQT_SLOT(reject()));
}
@@ -84,8 +84,8 @@ void KCertExport::setCertificate(KSSLCertificate *c) {
void KCertExport::slotExport() {
-QByteArray cert;
-QString certt;
+TQByteArray cert;
+TQString certt;
if (_filename->text().isEmpty()) return;
@@ -110,7 +110,7 @@ QString certt;
return;
}
- QFile outFile(_filename->text());
+ TQFile outFile(_filename->text());
if (!outFile.open(IO_WriteOnly)) {
KMessageBox::error(this, i18n("Error opening file for output."), i18n("SSL"));
@@ -129,8 +129,8 @@ accept();
void KCertExport::slotChoose() {
- //QString newFile = KFileDialog::getSaveFileName("::x509save", i18n("*.pem|Privacy Enhanced Mail Format\n*.der|DER/ASN1 Format"));
- QString newFile = KFileDialog::getSaveFileName(QString::null, "application/x-x509-ca-cert");
+ //TQString newFile = KFileDialog::getSaveFileName("::x509save", i18n("*.pem|Privacy Enhanced Mail Format\n*.der|DER/ASN1 Format"));
+ TQString newFile = KFileDialog::getSaveFileName(TQString::null, "application/x-x509-ca-cert");
// Dunno about this one yet
// \n*.ncert|Netscape certificate files");
@@ -139,7 +139,7 @@ void KCertExport::slotChoose() {
}
-void KCertExport::slotTextChanged(const QString& x) {
+void KCertExport::slotTextChanged(const TQString& x) {
_export->setEnabled(!x.isEmpty());
}
diff --git a/kcontrol/crypto/certexport.h b/kcontrol/crypto/certexport.h
index 983cf0804..00721d109 100644
--- a/kcontrol/crypto/certexport.h
+++ b/kcontrol/crypto/certexport.h
@@ -33,7 +33,7 @@ class KCertExport : public KDialog
{
Q_OBJECT
public:
- KCertExport(QWidget *parent = 0L, const char *name = 0L);
+ KCertExport(TQWidget *parent = 0L, const char *name = 0L);
virtual ~KCertExport();
void setCertificate(KSSLCertificate *c);
@@ -41,11 +41,11 @@ public:
protected slots:
void slotExport();
void slotChoose();
- void slotTextChanged(const QString &);
+ void slotTextChanged(const TQString &);
private:
- QPushButton *_export, *_cancel, *_choose;
- QRadioButton *_pem, *_netscape, *_der, *_text;
+ TQPushButton *_export, *_cancel, *_choose;
+ TQRadioButton *_pem, *_netscape, *_der, *_text;
KLineEdit *_filename;
KSSLCertificate *_c;
diff --git a/kcontrol/crypto/crypto.cpp b/kcontrol/crypto/crypto.cpp
index f5c4b0099..3f021285b 100644
--- a/kcontrol/crypto/crypto.cpp
+++ b/kcontrol/crypto/crypto.cpp
@@ -31,22 +31,22 @@
#include <pwd.h>
#include <unistd.h>
-#include <qbuttongroup.h>
-#include <qcheckbox.h>
-#include <qfile.h>
-#include <qfileinfo.h>
-#include <qframe.h>
-#include <qhbuttongroup.h>
-#include <qhgroupbox.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qpushbutton.h>
-#include <qradiobutton.h>
-#include <qregexp.h>
-#include <qvbox.h>
-#include <qvbuttongroup.h>
-#include <qvgroupbox.h>
-#include <qwhatsthis.h>
+#include <tqbuttongroup.h>
+#include <tqcheckbox.h>
+#include <tqfile.h>
+#include <tqfileinfo.h>
+#include <tqframe.h>
+#include <tqhbuttongroup.h>
+#include <tqhgroupbox.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqpushbutton.h>
+#include <tqradiobutton.h>
+#include <tqregexp.h>
+#include <tqvbox.h>
+#include <tqvbuttongroup.h>
+#include <tqvgroupbox.h>
+#include <tqwhatsthis.h>
#include <kaboutdata.h>
#include <kcombobox.h>
@@ -93,18 +93,18 @@
using namespace KNetwork;
-typedef KGenericFactory<KCryptoConfig, QWidget> KryptoFactory;
+typedef KGenericFactory<KCryptoConfig, TQWidget> KryptoFactory;
K_EXPORT_COMPONENT_FACTORY( kcm_crypto, KryptoFactory("kcmcrypto") )
-CipherItem::CipherItem( QListView *view, const QString& cipher, int bits,
+CipherItem::CipherItem( TQListView *view, const TQString& cipher, int bits,
int maxBits, KCryptoConfig *module )
- : QCheckListItem( view, QString::null, CheckBox )
+ : TQCheckListItem( view, TQString::null, CheckBox )
{
m_cipher = cipher;
m_bits = bits;
m_module = module;
- QString tmp( i18n("%1 (%2 of %3 bits)") );
+ TQString tmp( i18n("%1 (%2 of %3 bits)") );
setText( 0, tmp.arg( cipher ).arg( bits ).arg( maxBits ));
}
@@ -113,16 +113,16 @@ void CipherItem::stateChange( bool )
m_module->configChanged();
}
-QString CipherItem::configName() const
+TQString CipherItem::configName() const
{
- QString cipherName("cipher_%1");
+ TQString cipherName("cipher_%1");
return cipherName.arg( m_cipher );
}
-OtherCertItem::OtherCertItem( QListView *view, const QString& sub, const QString& md5, bool perm, int policy, QDateTime exp, KCryptoConfig *module )
- : QListViewItem( view, QString::null ), _sub(sub), _md5(md5), _exp(exp), _perm(perm), _policy(policy)
+OtherCertItem::OtherCertItem( TQListView *view, const TQString& sub, const TQString& md5, bool perm, int policy, TQDateTime exp, KCryptoConfig *module )
+ : TQListViewItem( view, TQString::null ), _sub(sub), _md5(md5), _exp(exp), _perm(perm), _policy(policy)
{
m_module = module;
@@ -131,7 +131,7 @@ KSSLX509Map cert(sub);
setText(1, cert.getValue("CN").replace("\n", ", "));
if (_exp.date().year() > 3000 || _exp.date().year() < 1900)
- _exp.setDate(QDate(3000,1,1));
+ _exp.setDate(TQDate(3000,1,1));
}
void OtherCertItem::stateChange( bool )
@@ -139,19 +139,19 @@ void OtherCertItem::stateChange( bool )
m_module->configChanged();
}
-QString OtherCertItem::configName() const
+TQString OtherCertItem::configName() const
{
return _sub;
}
-YourCertItem::YourCertItem( QListView *view, QString pkcs, QString pass, QString name, KCryptoConfig *module )
- : QListViewItem( view, QString::null )
+YourCertItem::YourCertItem( TQListView *view, TQString pkcs, TQString pass, TQString name, KCryptoConfig *module )
+ : TQListViewItem( view, TQString::null )
{
m_module = module;
KSSLX509Map cert(name);
- QString tmp = cert.getValue("CN").replace("\n", ", ");
+ TQString tmp = cert.getValue("CN").replace("\n", ", ");
setText(0, tmp);
setText(1, cert.getValue("Email"));
_pkcs = pkcs;
@@ -164,20 +164,20 @@ void YourCertItem::stateChange( bool )
m_module->configChanged();
}
-QString YourCertItem::configName() const
+TQString YourCertItem::configName() const
{
return _name;
}
-CAItem::CAItem( QListView *view, QString name, QString cert, bool site, bool email, bool code, KCryptoConfig *module )
- : QListViewItem( view, QString::null )
+CAItem::CAItem( TQListView *view, TQString name, TQString cert, bool site, bool email, bool code, KCryptoConfig *module )
+ : TQListViewItem( view, TQString::null )
{
m_module = module;
KSSLX509Map mcert(name);
-QString tmp;
+TQString tmp;
setText(0, mcert.getValue("O"));
tmp = mcert.getValue("OU");
tmp.replace("\n", ", ");
@@ -199,7 +199,7 @@ void CAItem::stateChange( bool )
m_module->configChanged();
}
-QString CAItem::configName() const
+TQString CAItem::configName() const
{
return _name;
}
@@ -216,12 +216,12 @@ QString CAItem::configName() const
-KCryptoConfig::KCryptoConfig(QWidget *parent, const char *name, const QStringList &)
+KCryptoConfig::KCryptoConfig(TQWidget *parent, const char *name, const TQStringList &)
: KCModule(KryptoFactory::instance(), parent, name)
{
-QGridLayout *grid;
-QBoxLayout *top = new QVBoxLayout(this);
-QString whatstr;
+TQGridLayout *grid;
+TQBoxLayout *top = new TQVBoxLayout(this);
+TQString whatstr;
setQuickHelp( i18n("<h1>Crypto</h1> This module allows you to configure SSL for"
" use with most KDE applications, as well as manage your personal"
@@ -255,51 +255,51 @@ QString whatstr;
// The eighth is peer [email] certificate related (unimplemented)
///////////////////////////////////////////////////////////////////////////
- tabs = new QTabWidget(this);
+ tabs = new TQTabWidget(this);
top->addWidget(tabs);
///////////////////////////////////////////////////////////////////////////
// FIRST TAB
///////////////////////////////////////////////////////////////////////////
- tabSSL = new QFrame(this);
- grid = new QGridLayout(tabSSL, 7, 2, KDialog::marginHint(),
+ tabSSL = new TQFrame(this);
+ grid = new TQGridLayout(tabSSL, 7, 2, KDialog::marginHint(),
KDialog::spacingHint() );
- mUseTLS = new QCheckBox(i18n("Enable &TLS support if supported by the server"), tabSSL);
- connect(mUseTLS, SIGNAL(clicked()), SLOT(configChanged()));
+ mUseTLS = new TQCheckBox(i18n("Enable &TLS support if supported by the server"), tabSSL);
+ connect(mUseTLS, TQT_SIGNAL(clicked()), TQT_SLOT(configChanged()));
grid->addWidget(mUseTLS, 0, 0);
whatstr = i18n("TLS is the newest revision of the SSL protocol."
" It integrates better with other protocols and has"
" replaced SSL in protocols such as POP3 and SMTP.");
- QWhatsThis::add(mUseTLS, whatstr);
+ TQWhatsThis::add(mUseTLS, whatstr);
- mUseSSLv2 = new QCheckBox(i18n("Enable SSLv&2"), tabSSL);
- connect(mUseSSLv2, SIGNAL(clicked()), SLOT(configChanged()));
+ mUseSSLv2 = new TQCheckBox(i18n("Enable SSLv&2"), tabSSL);
+ connect(mUseSSLv2, TQT_SIGNAL(clicked()), TQT_SLOT(configChanged()));
grid->addWidget(mUseSSLv2, 1, 0);
whatstr = i18n("SSL v2 is the second revision of the SSL protocol."
" It is most common to enable v2 and v3.");
- QWhatsThis::add(mUseSSLv2, whatstr);
+ TQWhatsThis::add(mUseSSLv2, whatstr);
- mUseSSLv3 = new QCheckBox(i18n("Enable SSLv&3"), tabSSL);
- connect(mUseSSLv3, SIGNAL(clicked()), SLOT(configChanged()));
+ mUseSSLv3 = new TQCheckBox(i18n("Enable SSLv&3"), tabSSL);
+ connect(mUseSSLv3, TQT_SIGNAL(clicked()), TQT_SLOT(configChanged()));
grid->addWidget(mUseSSLv3, 1, 1);
whatstr = i18n("SSL v3 is the third revision of the SSL protocol."
" It is most common to enable v2 and v3.");
- QWhatsThis::add(mUseSSLv3, whatstr);
+ TQWhatsThis::add(mUseSSLv3, whatstr);
#ifdef HAVE_SSL
- SSLv2Box = new QListView(tabSSL, "v2ciphers");
+ SSLv2Box = new TQListView(tabSSL, "v2ciphers");
(void) SSLv2Box->addColumn(i18n("SSLv2 Ciphers to Use"));
whatstr = i18n("Select the ciphers you wish to enable when using the"
" SSL v2 protocol. The actual protocol used will be"
" negotiated with the server at connection time.");
- QWhatsThis::add(SSLv2Box, whatstr);
- SSLv2Box->setSelectionMode(QListView::NoSelection);
+ TQWhatsThis::add(SSLv2Box, whatstr);
+ SSLv2Box->setSelectionMode(TQListView::NoSelection);
grid->addWidget( SSLv2Box, 2, 0 );
- connect( mUseSSLv2, SIGNAL( toggled( bool ) ),
- SSLv2Box, SLOT( setEnabled( bool )));
+ connect( mUseSSLv2, TQT_SIGNAL( toggled( bool ) ),
+ SSLv2Box, TQT_SLOT( setEnabled( bool )));
#else
- QLabel *nossllabel = new QLabel(i18n("SSL ciphers cannot be configured"
+ TQLabel *nossllabel = new TQLabel(i18n("SSL ciphers cannot be configured"
" because this module was not linked"
" with OpenSSL."), tabSSL);
grid->addMultiCellWidget(nossllabel, 2, 2, 0, 1);
@@ -313,28 +313,28 @@ QString whatstr;
authcfg = new KSimpleConfig("ksslauthmap", false);
#ifdef HAVE_SSL
- SSLv3Box = new QListView(tabSSL, "v3ciphers");
+ SSLv3Box = new TQListView(tabSSL, "v3ciphers");
(void) SSLv3Box->addColumn(i18n("SSLv3 Ciphers to Use"));
whatstr = i18n("Select the ciphers you wish to enable when using the"
" SSL v3 protocol. The actual protocol used will be"
" negotiated with the server at connection time.");
- QWhatsThis::add(SSLv3Box, whatstr);
- SSLv3Box->setSelectionMode(QListView::NoSelection);
+ TQWhatsThis::add(SSLv3Box, whatstr);
+ SSLv3Box->setSelectionMode(TQListView::NoSelection);
grid->addWidget(SSLv3Box, 2, 1);
- connect( mUseSSLv3, SIGNAL( toggled( bool ) ),
- SSLv3Box, SLOT( setEnabled( bool )));
+ connect( mUseSSLv3, TQT_SIGNAL( toggled( bool ) ),
+ SSLv3Box, TQT_SLOT( setEnabled( bool )));
loadCiphers();
//
// CipherWizards
//
- QHGroupBox *cwbg = new QHGroupBox(i18n("Cipher Wizard"), tabSSL);
- QComboBox *cwcb = new QComboBox(cwbg);
+ TQHGroupBox *cwbg = new TQHGroupBox(i18n("Cipher Wizard"), tabSSL);
+ TQComboBox *cwcb = new TQComboBox(cwbg);
grid->addMultiCellWidget(cwbg, 3, 3, 0, 1);
- QString whatStr = i18n("<qt>Use these preconfigurations to more easily configure the SSL encryption settings. You can choose among the following modes: <ul>");
+ TQString whatStr = i18n("<qt>Use these preconfigurations to more easily configure the SSL encryption settings. You can choose among the following modes: <ul>");
- cwcb->insertItem(QString::null);
+ cwcb->insertItem(TQString::null);
cwcb->insertItem(i18n("Most Compatible"));
whatStr += i18n("<li><b>Most Compatible:</b> Select the settings found to be most compatible.</li>");
cwcb->insertItem(i18n("US Ciphers Only"));
@@ -344,43 +344,43 @@ QString whatstr;
cwcb->insertItem(i18n("Enable All"));
whatStr += i18n("<li><b>Enable All:</b> Select all SSL ciphers and methods.</li></ul>");
- QWhatsThis::add(cwcb, whatStr);
+ TQWhatsThis::add(cwcb, whatStr);
- connect(cwcb, SIGNAL(activated(int)), SLOT(slotSelectCipher(int)));
+ connect(cwcb, TQT_SIGNAL(activated(int)), TQT_SLOT(slotSelectCipher(int)));
#endif
- mWarnOnEnter = new QCheckBox(i18n("Warn on &entering SSL mode"), tabSSL);
- connect(mWarnOnEnter, SIGNAL(clicked()), SLOT(configChanged()));
+ mWarnOnEnter = new TQCheckBox(i18n("Warn on &entering SSL mode"), tabSSL);
+ connect(mWarnOnEnter, TQT_SIGNAL(clicked()), TQT_SLOT(configChanged()));
grid->addWidget(mWarnOnEnter, 5, 0);
whatstr = i18n("If selected, you will be notified when entering an SSL"
" enabled site");
- QWhatsThis::add(mWarnOnEnter, whatstr);
+ TQWhatsThis::add(mWarnOnEnter, whatstr);
- mWarnOnLeave = new QCheckBox(i18n("Warn on &leaving SSL mode"), tabSSL);
- connect(mWarnOnLeave, SIGNAL(clicked()), SLOT(configChanged()));
+ mWarnOnLeave = new TQCheckBox(i18n("Warn on &leaving SSL mode"), tabSSL);
+ connect(mWarnOnLeave, TQT_SIGNAL(clicked()), TQT_SLOT(configChanged()));
grid->addWidget(mWarnOnLeave, 5, 1);
whatstr = i18n("If selected, you will be notified when leaving an SSL"
" based site.");
- QWhatsThis::add(mWarnOnLeave, whatstr);
+ TQWhatsThis::add(mWarnOnLeave, whatstr);
- mWarnOnUnencrypted = new QCheckBox(i18n("Warn on sending &unencrypted data"), tabSSL);
- connect(mWarnOnUnencrypted, SIGNAL(clicked()), SLOT(configChanged()));
+ mWarnOnUnencrypted = new TQCheckBox(i18n("Warn on sending &unencrypted data"), tabSSL);
+ connect(mWarnOnUnencrypted, TQT_SIGNAL(clicked()), TQT_SLOT(configChanged()));
grid->addWidget(mWarnOnUnencrypted, 6, 0);
whatstr = i18n("If selected, you will be notified before sending"
" unencrypted data via a web browser.");
- QWhatsThis::add(mWarnOnUnencrypted, whatstr);
+ TQWhatsThis::add(mWarnOnUnencrypted, whatstr);
#if 0 // NOT IMPLEMENTED IN KDE 3.0
- mWarnOnMixed = new QCheckBox(i18n("Warn on &mixed SSL/non-SSL pages"), tabSSL);
- connect(mWarnOnMixed, SIGNAL(clicked()), SLOT(configChanged()));
+ mWarnOnMixed = new TQCheckBox(i18n("Warn on &mixed SSL/non-SSL pages"), tabSSL);
+ connect(mWarnOnMixed, TQT_SIGNAL(clicked()), TQT_SLOT(configChanged()));
grid->addWidget(mWarnOnMixed, 6, 1);
whatstr = i18n("If selected, you will be notified if you view a page"
" that has both encrypted and non-encrypted parts.");
- QWhatsThis::add(mWarnOnMixed, whatstr);
+ TQWhatsThis::add(mWarnOnMixed, whatstr);
#endif
///////////////////////////////////////////////////////////////////////////
@@ -388,50 +388,50 @@ QString whatstr;
///////////////////////////////////////////////////////////////////////////
#ifdef HAVE_SSL
- tabOSSL = new QFrame(this);
- QBoxLayout *vbox = new QVBoxLayout(tabOSSL, KDialog::marginHint(), KDialog::spacingHint());
+ tabOSSL = new TQFrame(this);
+ TQBoxLayout *vbox = new TQVBoxLayout(tabOSSL, KDialog::marginHint(), KDialog::spacingHint());
- oInfo = new QVGroupBox(i18n("Path to OpenSSL Shared Libraries"), tabOSSL);
+ oInfo = new TQVGroupBox(i18n("Path to OpenSSL Shared Libraries"), tabOSSL);
vbox->addWidget(oInfo);
oPath = new KURLRequester(oInfo);
oPath->setMode(KFile::Directory);
- oTest = new QPushButton(i18n("&Test"), oInfo);
- connect(oTest, SIGNAL(clicked()), SLOT(slotTestOSSL()));
+ oTest = new TQPushButton(i18n("&Test"), oInfo);
+ connect(oTest, TQT_SIGNAL(clicked()), TQT_SLOT(slotTestOSSL()));
- connect(oPath, SIGNAL(textChanged(const QString&)), SLOT(configChanged()));
+ connect(oPath, TQT_SIGNAL(textChanged(const TQString&)), TQT_SLOT(configChanged()));
//
// Settings for the EGD
//
- QFrame *eFrame = new QFrame(tabOSSL);
- QVBoxLayout *egrid = new QVBoxLayout(eFrame);
- mUseEGD = new QCheckBox(i18n("Use EGD"), eFrame);
- connect(mUseEGD, SIGNAL(clicked()), SLOT(slotUseEGD()));
- mUseEFile = new QCheckBox(i18n("Use entropy file"), eFrame);
- connect(mUseEFile, SIGNAL(clicked()), SLOT(slotUseEFile()));
+ TQFrame *eFrame = new TQFrame(tabOSSL);
+ TQVBoxLayout *egrid = new TQVBoxLayout(eFrame);
+ mUseEGD = new TQCheckBox(i18n("Use EGD"), eFrame);
+ connect(mUseEGD, TQT_SIGNAL(clicked()), TQT_SLOT(slotUseEGD()));
+ mUseEFile = new TQCheckBox(i18n("Use entropy file"), eFrame);
+ connect(mUseEFile, TQT_SIGNAL(clicked()), TQT_SLOT(slotUseEFile()));
vbox->addWidget(eFrame);
egrid->addWidget(mUseEGD);
egrid->addWidget(mUseEFile);
- QFrame *egdframe = new QFrame(tabOSSL);
- QGridLayout *grid2 = new QGridLayout(egdframe, 2, 2, KDialog::marginHint(),
+ TQFrame *egdframe = new TQFrame(tabOSSL);
+ TQGridLayout *grid2 = new TQGridLayout(egdframe, 2, 2, KDialog::marginHint(),
KDialog::spacingHint());
- mEGDLabel = new QLabel(i18n("Path to EGD:"), egdframe);
+ mEGDLabel = new TQLabel(i18n("Path to EGD:"), egdframe);
grid2->addWidget(mEGDLabel, 0, 0);
mEGDPath = new KURLRequester(egdframe);
grid2->addWidget(mEGDPath, 0, 1);
- connect(mEGDPath, SIGNAL(textChanged(const QString&)), SLOT(configChanged()));
+ connect(mEGDPath, TQT_SIGNAL(textChanged(const TQString&)), TQT_SLOT(configChanged()));
vbox->addWidget(egdframe);
whatstr = i18n("If selected, OpenSSL will be asked to use the entropy gathering"
" daemon (EGD) for initializing the pseudo-random number generator.");
- QWhatsThis::add(mUseEGD, whatstr);
+ TQWhatsThis::add(mUseEGD, whatstr);
whatstr = i18n("If selected, OpenSSL will be asked to use the given file"
" as entropy for initializing the pseudo-random number generator.");
- QWhatsThis::add(mUseEFile, whatstr);
+ TQWhatsThis::add(mUseEFile, whatstr);
whatstr = i18n("Enter the path to the socket created by the entropy gathering"
" daemon (or the entropy file) here.");
- QWhatsThis::add(mEGDPath, whatstr);
+ TQWhatsThis::add(mEGDPath, whatstr);
whatstr = i18n("Click here to browse for the EGD socket file.");
- QWhatsThis::add(mEGDPath, whatstr);
+ TQWhatsThis::add(mEGDPath, whatstr);
vbox->addStretch();
#endif
@@ -441,85 +441,85 @@ QString whatstr;
///////////////////////////////////////////////////////////////////////////
// THIRD TAB
///////////////////////////////////////////////////////////////////////////
- tabYourSSLCert = new QFrame(this);
+ tabYourSSLCert = new TQFrame(this);
#ifdef HAVE_SSL
- grid = new QGridLayout(tabYourSSLCert, 16, 6, KDialog::marginHint(), KDialog::spacingHint() );
+ grid = new TQGridLayout(tabYourSSLCert, 16, 6, KDialog::marginHint(), KDialog::spacingHint() );
- yourSSLBox = new QListView(tabYourSSLCert);
+ yourSSLBox = new TQListView(tabYourSSLCert);
yourSSLBox->setAllColumnsShowFocus(true);
whatstr = i18n("This list box shows which certificates of yours KDE"
" knows about. You can easily manage them from here.");
- QWhatsThis::add(yourSSLBox, whatstr);
+ TQWhatsThis::add(yourSSLBox, whatstr);
grid->addMultiCellWidget(yourSSLBox, 0, 5, 0, 4);
yourSSLBox->addColumn(i18n("Common Name"));
yourSSLBox->addColumn(i18n("Email Address"));
- connect(yourSSLBox, SIGNAL(selectionChanged()), SLOT(slotYourCertSelect()));
+ connect(yourSSLBox, TQT_SIGNAL(selectionChanged()), TQT_SLOT(slotYourCertSelect()));
- yourSSLImport = new QPushButton(i18n("I&mport..."), tabYourSSLCert);
- connect(yourSSLImport, SIGNAL(clicked()), SLOT(slotYourImport()));
+ yourSSLImport = new TQPushButton(i18n("I&mport..."), tabYourSSLCert);
+ connect(yourSSLImport, TQT_SIGNAL(clicked()), TQT_SLOT(slotYourImport()));
grid->addWidget(yourSSLImport, 0, 5);
- yourSSLExport = new QPushButton(i18n("&Export..."), tabYourSSLCert);
+ yourSSLExport = new TQPushButton(i18n("&Export..."), tabYourSSLCert);
yourSSLExport->setEnabled(false);
- connect(yourSSLExport, SIGNAL(clicked()), SLOT(slotYourExport()));
+ connect(yourSSLExport, TQT_SIGNAL(clicked()), TQT_SLOT(slotYourExport()));
grid->addWidget(yourSSLExport, 1, 5);
- yourSSLRemove = new QPushButton(i18n("Remo&ve"), tabYourSSLCert);
+ yourSSLRemove = new TQPushButton(i18n("Remo&ve"), tabYourSSLCert);
yourSSLRemove->setEnabled(false);
- connect(yourSSLRemove, SIGNAL(clicked()), SLOT(slotYourRemove()));
+ connect(yourSSLRemove, TQT_SIGNAL(clicked()), TQT_SLOT(slotYourRemove()));
grid->addWidget(yourSSLRemove, 2, 5);
- yourSSLUnlock = new QPushButton(i18n("&Unlock"), tabYourSSLCert);
+ yourSSLUnlock = new TQPushButton(i18n("&Unlock"), tabYourSSLCert);
yourSSLUnlock->setEnabled(false);
- connect(yourSSLUnlock, SIGNAL(clicked()), SLOT(slotYourUnlock()));
+ connect(yourSSLUnlock, TQT_SIGNAL(clicked()), TQT_SLOT(slotYourUnlock()));
grid->addWidget(yourSSLUnlock, 3, 5);
- yourSSLVerify = new QPushButton(i18n("Verif&y"), tabYourSSLCert);
+ yourSSLVerify = new TQPushButton(i18n("Verif&y"), tabYourSSLCert);
yourSSLVerify->setEnabled(false);
- connect(yourSSLVerify, SIGNAL(clicked()), SLOT(slotYourVerify()));
+ connect(yourSSLVerify, TQT_SIGNAL(clicked()), TQT_SLOT(slotYourVerify()));
grid->addWidget(yourSSLVerify, 4, 5);
- yourSSLPass = new QPushButton(i18n("Chan&ge Password..."), tabYourSSLCert);
+ yourSSLPass = new TQPushButton(i18n("Chan&ge Password..."), tabYourSSLCert);
yourSSLPass->setEnabled(false);
- connect(yourSSLPass, SIGNAL(clicked()), SLOT(slotYourPass()));
+ connect(yourSSLPass, TQT_SIGNAL(clicked()), TQT_SLOT(slotYourPass()));
grid->addWidget(yourSSLPass, 5, 5);
grid->addMultiCellWidget(new KSeparator(KSeparator::HLine, tabYourSSLCert), 6, 6, 0, 5);
- ySubject = KSSLInfoDlg::certInfoWidget(tabYourSSLCert, QString(QString::null));
- yIssuer = KSSLInfoDlg::certInfoWidget(tabYourSSLCert, QString(QString::null));
+ ySubject = KSSLInfoDlg::certInfoWidget(tabYourSSLCert, TQString(TQString::null));
+ yIssuer = KSSLInfoDlg::certInfoWidget(tabYourSSLCert, TQString(TQString::null));
grid->addMultiCellWidget(ySubject, 7, 11, 0, 2);
grid->addMultiCellWidget(yIssuer, 7, 11, 3, 5);
whatstr = i18n("This is the information known about the owner of the certificate.");
- QWhatsThis::add(ySubject, whatstr);
+ TQWhatsThis::add(ySubject, whatstr);
whatstr = i18n("This is the information known about the issuer of the certificate.");
- QWhatsThis::add(yIssuer, whatstr);
+ TQWhatsThis::add(yIssuer, whatstr);
- grid->addWidget(new QLabel(i18n("Valid from:"), tabYourSSLCert), 12, 0);
- grid->addWidget(new QLabel(i18n("Valid until:"), tabYourSSLCert), 13, 0);
- yValidFrom = new QLabel(tabYourSSLCert);
+ grid->addWidget(new TQLabel(i18n("Valid from:"), tabYourSSLCert), 12, 0);
+ grid->addWidget(new TQLabel(i18n("Valid until:"), tabYourSSLCert), 13, 0);
+ yValidFrom = new TQLabel(tabYourSSLCert);
grid->addWidget(yValidFrom, 12, 1);
- yValidUntil = new QLabel(tabYourSSLCert);
+ yValidUntil = new TQLabel(tabYourSSLCert);
grid->addWidget(yValidUntil, 13, 1);
whatstr = i18n("The certificate is valid starting at this date.");
- QWhatsThis::add(yValidFrom, whatstr);
+ TQWhatsThis::add(yValidFrom, whatstr);
whatstr = i18n("The certificate is valid until this date.");
- QWhatsThis::add(yValidUntil, whatstr);
- grid->addWidget(new QLabel(i18n("MD5 digest:"), tabYourSSLCert), 14, 0);
- yHash = new QLabel(tabYourSSLCert);
+ TQWhatsThis::add(yValidUntil, whatstr);
+ grid->addWidget(new TQLabel(i18n("MD5 digest:"), tabYourSSLCert), 14, 0);
+ yHash = new TQLabel(tabYourSSLCert);
grid->addWidget(yHash, 14, 1);
whatstr = i18n("A hash of the certificate used to identify it quickly.");
- QWhatsThis::add(yHash, whatstr);
+ TQWhatsThis::add(yHash, whatstr);
#if 0
- QHButtonGroup *ocbg = new QHButtonGroup(i18n("On SSL Connection..."), tabYourSSLCert);
- yourSSLUseDefault = new QRadioButton(i18n("&Use default certificate"), ocbg);
- yourSSLList = new QRadioButton(i18n("&List upon connection"), ocbg);
- yourSSLDont = new QRadioButton(i18n("&Do not use certificates"), ocbg);
+ TQHButtonGroup *ocbg = new TQHButtonGroup(i18n("On SSL Connection..."), tabYourSSLCert);
+ yourSSLUseDefault = new TQRadioButton(i18n("&Use default certificate"), ocbg);
+ yourSSLList = new TQRadioButton(i18n("&List upon connection"), ocbg);
+ yourSSLDont = new TQRadioButton(i18n("&Do not use certificates"), ocbg);
grid->addMultiCellWidget(ocbg, 14, 14, 0, 5);
#endif
#else
- nossllabel = new QLabel(i18n("SSL certificates cannot be managed"
+ nossllabel = new TQLabel(i18n("SSL certificates cannot be managed"
" because this module was not linked"
" with OpenSSL."), tabYourSSLCert);
grid->addMultiCellWidget(nossllabel, 3, 3, 0, 5);
@@ -529,48 +529,48 @@ QString whatstr;
///////////////////////////////////////////////////////////////////////////
// FOURTH TAB
///////////////////////////////////////////////////////////////////////////
- tabAuth = new QFrame(this);
+ tabAuth = new TQFrame(this);
#ifdef HAVE_SSL
- grid = new QGridLayout(tabAuth, 20, 6, KDialog::marginHint(), KDialog::spacingHint());
+ grid = new TQGridLayout(tabAuth, 20, 6, KDialog::marginHint(), KDialog::spacingHint());
- grid->addMultiCellWidget(new QLabel(i18n("Default Authentication Certificate"), tabAuth), 0, 0, 0, 2);
- defCertBG = new QVButtonGroup(i18n("Default Action"), tabAuth);
- defSend = new QRadioButton(i18n("&Send"), defCertBG);
- defPrompt = new QRadioButton(i18n("&Prompt"), defCertBG);
- defDont = new QRadioButton(i18n("Do &not send"), defCertBG);
+ grid->addMultiCellWidget(new TQLabel(i18n("Default Authentication Certificate"), tabAuth), 0, 0, 0, 2);
+ defCertBG = new TQVButtonGroup(i18n("Default Action"), tabAuth);
+ defSend = new TQRadioButton(i18n("&Send"), defCertBG);
+ defPrompt = new TQRadioButton(i18n("&Prompt"), defCertBG);
+ defDont = new TQRadioButton(i18n("Do &not send"), defCertBG);
grid->addMultiCellWidget(defCertBG, 1, 3, 0, 2);
- grid->addMultiCellWidget(new QLabel(i18n("Default certificate:"), tabAuth), 1, 1, 3, 5);
+ grid->addMultiCellWidget(new TQLabel(i18n("Default certificate:"), tabAuth), 1, 1, 3, 5);
defCertBox = new KComboBox(false, tabAuth);
grid->addMultiCellWidget(defCertBox, 2, 2, 3, 5);
grid->addMultiCellWidget(new KSeparator(KSeparator::HLine, tabAuth), 4, 4, 0, 5);
- grid->addMultiCellWidget(new QLabel(i18n("Host authentication:"), tabAuth), 5, 5, 0, 1);
- hostAuthList = new QListView(tabAuth);
+ grid->addMultiCellWidget(new TQLabel(i18n("Host authentication:"), tabAuth), 5, 5, 0, 1);
+ hostAuthList = new TQListView(tabAuth);
hostAuthList->setAllColumnsShowFocus(true);
grid->addMultiCellWidget(hostAuthList, 6, 13, 0, 5);
hostAuthList->addColumn(i18n("Host"));
hostAuthList->addColumn(i18n("Certificate"));
hostAuthList->addColumn(i18n("Policy"));
- grid->addWidget(new QLabel(i18n("Host:"), tabAuth), 14, 0);
- grid->addWidget(new QLabel(i18n("Certificate:"), tabAuth), 15, 0);
+ grid->addWidget(new TQLabel(i18n("Host:"), tabAuth), 14, 0);
+ grid->addWidget(new TQLabel(i18n("Certificate:"), tabAuth), 15, 0);
- authHost = new QLineEdit(tabAuth);
+ authHost = new TQLineEdit(tabAuth);
grid->addMultiCellWidget(authHost, 14, 14, 1, 4);
hostCertBox = new KComboBox(false, tabAuth);
grid->addMultiCellWidget(hostCertBox, 15, 15, 1, 4);
- hostCertBG = new QHButtonGroup(i18n("Action"), tabAuth);
- hostSend = new QRadioButton(i18n("Send"), hostCertBG);
- hostPrompt = new QRadioButton(i18n("Prompt"), hostCertBG);
- hostDont = new QRadioButton(i18n("Do not send"), hostCertBG);
+ hostCertBG = new TQHButtonGroup(i18n("Action"), tabAuth);
+ hostSend = new TQRadioButton(i18n("Send"), hostCertBG);
+ hostPrompt = new TQRadioButton(i18n("Prompt"), hostCertBG);
+ hostDont = new TQRadioButton(i18n("Do not send"), hostCertBG);
grid->addMultiCellWidget(hostCertBG, 16, 16, 0, 5);
- authAdd = new QPushButton(i18n("Ne&w"), tabAuth);
- authRemove = new QPushButton(i18n("Remo&ve"), tabAuth);
+ authAdd = new TQPushButton(i18n("Ne&w"), tabAuth);
+ authRemove = new TQPushButton(i18n("Remo&ve"), tabAuth);
grid->addWidget(authAdd, 17, 4);
grid->addWidget(authRemove, 17, 5);
@@ -579,17 +579,17 @@ QString whatstr;
hostCertBG->setEnabled(false);
authRemove->setEnabled(false);
- connect(defCertBox, SIGNAL(activated(int)), this, SLOT(configChanged()));
- connect(defCertBG, SIGNAL(clicked(int)), this, SLOT(configChanged()));
- connect(hostAuthList, SIGNAL(selectionChanged()), this, SLOT(slotAuthItemChanged()));
- connect(authAdd, SIGNAL(clicked()), this, SLOT(slotNewHostAuth()));
- connect(authRemove, SIGNAL(clicked()), this, SLOT(slotRemoveHostAuth()));
- connect(authHost, SIGNAL(textChanged(const QString &)), this, SLOT(slotAuthText(const QString &)));
- connect(hostCertBG, SIGNAL(clicked(int)), this, SLOT(slotAuthButtons()));
- connect(hostCertBox, SIGNAL(activated(int)), this, SLOT(slotAuthCombo()));
+ connect(defCertBox, TQT_SIGNAL(activated(int)), this, TQT_SLOT(configChanged()));
+ connect(defCertBG, TQT_SIGNAL(clicked(int)), this, TQT_SLOT(configChanged()));
+ connect(hostAuthList, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(slotAuthItemChanged()));
+ connect(authAdd, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotNewHostAuth()));
+ connect(authRemove, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotRemoveHostAuth()));
+ connect(authHost, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(slotAuthText(const TQString &)));
+ connect(hostCertBG, TQT_SIGNAL(clicked(int)), this, TQT_SLOT(slotAuthButtons()));
+ connect(hostCertBox, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotAuthCombo()));
#else
- nossllabel = new QLabel(i18n("SSL certificates cannot be managed"
+ nossllabel = new TQLabel(i18n("SSL certificates cannot be managed"
" because this module was not linked"
" with OpenSSL."), tabAuth);
grid->addMultiCellWidget(nossllabel, 3, 3, 0, 5);
@@ -600,112 +600,112 @@ QString whatstr;
///////////////////////////////////////////////////////////////////////////
// FIFTH TAB
///////////////////////////////////////////////////////////////////////////
- tabOtherSSLCert = new QFrame(this);
+ tabOtherSSLCert = new TQFrame(this);
#ifdef HAVE_SSL
- oGrid = grid = new QGridLayout(tabOtherSSLCert, 21, 6, KDialog::marginHint(), KDialog::spacingHint());
+ oGrid = grid = new TQGridLayout(tabOtherSSLCert, 21, 6, KDialog::marginHint(), KDialog::spacingHint());
- otherSSLBox = new QListView(tabOtherSSLCert);
+ otherSSLBox = new TQListView(tabOtherSSLCert);
otherSSLBox->setAllColumnsShowFocus(true);
- connect(otherSSLBox, SIGNAL(selectionChanged()), SLOT(slotOtherCertSelect()));
+ connect(otherSSLBox, TQT_SIGNAL(selectionChanged()), TQT_SLOT(slotOtherCertSelect()));
whatstr = i18n("This list box shows which site and person certificates KDE"
" knows about. You can easily manage them from here.");
- QWhatsThis::add(otherSSLBox, whatstr);
+ TQWhatsThis::add(otherSSLBox, whatstr);
otherSSLBox->addColumn(i18n("Organization"));
otherSSLBox->addColumn(i18n("Common Name"));
grid->addMultiCellWidget(otherSSLBox, 0, 7, 0, 4);
- otherSSLExport = new QPushButton(i18n("&Export..."), tabOtherSSLCert);
- connect(otherSSLExport, SIGNAL(clicked()), SLOT(slotExportCert()));
+ otherSSLExport = new TQPushButton(i18n("&Export..."), tabOtherSSLCert);
+ connect(otherSSLExport, TQT_SIGNAL(clicked()), TQT_SLOT(slotExportCert()));
grid->addWidget(otherSSLExport, 0, 5);
whatstr = i18n("This button allows you to export the selected certificate"
" to a file of various formats.");
- QWhatsThis::add(otherSSLExport, whatstr);
+ TQWhatsThis::add(otherSSLExport, whatstr);
- otherSSLRemove = new QPushButton(i18n("&Remove"), tabOtherSSLCert);
- connect(otherSSLRemove, SIGNAL(clicked()), SLOT(slotRemoveCert()));
+ otherSSLRemove = new TQPushButton(i18n("&Remove"), tabOtherSSLCert);
+ connect(otherSSLRemove, TQT_SIGNAL(clicked()), TQT_SLOT(slotRemoveCert()));
grid->addWidget(otherSSLRemove, 1, 5);
whatstr = i18n("This button removes the selected certificate"
" from the certificate cache.");
- QWhatsThis::add(otherSSLRemove, whatstr);
+ TQWhatsThis::add(otherSSLRemove, whatstr);
- otherSSLVerify = new QPushButton(i18n("&Verify"), tabOtherSSLCert);
- connect(otherSSLVerify, SIGNAL(clicked()), SLOT(slotVerifyCert()));
+ otherSSLVerify = new TQPushButton(i18n("&Verify"), tabOtherSSLCert);
+ connect(otherSSLVerify, TQT_SIGNAL(clicked()), TQT_SLOT(slotVerifyCert()));
grid->addWidget(otherSSLVerify, 2, 5);
whatstr = i18n("This button tests the selected certificate"
" for validity.");
- QWhatsThis::add(otherSSLVerify, whatstr);
+ TQWhatsThis::add(otherSSLVerify, whatstr);
otherSSLExport->setEnabled(false);
otherSSLVerify->setEnabled(false);
otherSSLRemove->setEnabled(false);
grid->addMultiCellWidget(new KSeparator(KSeparator::HLine, tabOtherSSLCert), 8, 8, 0, 5);
- oSubject = KSSLInfoDlg::certInfoWidget(tabOtherSSLCert, QString(QString::null));
- oIssuer = KSSLInfoDlg::certInfoWidget(tabOtherSSLCert, QString(QString::null));
+ oSubject = KSSLInfoDlg::certInfoWidget(tabOtherSSLCert, TQString(TQString::null));
+ oIssuer = KSSLInfoDlg::certInfoWidget(tabOtherSSLCert, TQString(TQString::null));
grid->addMultiCellWidget(oSubject, 9, 13, 0, 2);
grid->addMultiCellWidget(oIssuer, 9, 13, 3, 5);
whatstr = i18n("This is the information known about the owner of the certificate.");
- QWhatsThis::add(oSubject, whatstr);
+ TQWhatsThis::add(oSubject, whatstr);
whatstr = i18n("This is the information known about the issuer of the certificate.");
- QWhatsThis::add(oIssuer, whatstr);
+ TQWhatsThis::add(oIssuer, whatstr);
- fromLabel = new QLabel(i18n("Valid from:"), tabOtherSSLCert);
- untilLabel = new QLabel(i18n("Valid until:"), tabOtherSSLCert);
+ fromLabel = new TQLabel(i18n("Valid from:"), tabOtherSSLCert);
+ untilLabel = new TQLabel(i18n("Valid until:"), tabOtherSSLCert);
grid->addWidget(fromLabel, 14, 0);
grid->addWidget(untilLabel, 15, 0);
fromLabel->setEnabled(false);
untilLabel->setEnabled(false);
- validFrom = new QLabel(tabOtherSSLCert);
+ validFrom = new TQLabel(tabOtherSSLCert);
grid->addWidget(validFrom, 14, 1);
- validUntil = new QLabel(tabOtherSSLCert);
+ validUntil = new TQLabel(tabOtherSSLCert);
grid->addWidget(validUntil, 15, 1);
whatstr = i18n("The certificate is valid starting at this date.");
- QWhatsThis::add(validFrom, whatstr);
+ TQWhatsThis::add(validFrom, whatstr);
whatstr = i18n("The certificate is valid until this date.");
- QWhatsThis::add(validUntil, whatstr);
+ TQWhatsThis::add(validUntil, whatstr);
- cacheGroup = new QVButtonGroup(i18n("Cache"), tabOtherSSLCert);
- cachePerm = new QRadioButton(i18n("Permanentl&y"), cacheGroup);
- cacheUntil = new QRadioButton(i18n("&Until"), cacheGroup);
- untilDate = new KURLLabel(QString::null, QString::null, cacheGroup);
+ cacheGroup = new TQVButtonGroup(i18n("Cache"), tabOtherSSLCert);
+ cachePerm = new TQRadioButton(i18n("Permanentl&y"), cacheGroup);
+ cacheUntil = new TQRadioButton(i18n("&Until"), cacheGroup);
+ untilDate = new KURLLabel(TQString::null, TQString::null, cacheGroup);
cacheGroup->setEnabled(false);
grid->addMultiCellWidget(cacheGroup, 16, 19, 0, 2);
cachePerm->setEnabled(false);
cacheUntil->setEnabled(false);
untilDate->setEnabled(false);
- connect(cachePerm, SIGNAL(clicked()), SLOT(slotPermanent()));
- connect(cacheUntil, SIGNAL(clicked()), SLOT(slotUntil()));
- connect(untilDate, SIGNAL(leftClickedURL()), SLOT(slotDatePick()));
+ connect(cachePerm, TQT_SIGNAL(clicked()), TQT_SLOT(slotPermanent()));
+ connect(cacheUntil, TQT_SIGNAL(clicked()), TQT_SLOT(slotUntil()));
+ connect(untilDate, TQT_SIGNAL(leftClickedURL()), TQT_SLOT(slotDatePick()));
whatstr = i18n("Select here to make the cache entry permanent.");
- QWhatsThis::add(cachePerm, whatstr);
+ TQWhatsThis::add(cachePerm, whatstr);
whatstr = i18n("Select here to make the cache entry temporary.");
- QWhatsThis::add(cacheUntil, whatstr);
+ TQWhatsThis::add(cacheUntil, whatstr);
whatstr = i18n("The date and time until the certificate cache entry should expire.");
- QWhatsThis::add(untilDate, whatstr);
+ TQWhatsThis::add(untilDate, whatstr);
- policyGroup = new QVButtonGroup(i18n("Policy"), tabOtherSSLCert);
- policyAccept = new QRadioButton(i18n("Accep&t"), policyGroup);
- policyReject = new QRadioButton(i18n("Re&ject"), policyGroup);
- policyPrompt = new QRadioButton(i18n("&Prompt"), policyGroup);
+ policyGroup = new TQVButtonGroup(i18n("Policy"), tabOtherSSLCert);
+ policyAccept = new TQRadioButton(i18n("Accep&t"), policyGroup);
+ policyReject = new TQRadioButton(i18n("Re&ject"), policyGroup);
+ policyPrompt = new TQRadioButton(i18n("&Prompt"), policyGroup);
policyGroup->setEnabled(false);
grid->addMultiCellWidget(policyGroup, 16, 19, 3, 5);
- connect(policyGroup, SIGNAL(clicked(int)), SLOT(slotPolicyChanged(int)));
+ connect(policyGroup, TQT_SIGNAL(clicked(int)), TQT_SLOT(slotPolicyChanged(int)));
whatstr = i18n("Select this to always accept this certificate.");
- QWhatsThis::add(policyAccept, whatstr);
+ TQWhatsThis::add(policyAccept, whatstr);
whatstr = i18n("Select this to always reject this certificate.");
- QWhatsThis::add(policyReject, whatstr);
+ TQWhatsThis::add(policyReject, whatstr);
whatstr = i18n("Select this if you wish to be prompted for action when receiving this certificate.");
- QWhatsThis::add(policyPrompt, whatstr);
- grid->addWidget(new QLabel(i18n("MD5 digest:"), tabOtherSSLCert), 20, 0);
- pHash = new QLabel(tabOtherSSLCert);
+ TQWhatsThis::add(policyPrompt, whatstr);
+ grid->addWidget(new TQLabel(i18n("MD5 digest:"), tabOtherSSLCert), 20, 0);
+ pHash = new TQLabel(tabOtherSSLCert);
grid->addWidget(pHash, 20, 1);
whatstr = i18n("A hash of the certificate used to identify it quickly.");
- QWhatsThis::add(pHash, whatstr);
+ TQWhatsThis::add(pHash, whatstr);
#else
- nossllabel = new QLabel(i18n("SSL certificates cannot be managed"
+ nossllabel = new TQLabel(i18n("SSL certificates cannot be managed"
" because this module was not linked"
" with OpenSSL."), tabOtherSSLCert);
grid->addMultiCellWidget(nossllabel, 1, 1, 0, 1);
@@ -715,61 +715,61 @@ QString whatstr;
///////////////////////////////////////////////////////////////////////////
// SIXTH TAB
///////////////////////////////////////////////////////////////////////////
- tabSSLCA = new QFrame(this);
+ tabSSLCA = new TQFrame(this);
#ifdef HAVE_SSL
- grid = new QGridLayout(tabSSLCA, 11, 8, KDialog::marginHint(), KDialog::spacingHint());
+ grid = new TQGridLayout(tabSSLCA, 11, 8, KDialog::marginHint(), KDialog::spacingHint());
- caList = new QListView(tabSSLCA);
+ caList = new TQListView(tabSSLCA);
caList->setAllColumnsShowFocus(true);
whatstr = i18n("This list box shows which certificate authorities KDE"
" knows about. You can easily manage them from here.");
- QWhatsThis::add(caList, whatstr);
+ TQWhatsThis::add(caList, whatstr);
grid->addMultiCellWidget(caList, 0, 3, 0, 6);
caList->addColumn(i18n("Organization"));
caList->addColumn(i18n("Organizational Unit"));
caList->addColumn(i18n("Common Name"));
- connect(caList, SIGNAL(selectionChanged()), SLOT(slotCAItemChanged()));
+ connect(caList, TQT_SIGNAL(selectionChanged()), TQT_SLOT(slotCAItemChanged()));
- caSSLImport = new QPushButton(i18n("I&mport..."), tabSSLCA);
- connect(caSSLImport, SIGNAL(clicked()), SLOT(slotCAImport()));
+ caSSLImport = new TQPushButton(i18n("I&mport..."), tabSSLCA);
+ connect(caSSLImport, TQT_SIGNAL(clicked()), TQT_SLOT(slotCAImport()));
grid->addWidget(caSSLImport, 0, 7);
- caSSLRemove = new QPushButton(i18n("&Remove"), tabSSLCA);
- connect(caSSLRemove, SIGNAL(clicked()), SLOT(slotCARemove()));
+ caSSLRemove = new TQPushButton(i18n("&Remove"), tabSSLCA);
+ connect(caSSLRemove, TQT_SIGNAL(clicked()), TQT_SLOT(slotCARemove()));
grid->addWidget(caSSLRemove, 1, 7);
caSSLRemove->setEnabled(false);
- caSSLRestore = new QPushButton(i18n("Res&tore"), tabSSLCA);
- connect(caSSLRestore, SIGNAL(clicked()), SLOT(slotCARestore()));
+ caSSLRestore = new TQPushButton(i18n("Res&tore"), tabSSLCA);
+ connect(caSSLRestore, TQT_SIGNAL(clicked()), TQT_SLOT(slotCARestore()));
grid->addWidget(caSSLRestore, 2, 7);
- caSubject = KSSLInfoDlg::certInfoWidget(tabSSLCA, QString(QString::null));
- caIssuer = KSSLInfoDlg::certInfoWidget(tabSSLCA, QString(QString::null));
+ caSubject = KSSLInfoDlg::certInfoWidget(tabSSLCA, TQString(TQString::null));
+ caIssuer = KSSLInfoDlg::certInfoWidget(tabSSLCA, TQString(TQString::null));
grid->addMultiCellWidget(caSubject, 4, 6, 0, 3);
grid->addMultiCellWidget(caIssuer, 4, 6, 4, 7);
// Accept for Web Site Signing, Email Signing, Code Signing
- caSite = new QCheckBox(i18n("Accept for site signing"), tabSSLCA);
- caEmail = new QCheckBox(i18n("Accept for email signing"), tabSSLCA);
- caCode = new QCheckBox(i18n("Accept for code signing"), tabSSLCA);
+ caSite = new TQCheckBox(i18n("Accept for site signing"), tabSSLCA);
+ caEmail = new TQCheckBox(i18n("Accept for email signing"), tabSSLCA);
+ caCode = new TQCheckBox(i18n("Accept for code signing"), tabSSLCA);
grid->addMultiCellWidget(caSite, 7, 7, 0, 3);
- connect(caSite, SIGNAL(clicked()), SLOT(slotCAChecked()));
+ connect(caSite, TQT_SIGNAL(clicked()), TQT_SLOT(slotCAChecked()));
grid->addMultiCellWidget(caEmail, 8, 8, 0, 3);
- connect(caEmail, SIGNAL(clicked()), SLOT(slotCAChecked()));
+ connect(caEmail, TQT_SIGNAL(clicked()), TQT_SLOT(slotCAChecked()));
grid->addMultiCellWidget(caCode, 9, 9, 0, 3);
- connect(caCode, SIGNAL(clicked()), SLOT(slotCAChecked()));
+ connect(caCode, TQT_SIGNAL(clicked()), TQT_SLOT(slotCAChecked()));
caSite->setEnabled(false);
caEmail->setEnabled(false);
caCode->setEnabled(false);
- grid->addWidget(new QLabel(i18n("MD5 digest:"), tabSSLCA), 10, 0);
- cHash = new QLabel(tabSSLCA);
+ grid->addWidget(new TQLabel(i18n("MD5 digest:"), tabSSLCA), 10, 0);
+ cHash = new TQLabel(tabSSLCA);
grid->addWidget(cHash, 10, 1);
whatstr = i18n("A hash of the certificate used to identify it quickly.");
- QWhatsThis::add(cHash, whatstr);
+ TQWhatsThis::add(cHash, whatstr);
#else
- nossllabel = new QLabel(i18n("SSL certificates cannot be managed"
+ nossllabel = new TQLabel(i18n("SSL certificates cannot be managed"
" because this module was not linked"
" with OpenSSL."), tabSSLCA);
grid->addMultiCellWidget(nossllabel, 1, 1, 0, 1);
@@ -780,46 +780,46 @@ QString whatstr;
///////////////////////////////////////////////////////////////////////////
// SEVENTH TAB
///////////////////////////////////////////////////////////////////////////
- tabSSLCOpts = new QFrame(this);
+ tabSSLCOpts = new TQFrame(this);
#ifdef HAVE_SSL
- grid = new QGridLayout(tabSSLCOpts, 9, 4, KDialog::marginHint(), KDialog::spacingHint());
- mWarnSelfSigned = new QCheckBox(i18n("Warn on &self-signed certificates or unknown CA's"), tabSSLCOpts);
- connect(mWarnSelfSigned, SIGNAL(clicked()), SLOT(configChanged()));
- mWarnExpired = new QCheckBox(i18n("Warn on &expired certificates"), tabSSLCOpts);
- connect(mWarnExpired, SIGNAL(clicked()), SLOT(configChanged()));
- mWarnRevoked = new QCheckBox(i18n("Warn on re&voked certificates"), tabSSLCOpts);
- connect(mWarnRevoked, SIGNAL(clicked()), SLOT(configChanged()));
+ grid = new TQGridLayout(tabSSLCOpts, 9, 4, KDialog::marginHint(), KDialog::spacingHint());
+ mWarnSelfSigned = new TQCheckBox(i18n("Warn on &self-signed certificates or unknown CA's"), tabSSLCOpts);
+ connect(mWarnSelfSigned, TQT_SIGNAL(clicked()), TQT_SLOT(configChanged()));
+ mWarnExpired = new TQCheckBox(i18n("Warn on &expired certificates"), tabSSLCOpts);
+ connect(mWarnExpired, TQT_SIGNAL(clicked()), TQT_SLOT(configChanged()));
+ mWarnRevoked = new TQCheckBox(i18n("Warn on re&voked certificates"), tabSSLCOpts);
+ connect(mWarnRevoked, TQT_SIGNAL(clicked()), TQT_SLOT(configChanged()));
grid->addMultiCellWidget(mWarnSelfSigned, 0, 0, 0, 3);
grid->addMultiCellWidget(mWarnExpired, 1, 1, 0, 3);
grid->addMultiCellWidget(mWarnRevoked, 2, 2, 0, 3);
- macCert = new QLineEdit(tabSSLCOpts);
+ macCert = new TQLineEdit(tabSSLCOpts);
grid->addMultiCellWidget(macCert, 4, 4, 0, 2);
- macBox = new QListBox(tabSSLCOpts);
+ macBox = new TQListBox(tabSSLCOpts);
whatstr = i18n("This list box shows which sites you have decided to accept"
" a certificate from even though the certificate might fail"
" the validation procedure.");
- QWhatsThis::add(macBox, whatstr);
- caSSLBox->setSelectionMode(QListBox::Single);
- caSSLBox->setColumnMode(QListBox::FixedNumber);
+ TQWhatsThis::add(macBox, whatstr);
+ caSSLBox->setSelectionMode(TQListBox::Single);
+ caSSLBox->setColumnMode(TQListBox::FixedNumber);
grid->addMultiCellWidget(macBox, 5, 8, 0, 2);
- macAdd = new QPushButton(i18n("&Add"), tabSSLCOpts);
- //connect(macAdd, SIGNAL(), SLOT());
+ macAdd = new TQPushButton(i18n("&Add"), tabSSLCOpts);
+ //connect(macAdd, TQT_SIGNAL(), TQT_SLOT());
grid->addWidget(macAdd, 4, 3);
- macRemove = new QPushButton(i18n("&Remove"), tabSSLCOpts);
- //connect(macRemove, SIGNAL(), SLOT());
+ macRemove = new TQPushButton(i18n("&Remove"), tabSSLCOpts);
+ //connect(macRemove, TQT_SIGNAL(), TQT_SLOT());
grid->addWidget(macRemove, 5, 3);
macClear = new KPushButton(KGuiItem::clear(), tabSSLCOpts);
- //connect(macAdd, SIGNAL(), SLOT());
+ //connect(macAdd, TQT_SIGNAL(), TQT_SLOT());
grid->addWidget(macClear, 6, 3);
#else
- nossllabel = new QLabel(i18n("These options are not configurable"
+ nossllabel = new TQLabel(i18n("These options are not configurable"
" because this module was not linked"
" with OpenSSL."), tabSSLCOpts);
grid->addMultiCellWidget(nossllabel, 1, 1, 0, 1);
@@ -932,13 +932,13 @@ void KCryptoConfig::load( bool useDefaults )
SSLv2Box->setEnabled( mUseSSLv2->isChecked() );
SSLv3Box->setEnabled( mUseSSLv3->isChecked() );
- QStringList groups = policies->groupList();
+ TQStringList groups = policies->groupList();
otherSSLBox->clear();
- for (QStringList::Iterator i = groups.begin(); i != groups.end(); ++i) {
+ for (TQStringList::Iterator i = groups.begin(); i != groups.end(); ++i) {
if ((*i).isEmpty() || *i == "<default>" || *i == "General") continue;
policies->setGroup(*i);
- KSSLCertificate *cert = KSSLCertificate::fromString(policies->readEntry("Certificate", QString::null).local8Bit());
+ KSSLCertificate *cert = KSSLCertificate::fromString(policies->readEntry("Certificate", TQString::null).local8Bit());
if (cert) {
new OtherCertItem(otherSSLBox, cert->getSubject(), *i,
policies->readBoolEntry("Permanent", true),
@@ -951,20 +951,20 @@ void KCryptoConfig::load( bool useDefaults )
groups = pcerts->groupList();
yourSSLBox->clear();
- for (QStringList::Iterator i = groups.begin(); i != groups.end(); ++i) {
+ for (TQStringList::Iterator i = groups.begin(); i != groups.end(); ++i) {
if ((*i).isEmpty() || *i == "<default>") continue;
pcerts->setGroup(*i);
YourCertItem *j = new YourCertItem(yourSSLBox,
pcerts->readEntry("PKCS12Base64"),
pcerts->readEntry("Password"),
*i, this );
- j->setPassCache(QString::null);
+ j->setPassCache(TQString::null);
}
setAuthCertLists();
config->setGroup("Auth");
- QString whichAuth = config->readEntry("AuthMethod", "none");
+ TQString whichAuth = config->readEntry("AuthMethod", "none");
if (whichAuth == "send")
defCertBG->setButton(defCertBG->id(defSend));
else if (whichAuth == "prompt")
@@ -972,7 +972,7 @@ void KCryptoConfig::load( bool useDefaults )
else
defCertBG->setButton(defCertBG->id(defDont));
- QString whichCert = config->readEntry("DefaultCert");
+ TQString whichCert = config->readEntry("DefaultCert");
defCertBox->setCurrentItem(0);
for (int i = 0; i < defCertBox->count(); i++) {
if (defCertBox->text(i) == whichCert) {
@@ -982,7 +982,7 @@ void KCryptoConfig::load( bool useDefaults )
}
hostAuthList->clear();
groups = authcfg->groupList();
- for (QStringList::Iterator i = groups.begin();
+ for (TQStringList::Iterator i = groups.begin();
i != groups.end();
++i) {
if ((*i).isEmpty() || *i == "<default>") continue;
@@ -1003,7 +1003,7 @@ void KCryptoConfig::load( bool useDefaults )
groups = _signers->list();
KConfig sigcfg("ksslcalist", true, false);
caList->clear();
- for (QStringList::Iterator i = groups.begin();
+ for (TQStringList::Iterator i = groups.begin();
i != groups.end();
++i) {
if ((*i).isEmpty() || *i == "<default>") continue;
@@ -1109,7 +1109,7 @@ void KCryptoConfig::save()
// SSL Policies code
for (OtherCertItem *x = otherCertDelList.first(); x != 0; x = otherCertDelList.next()) {
KSSLX509Map cert(x->configName());
- QString thisCN = cert.getValue("CN");
+ TQString thisCN = cert.getValue("CN");
_cc.removeByCN(thisCN);
otherCertDelList.remove(x);
}
@@ -1119,8 +1119,8 @@ void KCryptoConfig::save()
x;
x = static_cast<OtherCertItem *>(x->nextSibling())) {
KSSLX509Map cert(x->configName());
- QString thisCN = cert.getValue("CN");
- QDateTime expires = x->getExpires();
+ TQString thisCN = cert.getValue("CN");
+ TQDateTime expires = x->getExpires();
_cc.modifyByCN(thisCN, (KSSLCertificateCache::KSSLCertificatePolicy)x->getPolicy(), x->isPermanent(), expires);
}
@@ -1172,7 +1172,7 @@ void KCryptoConfig::save()
config->setGroup("Auth");
- QString whichAuth = config->readEntry("AuthMethod", "none");
+ TQString whichAuth = config->readEntry("AuthMethod", "none");
if (defCertBG->selected() == defSend)
config->writeEntry("AuthMethod", "send");
else if (defCertBG->selected() == defPrompt)
@@ -1181,7 +1181,7 @@ void KCryptoConfig::save()
config->writeEntry("AuthMethod", "none");
if (defCertBox->currentItem() == 0)
- config->writeEntry("DefaultCert", QString::null);
+ config->writeEntry("DefaultCert", TQString::null);
else config->writeEntry("DefaultCert", defCertBox->currentText());
for (HostAuthItem *x = authDelList.first(); x != 0; x = authDelList.next()) {
@@ -1215,9 +1215,9 @@ void KCryptoConfig::save()
authcfg->sync();
// insure proper permissions -- contains sensitive data
- QString cfgName(KGlobal::dirs()->findResource("config", "cryptodefaults"));
+ TQString cfgName(KGlobal::dirs()->findResource("config", "cryptodefaults"));
if (!cfgName.isEmpty())
- ::chmod(QFile::encodeName(cfgName), 0600);
+ ::chmod(TQFile::encodeName(cfgName), 0600);
emit changed(false);
}
@@ -1331,7 +1331,7 @@ void KCryptoConfig::slotExportCert() {
OtherCertItem *x = static_cast<OtherCertItem *>(otherSSLBox->selectedItem());
if (x) {
policies->setGroup(x->getMD5());
- KSSLCertificate *cert = KSSLCertificate::fromString(policies->readEntry("Certificate", QString::null).local8Bit());
+ KSSLCertificate *cert = KSSLCertificate::fromString(policies->readEntry("Certificate", TQString::null).local8Bit());
if (cert) {
KCertExport kce;
kce.setCertificate(cert);
@@ -1345,10 +1345,10 @@ OtherCertItem *x = static_cast<OtherCertItem *>(otherSSLBox->selectedItem());
void KCryptoConfig::slotRemoveCert() {
-QListViewItem *act = otherSSLBox->selectedItem();
+TQListViewItem *act = otherSSLBox->selectedItem();
OtherCertItem *x = static_cast<OtherCertItem *>(act);
if (x) {
- QListViewItem *next = act->itemBelow();
+ TQListViewItem *next = act->itemBelow();
if (!next) next = act->itemAbove();
otherSSLBox->takeItem(x);
otherCertDelList.append(x);
@@ -1364,7 +1364,7 @@ OtherCertItem *x = static_cast<OtherCertItem *>(otherSSLBox->selectedItem());
if (!x) return;
policies->setGroup(x->getMD5());
- KSSLCertificate *cert = KSSLCertificate::fromString(policies->readEntry("Certificate", QString::null).local8Bit());
+ KSSLCertificate *cert = KSSLCertificate::fromString(policies->readEntry("Certificate", TQString::null).local8Bit());
if (!cert) {
KMessageBox::error(this, i18n("Error obtaining the certificate."), i18n("SSL"));
@@ -1445,7 +1445,7 @@ OtherCertItem *x = static_cast<OtherCertItem *>(otherSSLBox->selectedItem());
if (!x || !untilDate->isEnabled()) return;
-QDateTime qdt = x->getExpires();
+TQDateTime qdt = x->getExpires();
kdtd.setDateTime(qdt);
int rc = kdtd.exec();
@@ -1460,7 +1460,7 @@ QDateTime qdt = x->getExpires();
void KCryptoConfig::slotOtherCertSelect() {
OtherCertItem *x = static_cast<OtherCertItem *>(otherSSLBox->selectedItem());
-QString iss = QString::null;
+TQString iss = TQString::null;
if (x) {
otherSSLExport->setEnabled(true);
otherSSLVerify->setEnabled(true);
@@ -1474,37 +1474,37 @@ QString iss = QString::null;
cacheUntil->setEnabled(true);
policies->setGroup(x->getMD5());
- KSSLCertificate *cert = KSSLCertificate::fromString(policies->readEntry("Certificate", QString::null).local8Bit());
+ KSSLCertificate *cert = KSSLCertificate::fromString(policies->readEntry("Certificate", TQString::null).local8Bit());
if (cert) {
- QPalette cspl;
+ TQPalette cspl;
iss = cert->getIssuer();
cspl = validFrom->palette();
- if (QDateTime::currentDateTime(Qt::UTC) < cert->getQDTNotBefore()) {
- cspl.setColor(QColorGroup::Foreground, QColor(196,33,21));
+ if (TQDateTime::currentDateTime(Qt::UTC) < cert->getQDTNotBefore()) {
+ cspl.setColor(TQColorGroup::Foreground, TQColor(196,33,21));
} else {
- cspl.setColor(QColorGroup::Foreground, QColor(42,153,59));
+ cspl.setColor(TQColorGroup::Foreground, TQColor(42,153,59));
}
validFrom->setPalette(cspl);
cspl = validUntil->palette();
- if (QDateTime::currentDateTime(Qt::UTC) > cert->getQDTNotAfter()) {
- cspl.setColor(QColorGroup::Foreground, QColor(196,33,21));
+ if (TQDateTime::currentDateTime(Qt::UTC) > cert->getQDTNotAfter()) {
+ cspl.setColor(TQColorGroup::Foreground, TQColor(196,33,21));
} else {
- cspl.setColor(QColorGroup::Foreground, QColor(42,153,59));
+ cspl.setColor(TQColorGroup::Foreground, TQColor(42,153,59));
}
validUntil->setPalette(cspl);
validFrom->setText(cert->getNotBefore());
validUntil->setText(cert->getNotAfter());
untilDate->setText(x ? KGlobal::locale()->formatDateTime(x->getExpires())
- : KGlobal::locale()->formatDateTime(QDateTime::currentDateTime(Qt::UTC)));
+ : KGlobal::locale()->formatDateTime(TQDateTime::currentDateTime(Qt::UTC)));
untilDate->setEnabled(x && !x->isPermanent());
pHash->setText(cert->getMD5DigestText());
delete cert;
} else {
- validFrom->setText(QString::null);
- validUntil->setText(QString::null);
+ validFrom->setText(TQString::null);
+ validUntil->setText(TQString::null);
pHash->clear();
}
@@ -1538,15 +1538,15 @@ QString iss = QString::null;
policyPrompt->setChecked(false);
cachePerm->setEnabled(false);
cacheUntil->setEnabled(false);
- validFrom->setText(QString::null);
- validUntil->setText(QString::null);
- untilDate->setText(QString::null);
+ validFrom->setText(TQString::null);
+ validUntil->setText(TQString::null);
+ untilDate->setText(TQString::null);
untilDate->setEnabled(false);
pHash->clear();
}
- oSubject->setValues(x ? x->getSub() : QString(QString::null));
+ oSubject->setValues(x ? x->getSub() : TQString(TQString::null));
oIssuer->setValues(iss);
}
@@ -1554,19 +1554,19 @@ QString iss = QString::null;
void KCryptoConfig::slotYourImport() {
- QString certFile = KFileDialog::getOpenFileName(QString::null, "application/x-pkcs12");
+ TQString certFile = KFileDialog::getOpenFileName(TQString::null, "application/x-pkcs12");
if (certFile.isEmpty())
return;
#ifdef HAVE_SSL
KSSLPKCS12 *cert = NULL;
-QCString pass;
+TQCString pass;
TryImportPassAgain:
int rc = KPasswordDialog::getPassword(pass, i18n("Certificate password"));
if (rc != KPasswordDialog::Accepted) return;
- cert = KSSLPKCS12::loadCertFile(certFile, QString(pass));
+ cert = KSSLPKCS12::loadCertFile(certFile, TQString(pass));
if (!cert) {
rc = KMessageBox::warningYesNo(this, i18n("The certificate file could not be loaded. Try a different password?"), i18n("SSL"),i18n("Try"),i18n("Do Not Try"));
@@ -1581,7 +1581,7 @@ TryImportPassAgain:
// FIXME: prompt if the user wants the password stored along with the
// certificate
- QString name = cert->getCertificate()->getSubject();
+ TQString name = cert->getCertificate()->getSubject();
for (YourCertItem *i =
static_cast<YourCertItem *>(yourSSLBox->firstChild());
i;
@@ -1599,7 +1599,7 @@ TryImportPassAgain:
new YourCertItem(yourSSLBox,
cert->toString(),
- QString::null, // the password - don't store it yet!
+ TQString::null, // the password - don't store it yet!
name,
this );
@@ -1620,8 +1620,8 @@ YourCertItem *x = static_cast<YourCertItem *>(yourSSLBox->selectedItem());
if (!pkcs)
pkcs = KSSLPKCS12::fromString(x->getPKCS(), x->getPassCache());
if (!pkcs) {
- QString pprompt = i18n("Enter the certificate password:");
- QCString oldpass;
+ TQString pprompt = i18n("Enter the certificate password:");
+ TQCString oldpass;
do {
int i = KPasswordDialog::getPassword(oldpass, pprompt);
if (i != KPasswordDialog::Accepted) return;
@@ -1633,7 +1633,7 @@ YourCertItem *x = static_cast<YourCertItem *>(yourSSLBox->selectedItem());
}
// For now, we will only export to PKCS#12
- QString certFile = KFileDialog::getSaveFileName(QString::null,
+ TQString certFile = KFileDialog::getSaveFileName(TQString::null,
"application/x-pkcs12");
if (certFile.isEmpty())
return;
@@ -1645,15 +1645,15 @@ YourCertItem *x = static_cast<YourCertItem *>(yourSSLBox->selectedItem());
void KCryptoConfig::slotYourVerify() {
YourCertItem *x = static_cast<YourCertItem *>(yourSSLBox->selectedItem());
-QString iss;
+TQString iss;
if (!x) return;
KSSLPKCS12 *pkcs = KSSLPKCS12::fromString(x->getPKCS(), x->getPass());
if (!pkcs)
pkcs = KSSLPKCS12::fromString(x->getPKCS(), x->getPassCache());
if (!pkcs) {
- QString pprompt = i18n("Enter the certificate password:");
- QCString oldpass;
+ TQString pprompt = i18n("Enter the certificate password:");
+ TQCString oldpass;
do {
int i = KPasswordDialog::getPassword(oldpass, pprompt);
if (i != KPasswordDialog::Accepted) return;
@@ -1693,15 +1693,15 @@ YourCertItem *x = static_cast<YourCertItem *>(yourSSLBox->selectedItem());
void KCryptoConfig::slotYourUnlock() {
YourCertItem *x = static_cast<YourCertItem *>(yourSSLBox->selectedItem());
-QString iss;
+TQString iss;
if (!x || !yourSSLUnlock->isEnabled()) return;
KSSLPKCS12 *pkcs = KSSLPKCS12::fromString(x->getPKCS(), x->getPass());
if (!pkcs)
pkcs = KSSLPKCS12::fromString(x->getPKCS(), x->getPassCache());
if (!pkcs) {
- QString pprompt = i18n("Enter the certificate password:");
- QCString oldpass;
+ TQString pprompt = i18n("Enter the certificate password:");
+ TQCString oldpass;
do {
int i = KPasswordDialog::getPassword(oldpass, pprompt);
if (i != KPasswordDialog::Accepted) return;
@@ -1713,23 +1713,23 @@ QString iss;
// update the info
iss = pkcs->getCertificate()->getIssuer();
- ySubject->setValues(x ? x->getName() : QString(QString::null));
+ ySubject->setValues(x ? x->getName() : TQString(TQString::null));
yIssuer->setValues(iss);
- QPalette cspl;
+ TQPalette cspl;
KSSLCertificate *cert = pkcs->getCertificate();
cspl = yValidFrom->palette();
- if (QDateTime::currentDateTime(Qt::UTC) < cert->getQDTNotBefore()) {
- cspl.setColor(QColorGroup::Foreground, QColor(196,33,21));
+ if (TQDateTime::currentDateTime(Qt::UTC) < cert->getQDTNotBefore()) {
+ cspl.setColor(TQColorGroup::Foreground, TQColor(196,33,21));
} else {
- cspl.setColor(QColorGroup::Foreground, QColor(42,153,59));
+ cspl.setColor(TQColorGroup::Foreground, TQColor(42,153,59));
}
yValidFrom->setPalette(cspl);
cspl = yValidUntil->palette();
- if (QDateTime::currentDateTime(Qt::UTC) > cert->getQDTNotAfter()) {
- cspl.setColor(QColorGroup::Foreground, QColor(196,33,21));
+ if (TQDateTime::currentDateTime(Qt::UTC) > cert->getQDTNotAfter()) {
+ cspl.setColor(TQColorGroup::Foreground, TQColor(196,33,21));
} else {
- cspl.setColor(QColorGroup::Foreground, QColor(42,153,59));
+ cspl.setColor(TQColorGroup::Foreground, TQColor(42,153,59));
}
yValidUntil->setPalette(cspl);
@@ -1743,7 +1743,7 @@ QString iss;
void KCryptoConfig::slotYourCertSelect() {
YourCertItem *x = static_cast<YourCertItem *>(yourSSLBox->selectedItem());
-QString iss;
+TQString iss;
yourSSLExport->setEnabled(x != NULL);
yourSSLPass->setEnabled(x != NULL);
@@ -1754,22 +1754,22 @@ QString iss;
if (x) {
KSSLPKCS12 *pkcs = KSSLPKCS12::fromString(x->getPKCS(), x->getPass());
if (pkcs) {
- QPalette cspl;
+ TQPalette cspl;
KSSLCertificate *cert = pkcs->getCertificate();
iss = cert->getIssuer();
cspl = yValidFrom->palette();
- if (QDateTime::currentDateTime(Qt::UTC) < cert->getQDTNotBefore()) {
- cspl.setColor(QColorGroup::Foreground, QColor(196,33,21));
+ if (TQDateTime::currentDateTime(Qt::UTC) < cert->getQDTNotBefore()) {
+ cspl.setColor(TQColorGroup::Foreground, TQColor(196,33,21));
} else {
- cspl.setColor(QColorGroup::Foreground, QColor(42,153,59));
+ cspl.setColor(TQColorGroup::Foreground, TQColor(42,153,59));
}
yValidFrom->setPalette(cspl);
cspl = yValidUntil->palette();
- if (QDateTime::currentDateTime(Qt::UTC) > cert->getQDTNotAfter()) {
- cspl.setColor(QColorGroup::Foreground, QColor(196,33,21));
+ if (TQDateTime::currentDateTime(Qt::UTC) > cert->getQDTNotAfter()) {
+ cspl.setColor(TQColorGroup::Foreground, TQColor(196,33,21));
} else {
- cspl.setColor(QColorGroup::Foreground, QColor(42,153,59));
+ cspl.setColor(TQColorGroup::Foreground, TQColor(42,153,59));
}
yValidUntil->setPalette(cspl);
@@ -1785,21 +1785,21 @@ QString iss;
yHash->clear();
}
- ySubject->setValues(x ? x->getName() : QString(QString::null));
+ ySubject->setValues(x ? x->getName() : TQString(TQString::null));
yIssuer->setValues(iss);
}
void KCryptoConfig::slotYourPass() {
YourCertItem *x = static_cast<YourCertItem *>(yourSSLBox->selectedItem());
-QCString oldpass = "";
+TQCString oldpass = "";
if (!x) return;
KSSLPKCS12 *pkcs = KSSLPKCS12::fromString(x->getPKCS(), x->getPass());
if (!pkcs)
pkcs = KSSLPKCS12::fromString(x->getPKCS(), x->getPassCache());
if (!pkcs) {
- QString pprompt = i18n("Enter the OLD password for the certificate:");
+ TQString pprompt = i18n("Enter the OLD password for the certificate:");
do {
int i = KPasswordDialog::getPassword(oldpass, pprompt);
if (i != KPasswordDialog::Accepted) break;
@@ -1817,8 +1817,8 @@ QCString oldpass = "";
int i = kpd->exec();
if (i == KPasswordDialog::Accepted) {
- QCString pass = kpd->password();
- pkcs->changePassword(QString(oldpass), QString(pass));
+ TQCString pass = kpd->password();
+ pkcs->changePassword(TQString(oldpass), TQString(pass));
x->setPKCS(pkcs->toString());
x->setPassCache(pass);
configChanged();
@@ -1830,7 +1830,7 @@ QCString oldpass = "";
void KCryptoConfig::slotCAImport() {
- QString certFile = KFileDialog::getOpenFileName(QString::null, "application/x-x509-ca-cert");
+ TQString certFile = KFileDialog::getOpenFileName(TQString::null, "application/x-x509-ca-cert");
if (certFile.isEmpty())
return;
@@ -1863,7 +1863,7 @@ void KCryptoConfig::slotCAImport() {
// Only import CA's
if (!x || !x->x509V3Extensions().certTypeCA()) {
if (x) {
- QString emsg = x->getSubject() + ":\n" +
+ TQString emsg = x->getSubject() + ":\n" +
i18n("This is not a signer certificate.");
KMessageBox::error(this,
emsg,
@@ -1873,7 +1873,7 @@ void KCryptoConfig::slotCAImport() {
continue;
}
- QString name = x->getSubject();
+ TQString name = x->getSubject();
// search for dups
for (CAItem *m = static_cast<CAItem *>(caList->firstChild());
@@ -1883,7 +1883,7 @@ void KCryptoConfig::slotCAImport() {
KSSLCertificate *y = KSSLCertificate::fromString(m->getCert().local8Bit());
if (!y) continue;
if (*x == *y) {
- QString emsg = name + ":\n" +
+ TQString emsg = name + ":\n" +
i18n("You already have this signer certificate installed.");
KMessageBox::error(this,
emsg,
@@ -1911,9 +1911,9 @@ void KCryptoConfig::slotCAImport() {
// Can the PEM code be wiped out now?
} else { // try to load it manually as a single X.509 DER encoded
// ASSUMPTION: we only read one certificate in this code
- QFile qf(certFile);
- QString name;
- QString certtext;
+ TQFile qf(certFile);
+ TQString name;
+ TQString certtext;
KSSLCertificate *x;
qf.open(IO_ReadOnly);
qf.readLine(certtext, qf.size());
@@ -1923,16 +1923,16 @@ void KCryptoConfig::slotCAImport() {
if (certtext.contains("-----BEGIN CERTIFICATE-----")) {
qf.reset();
- certtext = QString::null;
+ certtext = TQString::null;
while (!qf.atEnd()) {
- QString xx;
+ TQString xx;
qf.readLine(xx, qf.size());
certtext += xx;
}
- certtext = certtext.replace("-----BEGIN CERTIFICATE-----", QString::null);
- certtext = certtext.replace("-----END CERTIFICATE-----", QString::null);
+ certtext = certtext.replace("-----BEGIN CERTIFICATE-----", TQString::null);
+ certtext = certtext.replace("-----END CERTIFICATE-----", TQString::null);
certtext = certtext.stripWhiteSpace();
- certtext = certtext.replace("\n", QString::null);
+ certtext = certtext.replace("\n", TQString::null);
} else {
// Must [could?] be DER
qf.close();
@@ -1940,7 +1940,7 @@ void KCryptoConfig::slotCAImport() {
char *cr;
cr = new char[qf.size()+1];
qf.readBlock(cr, qf.size());
- QByteArray qba;
+ TQByteArray qba;
qba.duplicate(cr, qf.size());
certtext = KCodecs::base64Encode(qba);
delete [] cr;
@@ -2001,9 +2001,9 @@ void KCryptoConfig::slotCAImport() {
offerImportToKMail( certFile );
}
-void KCryptoConfig::offerImportToKMail( const QString& certFile )
+void KCryptoConfig::offerImportToKMail( const TQString& certFile )
{
- if ( KMessageBox::questionYesNo( this, i18n( "Do you want to make this certificate available to KMail as well?" ), QString::null, i18n("Make Available"), i18n("Do Not Make Available") ) == KMessageBox::Yes ) {
+ if ( KMessageBox::questionYesNo( this, i18n( "Do you want to make this certificate available to KMail as well?" ), TQString::null, i18n("Make Available"), i18n("Do Not Make Available") ) == KMessageBox::Yes ) {
KProcess proc;
proc << "kleopatra";
proc << "--import-certificate";
@@ -2034,21 +2034,21 @@ void KCryptoConfig::slotCARestore() {
// For now, we just rm the existing file and rebuild
- QString path = KGlobal::dirs()->saveLocation("config");
+ TQString path = KGlobal::dirs()->saveLocation("config");
path += "/ksslcalist";
- QFile::remove(path);
+ TQFile::remove(path);
// Remove all our old work and rebuild the GUI/List
caDelList.clear();
caList->clear();
- QStringList groups = _signers->list();
+ TQStringList groups = _signers->list();
KConfig sigcfg("ksslcalist", true, false);
- for (QStringList::Iterator i = groups.begin();
+ for (TQStringList::Iterator i = groups.begin();
i != groups.end();
++i) {
if ((*i).isEmpty() || *i == "<default>") continue;
@@ -2057,7 +2057,7 @@ void KCryptoConfig::slotCARestore() {
if (!sigcfg.hasKey("x509")) continue;
new CAItem(caList,
(*i),
- sigcfg.readEntry("x509", QString::null),
+ sigcfg.readEntry("x509", TQString::null),
sigcfg.readBoolEntry("site", false),
sigcfg.readBoolEntry("email", false),
sigcfg.readBoolEntry("code", false),
@@ -2073,10 +2073,10 @@ void KCryptoConfig::slotCAItemChanged() {
CAItem *x = static_cast<CAItem *>(caList->selectedItem());
if (x) {
caSSLRemove->setEnabled(true);
- caSubject->setValues(x ? x->getName() : QString(QString::null));
+ caSubject->setValues(x ? x->getName() : TQString(TQString::null));
KSSLCertificate *cert = KSSLCertificate::fromString(x->getCert().local8Bit());
if (!cert) {
- caIssuer->setValues(QString(QString::null));
+ caIssuer->setValues(TQString(TQString::null));
caSite->setEnabled(false);
caEmail->setEnabled(false);
caCode->setEnabled(false);
@@ -2100,8 +2100,8 @@ CAItem *x = static_cast<CAItem *>(caList->selectedItem());
caSite->setEnabled(false);
caEmail->setEnabled(false);
caCode->setEnabled(false);
- caSubject->setValues(QString(QString::null));
- caIssuer->setValues(QString(QString::null));
+ caSubject->setValues(TQString(TQString::null));
+ caIssuer->setValues(TQString(TQString::null));
cHash->clear();
}
}
@@ -2122,8 +2122,8 @@ CAItem *x = static_cast<CAItem *>(caList->selectedItem());
void KCryptoConfig::slotNewHostAuth() {
HostAuthItem *j = new HostAuthItem(hostAuthList,
- QString::null,
- QString::null,
+ TQString::null,
+ TQString::null,
this );
j->setAction(KSSLCertificateHome::AuthSend);
hostAuthList->setSelected(j, true);
@@ -2140,11 +2140,11 @@ void KCryptoConfig::slotNewHostAuth() {
void KCryptoConfig::slotRemoveHostAuth() {
-QListViewItem *act = hostAuthList->selectedItem();
+TQListViewItem *act = hostAuthList->selectedItem();
HostAuthItem *x = static_cast<HostAuthItem *>(act);
if (x) {
- QListViewItem *next = act->itemBelow();
+ TQListViewItem *next = act->itemBelow();
if (!next) next = act->itemAbove();
hostAuthList->takeItem(x);
authDelList.append(x);
@@ -2187,7 +2187,7 @@ if (x) {
___lehack = false;
hostCertBox->setCurrentItem(0);
- QString theCert = x->getCertName();
+ TQString theCert = x->getCertName();
for (int i = 0; i < hostCertBox->count(); i++) {
if (hostCertBox->text(i) == theCert) {
hostCertBox->setCurrentItem(i);
@@ -2204,7 +2204,7 @@ if (x) {
}
-void KCryptoConfig::slotAuthText(const QString &t) {
+void KCryptoConfig::slotAuthText(const TQString &t) {
if (___lehack) return;
HostAuthItem *x = static_cast<HostAuthItem *>(hostAuthList->selectedItem());
@@ -2241,7 +2241,7 @@ HostAuthItem *x = static_cast<HostAuthItem *>(hostAuthList->selectedItem());
if (x) {
if (hostCertBox->currentItem() == 0)
- x->setCertName(QString::null);
+ x->setCertName(TQString::null);
else x->setCertName(hostCertBox->currentText());
configChanged();
}
@@ -2297,7 +2297,7 @@ void KCryptoConfig::slotUseEFile() {
// encompassed in a separate module quite nicely.
void KCryptoConfig::slotGeneratePersonal() {
#if 0
- QStringList qslCertTypes;
+ TQStringList qslCertTypes;
qslCertTypes << i18n("Personal SSL")
<< i18n("Server SSL")
@@ -2342,7 +2342,7 @@ SSL_METHOD *meth;
if (!sc)
break;
// Leak of sc*?
- QString scn(sc->name);
+ TQString scn(sc->name);
if (scn.contains("ADH-") || scn.contains("NULL-") || scn.contains("DES-CBC3-SHA") || scn.contains("FZA-")) {
continue;
}
@@ -2370,7 +2370,7 @@ SSL_METHOD *meth;
if (!sc)
break;
// Leak of sc*?
- QString scn(sc->name);
+ TQString scn(sc->name);
if (scn.contains("ADH-") || scn.contains("NULL-") || scn.contains("DES-CBC3-SHA") || scn.contains("FZA-")) {
continue;
}
@@ -2388,7 +2388,7 @@ return true;
void KCryptoConfig::setAuthCertLists() {
-QString oldDef, oldHost;
+TQString oldDef, oldHost;
bool noneDef, noneHost;
// get the old setting
@@ -2400,7 +2400,7 @@ bool noneDef, noneHost;
// repopulate
defCertBox->clear();
hostCertBox->clear();
- QStringList defCertStrList; // = KSSLCertificateHome::getCertificateList();
+ TQStringList defCertStrList; // = KSSLCertificateHome::getCertificateList();
defCertStrList.append(i18n("None"));
for (YourCertItem *x = static_cast<YourCertItem *>(yourSSLBox->firstChild());
x;
@@ -2441,7 +2441,7 @@ bool noneDef, noneHost;
static_cast<HostAuthItem *>(hostAuthList->firstChild());
x;
x = static_cast<HostAuthItem *>(x->nextSibling())) {
- QString newValue = QString::null;
+ TQString newValue = TQString::null;
for (int i = 1; i < hostCertBox->count(); i++) {
if (hostCertBox->text(i) == x->getCertName()) {
newValue = x->getCertName();
diff --git a/kcontrol/crypto/crypto.h b/kcontrol/crypto/crypto.h
index 4d335570a..b9d856ceb 100644
--- a/kcontrol/crypto/crypto.h
+++ b/kcontrol/crypto/crypto.h
@@ -25,13 +25,13 @@
#include <config.h>
#endif
-#include <qcheckbox.h>
-#include <qdatetime.h>
-#include <qlineedit.h>
-#include <qlistview.h>
-#include <qptrlist.h>
-#include <qtabwidget.h>
-#include <qvbuttongroup.h>
+#include <tqcheckbox.h>
+#include <tqdatetime.h>
+#include <tqlineedit.h>
+#include <tqlistview.h>
+#include <tqptrlist.h>
+#include <tqtabwidget.h>
+#include <tqvbuttongroup.h>
#include <kcmodule.h>
#include <ksimpleconfig.h>
@@ -50,23 +50,23 @@ class KURLRequester;
class CipherItem : public QCheckListItem
{
public:
- CipherItem( QListView *view, const QString& cipher, int bits, int maxBits,
+ CipherItem( TQListView *view, const TQString& cipher, int bits, int maxBits,
KCryptoConfig *module );
~CipherItem() {}
- void setCipher( const QString& cipher ) { m_cipher = cipher; }
- const QString& cipher() const { return m_cipher; }
+ void setCipher( const TQString& cipher ) { m_cipher = cipher; }
+ const TQString& cipher() const { return m_cipher; }
void setBits( int bits ) { m_bits = bits; }
int bits() const { return m_bits; }
- QString configName() const;
+ TQString configName() const;
protected:
virtual void stateChange( bool );
private:
int m_bits;
- QString m_cipher;
+ TQString m_cipher;
KCryptoConfig *m_module; // just to call configChanged()
};
@@ -75,26 +75,26 @@ private:
class OtherCertItem : public QListViewItem
{
public:
- OtherCertItem(QListView *view, const QString& sub, const QString& md5, bool perm, int policy, QDateTime exp, KCryptoConfig *module );
+ OtherCertItem(TQListView *view, const TQString& sub, const TQString& md5, bool perm, int policy, TQDateTime exp, KCryptoConfig *module );
~OtherCertItem() {}
- QString configName() const;
- const QString& getSub() { return _sub; }
+ TQString configName() const;
+ const TQString& getSub() { return _sub; }
int getPolicy() { return _policy; }
- const QString& getMD5() { return _md5; }
+ const TQString& getMD5() { return _md5; }
bool isPermanent() { return _perm; }
- QDateTime getExpires() { return _exp; }
+ TQDateTime getExpires() { return _exp; }
void setPolicy(int x) { _policy = x; }
void setPermanent(bool x) { _perm = x; }
- void setExpires(QDateTime x) { _exp = x; }
+ void setExpires(TQDateTime x) { _exp = x; }
protected:
virtual void stateChange( bool );
private:
- QString _sub, _md5;
+ TQString _sub, _md5;
KCryptoConfig *m_module; // just to call configChanged()
- QDateTime _exp;
+ TQDateTime _exp;
bool _perm;
int _policy;
};
@@ -105,27 +105,27 @@ private:
class YourCertItem : public QListViewItem
{
public:
- YourCertItem(QListView *view, QString pkcs, QString pass, QString name, KCryptoConfig *module );
+ YourCertItem(TQListView *view, TQString pkcs, TQString pass, TQString name, KCryptoConfig *module );
~YourCertItem() {}
- QString configName() const;
- QString& getPKCS() { return _pkcs; }
- void setPKCS(QString pkcs) { _pkcs = pkcs; }
- QString& getPass() { return _pass; }
- void setPass(QString pass) { _pass = pass; }
- QString& getName() { return _name; }
- void setName(QString name) { _name = name; }
- QString& getPassCache() { return _cpass; }
- void setPassCache(QString pass) { _cpass = pass; }
+ TQString configName() const;
+ TQString& getPKCS() { return _pkcs; }
+ void setPKCS(TQString pkcs) { _pkcs = pkcs; }
+ TQString& getPass() { return _pass; }
+ void setPass(TQString pass) { _pass = pass; }
+ TQString& getName() { return _name; }
+ void setName(TQString name) { _name = name; }
+ TQString& getPassCache() { return _cpass; }
+ void setPassCache(TQString pass) { _cpass = pass; }
protected:
virtual void stateChange( bool );
private:
- QString _pkcs;
- QString _pass;
- QString _cpass;
- QString _name;
+ TQString _pkcs;
+ TQString _pass;
+ TQString _cpass;
+ TQString _name;
KCryptoConfig *m_module; // just to call configChanged()
};
@@ -135,14 +135,14 @@ private:
class CAItem : public QListViewItem
{
public:
- CAItem(QListView *view, QString name, QString cert, bool site, bool email, bool code, KCryptoConfig *module );
+ CAItem(TQListView *view, TQString name, TQString cert, bool site, bool email, bool code, KCryptoConfig *module );
~CAItem() {}
- QString configName() const;
- QString& getName() { return _name; }
- void setName(QString name) { _name = name; }
+ TQString configName() const;
+ TQString& getName() { return _name; }
+ void setName(TQString name) { _name = name; }
- inline QString getCert() const { return _cert; }
+ inline TQString getCert() const { return _cert; }
inline bool getSite() const { return _site; }
inline bool getEmail() const { return _email; }
inline bool getCode() const { return _code; }
@@ -156,8 +156,8 @@ protected:
virtual void stateChange( bool );
private:
- QString _name;
- QString _cert;
+ TQString _name;
+ TQString _cert;
bool _site, _email, _code;
KCryptoConfig *m_module; // just to call configChanged()
};
@@ -169,12 +169,12 @@ private:
class HostAuthItem : public QListViewItem
{
public:
- HostAuthItem(QListView *view, QString host, QString name, KCryptoConfig *module ) : QListViewItem(view, QString::null ) {
+ HostAuthItem(TQListView *view, TQString host, TQString name, KCryptoConfig *module ) : TQListViewItem(view, TQString::null ) {
_name = name; _host = host;
m_module = module;
setText(0, _host);
setText(1, _name);
- _oname = QString::null;
+ _oname = TQString::null;
}
~HostAuthItem() {}
@@ -195,18 +195,18 @@ public:
}
}
KSSLCertificateHome::KSSLAuthAction getAction() const { return _aa; }
- QString configName() const { return _host; }
- QString getCertName() const { return _name; }
- void setCertName(QString name) { _name = name; setText(1, name); }
- void setHost(QString name) { _host = name; setText(0, name); }
- void setOriginalName(QString oname) { _oname = oname; }
- QString originalName() const { return _oname; }
+ TQString configName() const { return _host; }
+ TQString getCertName() const { return _name; }
+ void setCertName(TQString name) { _name = name; setText(1, name); }
+ void setHost(TQString name) { _host = name; setText(0, name); }
+ void setOriginalName(TQString oname) { _oname = oname; }
+ TQString originalName() const { return _oname; }
protected:
private:
- QString _host;
- QString _name, _oname;
+ TQString _host;
+ TQString _name, _oname;
KSSLCertificateHome::KSSLAuthAction _aa;
KCryptoConfig *m_module; // just to call configChanged()
};
@@ -219,7 +219,7 @@ class KCryptoConfig : public KCModule
{
Q_OBJECT
public:
- KCryptoConfig(QWidget *parent = 0L, const char *name = 0L, const QStringList &list = QStringList());
+ KCryptoConfig(TQWidget *parent = 0L, const char *name = 0L, const TQStringList &list = TQStringList());
virtual ~KCryptoConfig();
void load();
@@ -261,7 +261,7 @@ public slots:
void slotNewHostAuth();
void slotRemoveHostAuth();
void slotAuthItemChanged();
- void slotAuthText(const QString &t);
+ void slotAuthText(const TQString &t);
void slotAuthButtons();
void slotAuthCombo();
@@ -279,78 +279,78 @@ protected:
private:
- void offerImportToKMail( const QString& certFile );
+ void offerImportToKMail( const TQString& certFile );
void setAuthCertLists();
void genCAList();
- QTabWidget *tabs;
- QWidget *tabSSL, *tabOSSL;
+ TQTabWidget *tabs;
+ TQWidget *tabSSL, *tabOSSL;
- QWidget *tabYourSSLCert, *tabOtherSSLCert, *tabSSLCA, *tabSSLCOpts, *tabAuth;
+ TQWidget *tabYourSSLCert, *tabOtherSSLCert, *tabSSLCA, *tabSSLCOpts, *tabAuth;
- QListView *SSLv2Box, *SSLv3Box;
- QCheckBox *mUseTLS, *mUseSSLv2, *mUseSSLv3;
- QCheckBox *mWarnOnEnter, *mWarnOnLeave;
+ TQListView *SSLv2Box, *SSLv3Box;
+ TQCheckBox *mUseTLS, *mUseSSLv2, *mUseSSLv3;
+ TQCheckBox *mWarnOnEnter, *mWarnOnLeave;
/* EGD stuff */
- QLabel *mEGDLabel;
+ TQLabel *mEGDLabel;
KURLRequester *mEGDPath;
- QCheckBox *mUseEGD;
- QCheckBox *mUseEFile;
+ TQCheckBox *mUseEGD;
+ TQCheckBox *mUseEFile;
/* CipherWizards */
- QPushButton *mCWall, *mCWus, *mCWexp, *mCWcompatible;
+ TQPushButton *mCWall, *mCWus, *mCWexp, *mCWcompatible;
- QCheckBox *mWarnOnUnencrypted, *mWarnOnMixed;
- QListView *yourSSLBox, *otherSSLBox, *caList;
- QCheckBox *mWarnSelfSigned, *mWarnExpired, *mWarnRevoked;
- QPushButton *macAdd, *macRemove;
+ TQCheckBox *mWarnOnUnencrypted, *mWarnOnMixed;
+ TQListView *yourSSLBox, *otherSSLBox, *caList;
+ TQCheckBox *mWarnSelfSigned, *mWarnExpired, *mWarnRevoked;
+ TQPushButton *macAdd, *macRemove;
KPushButton *macClear;
- QListBox *macBox;
- QPushButton *otherSSLExport, *otherSSLView, *otherSSLRemove, *otherSSLVerify;
- QPushButton *yourSSLImport, *yourSSLPass, *yourSSLRemove, *yourSSLExport,
+ TQListBox *macBox;
+ TQPushButton *otherSSLExport, *otherSSLView, *otherSSLRemove, *otherSSLVerify;
+ TQPushButton *yourSSLImport, *yourSSLPass, *yourSSLRemove, *yourSSLExport,
*yourSSLUnlock, *yourSSLVerify;
- QRadioButton *yourSSLUseDefault, *yourSSLList, *yourSSLDont;
- QLineEdit *macCert;
+ TQRadioButton *yourSSLUseDefault, *yourSSLList, *yourSSLDont;
+ TQLineEdit *macCert;
KSSLCertBox *oSubject, *oIssuer;
KSSLCertBox *ySubject, *yIssuer;
- QGridLayout *oGrid;
-
- QVButtonGroup *policyGroup;
- QVButtonGroup *cacheGroup;
- QRadioButton *policyAccept, *policyReject, *policyPrompt;
- QRadioButton *cacheUntil, *cachePerm;
- QLabel *fromLabel, *untilLabel;
- QLabel *validFrom, *validUntil;
- QLabel *yValidFrom, *yValidUntil;
+ TQGridLayout *oGrid;
+
+ TQVButtonGroup *policyGroup;
+ TQVButtonGroup *cacheGroup;
+ TQRadioButton *policyAccept, *policyReject, *policyPrompt;
+ TQRadioButton *cacheUntil, *cachePerm;
+ TQLabel *fromLabel, *untilLabel;
+ TQLabel *validFrom, *validUntil;
+ TQLabel *yValidFrom, *yValidUntil;
KURLLabel *untilDate;
- QVGroupBox *oInfo;
+ TQVGroupBox *oInfo;
KURLRequester *oPath;
- QPushButton *oTest;
- QPtrList<OtherCertItem> otherCertDelList;
- QPtrList<YourCertItem> yourCertDelList;
- QPtrList<CAItem> caDelList;
+ TQPushButton *oTest;
+ TQPtrList<OtherCertItem> otherCertDelList;
+ TQPtrList<YourCertItem> yourCertDelList;
+ TQPtrList<CAItem> caDelList;
/* Personal Cert Policies tab */
KComboBox *defCertBox;
KComboBox *hostCertBox;
- QVButtonGroup *defCertBG;
- QHButtonGroup *hostCertBG;
- QRadioButton *defSend, *defPrompt, *defDont;
- QRadioButton *hostSend, *hostPrompt, *hostDont;
- QListView *hostAuthList;
- QPushButton *authAdd, *authRemove;
- QLineEdit *authHost;
- QPtrList<HostAuthItem> authDelList;
- QLabel *yHash, *pHash;
+ TQVButtonGroup *defCertBG;
+ TQHButtonGroup *hostCertBG;
+ TQRadioButton *defSend, *defPrompt, *defDont;
+ TQRadioButton *hostSend, *hostPrompt, *hostDont;
+ TQListView *hostAuthList;
+ TQPushButton *authAdd, *authRemove;
+ TQLineEdit *authHost;
+ TQPtrList<HostAuthItem> authDelList;
+ TQLabel *yHash, *pHash;
/* CA stuff */
KSSLCertBox *caSubject, *caIssuer;
- QPushButton *caSSLImport, *caSSLRemove, *caSSLRestore;
- QCheckBox *caSite, *caEmail, *caCode;
+ TQPushButton *caSSLImport, *caSSLRemove, *caSSLRestore;
+ TQCheckBox *caSite, *caEmail, *caCode;
KSSLSigners *_signers;
- QLabel *cHash;
+ TQLabel *cHash;
KConfig *config;
KSimpleConfig *policies, *pcerts, *authcfg;
diff --git a/kcontrol/crypto/kdatetimedlg.cpp b/kcontrol/crypto/kdatetimedlg.cpp
index 26001afdd..f7eae9883 100644
--- a/kcontrol/crypto/kdatetimedlg.cpp
+++ b/kcontrol/crypto/kdatetimedlg.cpp
@@ -23,8 +23,8 @@
#endif
#include "kdatetimedlg.h"
-#include <qlayout.h>
-#include <qlabel.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
#include <klocale.h>
#include <kdebug.h>
#include <kdatepicker.h>
@@ -32,37 +32,37 @@
#include <knuminput.h>
#include <kstdguiitem.h>
-KDateTimeDlg::KDateTimeDlg(QWidget *parent, const char *name)
+KDateTimeDlg::KDateTimeDlg(TQWidget *parent, const char *name)
: KDialog(parent, name, true) {
-QGridLayout *grid = new QGridLayout(this, 9, 6, marginHint(), spacingHint());
+TQGridLayout *grid = new TQGridLayout(this, 9, 6, marginHint(), spacingHint());
setCaption(i18n("Date & Time Selector"));
_date = new KDatePicker(this);
grid->addMultiCellWidget(_date, 0, 5, 0, 5);
- grid->addWidget(new QLabel(i18n("Hour:"), this), 7, 0);
+ grid->addWidget(new TQLabel(i18n("Hour:"), this), 7, 0);
_hours = new KIntNumInput(this);
_hours->setRange(0, 23, 1, false);
grid->addWidget(_hours, 7, 1);
- grid->addWidget(new QLabel(i18n("Minute:"), this), 7, 2);
+ grid->addWidget(new TQLabel(i18n("Minute:"), this), 7, 2);
_mins = new KIntNumInput(this);
_mins->setRange(0, 59, 1, false);
grid->addWidget(_mins, 7, 3);
- grid->addWidget(new QLabel(i18n("Second:"), this), 7, 4);
+ grid->addWidget(new TQLabel(i18n("Second:"), this), 7, 4);
_secs = new KIntNumInput(this);
_secs->setRange(0, 59, 1, false);
grid->addWidget(_secs, 7, 5);
_ok = new KPushButton(KStdGuiItem::ok(), this);
grid->addWidget(_ok, 8, 4);
- connect(_ok, SIGNAL(clicked()), SLOT(accept()));
+ connect(_ok, TQT_SIGNAL(clicked()), TQT_SLOT(accept()));
_cancel = new KPushButton(KStdGuiItem::cancel(), this);
grid->addWidget(_cancel, 8, 5);
- connect(_cancel, SIGNAL(clicked()), SLOT(reject()));
+ connect(_cancel, TQT_SIGNAL(clicked()), TQT_SLOT(reject()));
}
@@ -72,20 +72,20 @@ KDateTimeDlg::~KDateTimeDlg() {
}
-QDate KDateTimeDlg::getDate() {
+TQDate KDateTimeDlg::getDate() {
return _date->date();
}
-QTime KDateTimeDlg::getTime() {
-QTime rc(_hours->value(), _mins->value(), _secs->value());
+TQTime KDateTimeDlg::getTime() {
+TQTime rc(_hours->value(), _mins->value(), _secs->value());
return rc;
}
-QDateTime KDateTimeDlg::getDateTime() {
-QDateTime qdt;
-QTime qtime(_hours->value(), _mins->value(), _secs->value());
+TQDateTime KDateTimeDlg::getDateTime() {
+TQDateTime qdt;
+TQTime qtime(_hours->value(), _mins->value(), _secs->value());
qdt.setDate(_date->date());
qdt.setTime(qtime);
@@ -94,19 +94,19 @@ return qdt;
}
-void KDateTimeDlg::setDate(const QDate& qdate) {
+void KDateTimeDlg::setDate(const TQDate& qdate) {
_date->setDate(qdate);
}
-void KDateTimeDlg::setTime(const QTime& qtime) {
+void KDateTimeDlg::setTime(const TQTime& qtime) {
_hours->setValue(qtime.hour());
_mins->setValue(qtime.minute());
_secs->setValue(qtime.second());
}
-void KDateTimeDlg::setDateTime(const QDateTime& qdatetime) {
+void KDateTimeDlg::setDateTime(const TQDateTime& qdatetime) {
_date->setDate(qdatetime.date());
_hours->setValue(qdatetime.time().hour());
_mins->setValue(qdatetime.time().minute());
diff --git a/kcontrol/crypto/kdatetimedlg.h b/kcontrol/crypto/kdatetimedlg.h
index 3f25cad2b..4d6cc21f0 100644
--- a/kcontrol/crypto/kdatetimedlg.h
+++ b/kcontrol/crypto/kdatetimedlg.h
@@ -36,16 +36,16 @@ class KDateTimeDlg : public KDialog
{
Q_OBJECT
public:
- KDateTimeDlg(QWidget *parent = 0L, const char *name = 0L);
+ KDateTimeDlg(TQWidget *parent = 0L, const char *name = 0L);
virtual ~KDateTimeDlg();
- virtual QTime getTime();
- virtual QDate getDate();
- virtual QDateTime getDateTime();
+ virtual TQTime getTime();
+ virtual TQDate getDate();
+ virtual TQDateTime getDateTime();
- virtual void setDate(const QDate& qdate);
- virtual void setTime(const QTime& qtime);
- virtual void setDateTime(const QDateTime& qdatetime);
+ virtual void setDate(const TQDate& qdate);
+ virtual void setTime(const TQTime& qtime);
+ virtual void setDateTime(const TQDateTime& qdatetime);
protected slots:
diff --git a/kcontrol/css/kcmcss.cpp b/kcontrol/css/kcmcss.cpp
index bd72a1375..552afd3a3 100644
--- a/kcontrol/css/kcmcss.cpp
+++ b/kcontrol/css/kcmcss.cpp
@@ -1,9 +1,9 @@
-#include <qcheckbox.h>
-#include <qcombobox.h>
-#include <qlayout.h>
-#include <qradiobutton.h>
-#include <qtextbrowser.h>
+#include <tqcheckbox.h>
+#include <tqcombobox.h>
+#include <tqlayout.h>
+#include <tqradiobutton.h>
+#include <tqtextbrowser.h>
#include <kapplication.h>
#include <kcolorbutton.h>
@@ -22,13 +22,13 @@
#include "kcmcss.h"
-typedef KGenericFactory<CSSConfig, QWidget> CSSFactory;
+typedef KGenericFactory<CSSConfig, TQWidget> CSSFactory;
K_EXPORT_COMPONENT_FACTORY( kcm_css, CSSFactory("kcmcss") )
-CSSConfig::CSSConfig(QWidget *parent, const char *name, const QStringList &)
+CSSConfig::CSSConfig(TQWidget *parent, const char *name, const TQStringList &)
: KCModule(CSSFactory::instance(), parent, name)
{
- customDialogBase = new KDialogBase(this, "customCSSDialog", true, QString::null,
+ customDialogBase = new KDialogBase(this, "customCSSDialog", true, TQString::null,
KDialogBase::Close, KDialogBase::Close, true );
customDialog = new CSSCustomDialog(customDialogBase);
customDialogBase->setMainWidget(customDialog);
@@ -46,52 +46,52 @@ CSSConfig::CSSConfig(QWidget *parent, const char *name, const QStringList &)
" that are unreadable due to bad design."));
- QStringList fonts;
+ TQStringList fonts;
KFontChooser::getFontList(fonts, 0);
customDialog->fontFamily->insertStringList(fonts);
- connect(configDialog->useDefault, SIGNAL(clicked()),
- SLOT(changed()));
- connect(configDialog->useAccess, SIGNAL(clicked()),
- SLOT(changed()));
- connect(configDialog->useUser, SIGNAL(clicked()),
- SLOT(changed()));
- connect(configDialog->urlRequester, SIGNAL(textChanged(const QString&)),
- SLOT(changed()));
- connect(configDialog->customize, SIGNAL(clicked()),
- SLOT(slotCustomize()));
- connect(customDialog->basefontsize, SIGNAL(highlighted(int)),
- SLOT(changed()));
- connect(customDialog->basefontsize, SIGNAL(textChanged(const QString&)),
- SLOT(changed()));
- connect(customDialog->dontScale, SIGNAL(clicked()),
- SLOT(changed()));
- connect(customDialog->blackOnWhite, SIGNAL(clicked()),
- SLOT(changed()));
- connect(customDialog->whiteOnBlack, SIGNAL(clicked()),
- SLOT(changed()));
- connect(customDialog->customColor, SIGNAL(clicked()),
- SLOT(changed()));
- connect(customDialog->foregroundColor, SIGNAL(changed(const QColor &)),
- SLOT(changed()));
- connect(customDialog->backgroundColor, SIGNAL(changed(const QColor &)),
- SLOT(changed()));
- connect(customDialog->fontFamily, SIGNAL(highlighted(int)),
- SLOT(changed()));
- connect(customDialog->fontFamily, SIGNAL(textChanged(const QString&)),
- SLOT(changed()));
- connect(customDialog->sameFamily, SIGNAL(clicked()),
- SLOT(changed()));
- connect(customDialog->preview, SIGNAL(clicked()),
- SLOT(slotPreview()));
- connect(customDialog->sameColor, SIGNAL(clicked()),
- SLOT(changed()));
- connect(customDialog->hideImages, SIGNAL(clicked()),
- SLOT(changed()));
- connect(customDialog->hideBackground, SIGNAL(clicked()),
- SLOT(changed()));
-
- QVBoxLayout *vbox = new QVBoxLayout(this, 0, 0);
+ connect(configDialog->useDefault, TQT_SIGNAL(clicked()),
+ TQT_SLOT(changed()));
+ connect(configDialog->useAccess, TQT_SIGNAL(clicked()),
+ TQT_SLOT(changed()));
+ connect(configDialog->useUser, TQT_SIGNAL(clicked()),
+ TQT_SLOT(changed()));
+ connect(configDialog->urlRequester, TQT_SIGNAL(textChanged(const TQString&)),
+ TQT_SLOT(changed()));
+ connect(configDialog->customize, TQT_SIGNAL(clicked()),
+ TQT_SLOT(slotCustomize()));
+ connect(customDialog->basefontsize, TQT_SIGNAL(highlighted(int)),
+ TQT_SLOT(changed()));
+ connect(customDialog->basefontsize, TQT_SIGNAL(textChanged(const TQString&)),
+ TQT_SLOT(changed()));
+ connect(customDialog->dontScale, TQT_SIGNAL(clicked()),
+ TQT_SLOT(changed()));
+ connect(customDialog->blackOnWhite, TQT_SIGNAL(clicked()),
+ TQT_SLOT(changed()));
+ connect(customDialog->whiteOnBlack, TQT_SIGNAL(clicked()),
+ TQT_SLOT(changed()));
+ connect(customDialog->customColor, TQT_SIGNAL(clicked()),
+ TQT_SLOT(changed()));
+ connect(customDialog->foregroundColor, TQT_SIGNAL(changed(const TQColor &)),
+ TQT_SLOT(changed()));
+ connect(customDialog->backgroundColor, TQT_SIGNAL(changed(const TQColor &)),
+ TQT_SLOT(changed()));
+ connect(customDialog->fontFamily, TQT_SIGNAL(highlighted(int)),
+ TQT_SLOT(changed()));
+ connect(customDialog->fontFamily, TQT_SIGNAL(textChanged(const TQString&)),
+ TQT_SLOT(changed()));
+ connect(customDialog->sameFamily, TQT_SIGNAL(clicked()),
+ TQT_SLOT(changed()));
+ connect(customDialog->preview, TQT_SIGNAL(clicked()),
+ TQT_SLOT(slotPreview()));
+ connect(customDialog->sameColor, TQT_SIGNAL(clicked()),
+ TQT_SLOT(changed()));
+ connect(customDialog->hideImages, TQT_SIGNAL(clicked()),
+ TQT_SLOT(changed()));
+ connect(customDialog->hideBackground, TQT_SIGNAL(clicked()),
+ TQT_SLOT(changed()));
+
+ TQVBoxLayout *vbox = new TQVBoxLayout(this, 0, 0);
vbox->addWidget(configDialog);
load();
@@ -108,17 +108,17 @@ void CSSConfig::load( bool useDefaults )
c->setReadDefaults( useDefaults );
c->setGroup("Stylesheet");
- QString u = c->readEntry("Use", "default");
+ TQString u = c->readEntry("Use", "default");
configDialog->useDefault->setChecked(u == "default");
configDialog->useUser->setChecked(u == "user");
configDialog->useAccess->setChecked(u == "access");
configDialog->urlRequester->setURL(c->readEntry("SheetName"));
c->setGroup("Font");
- customDialog->basefontsize->setEditText(QString::number(c->readNumEntry("BaseSize", 12)));
+ customDialog->basefontsize->setEditText(TQString::number(c->readNumEntry("BaseSize", 12)));
customDialog->dontScale->setChecked(c->readBoolEntry("DontScale", false));
- QString fname = c->readEntry("Family", "Arial");
+ TQString fname = c->readEntry("Family", "Arial");
for (int i=0; i < customDialog->fontFamily->count(); ++i)
if (customDialog->fontFamily->text(i) == fname)
{
@@ -129,7 +129,7 @@ void CSSConfig::load( bool useDefaults )
customDialog->sameFamily->setChecked(c->readBoolEntry("SameFamily", false));
c->setGroup("Colors");
- QString m = c->readEntry("Mode", "black-on-white");
+ TQString m = c->readEntry("Mode", "black-on-white");
customDialog->blackOnWhite->setChecked(m == "black-on-white");
customDialog->whiteOnBlack->setChecked(m == "white-on-black");
customDialog->customColor->setChecked(m == "custom");
@@ -187,8 +187,8 @@ void CSSConfig::save()
delete c;
// generate CSS template
- QString templ = locate("data", "kcmcss/template.css");
- QString dest;
+ TQString templ = locate("data", "kcmcss/template.css");
+ TQString dest;
if (!templ.isEmpty())
{
CSSTemplate css(templ);
@@ -222,18 +222,18 @@ void CSSConfig::defaults()
}
-QString px(int i, double scale)
+TQString px(int i, double scale)
{
- QString px;
+ TQString px;
px.setNum(static_cast<int>(i * scale));
px += "px";
return px;
}
-QMap<QString,QString> CSSConfig::cssDict()
+TQMap<TQString,TQString> CSSConfig::cssDict()
{
- QMap<QString,QString> dict;
+ TQMap<TQString,TQString> dict;
// Fontsizes ------------------------------------------------------
@@ -314,10 +314,10 @@ void CSSConfig::slotCustomize()
void CSSConfig::slotPreview()
{
- QStyleSheetItem *h1 = new QStyleSheetItem(QStyleSheet::defaultSheet(), "h1");
- QStyleSheetItem *h2 = new QStyleSheetItem(QStyleSheet::defaultSheet(), "h2");
- QStyleSheetItem *h3 = new QStyleSheetItem(QStyleSheet::defaultSheet(), "h3");
- QStyleSheetItem *text = new QStyleSheetItem(QStyleSheet::defaultSheet(), "p");
+ TQStyleSheetItem *h1 = new TQStyleSheetItem(TQStyleSheet::defaultSheet(), "h1");
+ TQStyleSheetItem *h2 = new TQStyleSheetItem(TQStyleSheet::defaultSheet(), "h2");
+ TQStyleSheetItem *h3 = new TQStyleSheetItem(TQStyleSheet::defaultSheet(), "h3");
+ TQStyleSheetItem *text = new TQStyleSheetItem(TQStyleSheet::defaultSheet(), "p");
// Fontsize
@@ -338,7 +338,7 @@ void CSSConfig::slotPreview()
// Colors
- QColor back, fore;
+ TQColor back, fore;
if (customDialog->blackOnWhite->isChecked())
{
@@ -371,7 +371,7 @@ void CSSConfig::slotPreview()
// Show the preview
PreviewDialog *dlg = new PreviewDialog(this, 0, true);
dlg->preview->setPaper(back);
- dlg->preview->viewport()->setFont(QFont(KGlobalSettings::generalFont().family(), bfs));
+ dlg->preview->viewport()->setFont(TQFont(KGlobalSettings::generalFont().family(), bfs));
dlg->exec();
diff --git a/kcontrol/css/kcmcss.h b/kcontrol/css/kcmcss.h
index decf5c3a3..164f22dae 100644
--- a/kcontrol/css/kcmcss.h
+++ b/kcontrol/css/kcmcss.h
@@ -19,7 +19,7 @@
#define __KCMCSS_H__
-#include <qmap.h>
+#include <tqmap.h>
#include <kcmodule.h>
@@ -35,7 +35,7 @@ class CSSConfig : public KCModule
public:
- CSSConfig(QWidget *parent = 0L, const char *name = 0L, const QStringList &list =QStringList() );
+ CSSConfig(TQWidget *parent = 0L, const char *name = 0L, const TQStringList &list =TQStringList() );
void load();
void load( bool useDefaults );
@@ -49,7 +49,7 @@ public slots:
private:
- QMap<QString,QString> cssDict();
+ TQMap<TQString,TQString> cssDict();
CSSConfigDialog *configDialog;
CSSCustomDialog *customDialog;
diff --git a/kcontrol/css/template.cpp b/kcontrol/css/template.cpp
index 94eba6053..e237ed796 100644
--- a/kcontrol/css/template.cpp
+++ b/kcontrol/css/template.cpp
@@ -1,24 +1,24 @@
-#include <qfile.h>
+#include <tqfile.h>
#include "template.h"
-bool CSSTemplate::expand(QString destname, const QMap<QString,QString> &dict)
+bool CSSTemplate::expand(TQString destname, const TQMap<TQString,TQString> &dict)
{
- QFile inf(_filename);
+ TQFile inf(_filename);
if (!inf.open(IO_ReadOnly))
return false;
- QTextStream is(&inf);
+ TQTextStream is(&inf);
- QFile outf(destname);
+ TQFile outf(destname);
if (!outf.open(IO_WriteOnly))
return false;
- QTextStream os(&outf);
+ TQTextStream os(&outf);
- QString line;
+ TQString line;
while (!is.eof())
{
line = is.readLine();
@@ -29,8 +29,8 @@ bool CSSTemplate::expand(QString destname, const QMap<QString,QString> &dict)
int end = line.find('$', start+1);
if (end >= 0)
{
- QString expr = line.mid(start+1, end-start-1);
- QString res = dict[expr];
+ TQString expr = line.mid(start+1, end-start-1);
+ TQString res = dict[expr];
line.replace(start, end-start+1, res);
}
diff --git a/kcontrol/css/template.h b/kcontrol/css/template.h
index 2b701a238..bdcc8ad63 100644
--- a/kcontrol/css/template.h
+++ b/kcontrol/css/template.h
@@ -2,18 +2,18 @@
#define __TEMPLATE_H__
-#include <qstring.h>
-#include <qmap.h>
+#include <tqstring.h>
+#include <tqmap.h>
class CSSTemplate
{
public:
- CSSTemplate(QString fname) : _filename(fname) {};
- bool expand(QString destname, const QMap<QString,QString> &dict);
+ CSSTemplate(TQString fname) : _filename(fname) {};
+ bool expand(TQString destname, const TQMap<TQString,TQString> &dict);
protected:
- QString _filename;
+ TQString _filename;
};
diff --git a/kcontrol/display/display.cpp b/kcontrol/display/display.cpp
index 1c514810c..d7675160e 100644
--- a/kcontrol/display/display.cpp
+++ b/kcontrol/display/display.cpp
@@ -17,9 +17,9 @@
Boston, MA 02110-1301, USA.
*/
-#include <qapplication.h>
-#include <qlayout.h>
-#include <qtabwidget.h>
+#include <tqapplication.h>
+#include <tqlayout.h>
+#include <tqtabwidget.h>
#include <kcmoduleloader.h>
#include <kdialog.h>
@@ -27,34 +27,34 @@
#include "display.h"
-typedef KGenericFactory<KCMDisplay, QWidget> DisplayFactory;
+typedef KGenericFactory<KCMDisplay, TQWidget> DisplayFactory;
K_EXPORT_COMPONENT_FACTORY ( kcm_display, DisplayFactory( "display" ) )
-KCMDisplay::KCMDisplay( QWidget *parent, const char *name, const QStringList& )
+KCMDisplay::KCMDisplay( TQWidget *parent, const char *name, const TQStringList& )
: KCModule( parent, name )
, m_changed(false)
{
- m_tabs = new QTabWidget( this );
+ m_tabs = new TQTabWidget( this );
addTab( "randr", i18n( "Size && Orientation" ) );
addTab( "nvidiadisplay", i18n( "Graphics Adaptor" ) );
addTab( "nvidia3d", i18n( "3D Options" ) );
addTab( "kgamma", i18n( "Monitor Gamma" ) );
- if ( QApplication::desktop()->isVirtualDesktop() )
+ if ( TQApplication::desktop()->isVirtualDesktop() )
addTab( "xinerama", i18n( "Multiple Monitors" ) );
addTab( "energy", i18n( "Power Control" ) );
- QVBoxLayout *top = new QVBoxLayout( this, 0, KDialog::spacingHint() );
+ TQVBoxLayout *top = new TQVBoxLayout( this, 0, KDialog::spacingHint() );
top->addWidget( m_tabs );
setButtons( Apply|Help );
load();
}
-void KCMDisplay::addTab( const QString &name, const QString &label )
+void KCMDisplay::addTab( const TQString &name, const TQString &label )
{
- QWidget *page = new QWidget( m_tabs, name.latin1() );
- QVBoxLayout *top = new QVBoxLayout( page, KDialog::marginHint() );
+ TQWidget *page = new TQWidget( m_tabs, name.latin1() );
+ TQVBoxLayout *top = new TQVBoxLayout( page, KDialog::marginHint() );
KCModule *kcm = KCModuleLoader::loadModule( name, page );
@@ -63,7 +63,7 @@ void KCMDisplay::addTab( const QString &name, const QString &label )
top->addWidget( kcm );
m_tabs->addTab( page, label );
- connect( kcm, SIGNAL( changed(bool) ), SLOT( moduleChanged(bool) ) );
+ connect( kcm, TQT_SIGNAL( changed(bool) ), TQT_SLOT( moduleChanged(bool) ) );
m_modules.insert(kcm, false);
}
else
@@ -72,20 +72,20 @@ void KCMDisplay::addTab( const QString &name, const QString &label )
void KCMDisplay::load()
{
- for (QMap<KCModule*, bool>::ConstIterator it = m_modules.begin(); it != m_modules.end(); ++it)
+ for (TQMap<KCModule*, bool>::ConstIterator it = m_modules.begin(); it != m_modules.end(); ++it)
it.key()->load();
}
void KCMDisplay::save()
{
- for (QMap<KCModule*, bool>::Iterator it = m_modules.begin(); it != m_modules.end(); ++it)
+ for (TQMap<KCModule*, bool>::Iterator it = m_modules.begin(); it != m_modules.end(); ++it)
if (it.data())
it.key()->save();
}
void KCMDisplay::moduleChanged( bool isChanged )
{
- QMap<KCModule*, bool>::Iterator currentModule = m_modules.find(static_cast<KCModule*>(const_cast<QObject*>(sender())));
+ TQMap<KCModule*, bool>::Iterator currentModule = m_modules.find(static_cast<KCModule*>(const_cast<TQObject*>(sender())));
Q_ASSERT(currentModule != m_modules.end());
if (currentModule.data() == isChanged)
return;
@@ -94,7 +94,7 @@ void KCMDisplay::moduleChanged( bool isChanged )
bool c = false;
- for (QMap<KCModule*, bool>::ConstIterator it = m_modules.begin(); it != m_modules.end(); ++it) {
+ for (TQMap<KCModule*, bool>::ConstIterator it = m_modules.begin(); it != m_modules.end(); ++it) {
if (it.data()) {
c = true;
break;
diff --git a/kcontrol/display/display.h b/kcontrol/display/display.h
index d07695320..ec5811725 100644
--- a/kcontrol/display/display.h
+++ b/kcontrol/display/display.h
@@ -29,7 +29,7 @@ class KCMDisplay : public KCModule
Q_OBJECT
public:
- KCMDisplay( QWidget *parent, const char *name, const QStringList& );
+ KCMDisplay( TQWidget *parent, const char *name, const TQStringList& );
void load();
void save();
@@ -37,10 +37,10 @@ class KCMDisplay : public KCModule
void moduleChanged(bool isChanged);
private:
- void addTab( const QString &name, const QString &label );
+ void addTab( const TQString &name, const TQString &label );
- QTabWidget *m_tabs;
- QMap<KCModule*, bool> m_modules;
+ TQTabWidget *m_tabs;
+ TQMap<KCModule*, bool> m_modules;
bool m_changed;
};
diff --git a/kcontrol/dnssd/kcmdnssd.cpp b/kcontrol/dnssd/kcmdnssd.cpp
index d754f0025..97b532b54 100644
--- a/kcontrol/dnssd/kcmdnssd.cpp
+++ b/kcontrol/dnssd/kcmdnssd.cpp
@@ -21,16 +21,16 @@
#include <sys/stat.h>
#include <config.h>
-#include <qlayout.h>
-#include <qfile.h>
-#include <qgroupbox.h>
-#include <qradiobutton.h>
-#include <qtimer.h>
-#include <qtabwidget.h>
-#include <qcheckbox.h>
-#include <qprocess.h>
-#include <qcursor.h>
-#include <qbuttongroup.h>
+#include <tqlayout.h>
+#include <tqfile.h>
+#include <tqgroupbox.h>
+#include <tqradiobutton.h>
+#include <tqtimer.h>
+#include <tqtabwidget.h>
+#include <tqcheckbox.h>
+#include <tqprocess.h>
+#include <tqcursor.h>
+#include <tqbuttongroup.h>
#include <klocale.h>
#include <kglobal.h>
@@ -50,10 +50,10 @@
#define MDNSD_CONF "/etc/mdnsd.conf"
#define MDNSD_PID "/var/run/mdnsd.pid"
-typedef KGenericFactory<KCMDnssd, QWidget> KCMDnssdFactory;
+typedef KGenericFactory<KCMDnssd, TQWidget> KCMDnssdFactory;
K_EXPORT_COMPONENT_FACTORY( kcm_kdnssd, KCMDnssdFactory("kcmkdnssd"))
-KCMDnssd::KCMDnssd(QWidget *parent, const char *name, const QStringList&)
+KCMDnssd::KCMDnssd(TQWidget *parent, const char *name, const TQStringList&)
: ConfigDialog(parent, name), m_wdchanged(false)
{
setAboutData(new KAboutData(I18N_NOOP("kcm_kdnssd"),
@@ -65,13 +65,13 @@ KCMDnssd::KCMDnssd(QWidget *parent, const char *name, const QStringList&)
else if (getenv("KDESU_USER")!=0) tabs->removePage(tab);
addConfig(DNSSD::Configuration::self(),this);
// it is host-wide setting so it has to be in global config file
- domain = new KSimpleConfig( QString::fromLatin1( KDE_CONFDIR "/kdnssdrc" ));
+ domain = new KSimpleConfig( TQString::fromLatin1( KDE_CONFDIR "/kdnssdrc" ));
domain->setGroup("publishing");
load();
- connect(hostedit,SIGNAL(textChanged(const QString&)),this,SLOT(wdchanged()));
- connect(secretedit,SIGNAL(textChanged(const QString&)),this,SLOT(wdchanged()));
- connect(domainedit,SIGNAL(textChanged(const QString&)),this,SLOT(wdchanged()));
- connect(enableZeroconf,SIGNAL(toggled(bool)),this,SLOT(enableZeroconfChanged(bool)));
+ connect(hostedit,TQT_SIGNAL(textChanged(const TQString&)),this,TQT_SLOT(wdchanged()));
+ connect(secretedit,TQT_SIGNAL(textChanged(const TQString&)),this,TQT_SLOT(wdchanged()));
+ connect(domainedit,TQT_SIGNAL(textChanged(const TQString&)),this,TQT_SLOT(wdchanged()));
+ connect(enableZeroconf,TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(enableZeroconfChanged(bool)));
m_enableZeroconfChanged=false;
if (DNSSD::Configuration::self()->publishDomain().isEmpty()) WANButton->setEnabled(false);
kcfg_PublishType->hide(); //unused with Avahi
@@ -84,7 +84,7 @@ KCMDnssd::~KCMDnssd()
void KCMDnssd::save()
{
- setCursor(QCursor(Qt::BusyCursor));
+ setCursor(TQCursor(Qt::BusyCursor));
KCModule::save();
if (geteuid()==0 && m_wdchanged) saveMdnsd();
domain->setFileWriteMode(0644); // this should be readable for everyone
@@ -93,7 +93,7 @@ void KCMDnssd::save()
KIPC::sendMessageAll((KIPC::Message)KIPCDomainsChanged);
if (m_enableZeroconfChanged) {
- QString scaryMessage = i18n("Enabling local network browsing will open a network port (5353) on your computer. If security problems are discovered in the zeroconf server, remote attackers could access your computer as the \"avahi\" user.");
+ TQString scaryMessage = i18n("Enabling local network browsing will open a network port (5353) on your computer. If security problems are discovered in the zeroconf server, remote attackers could access your computer as the \"avahi\" user.");
KProcess *proc = new KProcess;
@@ -112,14 +112,14 @@ void KCMDnssd::save()
proc->start(KProcess::Block);
}
}
- setCursor(QCursor(Qt::ArrowCursor));
+ setCursor(TQCursor(Qt::ArrowCursor));
}
void KCMDnssd::load()
{
if (geteuid()==0) loadMdnsd();
enableZeroconf->setChecked(false);
- QProcess avahiStatus(QString("/usr/share/avahi/avahi_status"), this, "avahiStatus");
+ TQProcess avahiStatus(TQString("/usr/share/avahi/avahi_status"), this, "avahiStatus");
avahiStatus.start();
while (avahiStatus.isRunning()) {
kapp->processEvents();
@@ -151,14 +151,14 @@ void KCMDnssd::enableZeroconfChanged(bool)
void KCMDnssd::loadMdnsd()
{
- QFile f(MDNSD_CONF);
+ TQFile f(MDNSD_CONF);
if (!f.open(IO_ReadWrite)) return;
- QTextStream stream(&f);
- QString line;
+ TQTextStream stream(&f);
+ TQString line;
while (!stream.atEnd()) {
line = stream.readLine();
- mdnsdLines.insert(line.section(' ',0,0,QString::SectionSkipEmpty),
- line.section(' ',1,-1,QString::SectionSkipEmpty));
+ mdnsdLines.insert(line.section(' ',0,0,TQString::SectionSkipEmpty),
+ line.section(' ',1,-1,TQString::SectionSkipEmpty));
}
if (!mdnsdLines["zone"].isNull()) domainedit->setText(mdnsdLines["zone"]);
if (!mdnsdLines["hostname"].isNull()) hostedit->setText(mdnsdLines["hostname"]);
@@ -169,13 +169,13 @@ bool KCMDnssd::saveMdnsd()
{
mdnsdLines["zone"]=domainedit->text();
mdnsdLines["hostname"]=hostedit->text();
- if (!secretedit->text().isEmpty()) mdnsdLines["secret-64"]=QString(secretedit->password());
+ if (!secretedit->text().isEmpty()) mdnsdLines["secret-64"]=TQString(secretedit->password());
else mdnsdLines.remove("secret-64");
- QFile f(MDNSD_CONF);
+ TQFile f(MDNSD_CONF);
bool newfile=!f.exists();
if (!f.open(IO_WriteOnly)) return false;
- QTextStream stream(&f);
- for (QMap<QString,QString>::ConstIterator it=mdnsdLines.begin();it!=mdnsdLines.end();
+ TQTextStream stream(&f);
+ for (TQMap<TQString,TQString>::ConstIterator it=mdnsdLines.begin();it!=mdnsdLines.end();
++it) stream << it.key() << " " << (*it) << "\n";
f.close();
// if it is new file, then make it only accessible for root as it can contain shared
@@ -183,7 +183,7 @@ bool KCMDnssd::saveMdnsd()
if (newfile) chmod(MDNSD_CONF,0600);
f.setName(MDNSD_PID);
if (!f.open(IO_ReadOnly)) return true; // it is not running so no need to signal
- QString line;
+ TQString line;
if (f.readLine(line,16)<1) return true;
unsigned int pid = line.toUInt();
if (pid==0) return true; // not a pid
diff --git a/kcontrol/dnssd/kcmdnssd.h b/kcontrol/dnssd/kcmdnssd.h
index 384f7b625..064577283 100644
--- a/kcontrol/dnssd/kcmdnssd.h
+++ b/kcontrol/dnssd/kcmdnssd.h
@@ -21,7 +21,7 @@
#ifndef _KCMDNSSD_H_
#define _KCMDNSSD_H_
-#include <qmap.h>
+#include <tqmap.h>
#include <configdialog.h>
#include <kaboutdata.h>
@@ -32,7 +32,7 @@ class KCMDnssd: public ConfigDialog
Q_OBJECT
public:
- KCMDnssd( QWidget *parent=0, const char *name=0, const QStringList& = QStringList() );
+ KCMDnssd( TQWidget *parent=0, const char *name=0, const TQStringList& = TQStringList() );
~KCMDnssd();
virtual void save();
virtual void load();
@@ -42,7 +42,7 @@ private slots:
private:
void loadMdnsd();
bool saveMdnsd();
- QMap<QString,QString> mdnsdLines;
+ TQMap<TQString,TQString> mdnsdLines;
bool m_wdchanged;
KSimpleConfig* domain;
bool m_enableZeroconfChanged;
diff --git a/kcontrol/ebrowsing/filteropts.cpp b/kcontrol/ebrowsing/filteropts.cpp
index ae2127380..a9c7801d6 100644
--- a/kcontrol/ebrowsing/filteropts.cpp
+++ b/kcontrol/ebrowsing/filteropts.cpp
@@ -21,21 +21,21 @@
#include <unistd.h>
-#include <qlayout.h>
-#include <qlabel.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
#include <dcopclient.h>
#include <klocale.h>
#include "filteropts.h"
-FilterOptions::FilterOptions(QWidget *parent, const char *name)
+FilterOptions::FilterOptions(TQWidget *parent, const char *name)
:KCModule(parent, name)
{
- QGridLayout *lay = new QGridLayout(this, 1, 1, 10, 5);
+ TQGridLayout *lay = new TQGridLayout(this, 1, 1, 10, 5);
- lay->addWidget(new QLabel(i18n("Under construction..."), this), 0, 0);
+ lay->addWidget(new TQLabel(i18n("Under construction..."), this), 0, 0);
lay->activate();
}
diff --git a/kcontrol/ebrowsing/filteropts.h b/kcontrol/ebrowsing/filteropts.h
index f8a530b4a..98753e01c 100644
--- a/kcontrol/ebrowsing/filteropts.h
+++ b/kcontrol/ebrowsing/filteropts.h
@@ -32,7 +32,7 @@ class FilterOptions : public KCModule
Q_OBJECT
public:
- FilterOptions(QWidget *parent = 0, const char *name = 0);
+ FilterOptions(TQWidget *parent = 0, const char *name = 0);
void load( bool useDefaults );
void save();
@@ -42,7 +42,7 @@ protected slots:
void moduleChanged(bool state);
private:
- QListBox* m_lbFilterList;
+ TQListBox* m_lbFilterList;
};
#endif
diff --git a/kcontrol/ebrowsing/main.cpp b/kcontrol/ebrowsing/main.cpp
index 8c7ab1e5d..a41ab92e3 100644
--- a/kcontrol/ebrowsing/main.cpp
+++ b/kcontrol/ebrowsing/main.cpp
@@ -23,9 +23,9 @@
#include <unistd.h>
-#include <qlayout.h>
-#include <qmap.h>
-#include <qtabwidget.h>
+#include <tqlayout.h>
+#include <tqmap.h>
+#include <tqtabwidget.h>
#include <dcopclient.h>
#include <kdialog.h>
@@ -35,12 +35,12 @@
#include "filteropts.h"
#include "main.h"
-typedef KGenericFactory<KURIFilterModule, QWidget> KURIFactory;
+typedef KGenericFactory<KURIFilterModule, TQWidget> KURIFactory;
K_EXPORT_COMPONENT_FACTORY( kcm_kurifilt, KURIFactory("kcmkurifilt") )
class FilterOptions;
-KURIFilterModule::KURIFilterModule(QWidget *parent, const char *name, const QStringList &)
+KURIFilterModule::KURIFilterModule(TQWidget *parent, const char *name, const TQStringList &)
:KCModule(KURIFactory::instance(), parent, name)
{
@@ -56,18 +56,18 @@ KURIFilterModule::KURIFilterModule(QWidget *parent, const char *name, const QStr
" Even easier: just press Alt+F2 (if you have not"
" changed this shortcut) and enter the shortcut in the KDE Run Command dialog."));
- QVBoxLayout *layout = new QVBoxLayout(this);
+ TQVBoxLayout *layout = new TQVBoxLayout(this);
#if 0
opts = new FilterOptions(this);
tab->addTab(opts, i18n("&Filters"));
- connect(opts, SIGNAL(changed(bool)), SIGNAL(changed(bool)));
+ connect(opts, TQT_SIGNAL(changed(bool)), TQT_SIGNAL(changed(bool)));
#endif
modules.setAutoDelete(true);
- QMap<QString,KCModule*> helper;
- QPtrListIterator<KURIFilterPlugin> it = filter->pluginsIterator();
+ TQMap<TQString,KCModule*> helper;
+ TQPtrListIterator<KURIFilterPlugin> it = filter->pluginsIterator();
for (; it.current(); ++it)
{
KCModule *module = it.current()->configModule(this, 0);
@@ -75,15 +75,15 @@ KURIFilterModule::KURIFilterModule(QWidget *parent, const char *name, const QStr
{
modules.append(module);
helper.insert(it.current()->configName(), module);
- connect(module, SIGNAL(changed(bool)), SIGNAL(changed(bool)));
+ connect(module, TQT_SIGNAL(changed(bool)), TQT_SIGNAL(changed(bool)));
}
}
if (modules.count() > 1)
{
- QTabWidget *tab = new QTabWidget(this);
+ TQTabWidget *tab = new TQTabWidget(this);
- QMapIterator<QString,KCModule*> it2;
+ TQMapIterator<TQString,KCModule*> it2;
for (it2 = helper.begin(); it2 != helper.end(); ++it2)
{
tab->addTab(it2.data(), it2.key());
@@ -103,7 +103,7 @@ KURIFilterModule::KURIFilterModule(QWidget *parent, const char *name, const QStr
void KURIFilterModule::load()
{
- QPtrListIterator<KCModule> it(modules);
+ TQPtrListIterator<KCModule> it(modules);
for (; it.current(); ++it)
{
it.current()->load();
@@ -112,7 +112,7 @@ void KURIFilterModule::load()
void KURIFilterModule::save()
{
- QPtrListIterator<KCModule> it(modules);
+ TQPtrListIterator<KCModule> it(modules);
for (; it.current(); ++it)
{
it.current()->save();
@@ -121,7 +121,7 @@ void KURIFilterModule::save()
void KURIFilterModule::defaults()
{
- QPtrListIterator<KCModule> it(modules);
+ TQPtrListIterator<KCModule> it(modules);
for (; it.current(); ++it)
{
it.current()->defaults();
diff --git a/kcontrol/ebrowsing/main.h b/kcontrol/ebrowsing/main.h
index 6b9a0aa21..8508b0a0b 100644
--- a/kcontrol/ebrowsing/main.h
+++ b/kcontrol/ebrowsing/main.h
@@ -33,7 +33,7 @@ class KURIFilterModule : public KCModule {
Q_OBJECT
public:
- KURIFilterModule(QWidget *parent, const char *name, const QStringList &);
+ KURIFilterModule(TQWidget *parent, const char *name, const TQStringList &);
void load();
void load(bool useDefaults );
@@ -43,9 +43,9 @@ public:
private:
KURIFilter *filter;
- QWidget *widget;
+ TQWidget *widget;
FilterOptions *opts;
- QPtrList<KCModule> modules;
+ TQPtrList<KCModule> modules;
};
#endif
diff --git a/kcontrol/ebrowsing/plugins/ikws/ikwsopts.cpp b/kcontrol/ebrowsing/plugins/ikws/ikwsopts.cpp
index ca79f0b36..6d89c3219 100644
--- a/kcontrol/ebrowsing/plugins/ikws/ikwsopts.cpp
+++ b/kcontrol/ebrowsing/plugins/ikws/ikwsopts.cpp
@@ -17,15 +17,15 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#include <qcheckbox.h>
-#include <qfile.h>
-#include <qgroupbox.h>
-#include <qheader.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qpushbutton.h>
-#include <qvbox.h>
-#include <qwhatsthis.h>
+#include <tqcheckbox.h>
+#include <tqfile.h>
+#include <tqgroupbox.h>
+#include <tqheader.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqpushbutton.h>
+#include <tqvbox.h>
+#include <tqwhatsthis.h>
#include <kdebug.h>
#include <kglobal.h>
@@ -52,8 +52,8 @@
class SearchProviderItem : public QCheckListItem
{
public:
- SearchProviderItem(QListView *parent, SearchProvider *provider)
- :QCheckListItem(parent, provider->name(), CheckBox), m_provider(provider)
+ SearchProviderItem(TQListView *parent, SearchProvider *provider)
+ :TQCheckListItem(parent, provider->name(), CheckBox), m_provider(provider)
{
update();
}
@@ -75,10 +75,10 @@ private:
SearchProvider *m_provider;
};
-FilterOptions::FilterOptions(KInstance *instance, QWidget *parent, const char *name)
+FilterOptions::FilterOptions(KInstance *instance, TQWidget *parent, const char *name)
:KCModule(instance, parent, name)
{
- QVBoxLayout *mainLayout = new QVBoxLayout( this, KDialog::marginHint(),
+ TQVBoxLayout *mainLayout = new TQVBoxLayout( this, KDialog::marginHint(),
KDialog::spacingHint());
m_dlg = new FilterOptionsUI (this);
@@ -91,7 +91,7 @@ FilterOptions::FilterOptions(KInstance *instance, QWidget *parent, const char *n
load();
}
-QString FilterOptions::quickHelp() const
+TQString FilterOptions::quickHelp() const
{
return i18n("In this module you can configure the web shortcuts feature. "
"Web shortcuts allow you to quickly search or lookup words on "
@@ -120,7 +120,7 @@ void FilterOptions::load( bool useDefaults )
config.setGroup("General");
- QString defaultSearchEngine = config.readEntry("DefaultSearchEngine");
+ TQString defaultSearchEngine = config.readEntry("DefaultSearchEngine");
m_favoriteEngines.clear();
m_favoriteEngines << "google" << "google_groups" << "google_news" << "webster" << "dmoz" << "wikipedia";
@@ -147,35 +147,35 @@ void FilterOptions::load( bool useDefaults )
m_dlg->lvSearchProviders->setSelected(m_dlg->lvSearchProviders->firstChild(), true);
// Connect all the signals/slots...
- connect(m_dlg->cbEnableShortcuts, SIGNAL(clicked()), this,
- SLOT(setWebShortcutState()));
- connect(m_dlg->cbEnableShortcuts, SIGNAL(clicked()), this,
- SLOT(configChanged()));
-
- connect(m_dlg->lvSearchProviders, SIGNAL(selectionChanged(QListViewItem *)),
- this, SLOT(updateSearchProvider()));
- connect(m_dlg->lvSearchProviders, SIGNAL(doubleClicked(QListViewItem *)),
- this, SLOT(changeSearchProvider()));
- connect(m_dlg->lvSearchProviders, SIGNAL(returnPressed(QListViewItem *)),
- this, SLOT(changeSearchProvider()));
- connect(m_dlg->lvSearchProviders, SIGNAL(executed(QListViewItem *)),
- this, SLOT(checkFavoritesChanged()));
- connect(m_dlg->lvSearchProviders, SIGNAL(spacePressed(QListViewItem *)),
- this, SLOT(checkFavoritesChanged()));
- connect(m_dlg->lvSearchProviders, SIGNAL(pressed(QListViewItem *)),
- this, SLOT(checkFavoritesChanged()));
- connect(m_dlg->lvSearchProviders, SIGNAL(clicked(QListViewItem *)),
- this, SLOT(checkFavoritesChanged()));
-
-
- connect(m_dlg->cmbDefaultEngine, SIGNAL(activated(const QString &)), this,
- SLOT(configChanged()));
- connect(m_dlg->cmbDelimiter, SIGNAL(activated(const QString &)), this,
- SLOT(configChanged()));
-
- connect(m_dlg->pbNew, SIGNAL(clicked()), this, SLOT(addSearchProvider()));
- connect(m_dlg->pbChange, SIGNAL(clicked()), this, SLOT(changeSearchProvider()));
- connect(m_dlg->pbDelete, SIGNAL(clicked()), this, SLOT(deleteSearchProvider()));
+ connect(m_dlg->cbEnableShortcuts, TQT_SIGNAL(clicked()), this,
+ TQT_SLOT(setWebShortcutState()));
+ connect(m_dlg->cbEnableShortcuts, TQT_SIGNAL(clicked()), this,
+ TQT_SLOT(configChanged()));
+
+ connect(m_dlg->lvSearchProviders, TQT_SIGNAL(selectionChanged(TQListViewItem *)),
+ this, TQT_SLOT(updateSearchProvider()));
+ connect(m_dlg->lvSearchProviders, TQT_SIGNAL(doubleClicked(TQListViewItem *)),
+ this, TQT_SLOT(changeSearchProvider()));
+ connect(m_dlg->lvSearchProviders, TQT_SIGNAL(returnPressed(TQListViewItem *)),
+ this, TQT_SLOT(changeSearchProvider()));
+ connect(m_dlg->lvSearchProviders, TQT_SIGNAL(executed(TQListViewItem *)),
+ this, TQT_SLOT(checkFavoritesChanged()));
+ connect(m_dlg->lvSearchProviders, TQT_SIGNAL(spacePressed(TQListViewItem *)),
+ this, TQT_SLOT(checkFavoritesChanged()));
+ connect(m_dlg->lvSearchProviders, TQT_SIGNAL(pressed(TQListViewItem *)),
+ this, TQT_SLOT(checkFavoritesChanged()));
+ connect(m_dlg->lvSearchProviders, TQT_SIGNAL(clicked(TQListViewItem *)),
+ this, TQT_SLOT(checkFavoritesChanged()));
+
+
+ connect(m_dlg->cmbDefaultEngine, TQT_SIGNAL(activated(const TQString &)), this,
+ TQT_SLOT(configChanged()));
+ connect(m_dlg->cmbDelimiter, TQT_SIGNAL(activated(const TQString &)), this,
+ TQT_SLOT(configChanged()));
+
+ connect(m_dlg->pbNew, TQT_SIGNAL(clicked()), this, TQT_SLOT(addSearchProvider()));
+ connect(m_dlg->pbChange, TQT_SIGNAL(clicked()), this, TQT_SLOT(changeSearchProvider()));
+ connect(m_dlg->pbDelete, TQT_SIGNAL(clicked()), this, TQT_SLOT(deleteSearchProvider()));
emit changed( useDefaults );
}
@@ -213,7 +213,7 @@ void FilterOptions::save()
config.writeEntry("EnableWebShortcuts", m_dlg->cbEnableShortcuts->isChecked());
config.writeEntry("KeywordDelimiter", delimiter() );
- QString engine;
+ TQString engine;
if (m_dlg->cmbDefaultEngine->currentItem() != 0)
engine = m_dlg->cmbDefaultEngine->currentText();
@@ -223,11 +223,11 @@ void FilterOptions::save()
// kdDebug () << "Engine: " << m_defaultEngineMap[engine] << endl;
int changedProviderCount = 0;
- QString path = kapp->dirs()->saveLocation("services", "searchproviders/");
+ TQString path = kapp->dirs()->saveLocation("services", "searchproviders/");
m_favoriteEngines.clear();
- for (QListViewItemIterator it(m_dlg->lvSearchProviders); it.current(); ++it)
+ for (TQListViewItemIterator it(m_dlg->lvSearchProviders); it.current(); ++it)
{
SearchProviderItem *item = dynamic_cast<SearchProviderItem *>(it.current());
@@ -235,7 +235,7 @@ void FilterOptions::save()
SearchProvider *provider = item->provider();
- QString name = provider->desktopEntryName();
+ TQString name = provider->desktopEntryName();
if (item->isOn())
m_favoriteEngines << name;
@@ -250,16 +250,16 @@ void FilterOptions::save()
// Take the longest search shortcut as filename,
// if such a file already exists, append a number and increase it
// until the name is unique
- for (QStringList::ConstIterator it = provider->keys().begin(); it != provider->keys().end(); ++it)
+ for (TQStringList::ConstIterator it = provider->keys().begin(); it != provider->keys().end(); ++it)
{
if ((*it).length() > name.length())
name = (*it).lower();
}
for (int suffix = 0; ; ++suffix)
{
- QString located, check = name;
+ TQString located, check = name;
if (suffix)
- check += QString().setNum(suffix);
+ check += TQString().setNum(suffix);
if ((located = locate("services", "searchproviders/" + check + ".desktop")).isEmpty())
{
name = check;
@@ -288,10 +288,10 @@ void FilterOptions::save()
}
}
- for (QStringList::ConstIterator it = m_deletedProviders.begin();
+ for (TQStringList::ConstIterator it = m_deletedProviders.begin();
it != m_deletedProviders.end(); ++it)
{
- QStringList matches = kapp->dirs()->findAllResources("services", "searchproviders/" + *it + ".desktop");
+ TQStringList matches = kapp->dirs()->findAllResources("services", "searchproviders/" + *it + ".desktop");
// Shouldn't happen
if (!matches.count())
@@ -301,7 +301,7 @@ void FilterOptions::save()
{
// If only the local copy existed, unlink it
// TODO: error handling
- QFile::remove(matches[0]);
+ TQFile::remove(matches[0]);
continue;
}
KSimpleConfig service(path + *it + ".desktop");
@@ -338,8 +338,8 @@ void FilterOptions::configChanged()
void FilterOptions::checkFavoritesChanged()
{
- QStringList currentFavoriteEngines;
- for (QListViewItemIterator it(m_dlg->lvSearchProviders); it.current(); ++it)
+ TQStringList currentFavoriteEngines;
+ for (TQListViewItemIterator it(m_dlg->lvSearchProviders); it.current(); ++it)
{
SearchProviderItem *item = dynamic_cast<SearchProviderItem *>(it.current());
@@ -437,7 +437,7 @@ SearchProviderItem *FilterOptions::displaySearchProvider(SearchProvider *p, bool
// Show the provider in the list.
SearchProviderItem *item = 0L;
- QListViewItemIterator it(m_dlg->lvSearchProviders);
+ TQListViewItemIterator it(m_dlg->lvSearchProviders);
for (; it.current(); ++it)
{
diff --git a/kcontrol/ebrowsing/plugins/ikws/ikwsopts.h b/kcontrol/ebrowsing/plugins/ikws/ikwsopts.h
index b533fb9a7..e39997995 100644
--- a/kcontrol/ebrowsing/plugins/ikws/ikwsopts.h
+++ b/kcontrol/ebrowsing/plugins/ikws/ikwsopts.h
@@ -20,8 +20,8 @@
#ifndef __IKWSOPTS_H___
#define __IKWSOPTS_H___
-#include <qlayout.h>
-#include <qtabwidget.h>
+#include <tqlayout.h>
+#include <tqtabwidget.h>
#include <kcmodule.h>
#include <kservice.h>
@@ -35,13 +35,13 @@ class FilterOptions : public KCModule
Q_OBJECT
public:
- FilterOptions(KInstance *instance, QWidget *parent = 0, const char *name = 0);
+ FilterOptions(KInstance *instance, TQWidget *parent = 0, const char *name = 0);
void load();
void load( bool useDefaults );
void save();
void defaults();
- QString quickHelp() const;
+ TQString quickHelp() const;
protected slots:
void configChanged();
@@ -63,9 +63,9 @@ private:
// The names of the providers that the user deleted,
// these are marked as deleted in the user's homedirectory
// on save if a global service file exists for it.
- QStringList m_deletedProviders;
- QMap <QString, QString> m_defaultEngineMap;
- QStringList m_favoriteEngines;
+ TQStringList m_deletedProviders;
+ TQMap <TQString, TQString> m_defaultEngineMap;
+ TQStringList m_favoriteEngines;
FilterOptionsUI* m_dlg;
};
diff --git a/kcontrol/ebrowsing/plugins/ikws/kuriikwsfilter.cpp b/kcontrol/ebrowsing/plugins/ikws/kuriikwsfilter.cpp
index a7e2e5239..b91d14702 100644
--- a/kcontrol/ebrowsing/plugins/ikws/kuriikwsfilter.cpp
+++ b/kcontrol/ebrowsing/plugins/ikws/kuriikwsfilter.cpp
@@ -38,7 +38,7 @@
typedef KGenericFactory<KAutoWebSearch> KAutoWebSearchFactory;
K_EXPORT_COMPONENT_FACTORY (libkuriikwsfilter, KAutoWebSearchFactory("kcmkurifilt"))
-KAutoWebSearch::KAutoWebSearch(QObject *parent, const char *name, const QStringList&)
+KAutoWebSearch::KAutoWebSearch(TQObject *parent, const char *name, const TQStringList&)
:KURIFilterPlugin(parent, name ? name : "kuriikwsfilter", 1.0),
DCOPObject("KURIIKWSFilterIface")
{
@@ -64,7 +64,7 @@ bool KAutoWebSearch::filterURI( KURIFilterData &data ) const
KURL u = data.uri();
if ( u.pass().isEmpty() )
{
- QString result = KURISearchFilterEngine::self()->autoWebSearchQuery( data.typedString() );
+ TQString result = KURISearchFilterEngine::self()->autoWebSearchQuery( data.typedString() );
if( !result.isEmpty() )
{
if ( KURISearchFilterEngine::self()->verbose() )
diff --git a/kcontrol/ebrowsing/plugins/ikws/kuriikwsfilter.h b/kcontrol/ebrowsing/plugins/ikws/kuriikwsfilter.h
index e286b3bd6..77e8c8b0f 100644
--- a/kcontrol/ebrowsing/plugins/ikws/kuriikwsfilter.h
+++ b/kcontrol/ebrowsing/plugins/ikws/kuriikwsfilter.h
@@ -34,8 +34,8 @@ class KAutoWebSearch : public KURIFilterPlugin, public DCOPObject
K_DCOP
Q_OBJECT
public:
- KAutoWebSearch(QObject *parent = 0, const char *name = 0,
- const QStringList &args = QStringList() );
+ KAutoWebSearch(TQObject *parent = 0, const char *name = 0,
+ const TQStringList &args = TQStringList() );
~KAutoWebSearch();
virtual bool filterURI( KURIFilterData& ) const;
diff --git a/kcontrol/ebrowsing/plugins/ikws/kuriikwsfiltereng.cpp b/kcontrol/ebrowsing/plugins/ikws/kuriikwsfiltereng.cpp
index 9cf0cf94d..9f3a245fc 100644
--- a/kcontrol/ebrowsing/plugins/ikws/kuriikwsfiltereng.cpp
+++ b/kcontrol/ebrowsing/plugins/ikws/kuriikwsfiltereng.cpp
@@ -26,8 +26,8 @@
#include <unistd.h>
-#include <qregexp.h>
-#include <qtextcodec.h>
+#include <tqregexp.h>
+#include <tqtextcodec.h>
#include <kurl.h>
#include <kdebug.h>
@@ -57,16 +57,16 @@ KURISearchFilterEngine::KURISearchFilterEngine()
loadConfig();
}
-QString KURISearchFilterEngine::webShortcutQuery( const QString& typedString ) const
+TQString KURISearchFilterEngine::webShortcutQuery( const TQString& typedString ) const
{
- QString result;
+ TQString result;
if (m_bWebShortcutsEnabled)
{
- QString search = typedString;
+ TQString search = typedString;
int pos = search.find(m_cKeywordDelimiter);
- QString key;
+ TQString key;
if (pos > -1)
key = search.left(pos);
else if (m_cKeywordDelimiter == ' ' && !search.isEmpty())
@@ -81,7 +81,7 @@ QString KURISearchFilterEngine::webShortcutQuery( const QString& typedString ) c
if (provider)
{
result = formatResult(provider->query(), provider->charset(),
- QString::null, search.mid(pos+1), true);
+ TQString::null, search.mid(pos+1), true);
delete provider;
}
}
@@ -91,9 +91,9 @@ QString KURISearchFilterEngine::webShortcutQuery( const QString& typedString ) c
}
-QString KURISearchFilterEngine::autoWebSearchQuery( const QString& typedString ) const
+TQString KURISearchFilterEngine::autoWebSearchQuery( const TQString& typedString ) const
{
- QString result;
+ TQString result;
if (m_bWebShortcutsEnabled && !m_defaultSearchEngine.isEmpty())
{
@@ -107,7 +107,7 @@ QString KURISearchFilterEngine::autoWebSearchQuery( const QString& typedString )
if (provider)
{
result = formatResult (provider->query(), provider->charset(),
- QString::null, typedString, true);
+ TQString::null, typedString, true);
delete provider;
}
}
@@ -116,7 +116,7 @@ QString KURISearchFilterEngine::autoWebSearchQuery( const QString& typedString )
return result;
}
-QCString KURISearchFilterEngine::name() const
+TQCString KURISearchFilterEngine::name() const
{
return "kuriikwsfilter";
}
@@ -128,17 +128,17 @@ KURISearchFilterEngine* KURISearchFilterEngine::self()
return s_pSelf;
}
-QStringList KURISearchFilterEngine::modifySubstitutionMap(SubstMap& map,
- const QString& query) const
+TQStringList KURISearchFilterEngine::modifySubstitutionMap(SubstMap& map,
+ const TQString& query) const
{
// Returns the number of query words
- QString userquery = query;
+ TQString userquery = query;
// Do some pre-encoding, before we can start the work:
{
int start = 0;
int pos = 0;
- QRegExp qsexpr("\\\"[^\\\"]*\\\"");
+ TQRegExp qsexpr("\\\"[^\\\"]*\\\"");
// Temporary substitute spaces in quoted strings (" " -> "%20")
// Needed to split user query into StringList correctly.
@@ -146,7 +146,7 @@ QStringList KURISearchFilterEngine::modifySubstitutionMap(SubstMap& map,
{
int i = 0;
int n = 0;
- QString s = userquery.mid (pos, qsexpr.matchedLength());
+ TQString s = userquery.mid (pos, qsexpr.matchedLength());
while ((i = s.find(" ")) != -1)
{
s = s.replace (i, 1, "%20");
@@ -158,7 +158,7 @@ QStringList KURISearchFilterEngine::modifySubstitutionMap(SubstMap& map,
}
// Split user query between spaces:
- QStringList l = QStringList::split(" ", userquery.simplifyWhiteSpace());
+ TQStringList l = TQStringList::split(" ", userquery.simplifyWhiteSpace());
// Back-substitute quoted strings (%20 -> " "):
{
@@ -166,7 +166,7 @@ QStringList KURISearchFilterEngine::modifySubstitutionMap(SubstMap& map,
while ((i = userquery.find("%20")) != -1)
userquery = userquery.replace(i, 3, " ");
- for ( QStringList::Iterator it = l.begin(); it != l.end(); ++it )
+ for ( TQStringList::Iterator it = l.begin(); it != l.end(); ++it )
*it = (*it).replace("%20", " ");
}
@@ -176,8 +176,8 @@ QStringList KURISearchFilterEngine::modifySubstitutionMap(SubstMap& map,
{
int j = 0;
int pos = 0;
- QString v = "";
- QString nr = QString::number(i);
+ TQString v = "";
+ TQString nr = TQString::number(i);
// Add whole user query (\{0}) to substitution map:
if (i==0)
@@ -191,15 +191,15 @@ QStringList KURISearchFilterEngine::modifySubstitutionMap(SubstMap& map,
v = v.replace(j, 3, " ");
// Insert partial queries (referenced by \1 ... \n) to map:
- map.replace(QString::number(i), v);
+ map.replace(TQString::number(i), v);
PDVAR (" map['" + nr + "']", map[nr]);
// Insert named references (referenced by \name) to map:
j = 0;
if ((i>0) && (pos = v.find("=")) > 0)
{
- QString s = v.mid(pos + 1);
- QString k = v.left(pos);
+ TQString s = v.mid(pos + 1);
+ TQString k = v.left(pos);
// Back-substitute references contained in references (e.g. '\refname' substitutes to 'thisquery=\0')
while ((j = s.find("%5C")) != -1) s = s.replace(j, 3, "\\");
@@ -211,10 +211,10 @@ QStringList KURISearchFilterEngine::modifySubstitutionMap(SubstMap& map,
return l;
}
-static QString encodeString(const QString &s, int mib)
+static TQString encodeString(const TQString &s, int mib)
{
- QStringList l = QStringList::split(" ", s, true);
- for(QStringList::Iterator it = l.begin();
+ TQStringList l = TQStringList::split(" ", s, true);
+ for(TQStringList::Iterator it = l.begin();
it != l.end(); ++it)
{
*it = KURL::encode_string(*it, mib);
@@ -222,10 +222,10 @@ static QString encodeString(const QString &s, int mib)
return l.join("+");
}
-QString KURISearchFilterEngine::substituteQuery(const QString& url, SubstMap &map, const QString& userquery, const int encodingMib) const
+TQString KURISearchFilterEngine::substituteQuery(const TQString& url, SubstMap &map, const TQString& userquery, const int encodingMib) const
{
- QString newurl = url;
- QStringList ql = modifySubstitutionMap (map, userquery);
+ TQString newurl = url;
+ TQStringList ql = modifySubstitutionMap (map, userquery);
int count = ql.count();
// Check, if old style '\1' is found and replace it with \{@} (compatibility mode):
@@ -244,7 +244,7 @@ QString KURISearchFilterEngine::substituteQuery(const QString& url, SubstMap &ma
// Substitute references (\{ref1,ref2,...}) with values from user query:
{
int pos = 0;
- QRegExp reflist("\\\\\\{[^\\}]+\\}");
+ TQRegExp reflist("\\\\\\{[^\\}]+\\}");
// Substitute reflists (\{ref1,ref2,...}):
while ((pos = reflist.search(newurl, 0)) >= 0)
@@ -252,8 +252,8 @@ QString KURISearchFilterEngine::substituteQuery(const QString& url, SubstMap &ma
bool found = false;
//bool rest = false;
- QString v = "";
- QString rlstring = newurl.mid(pos + 2, reflist.matchedLength() - 3);
+ TQString v = "";
+ TQString rlstring = newurl.mid(pos + 2, reflist.matchedLength() - 3);
PDVAR (" reference list", rlstring);
// \{@} gets a special treatment later
@@ -264,13 +264,13 @@ QString KURISearchFilterEngine::substituteQuery(const QString& url, SubstMap &ma
}
// TODO: strip whitespaces around commas
- QStringList rl = QStringList::split(",", rlstring);
+ TQStringList rl = TQStringList::split(",", rlstring);
unsigned int i = 0;
while ((i<rl.count()) && !found)
{
- QString rlitem = rl[i];
- QRegExp range("[0-9]*\\-[0-9]*");
+ TQString rlitem = rl[i];
+ TQRegExp range("[0-9]*\\-[0-9]*");
// Substitute a range of keywords
if (range.search(rlitem, 0) >= 0)
@@ -287,7 +287,7 @@ QString KURISearchFilterEngine::substituteQuery(const QString& url, SubstMap &ma
for (int i=first; i<=last; i++)
{
- v += map[QString::number(i)] + " ";
+ v += map[TQString::number(i)] + " ";
// Remove used value from ql (needed for \{@}):
ql[i-1] = "";
}
@@ -296,14 +296,14 @@ QString KURISearchFilterEngine::substituteQuery(const QString& url, SubstMap &ma
if (!v.isEmpty())
found = true;
- PDVAR (" range", QString::number(first) + "-" + QString::number(last) + " => '" + v + "'");
+ PDVAR (" range", TQString::number(first) + "-" + TQString::number(last) + " => '" + v + "'");
v = encodeString(v, encodingMib);
}
else if ( rlitem.startsWith("\"") && rlitem.endsWith("\"") )
{
// Use default string from query definition:
found = true;
- QString s = rlitem.mid(1, rlitem.length() - 2);
+ TQString s = rlitem.mid(1, rlitem.length() - 2);
v = encodeString(s, encodingMib);
PDVAR (" default", s);
}
@@ -315,11 +315,11 @@ QString KURISearchFilterEngine::substituteQuery(const QString& url, SubstMap &ma
v = encodeString(map[rlitem], encodingMib);
// Remove used value from ql (needed for \{@}):
- QString c = rlitem.left(1);
+ TQString c = rlitem.left(1);
if (c=="0")
{
// It's a numeric reference to '0'
- for (QStringList::Iterator it = ql.begin(); it!=ql.end(); ++it)
+ for (TQStringList::Iterator it = ql.begin(); it!=ql.end(); ++it)
(*it) = "";
}
else if ((c>="0") && (c<="9"))
@@ -331,7 +331,7 @@ QString KURISearchFilterEngine::substituteQuery(const QString& url, SubstMap &ma
else
{
// It's a alphanumeric reference
- QStringList::Iterator it = ql.begin();
+ TQStringList::Iterator it = ql.begin();
while ((it != ql.end()) && ((rlitem + "=") != (*it).left(rlitem.length()+1)))
++it;
if ((rlitem + "=") == (*it).left(rlitem.length()+1))
@@ -360,7 +360,7 @@ QString KURISearchFilterEngine::substituteQuery(const QString& url, SubstMap &ma
{
PDVAR (" newurl", newurl);
// Generate list of unmatched strings:
- QString v = "";
+ TQString v = "";
for (unsigned int i=0; i<ql.count(); i++) {
v += " " + ql[i];
}
@@ -378,27 +378,27 @@ QString KURISearchFilterEngine::substituteQuery(const QString& url, SubstMap &ma
return newurl;
}
-QString KURISearchFilterEngine::formatResult( const QString& url,
- const QString& cset1,
- const QString& cset2,
- const QString& query,
+TQString KURISearchFilterEngine::formatResult( const TQString& url,
+ const TQString& cset1,
+ const TQString& cset2,
+ const TQString& query,
bool isMalformed ) const
{
SubstMap map;
return formatResult (url, cset1, cset2, query, isMalformed, map);
}
-QString KURISearchFilterEngine::formatResult( const QString& url,
- const QString& cset1,
- const QString& cset2,
- const QString& query,
+TQString KURISearchFilterEngine::formatResult( const TQString& url,
+ const TQString& cset1,
+ const TQString& cset2,
+ const TQString& query,
bool /* isMalformed */,
SubstMap& map ) const
{
// Return nothing if userquery is empty and it contains
// substitution strings...
- if (query.isEmpty() && url.find(QRegExp(QRegExp::escape("\\{"))) > 0)
- return QString::null;
+ if (query.isEmpty() && url.find(TQRegExp(TQRegExp::escape("\\{"))) > 0)
+ return TQString::null;
// Debug info of map:
if (!map.isEmpty())
@@ -409,19 +409,19 @@ QString KURISearchFilterEngine::formatResult( const QString& url,
}
// Create a codec for the desired encoding so that we can transcode the user's "url".
- QString cseta = cset1;
+ TQString cseta = cset1;
if (cseta.isEmpty())
cseta = "iso-8859-1";
- QTextCodec *csetacodec = QTextCodec::codecForName(cseta.latin1());
+ TQTextCodec *csetacodec = TQTextCodec::codecForName(cseta.latin1());
if (!csetacodec)
{
cseta = "iso-8859-1";
- csetacodec = QTextCodec::codecForName(cseta.latin1());
+ csetacodec = TQTextCodec::codecForName(cseta.latin1());
}
// Decode user query:
- QString userquery = KURL::decode_string(query, 106 /* utf-8*/);
+ TQString userquery = KURL::decode_string(query, 106 /* utf-8*/);
PDVAR ("user query", userquery);
PDVAR ("query definition", url);
@@ -430,12 +430,12 @@ QString KURISearchFilterEngine::formatResult( const QString& url,
map.replace("ikw_charset", cseta);
// Add charset indicator for the fallback query to substitution map:
- QString csetb = cset2;
+ TQString csetb = cset2;
if (csetb.isEmpty())
csetb = "iso-8859-1";
map.replace("wsc_charset", csetb);
- QString newurl = substituteQuery (url, map, userquery, csetacodec->mibEnum());
+ TQString newurl = substituteQuery (url, map, userquery, csetacodec->mibEnum());
PDVAR ("substituted query", newurl);
@@ -449,28 +449,28 @@ void KURISearchFilterEngine::loadConfig()
// contains the sycoca based search provider configuration (malte).
// TODO: Remove in KDE 4 !!! This has been here a sufficient amount of time...
{
- KSimpleConfig oldConfig(kapp->dirs()->saveLocation("config") + QString(name()) + "rc");
+ KSimpleConfig oldConfig(kapp->dirs()->saveLocation("config") + TQString(name()) + "rc");
oldConfig.setGroup("General");
if (oldConfig.hasKey("SearchEngines"))
{
// User has an old config file in his local config dir
PIDDBG << "Migrating config file to .desktop files..." << endl;
- QString fallback = oldConfig.readEntry("InternetKeywordsSearchFallback");
- QStringList engines = oldConfig.readListEntry("SearchEngines");
- for (QStringList::ConstIterator it = engines.begin(); it != engines.end(); ++it)
+ TQString fallback = oldConfig.readEntry("InternetKeywordsSearchFallback");
+ TQStringList engines = oldConfig.readListEntry("SearchEngines");
+ for (TQStringList::ConstIterator it = engines.begin(); it != engines.end(); ++it)
{
if (!oldConfig.hasGroup(*it + " Search"))
continue;
oldConfig.setGroup(*it + " Search");
- QString query = oldConfig.readEntry("Query");
- QStringList keys = oldConfig.readListEntry("Keys");
- QString charset = oldConfig.readEntry("Charset");
+ TQString query = oldConfig.readEntry("Query");
+ TQStringList keys = oldConfig.readListEntry("Keys");
+ TQString charset = oldConfig.readEntry("Charset");
oldConfig.deleteGroup(*it + " Search");
- QString name;
- for (QStringList::ConstIterator key = keys.begin(); key != keys.end(); ++key)
+ TQString name;
+ for (TQStringList::ConstIterator key = keys.begin(); key != keys.end(); ++key)
{
// take the longest key as name for the .desktop file
if ((*key).length() > name.length())
diff --git a/kcontrol/ebrowsing/plugins/ikws/kuriikwsfiltereng.h b/kcontrol/ebrowsing/plugins/ikws/kuriikwsfiltereng.h
index d45c17033..35c519aec 100644
--- a/kcontrol/ebrowsing/plugins/ikws/kuriikwsfiltereng.h
+++ b/kcontrol/ebrowsing/plugins/ikws/kuriikwsfiltereng.h
@@ -25,8 +25,8 @@
#ifndef __KURISearchFILTERENGINE_H__
#define __KURISearchFILTERENGINE_H__
-#include <qvaluelist.h>
-#include <qstringlist.h>
+#include <tqvaluelist.h>
+#include <tqstringlist.h>
#include <kservice.h>
@@ -36,16 +36,16 @@ class KURL;
class KURISearchFilterEngine
{
public:
- typedef QMap <QString, QString> SubstMap;
+ typedef TQMap <TQString, TQString> SubstMap;
KURISearchFilterEngine();
~KURISearchFilterEngine() {};
- QCString name() const;
+ TQCString name() const;
- QString webShortcutQuery (const QString&) const;
+ TQString webShortcutQuery (const TQString&) const;
- QString autoWebSearchQuery (const QString&) const;
+ TQString autoWebSearchQuery (const TQString&) const;
bool verbose() const { return m_bVerbose; }
@@ -54,23 +54,23 @@ public:
static KURISearchFilterEngine *self();
protected:
- QString formatResult (const QString& url, const QString& cset1, const QString& cset2,
- const QString& query, bool isMalformed) const;
+ TQString formatResult (const TQString& url, const TQString& cset1, const TQString& cset2,
+ const TQString& query, bool isMalformed) const;
- QString formatResult (const QString& url, const QString& cset1, const QString& cset2,
- const QString& query, bool isMalformed, SubstMap& map) const;
+ TQString formatResult (const TQString& url, const TQString& cset1, const TQString& cset2,
+ const TQString& query, bool isMalformed, SubstMap& map) const;
private:
- QStringList modifySubstitutionMap (SubstMap& map, const QString& query) const;
+ TQStringList modifySubstitutionMap (SubstMap& map, const TQString& query) const;
- QString substituteQuery (const QString& url, SubstMap &map,
- const QString& userquery, const int encodingMib) const;
+ TQString substituteQuery (const TQString& url, SubstMap &map,
+ const TQString& userquery, const int encodingMib) const;
bool m_bVerbose;
bool m_bWebShortcutsEnabled;
char m_cKeywordDelimiter;
- QString m_defaultSearchEngine;
+ TQString m_defaultSearchEngine;
static KURISearchFilterEngine *s_pSelf;
};
diff --git a/kcontrol/ebrowsing/plugins/ikws/kurisearchfilter.cpp b/kcontrol/ebrowsing/plugins/ikws/kurisearchfilter.cpp
index d56220935..6280f3899 100644
--- a/kcontrol/ebrowsing/plugins/ikws/kurisearchfilter.cpp
+++ b/kcontrol/ebrowsing/plugins/ikws/kurisearchfilter.cpp
@@ -38,8 +38,8 @@
typedef KGenericFactory<KURISearchFilter> KURISearchFilterFactory;
K_EXPORT_COMPONENT_FACTORY(libkurisearchfilter, KURISearchFilterFactory("kcmkurifilt"))
-KURISearchFilter::KURISearchFilter(QObject *parent, const char *name,
- const QStringList &)
+KURISearchFilter::KURISearchFilter(TQObject *parent, const char *name,
+ const TQStringList &)
:KURIFilterPlugin(parent, name ? name : "kurisearchfilter", 1.0),
DCOPObject("KURISearchFilterIface")
{
@@ -62,7 +62,7 @@ bool KURISearchFilter::filterURI( KURIFilterData &data ) const
if ( KURISearchFilterEngine::self()->verbose() )
kdDebug() << "KURISearchFilter::filterURI: '" << data.typedString() << "'" << endl;
- QString result = KURISearchFilterEngine::self()->webShortcutQuery( data.typedString() );
+ TQString result = KURISearchFilterEngine::self()->webShortcutQuery( data.typedString() );
if ( !result.isEmpty() )
{
@@ -77,12 +77,12 @@ bool KURISearchFilter::filterURI( KURIFilterData &data ) const
return false;
}
-KCModule *KURISearchFilter::configModule(QWidget *parent, const char *) const
+KCModule *KURISearchFilter::configModule(TQWidget *parent, const char *) const
{
return new FilterOptions( KURISearchFilterFactory::instance(), parent, "kcmkurifilt");
}
-QString KURISearchFilter::configName() const
+TQString KURISearchFilter::configName() const
{
return i18n("Search F&ilters");
}
diff --git a/kcontrol/ebrowsing/plugins/ikws/kurisearchfilter.h b/kcontrol/ebrowsing/plugins/ikws/kurisearchfilter.h
index 0b8dd1b14..eff650902 100644
--- a/kcontrol/ebrowsing/plugins/ikws/kurisearchfilter.h
+++ b/kcontrol/ebrowsing/plugins/ikws/kurisearchfilter.h
@@ -34,13 +34,13 @@ class KURISearchFilter : public KURIFilterPlugin, public DCOPObject
Q_OBJECT
K_DCOP
public:
- KURISearchFilter(QObject *parent = 0, const char *name = 0,
- const QStringList &args = QStringList() );
+ KURISearchFilter(TQObject *parent = 0, const char *name = 0,
+ const TQStringList &args = TQStringList() );
~KURISearchFilter();
virtual bool filterURI( KURIFilterData& ) const;
- virtual KCModule *configModule(QWidget *parent = 0, const char *name = 0) const;
- virtual QString configName() const;
+ virtual KCModule *configModule(TQWidget *parent = 0, const char *name = 0) const;
+ virtual TQString configName() const;
k_dcop:
virtual void configure();
diff --git a/kcontrol/ebrowsing/plugins/ikws/searchprovider.cpp b/kcontrol/ebrowsing/plugins/ikws/searchprovider.cpp
index c9e13dc1f..11b7ee692 100644
--- a/kcontrol/ebrowsing/plugins/ikws/searchprovider.cpp
+++ b/kcontrol/ebrowsing/plugins/ikws/searchprovider.cpp
@@ -30,7 +30,7 @@ SearchProvider::SearchProvider(const KService::Ptr service)
m_charset = service->property("Charset").toString();
}
-void SearchProvider::setName(const QString &name)
+void SearchProvider::setName(const TQString &name)
{
if (m_name == name)
return;
@@ -38,7 +38,7 @@ void SearchProvider::setName(const QString &name)
m_dirty = true;
}
-void SearchProvider::setQuery(const QString &query)
+void SearchProvider::setQuery(const TQString &query)
{
if (m_query == query)
return;
@@ -46,7 +46,7 @@ void SearchProvider::setQuery(const QString &query)
m_dirty = true;
}
-void SearchProvider::setKeys(const QStringList &keys)
+void SearchProvider::setKeys(const TQStringList &keys)
{
if (m_keys == keys)
return;
@@ -54,7 +54,7 @@ void SearchProvider::setKeys(const QStringList &keys)
m_dirty = true;
}
-void SearchProvider::setCharset(const QString &charset)
+void SearchProvider::setCharset(const TQString &charset)
{
if (m_charset == charset)
return;
@@ -62,17 +62,17 @@ void SearchProvider::setCharset(const QString &charset)
m_dirty = true;
}
-SearchProvider *SearchProvider::findByDesktopName(const QString &name)
+SearchProvider *SearchProvider::findByDesktopName(const TQString &name)
{
KService::Ptr service =
- KService::serviceByDesktopPath(QString("searchproviders/%1.desktop").arg(name));
+ KService::serviceByDesktopPath(TQString("searchproviders/%1.desktop").arg(name));
return service ? new SearchProvider(service) : 0;
}
-SearchProvider *SearchProvider::findByKey(const QString &key)
+SearchProvider *SearchProvider::findByKey(const TQString &key)
{
KTrader::OfferList providers =
- KTrader::self()->query("SearchProvider", QString("'%1' in Keys").arg(key));
+ KTrader::self()->query("SearchProvider", TQString("'%1' in Keys").arg(key));
return providers.count() ? new SearchProvider(providers[0]) : 0;
}
diff --git a/kcontrol/ebrowsing/plugins/ikws/searchprovider.h b/kcontrol/ebrowsing/plugins/ikws/searchprovider.h
index b7916892c..45309939c 100644
--- a/kcontrol/ebrowsing/plugins/ikws/searchprovider.h
+++ b/kcontrol/ebrowsing/plugins/ikws/searchprovider.h
@@ -28,26 +28,26 @@ public:
SearchProvider() : m_dirty(false) {};
SearchProvider(const KService::Ptr service);
- const QString &desktopEntryName() const { return m_desktopEntryName; }
- const QString &name() const { return m_name; }
- const QString &query() const { return m_query; }
- const QStringList &keys() const { return m_keys; }
- const QString &charset() const { return m_charset; }
+ const TQString &desktopEntryName() const { return m_desktopEntryName; }
+ const TQString &name() const { return m_name; }
+ const TQString &query() const { return m_query; }
+ const TQStringList &keys() const { return m_keys; }
+ const TQString &charset() const { return m_charset; }
bool isDirty() const { return m_dirty; }
- void setName(const QString &);
- void setQuery(const QString &);
- void setKeys(const QStringList &);
- void setCharset(const QString &);
+ void setName(const TQString &);
+ void setQuery(const TQString &);
+ void setKeys(const TQStringList &);
+ void setCharset(const TQString &);
- static SearchProvider *findByDesktopName(const QString &);
- static SearchProvider *findByKey(const QString &);
+ static SearchProvider *findByDesktopName(const TQString &);
+ static SearchProvider *findByKey(const TQString &);
private:
- QString m_desktopEntryName;
- QString m_name;
- QString m_query;
- QStringList m_keys;
- QString m_charset;
+ TQString m_desktopEntryName;
+ TQString m_name;
+ TQString m_query;
+ TQStringList m_keys;
+ TQString m_charset;
bool m_dirty;
};
diff --git a/kcontrol/ebrowsing/plugins/ikws/searchproviderdlg.cpp b/kcontrol/ebrowsing/plugins/ikws/searchproviderdlg.cpp
index ca7161b1c..586f947ff 100644
--- a/kcontrol/ebrowsing/plugins/ikws/searchproviderdlg.cpp
+++ b/kcontrol/ebrowsing/plugins/ikws/searchproviderdlg.cpp
@@ -16,10 +16,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qpushbutton.h>
-#include <qwhatsthis.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqpushbutton.h>
+#include <tqwhatsthis.h>
#include <kapplication.h>
#include <klocale.h>
@@ -34,8 +34,8 @@
#include "searchprovider.h"
SearchProviderDialog::SearchProviderDialog(SearchProvider *provider,
- QWidget *parent, const char *name)
- :KDialogBase(parent, name, true, QString::null, Ok|Cancel),
+ TQWidget *parent, const char *name)
+ :KDialogBase(parent, name, true, TQString::null, Ok|Cancel),
m_provider(provider)
{
m_dlg = new SearchProviderDlgUI (this);
@@ -45,12 +45,12 @@ SearchProviderDialog::SearchProviderDialog(SearchProvider *provider,
m_dlg->leQuery->setMinimumWidth(kapp->fontMetrics().maxWidth() * 40);
- connect(m_dlg->leName, SIGNAL(textChanged(const QString &)), SLOT(slotChanged()));
- connect(m_dlg->leQuery, SIGNAL(textChanged(const QString &)), SLOT(slotChanged()));
- connect(m_dlg->leShortcut, SIGNAL(textChanged(const QString &)), SLOT(slotChanged()));
+ connect(m_dlg->leName, TQT_SIGNAL(textChanged(const TQString &)), TQT_SLOT(slotChanged()));
+ connect(m_dlg->leQuery, TQT_SIGNAL(textChanged(const TQString &)), TQT_SLOT(slotChanged()));
+ connect(m_dlg->leShortcut, TQT_SIGNAL(textChanged(const TQString &)), TQT_SLOT(slotChanged()));
// Data init
- QStringList charsets = KGlobal::charsets()->availableEncodingNames();
+ TQStringList charsets = KGlobal::charsets()->availableEncodingNames();
charsets.prepend(i18n("Default"));
m_dlg->cbCharset->insertStringList(charsets);
@@ -86,15 +86,15 @@ void SearchProviderDialog::slotOk()
i18n("The URI does not contain a \\{...} placeholder for the user query.\n"
"This means that the same page is always going to be visited, "
"regardless of what the user types."),
- QString::null, i18n("Keep It")) == KMessageBox::Cancel)
+ TQString::null, i18n("Keep It")) == KMessageBox::Cancel)
return;
if (!m_provider)
m_provider = new SearchProvider;
m_provider->setName(m_dlg->leName->text().stripWhiteSpace());
m_provider->setQuery(m_dlg->leQuery->text().stripWhiteSpace());
- m_provider->setKeys(QStringList::split(",", m_dlg->leShortcut->text().stripWhiteSpace()));
- m_provider->setCharset(m_dlg->cbCharset->currentItem() ? m_dlg->cbCharset->currentText() : QString::null);
+ m_provider->setKeys(TQStringList::split(",", m_dlg->leShortcut->text().stripWhiteSpace()));
+ m_provider->setCharset(m_dlg->cbCharset->currentItem() ? m_dlg->cbCharset->currentText() : TQString::null);
KDialog::accept();
}
diff --git a/kcontrol/ebrowsing/plugins/ikws/searchproviderdlg.h b/kcontrol/ebrowsing/plugins/ikws/searchproviderdlg.h
index 5abb2f057..2a23cbf05 100644
--- a/kcontrol/ebrowsing/plugins/ikws/searchproviderdlg.h
+++ b/kcontrol/ebrowsing/plugins/ikws/searchproviderdlg.h
@@ -30,7 +30,7 @@ class SearchProviderDialog : public KDialogBase
Q_OBJECT
public:
- SearchProviderDialog(SearchProvider *provider, QWidget *parent = 0, const char *name = 0);
+ SearchProviderDialog(SearchProvider *provider, TQWidget *parent = 0, const char *name = 0);
SearchProvider *provider() { return m_provider; }
diff --git a/kcontrol/ebrowsing/plugins/localdomain/localdomainurifilter.cpp b/kcontrol/ebrowsing/plugins/localdomain/localdomainurifilter.cpp
index 3bd247729..f0986c188 100644
--- a/kcontrol/ebrowsing/plugins/localdomain/localdomainurifilter.cpp
+++ b/kcontrol/ebrowsing/plugins/localdomain/localdomainurifilter.cpp
@@ -26,8 +26,8 @@
#include <kstandarddirs.h>
#include <kdebug.h>
-#include <qregexp.h>
-#include <qfile.h>
+#include <tqregexp.h>
+#include <tqfile.h>
#define HOSTPORT_PATTERN "[a-zA-Z0-9][a-zA-Z0-9+-]*(?:\\:[0-9]{1,5})?(?:/[\\w:@&=+$,-.!~*'()]*)*"
@@ -36,12 +36,12 @@
* kdelibs/kio/tests/kurifiltertest
*/
-LocalDomainURIFilter::LocalDomainURIFilter( QObject *parent, const char *name,
- const QStringList & /*args*/ )
+LocalDomainURIFilter::LocalDomainURIFilter( TQObject *parent, const char *name,
+ const TQStringList & /*args*/ )
: KURIFilterPlugin( parent, name ? name : "localdomainurifilter", 1.0 ),
DCOPObject( "LocalDomainURIFilterIface" ),
last_time( 0 ),
- m_hostPortPattern( QString::fromLatin1(HOSTPORT_PATTERN) )
+ m_hostPortPattern( TQString::fromLatin1(HOSTPORT_PATTERN) )
{
configure();
}
@@ -49,14 +49,14 @@ LocalDomainURIFilter::LocalDomainURIFilter( QObject *parent, const char *name,
bool LocalDomainURIFilter::filterURI( KURIFilterData& data ) const
{
KURL url = data.uri();
- QString cmd = url.url();
+ TQString cmd = url.url();
kdDebug() << "LocalDomainURIFilter::filterURI: " << url << endl;
if( m_hostPortPattern.exactMatch( cmd ) &&
isLocalDomainHost( cmd ) )
{
- cmd.prepend( QString::fromLatin1("http://") );
+ cmd.prepend( TQString::fromLatin1("http://") );
setFilteredURI( data, KURL( cmd ) );
setURIType( data, KURIFilterData::NET_PROTOCOL );
@@ -68,24 +68,24 @@ bool LocalDomainURIFilter::filterURI( KURIFilterData& data ) const
}
// if it's e.g. just 'www', try if it's a hostname in the local search domain
-bool LocalDomainURIFilter::isLocalDomainHost( QString& cmd ) const
+bool LocalDomainURIFilter::isLocalDomainHost( TQString& cmd ) const
{
// find() returns -1 when no match -> left()/truncate() are noops then
- QString host( cmd.left( cmd.find( '/' ) ) );
+ TQString host( cmd.left( cmd.find( '/' ) ) );
host.truncate( host.find( ':' ) ); // Remove port number
if( !(host == last_host && last_time > time( NULL ) - 5 ) ) {
- QString helper = KStandardDirs::findExe(QString::fromLatin1( "klocaldomainurifilterhelper" ));
+ TQString helper = KStandardDirs::findExe(TQString::fromLatin1( "klocaldomainurifilterhelper" ));
if( helper.isEmpty())
return last_result = false;
- m_fullname = QString::null;
+ m_fullname = TQString::null;
KProcess proc;
proc << helper << host;
- connect( &proc, SIGNAL(receivedStdout(KProcess *, char *, int)),
- SLOT(receiveOutput(KProcess *, char *, int)) );
+ connect( &proc, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)),
+ TQT_SLOT(receiveOutput(KProcess *, char *, int)) );
if( !proc.start( KProcess::NotifyOnExit, KProcess::Stdout ))
return last_result = false;
@@ -103,7 +103,7 @@ bool LocalDomainURIFilter::isLocalDomainHost( QString& cmd ) const
void LocalDomainURIFilter::receiveOutput( KProcess *, char *buf, int )
{
- m_fullname = QFile::decodeName( buf );
+ m_fullname = TQFile::decodeName( buf );
}
void LocalDomainURIFilter::configure()
diff --git a/kcontrol/ebrowsing/plugins/localdomain/localdomainurifilter.h b/kcontrol/ebrowsing/plugins/localdomain/localdomainurifilter.h
index 465214e69..0c8035d89 100644
--- a/kcontrol/ebrowsing/plugins/localdomain/localdomainurifilter.h
+++ b/kcontrol/ebrowsing/plugins/localdomain/localdomainurifilter.h
@@ -26,7 +26,7 @@
#include <dcopobject.h>
#include <kgenericfactory.h>
#include <kurifilter.h>
-#include <qregexp.h>
+#include <tqregexp.h>
class KInstance;
class KProcess;
@@ -44,19 +44,19 @@ class LocalDomainURIFilter : public KURIFilterPlugin, public DCOPObject
Q_OBJECT
public:
- LocalDomainURIFilter( QObject* parent, const char* name, const QStringList& args );
+ LocalDomainURIFilter( TQObject* parent, const char* name, const TQStringList& args );
virtual bool filterURI( KURIFilterData &data ) const;
k_dcop:
virtual void configure();
private:
- bool isLocalDomainHost( QString& cmd ) const;
- mutable QString last_host;
+ bool isLocalDomainHost( TQString& cmd ) const;
+ mutable TQString last_host;
mutable bool last_result;
mutable time_t last_time;
- mutable QString m_fullname;
- QRegExp m_hostPortPattern;
+ mutable TQString m_fullname;
+ TQRegExp m_hostPortPattern;
private slots:
void receiveOutput( KProcess *, char *, int );
diff --git a/kcontrol/ebrowsing/plugins/shorturi/kshorturifilter.cpp b/kcontrol/ebrowsing/plugins/shorturi/kshorturifilter.cpp
index 3c0677b0f..9d15802f1 100644
--- a/kcontrol/ebrowsing/plugins/shorturi/kshorturifilter.cpp
+++ b/kcontrol/ebrowsing/plugins/shorturi/kshorturifilter.cpp
@@ -26,8 +26,8 @@
#include <pwd.h>
#include <sys/stat.h>
-#include <qdir.h>
-#include <qregexp.h>
+#include <tqdir.h>
+#include <tqregexp.h>
#include <kapplication.h>
#include <kdebug.h>
@@ -43,7 +43,7 @@
#define IPv6_PATTERN "^\\[.*\\]"
#define ENV_VAR_PATTERN "\\$[a-zA-Z_][a-zA-Z0-9_]*"
-#define QFL1(x) QString::fromLatin1(x)
+#define QFL1(x) TQString::fromLatin1(x)
/**
* IMPORTANT:
@@ -54,15 +54,15 @@
* test code to kdelibs/kio/tests/kurifiltertest.
*/
-typedef QMap<QString,QString> EntryMap;
+typedef TQMap<TQString,TQString> EntryMap;
-static bool isValidShortURL( const QString& cmd, bool verbose = false )
+static bool isValidShortURL( const TQString& cmd, bool verbose = false )
{
// Examples of valid short URLs:
// "kde.org", "foo.bar:8080", "user@foo.bar:3128"
// "192.168.1.0", "127.0.0.1:3128"
// "[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]"
- QRegExp exp;
+ TQRegExp exp;
// Match FQDN_PATTERN
exp.setPattern( QFL1(FQDN_PATTERN) );
@@ -110,9 +110,9 @@ static bool isValidShortURL( const QString& cmd, bool verbose = false )
return false;
}
-static QString removeArgs( const QString& _cmd )
+static TQString removeArgs( const TQString& _cmd )
{
- QString cmd( _cmd );
+ TQString cmd( _cmd );
if( cmd[0] != '\'' && cmd[0] != '"' )
{
@@ -134,8 +134,8 @@ static QString removeArgs( const QString& _cmd )
return cmd;
}
-KShortURIFilter::KShortURIFilter( QObject *parent, const char *name,
- const QStringList & /*args*/ )
+KShortURIFilter::KShortURIFilter( TQObject *parent, const char *name,
+ const TQStringList & /*args*/ )
:KURIFilterPlugin( parent, name ? name : "kshorturifilter", 1.0),
DCOPObject("KShortURIFilterIface")
{
@@ -158,19 +158,19 @@ bool KShortURIFilter::filterURI( KURIFilterData& data ) const
*/
KURL url = data.uri();
- QString cmd = data.typedString();
+ TQString cmd = data.typedString();
bool isMalformed = !url.isValid();
//kdDebug() << "url=" << url.url() << " cmd=" << cmd << " isMalformed=" << isMalformed << endl;
if (!isMalformed &&
(url.protocol().length() == 4) &&
- (url.protocol() != QString::fromLatin1("http")) &&
+ (url.protocol() != TQString::fromLatin1("http")) &&
(url.protocol()[0]=='h') &&
(url.protocol()[1]==url.protocol()[2]) &&
(url.protocol()[3]=='p'))
{
// Handle "encrypted" URLs like: h++p://www.kde.org
- url.setProtocol( QString::fromLatin1("http"));
+ url.setProtocol( TQString::fromLatin1("http"));
setFilteredURI( data, url);
setURIType( data, KURIFilterData::NET_PROTOCOL );
return true;
@@ -181,7 +181,7 @@ bool KShortURIFilter::filterURI( KURIFilterData& data ) const
// executable and only the argument part, if any, changed! (Dawit)
// You mean caching the last filtering, to try and reuse it, to save stat()s? (David)
- const QString starthere_proto = QFL1("start-here:");
+ const TQString starthere_proto = QFL1("start-here:");
if (cmd.find(starthere_proto, 0, true) == 0 )
{
setFilteredURI( data, KURL("system:/") );
@@ -190,8 +190,8 @@ bool KShortURIFilter::filterURI( KURIFilterData& data ) const
}
// Handle MAN & INFO pages shortcuts...
- const QString man_proto = QFL1("man:");
- const QString info_proto = QFL1("info:");
+ const TQString man_proto = QFL1("man:");
+ const TQString info_proto = QFL1("info:");
if( cmd[0] == '#' ||
cmd.find( man_proto, 0, true ) == 0 ||
cmd.find( info_proto, 0, true ) == 0 )
@@ -210,11 +210,11 @@ bool KShortURIFilter::filterURI( KURIFilterData& data ) const
}
// Detect UNC style (aka windows SMB) URLs
- if ( cmd.startsWith( QString::fromLatin1( "\\\\") ) )
+ if ( cmd.startsWith( TQString::fromLatin1( "\\\\") ) )
{
// make sure path is unix style
cmd.replace('\\', '/');
- cmd.prepend( QString::fromLatin1( "smb:" ) );
+ cmd.prepend( TQString::fromLatin1( "smb:" ) );
setFilteredURI( data, KURL( cmd ));
setURIType( data, KURIFilterData::NET_PROTOCOL );
return true;
@@ -223,12 +223,12 @@ bool KShortURIFilter::filterURI( KURIFilterData& data ) const
bool expanded = false;
// Expanding shortcut to HOME URL...
- QString path;
- QString ref;
- QString query;
- QString nameFilter;
+ TQString path;
+ TQString ref;
+ TQString query;
+ TQString nameFilter;
- if (KURL::isRelativeURL(cmd) && QDir::isRelativePath(cmd)) {
+ if (KURL::isRelativeURL(cmd) && TQDir::isRelativePath(cmd)) {
path = cmd;
}
else
@@ -239,7 +239,7 @@ bool KShortURIFilter::filterURI( KURIFilterData& data ) const
// but not for "/tmp/a#b", if "a#b" is an existing file,
// or for "/tmp/a?b" (#58990)
if ( ( url.hasRef() || !url.query().isEmpty() ) // avoid the calling exists() when not needed
- && QFile::exists(url.path())
+ && TQFile::exists(url.path())
&& !url.path().endsWith(QFL1("/")) ) // /tmp/?foo is a namefilter, not a query
{
path = url.path();
@@ -262,19 +262,19 @@ bool KShortURIFilter::filterURI( KURIFilterData& data ) const
slashPos = path.length();
if( slashPos == 1 ) // ~/
{
- path.replace ( 0, 1, QDir::homeDirPath() );
+ path.replace ( 0, 1, TQDir::homeDirPath() );
}
else // ~username/
{
- QString user = path.mid( 1, slashPos-1 );
+ TQString user = path.mid( 1, slashPos-1 );
struct passwd *dir = getpwnam(user.local8Bit().data());
if( dir && strlen(dir->pw_dir) )
{
- path.replace (0, slashPos, QString::fromLocal8Bit(dir->pw_dir));
+ path.replace (0, slashPos, TQString::fromLocal8Bit(dir->pw_dir));
}
else
{
- QString msg = dir ? i18n("<qt><b>%1</b> does not have a home folder.</qt>").arg(user) :
+ TQString msg = dir ? i18n("<qt><b>%1</b> does not have a home folder.</qt>").arg(user) :
i18n("<qt>There is no user called <b>%1</b>.</qt>").arg(user);
setErrorMsg( data, msg );
setURIType( data, KURIFilterData::ERROR );
@@ -287,13 +287,13 @@ bool KShortURIFilter::filterURI( KURIFilterData& data ) const
}
else if ( path[0] == '$' ) {
// Environment variable expansion.
- QRegExp r (QFL1(ENV_VAR_PATTERN));
+ TQRegExp r (QFL1(ENV_VAR_PATTERN));
if ( r.search( path ) == 0 )
{
const char* exp = getenv( path.mid( 1, r.matchedLength() - 1 ).local8Bit().data() );
if(exp)
{
- path.replace( 0, r.matchedLength(), QString::fromLocal8Bit(exp) );
+ path.replace( 0, r.matchedLength(), TQString::fromLocal8Bit(exp) );
expanded = true;
}
}
@@ -318,7 +318,7 @@ bool KShortURIFilter::filterURI( KURIFilterData& data ) const
// Checking for local resource match...
// Determine if "uri" is an absolute path to a local resource OR
// A local resource with a supplied absolute path in KURIFilterData
- QString abs_path = data.absolutePath();
+ TQString abs_path = data.absolutePath();
bool canBeAbsolute = (isMalformed && !abs_path.isEmpty());
bool canBeLocalAbsolute = (canBeAbsolute && abs_path[0] =='/');
@@ -330,16 +330,16 @@ bool KShortURIFilter::filterURI( KURIFilterData& data ) const
struct stat buff;
if ( canBeLocalAbsolute )
{
- QString abs = QDir::cleanDirPath( abs_path );
+ TQString abs = TQDir::cleanDirPath( abs_path );
// combine absolute path (abs_path) and relative path (cmd) into abs_path
int len = path.length();
if( (len==1 && path[0]=='.') || (len==2 && path[0]=='.' && path[1]=='.') )
path += '/';
//kdDebug() << "adding " << abs << " and " << path << endl;
- abs = QDir::cleanDirPath(abs + '/' + path);
+ abs = TQDir::cleanDirPath(abs + '/' + path);
//kdDebug() << "checking whether " << abs << " exists." << endl;
// Check if it exists
- if( stat( QFile::encodeName(abs).data(), &buff ) == 0 )
+ if( stat( TQFile::encodeName(abs).data(), &buff ) == 0 )
{
path = abs; // yes -> store as the new cmd
exists = true;
@@ -349,7 +349,7 @@ bool KShortURIFilter::filterURI( KURIFilterData& data ) const
if( isLocalFullPath && !exists )
{
- exists = ( stat( QFile::encodeName(path).data() , &buff ) == 0 );
+ exists = ( stat( TQFile::encodeName(path).data() , &buff ) == 0 );
if ( !exists ) {
// Support for name filter (/foo/*.txt), see also KonqMainWindow::detectNameFilter
@@ -357,10 +357,10 @@ bool KShortURIFilter::filterURI( KURIFilterData& data ) const
int lastSlash = path.findRev( '/' );
if ( lastSlash > -1 && path.find( ' ', lastSlash ) == -1 ) // no space after last slash, otherwise it's more likely command-line arguments
{
- QString fileName = path.mid( lastSlash + 1 );
- QString testPath = path.left( lastSlash + 1 );
+ TQString fileName = path.mid( lastSlash + 1 );
+ TQString testPath = path.left( lastSlash + 1 );
if ( ( fileName.find( '*' ) != -1 || fileName.find( '[' ) != -1 || fileName.find( '?' ) != -1 )
- && stat( QFile::encodeName(testPath).data(), &buff ) == 0 )
+ && stat( TQFile::encodeName(testPath).data(), &buff ) == 0 )
{
nameFilter = fileName;
kdDebug() << "Setting nameFilter to " << nameFilter << endl;
@@ -379,7 +379,7 @@ bool KShortURIFilter::filterURI( KURIFilterData& data ) const
u.setRef(ref);
u.setQuery(query);
- if (kapp && !kapp->authorizeURLAction( QString::fromLatin1("open"), KURL(), u))
+ if (kapp && !kapp->authorizeURLAction( TQString::fromLatin1("open"), KURL(), u))
{
// No authorisation, we pretend it's a file will get
// an access denied error later on.
@@ -390,7 +390,7 @@ bool KShortURIFilter::filterURI( KURIFilterData& data ) const
// Can be abs path to file or directory, or to executable with args
bool isDir = S_ISDIR( buff.st_mode );
- if( !isDir && access ( QFile::encodeName(path).data(), X_OK) == 0 )
+ if( !isDir && access ( TQFile::encodeName(path).data(), X_OK) == 0 )
{
//kdDebug() << "Abs path to EXECUTABLE" << endl;
setFilteredURI( data, u );
@@ -417,7 +417,7 @@ bool KShortURIFilter::filterURI( KURIFilterData& data ) const
// if it is executable under the user's $PATH variable.
// We try hard to avoid parsing any possible command
// line arguments or options that might have been supplied.
- QString exe = removeArgs( cmd );
+ TQString exe = removeArgs( cmd );
//kdDebug() << k_funcinfo << "findExe with " << exe << endl;
if( data.checkForExecutables() && !KStandardDirs::findExe( exe ).isNull() )
{
@@ -435,8 +435,8 @@ bool KShortURIFilter::filterURI( KURIFilterData& data ) const
// be slow things down...
if ( !isMalformed && !isLocalFullPath )
{
- const QStringList protocols = KProtocolInfo::protocols();
- for( QStringList::ConstIterator it = protocols.begin(); it != protocols.end(); ++it )
+ const TQStringList protocols = KProtocolInfo::protocols();
+ for( TQStringList::ConstIterator it = protocols.begin(); it != protocols.end(); ++it )
{
if( (url.protocol() == *it) )
{
@@ -455,10 +455,10 @@ bool KShortURIFilter::filterURI( KURIFilterData& data ) const
// TODO: Make configurable at some point...
if ( !cmd.contains( ' ' ) )
{
- QValueList<URLHint>::ConstIterator it;
+ TQValueList<URLHint>::ConstIterator it;
for( it = m_urlHints.begin(); it != m_urlHints.end(); ++it )
{
- QRegExp match( (*it).regexp );
+ TQRegExp match( (*it).regexp );
if ( match.search( cmd, 0 ) == 0 )
{
//kdDebug() << "match - prepending " << (*it).prepend << endl;
@@ -492,7 +492,7 @@ bool KShortURIFilter::filterURI( KURIFilterData& data ) const
u.setPath(path);
u.setRef(ref);
- if (kapp && !kapp->authorizeURLAction( QString::fromLatin1("open"), KURL(), u))
+ if (kapp && !kapp->authorizeURLAction( TQString::fromLatin1("open"), KURL(), u))
{
// No authorisation, we pretend it exists and will get
// an access denied error later on.
@@ -511,12 +511,12 @@ bool KShortURIFilter::filterURI( KURIFilterData& data ) const
return false;
}
-KCModule* KShortURIFilter::configModule( QWidget*, const char* ) const
+KCModule* KShortURIFilter::configModule( TQWidget*, const char* ) const
{
return 0; //new KShortURIOptions( parent, name );
}
-QString KShortURIFilter::configName() const
+TQString KShortURIFilter::configName() const
{
return i18n("&ShortURLs");
}
@@ -536,7 +536,7 @@ void KShortURIFilter::configure()
for( EntryMap::Iterator it = patterns.begin(); it != patterns.end(); ++it )
{
- QString protocol = protocols[it.key()];
+ TQString protocol = protocols[it.key()];
if (!protocol.isEmpty())
{
int type = config.readNumEntry(it.key(), -1);
diff --git a/kcontrol/ebrowsing/plugins/shorturi/kshorturifilter.h b/kcontrol/ebrowsing/plugins/shorturi/kshorturifilter.h
index c6603da19..f2bf4654c 100644
--- a/kcontrol/ebrowsing/plugins/shorturi/kshorturifilter.h
+++ b/kcontrol/ebrowsing/plugins/shorturi/kshorturifilter.h
@@ -49,8 +49,8 @@ public:
* @param parent the parent of this class.
* @param name the internal name for this object.
*/
- KShortURIFilter( QObject *parent = 0, const char *name = 0,
- const QStringList &args = QStringList() );
+ KShortURIFilter( TQObject *parent = 0, const char *name = 0,
+ const TQStringList &args = TQStringList() );
/**
* Destructor
@@ -76,7 +76,7 @@ public:
*
* @return the name of the config module.
*/
- virtual QString configName() const;
+ virtual TQString configName() const;
/**
* Returns an instance of the module used to configure
@@ -84,7 +84,7 @@ public:
*
* @return the config module
*/
- virtual KCModule* configModule( QWidget*, const char* ) const;
+ virtual KCModule* configModule( TQWidget*, const char* ) const;
public:
k_dcop:
@@ -95,16 +95,16 @@ private:
struct URLHint
{
URLHint() {}
- URLHint( QString r, QString p,
+ URLHint( TQString r, TQString p,
KURIFilterData::URITypes t = KURIFilterData::NET_PROTOCOL )
: regexp(r), prepend(p), type(t) {}
- QString regexp; // if this matches, then...
- QString prepend; // ...prepend this to the url
+ TQString regexp; // if this matches, then...
+ TQString prepend; // ...prepend this to the url
KURIFilterData::URITypes type;
};
- QValueList<URLHint> m_urlHints;
- QString m_strDefaultProtocol;
+ TQValueList<URLHint> m_urlHints;
+ TQString m_strDefaultProtocol;
bool m_bVerbose;
};
diff --git a/kcontrol/energy/energy.cpp b/kcontrol/energy/energy.cpp
index af3c4965d..1d0241914 100644
--- a/kcontrol/energy/energy.cpp
+++ b/kcontrol/energy/energy.cpp
@@ -22,10 +22,10 @@
#define QT_CLEAN_NAMESPACE
#endif
-#include <qcheckbox.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qwhatsthis.h>
+#include <tqcheckbox.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqwhatsthis.h>
#include <kconfig.h>
#include <kcursor.h>
@@ -85,7 +85,7 @@ static const int DFLT_OFF = 60;
extern "C" {
- KDE_EXPORT KCModule *create_energy(QWidget *parent, char *) {
+ KDE_EXPORT KCModule *create_energy(TQWidget *parent, char *) {
return new KEnergy(parent, "kcmenergy");
}
@@ -131,7 +131,7 @@ extern "C" {
/**** KEnergy ****/
-KEnergy::KEnergy(QWidget *parent, const char *name)
+KEnergy::KEnergy(TQWidget *parent, const char *name)
: KCModule(parent, name)
{
m_bChanged = false;
@@ -156,28 +156,28 @@ KEnergy::KEnergy(QWidget *parent, const char *name)
m_bDPMS = DPMSQueryExtension(qt_xdisplay(), &dummy, &dummy);
#endif
- QVBoxLayout *top = new QVBoxLayout(this, 0, KDialog::spacingHint());
- QHBoxLayout *hbox = new QHBoxLayout();
+ TQVBoxLayout *top = new TQVBoxLayout(this, 0, KDialog::spacingHint());
+ TQHBoxLayout *hbox = new TQHBoxLayout();
top->addLayout(hbox);
- QLabel *lbl;
+ TQLabel *lbl;
if (m_bDPMS) {
- m_pCBEnable= new QCheckBox(i18n("&Enable display power management" ), this);
- connect(m_pCBEnable, SIGNAL(toggled(bool)), SLOT(slotChangeEnable(bool)));
+ m_pCBEnable= new TQCheckBox(i18n("&Enable display power management" ), this);
+ connect(m_pCBEnable, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotChangeEnable(bool)));
hbox->addWidget(m_pCBEnable);
- QWhatsThis::add( m_pCBEnable, i18n("Check this option to enable the"
+ TQWhatsThis::add( m_pCBEnable, i18n("Check this option to enable the"
" power saving features of your display.") );
} else {
- lbl = new QLabel(i18n("Your display does not support power saving."), this);
+ lbl = new TQLabel(i18n("Your display does not support power saving."), this);
hbox->addWidget(lbl);
}
KURLLabel *logo = new KURLLabel(this);
logo->setURL("http://www.energystar.gov");
- logo->setPixmap(QPixmap(locate("data", "kcontrol/pics/energybig.png")));
+ logo->setPixmap(TQPixmap(locate("data", "kcontrol/pics/energybig.png")));
logo->setTipText(i18n("Learn more about the Energy Star program"));
logo->setUseTips(true);
-connect(logo, SIGNAL(leftClickedURL(const QString&)), SLOT(openURL(const QString &)));
+connect(logo, TQT_SIGNAL(leftClickedURL(const TQString&)), TQT_SLOT(openURL(const TQString &)));
hbox->addStretch();
hbox->addWidget(logo);
@@ -188,9 +188,9 @@ connect(logo, SIGNAL(leftClickedURL(const QString&)), SLOT(openURL(const QString
m_pStandbySlider->setRange(0, 120, 10);
m_pStandbySlider->setSuffix(i18n(" min"));
m_pStandbySlider->setSpecialValueText(i18n("Disabled"));
- connect(m_pStandbySlider, SIGNAL(valueChanged(int)), SLOT(slotChangeStandby(int)));
+ connect(m_pStandbySlider, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(slotChangeStandby(int)));
top->addWidget(m_pStandbySlider);
- QWhatsThis::add( m_pStandbySlider, i18n("Choose the period of inactivity"
+ TQWhatsThis::add( m_pStandbySlider, i18n("Choose the period of inactivity"
" after which the display should enter \"standby\" mode. This is the"
" first level of power saving.") );
@@ -199,9 +199,9 @@ connect(logo, SIGNAL(leftClickedURL(const QString&)), SLOT(openURL(const QString
m_pSuspendSlider->setRange(0, 120, 10);
m_pSuspendSlider->setSuffix(i18n(" min"));
m_pSuspendSlider->setSpecialValueText(i18n("Disabled"));
- connect(m_pSuspendSlider, SIGNAL(valueChanged(int)), SLOT(slotChangeSuspend(int)));
+ connect(m_pSuspendSlider, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(slotChangeSuspend(int)));
top->addWidget(m_pSuspendSlider);
- QWhatsThis::add( m_pSuspendSlider, i18n("Choose the period of inactivity"
+ TQWhatsThis::add( m_pSuspendSlider, i18n("Choose the period of inactivity"
" after which the display should enter \"suspend\" mode. This is the"
" second level of power saving, but may not be different from the first"
" level for some displays.") );
@@ -211,9 +211,9 @@ connect(logo, SIGNAL(leftClickedURL(const QString&)), SLOT(openURL(const QString
m_pOffSlider->setRange(0, 120, 10);
m_pOffSlider->setSuffix(i18n(" min"));
m_pOffSlider->setSpecialValueText(i18n("Disabled"));
- connect(m_pOffSlider, SIGNAL(valueChanged(int)), SLOT(slotChangeOff(int)));
+ connect(m_pOffSlider, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(slotChangeOff(int)));
top->addWidget(m_pOffSlider);
- QWhatsThis::add( m_pOffSlider, i18n("Choose the period of inactivity"
+ TQWhatsThis::add( m_pOffSlider, i18n("Choose the period of inactivity"
" after which the display should be powered off. This is the"
" greatest level of power saving that can be achieved while the"
" display is still physically turned on.") );
@@ -434,7 +434,7 @@ void KEnergy::slotChangeOff(int value)
emit changed(true);
}
-void KEnergy::openURL(const QString &URL)
+void KEnergy::openURL(const TQString &URL)
{
new KRun(KURL( URL ));
}
diff --git a/kcontrol/energy/energy.h b/kcontrol/energy/energy.h
index d41b89e26..2625eba92 100644
--- a/kcontrol/energy/energy.h
+++ b/kcontrol/energy/energy.h
@@ -14,7 +14,7 @@
#ifndef __Energy_h_Included__
#define __Energy_h_Included__
-#include <qobject.h>
+#include <tqobject.h>
#include <kcmodule.h>
class QCheckBox;
@@ -31,7 +31,7 @@ class KEnergy: public KCModule
Q_OBJECT
public:
- KEnergy(QWidget *parent, const char *name);
+ KEnergy(TQWidget *parent, const char *name);
~KEnergy();
virtual void load();
@@ -44,7 +44,7 @@ private slots:
void slotChangeStandby(int);
void slotChangeSuspend(int);
void slotChangeOff(int);
- void openURL(const QString &);
+ void openURL(const TQString &);
private:
void readSettings();
@@ -58,7 +58,7 @@ private:
int m_Standby, m_Suspend, m_Off;
int m_StandbyDesired, m_SuspendDesired, m_OffDesired;
- QCheckBox *m_pCBEnable;
+ TQCheckBox *m_pCBEnable;
KIntNumInput *m_pStandbySlider;
KIntNumInput *m_pSuspendSlider;
KIntNumInput *m_pOffSlider;
diff --git a/kcontrol/filetypes/control.cpp b/kcontrol/filetypes/control.cpp
index 55e98d95e..9736e9c9b 100644
--- a/kcontrol/filetypes/control.cpp
+++ b/kcontrol/filetypes/control.cpp
@@ -2,7 +2,7 @@
extern "C"
{
- KDE_EXPORT KCModule *create_filetypes(QWidget *parent, const char *)
+ KDE_EXPORT KCModule *create_filetypes(TQWidget *parent, const char *)
{
return new FileTypesView(parent, "filetypes");
}
diff --git a/kcontrol/filetypes/filegroupdetails.cpp b/kcontrol/filetypes/filegroupdetails.cpp
index a8895965a..eb57f50ac 100644
--- a/kcontrol/filetypes/filegroupdetails.cpp
+++ b/kcontrol/filetypes/filegroupdetails.cpp
@@ -17,29 +17,29 @@
*/
#include "filegroupdetails.h"
#include "typeslistitem.h"
-#include <qlayout.h>
-#include <qvbuttongroup.h>
-#include <qradiobutton.h>
-#include <qwhatsthis.h>
+#include <tqlayout.h>
+#include <tqvbuttongroup.h>
+#include <tqradiobutton.h>
+#include <tqwhatsthis.h>
#include <kdialog.h>
#include <klocale.h>
-FileGroupDetails::FileGroupDetails(QWidget *parent, const char *name )
- : QWidget( parent, name )
+FileGroupDetails::FileGroupDetails(TQWidget *parent, const char *name )
+ : TQWidget( parent, name )
{
- QWidget * parentWidget = this;
- QVBoxLayout *secondLayout = new QVBoxLayout(parentWidget,
+ TQWidget * parentWidget = this;
+ TQVBoxLayout *secondLayout = new TQVBoxLayout(parentWidget,
0, KDialog::spacingHint());
- m_autoEmbed = new QVButtonGroup( i18n("Left Click Action"), parentWidget );
+ m_autoEmbed = new TQVButtonGroup( i18n("Left Click Action"), parentWidget );
m_autoEmbed->layout()->setSpacing( KDialog::spacingHint() );
secondLayout->addWidget( m_autoEmbed );
// The order of those two items is very important. If you change it, fix typeslistitem.cpp !
- new QRadioButton( i18n("Show file in embedded viewer"), m_autoEmbed );
- new QRadioButton( i18n("Show file in separate viewer"), m_autoEmbed );
- connect(m_autoEmbed, SIGNAL( clicked( int ) ), SLOT( slotAutoEmbedClicked( int ) ));
+ new TQRadioButton( i18n("Show file in embedded viewer"), m_autoEmbed );
+ new TQRadioButton( i18n("Show file in separate viewer"), m_autoEmbed );
+ connect(m_autoEmbed, TQT_SIGNAL( clicked( int ) ), TQT_SLOT( slotAutoEmbedClicked( int ) ));
- QWhatsThis::add( m_autoEmbed, i18n("Here you can configure what the Konqueror file manager"
+ TQWhatsThis::add( m_autoEmbed, i18n("Here you can configure what the Konqueror file manager"
" will do when you click on a file belonging to this group. Konqueror can display the file in"
" an embedded viewer or start up a separate application. You can change this setting for a"
" specific file type in the 'Embedding' tab of the file type configuration.") );
diff --git a/kcontrol/filetypes/filegroupdetails.h b/kcontrol/filetypes/filegroupdetails.h
index 1716954f3..d52bec176 100644
--- a/kcontrol/filetypes/filegroupdetails.h
+++ b/kcontrol/filetypes/filegroupdetails.h
@@ -18,7 +18,7 @@
#ifndef _FILEGROUPDETAILS_H
#define _FILEGROUPDETAILS_H
-#include <qwidget.h>
+#include <tqwidget.h>
class TypesListItem;
class QButtonGroup;
@@ -30,7 +30,7 @@ class FileGroupDetails : public QWidget
{
Q_OBJECT
public:
- FileGroupDetails(QWidget *parent = 0, const char *name = 0);
+ FileGroupDetails(TQWidget *parent = 0, const char *name = 0);
void setTypeItem( TypesListItem * item );
@@ -44,7 +44,7 @@ private:
TypesListItem * m_item;
// Embedding config
- QButtonGroup *m_autoEmbed;
+ TQButtonGroup *m_autoEmbed;
};
#endif
diff --git a/kcontrol/filetypes/filetypedetails.cpp b/kcontrol/filetypes/filetypedetails.cpp
index 436fd138d..a678e0eb2 100644
--- a/kcontrol/filetypes/filetypedetails.cpp
+++ b/kcontrol/filetypes/filetypedetails.cpp
@@ -1,8 +1,8 @@
-#include <qcheckbox.h>
-#include <qlayout.h>
-#include <qradiobutton.h>
-#include <qvbuttongroup.h>
-#include <qwhatsthis.h>
+#include <tqcheckbox.h>
+#include <tqlayout.h>
+#include <tqradiobutton.h>
+#include <tqvbuttongroup.h>
+#include <tqwhatsthis.h>
#include <kapplication.h>
#include <kconfig.h>
@@ -16,102 +16,102 @@
#include "filetypedetails.h"
#include "typeslistitem.h"
-FileTypeDetails::FileTypeDetails( QWidget * parent, const char * name )
- : QTabWidget( parent, name ), m_item( 0L )
+FileTypeDetails::FileTypeDetails( TQWidget * parent, const char * name )
+ : TQTabWidget( parent, name ), m_item( 0L )
{
- QString wtstr;
+ TQString wtstr;
// First tab - General
- QWidget * firstWidget = new QWidget(this);
- QVBoxLayout *firstLayout = new QVBoxLayout(firstWidget,KDialog::marginHint(),
+ TQWidget * firstWidget = new TQWidget(this);
+ TQVBoxLayout *firstLayout = new TQVBoxLayout(firstWidget,KDialog::marginHint(),
KDialog::spacingHint());
- QHBoxLayout *hBox = new QHBoxLayout(0L, 0, KDialog::spacingHint());
+ TQHBoxLayout *hBox = new TQHBoxLayout(0L, 0, KDialog::spacingHint());
firstLayout->addLayout(hBox, 1);
iconButton = new KIconButton(firstWidget);
iconButton->setIconType(KIcon::Desktop, KIcon::MimeType);
- connect(iconButton, SIGNAL(iconChanged(QString)), SLOT(updateIcon(QString)));
+ connect(iconButton, TQT_SIGNAL(iconChanged(TQString)), TQT_SLOT(updateIcon(TQString)));
iconButton->setFixedSize(70, 70);
hBox->addWidget(iconButton);
- QWhatsThis::add( iconButton, i18n("This button displays the icon associated"
+ TQWhatsThis::add( iconButton, i18n("This button displays the icon associated"
" with the selected file type. Click on it to choose a different icon.") );
- QGroupBox *gb = new QGroupBox(i18n("Filename Patterns"), firstWidget);
+ TQGroupBox *gb = new TQGroupBox(i18n("Filename Patterns"), firstWidget);
hBox->addWidget(gb);
- QGridLayout *grid = new QGridLayout(gb, 3, 2, KDialog::marginHint(),
+ TQGridLayout *grid = new TQGridLayout(gb, 3, 2, KDialog::marginHint(),
KDialog::spacingHint());
grid->addRowSpacing(0, fontMetrics().lineSpacing());
- extensionLB = new QListBox(gb);
- connect(extensionLB, SIGNAL(highlighted(int)), SLOT(enableExtButtons(int)));
+ extensionLB = new TQListBox(gb);
+ connect(extensionLB, TQT_SIGNAL(highlighted(int)), TQT_SLOT(enableExtButtons(int)));
grid->addMultiCellWidget(extensionLB, 1, 2, 0, 0);
grid->setRowStretch(0, 0);
grid->setRowStretch(1, 1);
grid->setRowStretch(2, 0);
- QWhatsThis::add( extensionLB, i18n("This box contains a list of patterns that can be"
+ TQWhatsThis::add( extensionLB, i18n("This box contains a list of patterns that can be"
" used to identify files of the selected type. For example, the pattern *.txt is"
" associated with the file type 'text/plain'; all files ending in '.txt' are recognized"
" as plain text files.") );
- addExtButton = new QPushButton(i18n("Add..."), gb);
+ addExtButton = new TQPushButton(i18n("Add..."), gb);
addExtButton->setEnabled(false);
- connect(addExtButton, SIGNAL(clicked()),
- this, SLOT(addExtension()));
+ connect(addExtButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(addExtension()));
grid->addWidget(addExtButton, 1, 1);
- QWhatsThis::add( addExtButton, i18n("Add a new pattern for the selected file type.") );
+ TQWhatsThis::add( addExtButton, i18n("Add a new pattern for the selected file type.") );
- removeExtButton = new QPushButton(i18n("Remove"), gb);
+ removeExtButton = new TQPushButton(i18n("Remove"), gb);
removeExtButton->setEnabled(false);
- connect(removeExtButton, SIGNAL(clicked()),
- this, SLOT(removeExtension()));
+ connect(removeExtButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(removeExtension()));
grid->addWidget(removeExtButton, 2, 1);
- QWhatsThis::add( removeExtButton, i18n("Remove the selected filename pattern.") );
+ TQWhatsThis::add( removeExtButton, i18n("Remove the selected filename pattern.") );
- gb = new QGroupBox(i18n("Description"), firstWidget);
+ gb = new TQGroupBox(i18n("Description"), firstWidget);
firstLayout->addWidget(gb);
gb->setColumnLayout(1, Qt::Horizontal);
description = new KLineEdit(gb);
- connect(description, SIGNAL(textChanged(const QString &)),
- SLOT(updateDescription(const QString &)));
+ connect(description, TQT_SIGNAL(textChanged(const TQString &)),
+ TQT_SLOT(updateDescription(const TQString &)));
wtstr = i18n("You can enter a short description for files of the selected"
" file type (e.g. 'HTML Page'). This description will be used by applications"
" like Konqueror to display directory content.");
- QWhatsThis::add( gb, wtstr );
- QWhatsThis::add( description, wtstr );
+ TQWhatsThis::add( gb, wtstr );
+ TQWhatsThis::add( description, wtstr );
serviceListWidget = new KServiceListWidget( KServiceListWidget::SERVICELIST_APPLICATIONS, firstWidget );
- connect( serviceListWidget, SIGNAL(changed(bool)), this, SIGNAL(changed(bool)));
+ connect( serviceListWidget, TQT_SIGNAL(changed(bool)), this, TQT_SIGNAL(changed(bool)));
firstLayout->addWidget(serviceListWidget, 5);
// Second tab - Embedding
- QWidget * secondWidget = new QWidget(this);
- QVBoxLayout *secondLayout = new QVBoxLayout(secondWidget, KDialog::marginHint(),
+ TQWidget * secondWidget = new TQWidget(this);
+ TQVBoxLayout *secondLayout = new TQVBoxLayout(secondWidget, KDialog::marginHint(),
KDialog::spacingHint());
- m_autoEmbed = new QVButtonGroup( i18n("Left Click Action"), secondWidget );
+ m_autoEmbed = new TQVButtonGroup( i18n("Left Click Action"), secondWidget );
m_autoEmbed->layout()->setSpacing( KDialog::spacingHint() );
secondLayout->addWidget( m_autoEmbed, 1 );
- m_autoEmbed->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)0, m_autoEmbed->sizePolicy().hasHeightForWidth() ) );
+ m_autoEmbed->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)0, m_autoEmbed->sizePolicy().hasHeightForWidth() ) );
// The order of those three items is very important. If you change it, fix typeslistitem.cpp !
- new QRadioButton( i18n("Show file in embedded viewer"), m_autoEmbed );
- new QRadioButton( i18n("Show file in separate viewer"), m_autoEmbed );
- m_rbGroupSettings = new QRadioButton( i18n("Use settings for '%1' group"), m_autoEmbed );
- connect(m_autoEmbed, SIGNAL( clicked( int ) ), SLOT( slotAutoEmbedClicked( int ) ));
+ new TQRadioButton( i18n("Show file in embedded viewer"), m_autoEmbed );
+ new TQRadioButton( i18n("Show file in separate viewer"), m_autoEmbed );
+ m_rbGroupSettings = new TQRadioButton( i18n("Use settings for '%1' group"), m_autoEmbed );
+ connect(m_autoEmbed, TQT_SIGNAL( clicked( int ) ), TQT_SLOT( slotAutoEmbedClicked( int ) ));
- m_chkAskSave = new QCheckBox( i18n("Ask whether to save to disk instead"), m_autoEmbed);
- connect(m_chkAskSave, SIGNAL( toggled(bool) ), SLOT( slotAskSaveToggled(bool) ));
+ m_chkAskSave = new TQCheckBox( i18n("Ask whether to save to disk instead"), m_autoEmbed);
+ connect(m_chkAskSave, TQT_SIGNAL( toggled(bool) ), TQT_SLOT( slotAskSaveToggled(bool) ));
- QWhatsThis::add( m_autoEmbed, i18n("Here you can configure what the Konqueror file manager"
+ TQWhatsThis::add( m_autoEmbed, i18n("Here you can configure what the Konqueror file manager"
" will do when you click on a file of this type. Konqueror can display the file in"
" an embedded viewer or start up a separate application. If set to 'Use settings for G group',"
" Konqueror will behave according to the settings of the group G this type belongs to,"
@@ -121,7 +121,7 @@ FileTypeDetails::FileTypeDetails( QWidget * parent, const char * name )
embedServiceListWidget = new KServiceListWidget( KServiceListWidget::SERVICELIST_SERVICES, secondWidget );
embedServiceListWidget->setMinimumHeight( serviceListWidget->sizeHint().height() );
- connect( embedServiceListWidget, SIGNAL(changed(bool)), this, SIGNAL(changed(bool)));
+ connect( embedServiceListWidget, TQT_SIGNAL(changed(bool)), this, TQT_SIGNAL(changed(bool)));
secondLayout->addWidget(embedServiceListWidget, 3);
addTab( firstWidget, i18n("&General") );
@@ -133,7 +133,7 @@ void FileTypeDetails::updateRemoveButton()
removeExtButton->setEnabled(extensionLB->count()>0);
}
-void FileTypeDetails::updateIcon(QString icon)
+void FileTypeDetails::updateIcon(TQString icon)
{
if (!m_item)
return;
@@ -143,7 +143,7 @@ void FileTypeDetails::updateIcon(QString icon)
emit changed(true);
}
-void FileTypeDetails::updateDescription(const QString &desc)
+void FileTypeDetails::updateDescription(const TQString &desc)
{
if (!m_item)
return;
@@ -159,11 +159,11 @@ void FileTypeDetails::addExtension()
return;
bool ok;
- QString ext = KInputDialog::getText( i18n( "Add New Extension" ),
+ TQString ext = KInputDialog::getText( i18n( "Add New Extension" ),
i18n( "Extension:" ), "*.", &ok, this );
if (ok) {
extensionLB->insertItem(ext);
- QStringList patt = m_item->patterns();
+ TQStringList patt = m_item->patterns();
patt += ext;
m_item->setPatterns(patt);
updateRemoveButton();
@@ -177,7 +177,7 @@ void FileTypeDetails::removeExtension()
return;
if ( !m_item )
return;
- QStringList patt = m_item->patterns();
+ TQStringList patt = m_item->patterns();
patt.remove(extensionLB->text(extensionLB->currentItem()));
m_item->setPatterns(patt);
extensionLB->removeItem(extensionLB->currentItem());
@@ -210,9 +210,9 @@ void FileTypeDetails::updateAskSave()
button = embedParent ? 0 : 1;
}
- QString mimeType = m_item->name();
+ TQString mimeType = m_item->name();
- QString dontAskAgainName;
+ TQString dontAskAgainName;
if (button == 0) // Embedded
dontAskAgainName = "askEmbedOrSave"+mimeType;
@@ -271,7 +271,7 @@ void FileTypeDetails::setTypeItem( TypesListItem * tlitem )
iconButton->setIcon(tlitem->icon());
else
iconButton->resetIcon();
- description->setText(tlitem ? tlitem->comment() : QString::null);
+ description->setText(tlitem ? tlitem->comment() : TQString::null);
if ( tlitem )
m_rbGroupSettings->setText( i18n("Use settings for '%1' group").arg( tlitem->majorType() ) );
extensionLB->clear();
diff --git a/kcontrol/filetypes/filetypedetails.h b/kcontrol/filetypes/filetypedetails.h
index 6f9a0a548..fcbe3f3d5 100644
--- a/kcontrol/filetypes/filetypedetails.h
+++ b/kcontrol/filetypes/filetypedetails.h
@@ -1,7 +1,7 @@
#ifndef _FILETYPEDETAILS_H
#define _FILETYPEDETAILS_H
-#include <qtabwidget.h>
+#include <tqtabwidget.h>
class TypesListItem;
class KIconButton;
class QLineEdit;
@@ -22,7 +22,7 @@ class FileTypeDetails : public QTabWidget
{
Q_OBJECT
public:
- FileTypeDetails(QWidget *parent = 0, const char *name = 0);
+ FileTypeDetails(TQWidget *parent = 0, const char *name = 0);
void setTypeItem( TypesListItem * item );
@@ -31,12 +31,12 @@ protected:
void updateAskSave();
signals:
- void embedMajor(const QString &major, bool &embed); // To adjust whether major type is being embedded
+ void embedMajor(const TQString &major, bool &embed); // To adjust whether major type is being embedded
void changed(bool);
protected slots:
- void updateIcon(QString icon);
- void updateDescription(const QString &desc);
+ void updateIcon(TQString icon);
+ void updateDescription(const TQString &desc);
void addExtension();
void removeExtension();
void enableExtButtons(int index);
@@ -48,17 +48,17 @@ private:
// First tab - General
KIconButton *iconButton;
- QListBox *extensionLB;
- QPushButton *addExtButton, *removeExtButton;
- QLineEdit *description;
+ TQListBox *extensionLB;
+ TQPushButton *addExtButton, *removeExtButton;
+ TQLineEdit *description;
KServiceListWidget *serviceListWidget;
// Second tab - Embedding
- QButtonGroup *m_autoEmbed;
+ TQButtonGroup *m_autoEmbed;
KServiceListWidget *embedServiceListWidget;
- QRadioButton *m_rbOpenSeparate;
- QCheckBox *m_chkAskSave;
- QRadioButton *m_rbGroupSettings;
+ TQRadioButton *m_rbOpenSeparate;
+ TQCheckBox *m_chkAskSave;
+ TQRadioButton *m_rbGroupSettings;
};
#endif
diff --git a/kcontrol/filetypes/filetypesview.cpp b/kcontrol/filetypes/filetypesview.cpp
index 4088e9eee..ad60fc3de 100644
--- a/kcontrol/filetypes/filetypesview.cpp
+++ b/kcontrol/filetypes/filetypesview.cpp
@@ -1,10 +1,10 @@
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qpushbutton.h>
-#include <qtimer.h>
-#include <qwhatsthis.h>
-#include <qwidgetstack.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqpushbutton.h>
+#include <tqtimer.h>
+#include <tqwhatsthis.h>
+#include <tqwidgetstack.h>
#include <dcopclient.h>
@@ -24,7 +24,7 @@
#include "filetypesview.h"
#include <ksycoca.h>
-FileTypesView::FileTypesView(QWidget *p, const char *name)
+FileTypesView::FileTypesView(TQWidget *p, const char *name)
: KCModule(p, name)
{
m_konqConfig = KSharedConfig::openConfig("konquerorrc", false, false);
@@ -50,30 +50,30 @@ FileTypesView::FileTypesView(QWidget *p, const char *name)
" MIME-type by directly examining the contents of the file."));
setButtons(Help | Apply | Cancel | Ok);
- QString wtstr;
+ TQString wtstr;
- QHBoxLayout *l = new QHBoxLayout(this, 0, KDialog::marginHint());
- QGridLayout *leftLayout = new QGridLayout(0, 4, 3);
+ TQHBoxLayout *l = new TQHBoxLayout(this, 0, KDialog::marginHint());
+ TQGridLayout *leftLayout = new TQGridLayout(0, 4, 3);
leftLayout->setSpacing( KDialog::spacingHint() );
leftLayout->setColStretch(1, 1);
l->addLayout( leftLayout );
- QLabel *patternFilterLBL = new QLabel(i18n("F&ind filename pattern:"), this);
+ TQLabel *patternFilterLBL = new TQLabel(i18n("F&ind filename pattern:"), this);
leftLayout->addMultiCellWidget(patternFilterLBL, 0, 0, 0, 2);
patternFilterLE = new KLineEdit(this);
patternFilterLBL->setBuddy( patternFilterLE );
leftLayout->addMultiCellWidget(patternFilterLE, 1, 1, 0, 2);
- connect(patternFilterLE, SIGNAL(textChanged(const QString &)),
- this, SLOT(slotFilter(const QString &)));
+ connect(patternFilterLE, TQT_SIGNAL(textChanged(const TQString &)),
+ this, TQT_SLOT(slotFilter(const TQString &)));
wtstr = i18n("Enter a part of a filename pattern. Only file types with a "
"matching file pattern will appear in the list.");
- QWhatsThis::add( patternFilterLE, wtstr );
- QWhatsThis::add( patternFilterLBL, wtstr );
+ TQWhatsThis::add( patternFilterLE, wtstr );
+ TQWhatsThis::add( patternFilterLBL, wtstr );
typesLV = new KListView(this);
typesLV->setRootIsDecorated(true);
@@ -81,60 +81,60 @@ FileTypesView::FileTypesView(QWidget *p, const char *name)
typesLV->addColumn(i18n("Known Types"));
leftLayout->addMultiCellWidget(typesLV, 2, 2, 0, 2);
- connect(typesLV, SIGNAL(selectionChanged(QListViewItem *)),
- this, SLOT(updateDisplay(QListViewItem *)));
- connect(typesLV, SIGNAL(doubleClicked(QListViewItem *)),
- this, SLOT(slotDoubleClicked(QListViewItem *)));
+ connect(typesLV, TQT_SIGNAL(selectionChanged(TQListViewItem *)),
+ this, TQT_SLOT(updateDisplay(TQListViewItem *)));
+ connect(typesLV, TQT_SIGNAL(doubleClicked(TQListViewItem *)),
+ this, TQT_SLOT(slotDoubleClicked(TQListViewItem *)));
- QWhatsThis::add( typesLV, i18n("Here you can see a hierarchical list of"
+ TQWhatsThis::add( typesLV, i18n("Here you can see a hierarchical list of"
" the file types which are known on your system. Click on the '+' sign"
" to expand a category, or the '-' sign to collapse it. Select a file type"
" (e.g. text/html for HTML files) to view/edit the information for that"
" file type using the controls on the right.") );
- QPushButton *addTypeB = new QPushButton(i18n("Add..."), this);
- connect(addTypeB, SIGNAL(clicked()), SLOT(addType()));
+ TQPushButton *addTypeB = new TQPushButton(i18n("Add..."), this);
+ connect(addTypeB, TQT_SIGNAL(clicked()), TQT_SLOT(addType()));
leftLayout->addWidget(addTypeB, 3, 0);
- QWhatsThis::add( addTypeB, i18n("Click here to add a new file type.") );
+ TQWhatsThis::add( addTypeB, i18n("Click here to add a new file type.") );
- m_removeTypeB = new QPushButton(i18n("&Remove"), this);
- connect(m_removeTypeB, SIGNAL(clicked()), SLOT(removeType()));
+ m_removeTypeB = new TQPushButton(i18n("&Remove"), this);
+ connect(m_removeTypeB, TQT_SIGNAL(clicked()), TQT_SLOT(removeType()));
leftLayout->addWidget(m_removeTypeB, 3, 2);
m_removeTypeB->setEnabled(false);
- QWhatsThis::add( m_removeTypeB, i18n("Click here to remove the selected file type.") );
+ TQWhatsThis::add( m_removeTypeB, i18n("Click here to remove the selected file type.") );
// For the right panel, prepare a widget stack
- m_widgetStack = new QWidgetStack(this);
+ m_widgetStack = new TQWidgetStack(this);
l->addWidget( m_widgetStack );
// File Type Details
m_details = new FileTypeDetails( m_widgetStack );
- connect( m_details, SIGNAL( changed(bool) ),
- this, SLOT( setDirty(bool) ) );
- connect( m_details, SIGNAL( embedMajor(const QString &, bool &) ),
- this, SLOT( slotEmbedMajor(const QString &, bool &)));
+ connect( m_details, TQT_SIGNAL( changed(bool) ),
+ this, TQT_SLOT( setDirty(bool) ) );
+ connect( m_details, TQT_SIGNAL( embedMajor(const TQString &, bool &) ),
+ this, TQT_SLOT( slotEmbedMajor(const TQString &, bool &)));
m_widgetStack->addWidget( m_details, 1 /*id*/ );
// File Group Details
m_groupDetails = new FileGroupDetails( m_widgetStack );
- connect( m_groupDetails, SIGNAL( changed(bool) ),
- this, SLOT( setDirty(bool) ) );
+ connect( m_groupDetails, TQT_SIGNAL( changed(bool) ),
+ this, TQT_SLOT( setDirty(bool) ) );
m_widgetStack->addWidget( m_groupDetails, 2 /*id*/ );
// Widget shown on startup
- m_emptyWidget = new QLabel( i18n("Select a file type by name or by extension"), m_widgetStack);
+ m_emptyWidget = new TQLabel( i18n("Select a file type by name or by extension"), m_widgetStack);
m_emptyWidget->setAlignment(AlignCenter);
m_widgetStack->addWidget( m_emptyWidget, 3 /*id*/ );
m_widgetStack->raiseWidget( m_emptyWidget );
- QTimer::singleShot( 0, this, SLOT( init() ) ); // this takes some time
+ TQTimer::singleShot( 0, this, TQT_SLOT( init() ) ); // this takes some time
- connect( KSycoca::self(), SIGNAL( databaseChanged() ), SLOT( slotDatabaseChanged() ) );
+ connect( KSycoca::self(), TQT_SIGNAL( databaseChanged() ), TQT_SLOT( slotDatabaseChanged() ) );
}
FileTypesView::~FileTypesView()
@@ -171,14 +171,14 @@ void FileTypesView::readFileTypes()
TypesListItem *groupItem;
KMimeType::List mimetypes = KMimeType::allMimeTypes();
- QValueListIterator<KMimeType::Ptr> it2(mimetypes.begin());
+ TQValueListIterator<KMimeType::Ptr> it2(mimetypes.begin());
for (; it2 != mimetypes.end(); ++it2) {
- QString mimetype = (*it2)->name();
+ TQString mimetype = (*it2)->name();
int index = mimetype.find("/");
- QString maj = mimetype.left(index);
- QString min = mimetype.right(mimetype.length() - index+1);
+ TQString maj = mimetype.left(index);
+ TQString min = mimetype.right(mimetype.length() - index+1);
- QMapIterator<QString,TypesListItem*> mit = m_majorMap.find( maj );
+ TQMapIterator<TQString,TypesListItem*> mit = m_majorMap.find( maj );
if ( mit == m_majorMap.end() ) {
groupItem = new TypesListItem( typesLV, maj );
m_majorMap.insert( maj, groupItem );
@@ -193,10 +193,10 @@ void FileTypesView::readFileTypes()
}
-void FileTypesView::slotEmbedMajor(const QString &major, bool &embed)
+void FileTypesView::slotEmbedMajor(const TQString &major, bool &embed)
{
TypesListItem *groupItem;
- QMapIterator<QString,TypesListItem*> mit = m_majorMap.find( major );
+ TQMapIterator<TQString,TypesListItem*> mit = m_majorMap.find( major );
if ( mit == m_majorMap.end() )
return;
@@ -205,11 +205,11 @@ void FileTypesView::slotEmbedMajor(const QString &major, bool &embed)
embed = (groupItem->autoEmbed() == 0);
}
-void FileTypesView::slotFilter(const QString & patternFilter)
+void FileTypesView::slotFilter(const TQString & patternFilter)
{
// one of the few ways to clear a listview without destroying the
- // listviewitems and without making QListView crash.
- QListViewItem *item;
+ // listviewitems and without making TQListView crash.
+ TQListViewItem *item;
while ( (item = typesLV->firstChild()) ) {
while ( item->firstChild() )
item->takeItem( item->firstChild() );
@@ -218,13 +218,13 @@ void FileTypesView::slotFilter(const QString & patternFilter)
}
// insert all items and their group that match the filter
- QPtrListIterator<TypesListItem> it( m_itemList );
+ TQPtrListIterator<TypesListItem> it( m_itemList );
while ( it.current() ) {
if ( patternFilter.isEmpty() ||
!((*it)->patterns().grep( patternFilter, false )).isEmpty() ) {
TypesListItem *group = m_majorMap[ (*it)->majorType() ];
- // QListView makes sure we don't insert a group-item more than once
+ // TQListView makes sure we don't insert a group-item more than once
typesLV->insertItem( group );
group->insertItem( *it );
}
@@ -234,8 +234,8 @@ void FileTypesView::slotFilter(const QString & patternFilter)
void FileTypesView::addType()
{
- QStringList allGroups;
- QMapIterator<QString,TypesListItem*> it = m_majorMap.begin();
+ TQStringList allGroups;
+ TQMapIterator<TQString,TypesListItem*> it = m_majorMap.begin();
while ( it != m_majorMap.end() ) {
allGroups.append( it.key() );
++it;
@@ -244,13 +244,13 @@ void FileTypesView::addType()
NewTypeDialog m(allGroups, this);
if (m.exec()) {
- QListViewItemIterator it(typesLV);
- QString loc = m.group() + "/" + m.text() + ".desktop";
+ TQListViewItemIterator it(typesLV);
+ TQString loc = m.group() + "/" + m.text() + ".desktop";
loc = locateLocal("mime", loc);
KMimeType::Ptr mimetype = new KMimeType(loc,
m.group() + "/" + m.text(),
- QString(), QString(),
- QStringList());
+ TQString(), TQString(),
+ TQStringList());
TypesListItem *group = m_majorMap[ m.group() ];
if ( !group )
@@ -261,7 +261,7 @@ void FileTypesView::addType()
}
// find out if our group has been filtered out -> insert if necessary
- QListViewItem *item = typesLV->firstChild();
+ TQListViewItem *item = typesLV->firstChild();
bool insert = true;
while ( item ) {
if ( item == group ) {
@@ -297,7 +297,7 @@ void FileTypesView::removeType()
if ( current->isEssential() )
return;
- QListViewItem *li = current->itemAbove();
+ TQListViewItem *li = current->itemAbove();
if (!li)
li = current->itemBelow();
if (!li)
@@ -312,13 +312,13 @@ void FileTypesView::removeType()
typesLV->setSelected(li, true);
}
-void FileTypesView::slotDoubleClicked(QListViewItem *item)
+void FileTypesView::slotDoubleClicked(TQListViewItem *item)
{
if ( !item ) return;
item->setOpen( !item->isOpen() );
}
-void FileTypesView::updateDisplay(QListViewItem *item)
+void FileTypesView::updateDisplay(TQListViewItem *item)
{
if (!item)
{
@@ -348,12 +348,12 @@ void FileTypesView::updateDisplay(QListViewItem *item)
setDirty(false);
}
-bool FileTypesView::sync( QValueList<TypesListItem *>& itemsModified )
+bool FileTypesView::sync( TQValueList<TypesListItem *>& itemsModified )
{
bool didIt = false;
// first, remove those items which we are asked to remove.
- QStringList::Iterator it(removedList.begin());
- QString loc;
+ TQStringList::Iterator it(removedList.begin());
+ TQString loc;
for (; it != removedList.end(); ++it) {
didIt = true;
@@ -370,7 +370,7 @@ bool FileTypesView::sync( QValueList<TypesListItem *>& itemsModified )
// now go through all entries and sync those which are dirty.
// don't use typesLV, it may be filtered
- QMapIterator<QString,TypesListItem*> it1 = m_majorMap.begin();
+ TQMapIterator<TQString,TypesListItem*> it1 = m_majorMap.begin();
while ( it1 != m_majorMap.end() ) {
TypesListItem *tli = *it1;
if (tli->isDirty()) {
@@ -381,7 +381,7 @@ bool FileTypesView::sync( QValueList<TypesListItem *>& itemsModified )
}
++it1;
}
- QPtrListIterator<TypesListItem> it2( m_itemList );
+ TQPtrListIterator<TypesListItem> it2( m_itemList );
while ( it2.current() ) {
TypesListItem *tli = *it2;
if (tli->isDirty()) {
@@ -422,9 +422,9 @@ void FileTypesView::slotDatabaseChanged()
// our 'copies' to be in sync with it. Not important for OK, but
// important for Apply (how to differentiate those 2?).
// See BR 35071.
- QValueList<TypesListItem *>::Iterator it = m_itemsModified.begin();
+ TQValueList<TypesListItem *>::Iterator it = m_itemsModified.begin();
for( ; it != m_itemsModified.end(); ++it ) {
- QString name = (*it)->name();
+ TQString name = (*it)->name();
if ( removedList.find( name ) == removedList.end() ) // if not deleted meanwhile
(*it)->refresh();
}
diff --git a/kcontrol/filetypes/filetypesview.h b/kcontrol/filetypes/filetypesview.h
index bc6323d85..70b6bb88d 100644
--- a/kcontrol/filetypes/filetypesview.h
+++ b/kcontrol/filetypes/filetypesview.h
@@ -1,8 +1,8 @@
#ifndef _FILETYPESVIEW_H
#define _FILETYPESVIEW_H
-#include <qptrlist.h>
-#include <qmap.h>
+#include <tqptrlist.h>
+#include <tqmap.h>
#include <kconfig.h>
#include <kcmodule.h>
@@ -25,7 +25,7 @@ class FileTypesView : public KCModule
{
Q_OBJECT
public:
- FileTypesView(QWidget *p = 0, const char *name = 0);
+ FileTypesView(TQWidget *p = 0, const char *name = 0);
~FileTypesView();
void load();
@@ -38,34 +38,34 @@ protected slots:
void addType();
void removeType();
- void updateDisplay(QListViewItem *);
- void slotDoubleClicked(QListViewItem *);
- void slotFilter(const QString &patternFilter);
+ void updateDisplay(TQListViewItem *);
+ void slotDoubleClicked(TQListViewItem *);
+ void slotFilter(const TQString &patternFilter);
void setDirty(bool state);
void slotDatabaseChanged();
- void slotEmbedMajor(const QString &major, bool &embed);
+ void slotEmbedMajor(const TQString &major, bool &embed);
protected:
void readFileTypes();
- bool sync( QValueList<TypesListItem *>& itemsModified );
+ bool sync( TQValueList<TypesListItem *>& itemsModified );
private:
KListView *typesLV;
- QPushButton *m_removeTypeB;
+ TQPushButton *m_removeTypeB;
- QWidgetStack * m_widgetStack;
+ TQWidgetStack * m_widgetStack;
FileTypeDetails * m_details;
FileGroupDetails * m_groupDetails;
- QLabel * m_emptyWidget;
+ TQLabel * m_emptyWidget;
- QLineEdit *patternFilterLE;
- QStringList removedList;
+ TQLineEdit *patternFilterLE;
+ TQStringList removedList;
bool m_dirty;
- QMap<QString,TypesListItem*> m_majorMap;
- QPtrList<TypesListItem> m_itemList;
+ TQMap<TQString,TypesListItem*> m_majorMap;
+ TQPtrList<TypesListItem> m_itemList;
- QValueList<TypesListItem *> m_itemsModified;
+ TQValueList<TypesListItem *> m_itemsModified;
KSharedConfig::Ptr m_konqConfig;
};
diff --git a/kcontrol/filetypes/keditfiletype.cpp b/kcontrol/filetypes/keditfiletype.cpp
index 6c5c4eb6c..48f9e14c5 100644
--- a/kcontrol/filetypes/keditfiletype.cpp
+++ b/kcontrol/filetypes/keditfiletype.cpp
@@ -19,7 +19,7 @@
#include "typeslistitem.h"
#include "keditfiletype.h"
-#include <qfile.h>
+#include <tqfile.h>
#include <dcopclient.h>
#include <kapplication.h>
@@ -35,14 +35,14 @@
#endif
FileTypeDialog::FileTypeDialog( KMimeType::Ptr mime )
- : KDialogBase( 0L, 0, false, QString::null, /* Help | */ Cancel | Apply | Ok,
+ : KDialogBase( 0L, 0, false, TQString::null, /* Help | */ Cancel | Apply | Ok,
Ok, false )
{
init( mime, false );
}
FileTypeDialog::FileTypeDialog( KMimeType::Ptr mime, bool newItem )
- : KDialogBase( 0L, 0, false, QString::null, /* Help | */ Cancel | Apply | Ok,
+ : KDialogBase( 0L, 0, false, TQString::null, /* Help | */ Cancel | Apply | Ok,
Ok, false )
{
init( mime, newItem );
@@ -51,18 +51,18 @@ FileTypeDialog::FileTypeDialog( KMimeType::Ptr mime, bool newItem )
void FileTypeDialog::init( KMimeType::Ptr mime, bool newItem )
{
m_details = new FileTypeDetails( this );
- QListView * dummyListView = new QListView( m_details );
+ TQListView * dummyListView = new TQListView( m_details );
dummyListView->hide();
m_item = new TypesListItem( dummyListView, mime, newItem );
m_details->setTypeItem( m_item );
// This code is very similar to kcdialog.cpp
setMainWidget( m_details );
- connect(m_details, SIGNAL(changed(bool)), this, SLOT(clientChanged(bool)));
+ connect(m_details, TQT_SIGNAL(changed(bool)), this, TQT_SLOT(clientChanged(bool)));
// TODO setHelp()
enableButton(Apply, false);
- connect( KSycoca::self(), SIGNAL( databaseChanged() ), SLOT( slotDatabaseChanged() ) );
+ connect( KSycoca::self(), TQT_SIGNAL( databaseChanged() ), TQT_SLOT( slotDatabaseChanged() ) );
}
void FileTypeDialog::save()
@@ -126,31 +126,31 @@ int main(int argc, char ** argv)
if (args->count() == 0)
KCmdLineArgs::usage();
- QString arg = args->arg(0);
+ TQString arg = args->arg(0);
bool createType = arg.startsWith( "*" );
KMimeType::Ptr mime;
if ( createType ) {
- QString mimeString = "application/x-kdeuser%1";
- QString loc;
+ TQString mimeString = "application/x-kdeuser%1";
+ TQString loc;
int inc = 0;
do {
++inc;
loc = locateLocal( "mime", mimeString.arg( inc ) + ".desktop" );
}
- while ( QFile::exists( loc ) );
+ while ( TQFile::exists( loc ) );
- QStringList patterns;
+ TQStringList patterns;
if ( arg.length() > 2 )
patterns << arg.lower() << arg.upper();
- QString comment;
+ TQString comment;
if ( arg.startsWith( "*." ) && arg.length() >= 3 ) {
- QString type = arg.mid( 3 ).prepend( arg[2].upper() );
+ TQString type = arg.mid( 3 ).prepend( arg[2].upper() );
comment = i18n( "%1 File" ).arg( type );
}
- mime = new KMimeType( loc, mimeString.arg( inc ), QString::null, comment, patterns );
+ mime = new KMimeType( loc, mimeString.arg( inc ), TQString::null, comment, patterns );
}
else {
mime = KMimeType::mimeType( arg );
diff --git a/kcontrol/filetypes/kservicelistwidget.cpp b/kcontrol/filetypes/kservicelistwidget.cpp
index ed6819a37..e4363415d 100644
--- a/kcontrol/filetypes/kservicelistwidget.cpp
+++ b/kcontrol/filetypes/kservicelistwidget.cpp
@@ -20,9 +20,9 @@
#include <unistd.h>
-#include <qpushbutton.h>
-#include <qlayout.h>
-#include <qwhatsthis.h>
+#include <tqpushbutton.h>
+#include <tqlayout.h>
+#include <tqwhatsthis.h>
#include <kapplication.h>
#include <kdebug.h>
@@ -38,7 +38,7 @@
#include <kstandarddirs.h>
KServiceListItem::KServiceListItem( KService *pService, int kind )
- : QListBoxText(), desktopPath(pService->desktopEntryPath())
+ : TQListBoxText(), desktopPath(pService->desktopEntryPath())
{
if ( kind == KServiceListWidget::SERVICELIST_APPLICATIONS )
setText( pService->name() );
@@ -57,13 +57,13 @@ bool KServiceListItem::isImmutable()
return !checkAccess(localPath, W_OK);
}
-KServiceListWidget::KServiceListWidget(int kind, QWidget *parent, const char *name)
- : QGroupBox( kind == SERVICELIST_APPLICATIONS ? i18n("Application Preference Order")
+KServiceListWidget::KServiceListWidget(int kind, TQWidget *parent, const char *name)
+ : TQGroupBox( kind == SERVICELIST_APPLICATIONS ? i18n("Application Preference Order")
: i18n("Services Preference Order"), parent, name ),
m_kind( kind ), m_item( 0L )
{
- QWidget * gb = this;
- QGridLayout * grid = new QGridLayout(gb, 7, 2, KDialog::marginHint(),
+ TQWidget * gb = this;
+ TQGridLayout * grid = new TQGridLayout(gb, 7, 2, KDialog::marginHint(),
KDialog::spacingHint());
grid->addRowSpacing(0, fontMetrics().lineSpacing());
grid->setRowStretch(1, 1);
@@ -73,12 +73,12 @@ KServiceListWidget::KServiceListWidget(int kind, QWidget *parent, const char *na
grid->setRowStretch(5, 1);
grid->setRowStretch(6, 1);
- servicesLB = new QListBox(gb);
- connect(servicesLB, SIGNAL(highlighted(int)), SLOT(enableMoveButtons(int)));
+ servicesLB = new TQListBox(gb);
+ connect(servicesLB, TQT_SIGNAL(highlighted(int)), TQT_SLOT(enableMoveButtons(int)));
grid->addMultiCellWidget(servicesLB, 1, 6, 0, 0);
- connect( servicesLB, SIGNAL( doubleClicked ( QListBoxItem * )), this, SLOT( editService()));
+ connect( servicesLB, TQT_SIGNAL( doubleClicked ( TQListBoxItem * )), this, TQT_SLOT( editService()));
- QString wtstr =
+ TQString wtstr =
(kind == SERVICELIST_APPLICATIONS ?
i18n("This is a list of applications associated with files of the selected"
" file type. This list is shown in Konqueror's context menus when you select"
@@ -91,15 +91,15 @@ KServiceListWidget::KServiceListWidget(int kind, QWidget *parent, const char *na
" then the list is ordered by priority with the uppermost item taking precedence"
" over the others."));
- QWhatsThis::add( gb, wtstr );
- QWhatsThis::add( servicesLB, wtstr );
+ TQWhatsThis::add( gb, wtstr );
+ TQWhatsThis::add( servicesLB, wtstr );
- servUpButton = new QPushButton(i18n("Move &Up"), gb);
+ servUpButton = new TQPushButton(i18n("Move &Up"), gb);
servUpButton->setEnabled(false);
- connect(servUpButton, SIGNAL(clicked()), SLOT(promoteService()));
+ connect(servUpButton, TQT_SIGNAL(clicked()), TQT_SLOT(promoteService()));
grid->addWidget(servUpButton, 2, 1);
- QWhatsThis::add( servUpButton, kind == SERVICELIST_APPLICATIONS ?
+ TQWhatsThis::add( servUpButton, kind == SERVICELIST_APPLICATIONS ?
i18n("Assigns a higher priority to the selected\n"
"application, moving it up in the list. Note: This\n"
"only affects the selected application if the file type is\n"
@@ -107,12 +107,12 @@ KServiceListWidget::KServiceListWidget(int kind, QWidget *parent, const char *na
i18n("Assigns a higher priority to the selected\n"
"service, moving it up in the list."));
- servDownButton = new QPushButton(i18n("Move &Down"), gb);
+ servDownButton = new TQPushButton(i18n("Move &Down"), gb);
servDownButton->setEnabled(false);
- connect(servDownButton, SIGNAL(clicked()), SLOT(demoteService()));
+ connect(servDownButton, TQT_SIGNAL(clicked()), TQT_SLOT(demoteService()));
grid->addWidget(servDownButton, 3, 1);
- QWhatsThis::add( servDownButton, kind == SERVICELIST_APPLICATIONS ?
+ TQWhatsThis::add( servDownButton, kind == SERVICELIST_APPLICATIONS ?
i18n("Assigns a lower priority to the selected\n"
"application, moving it down in the list. Note: This \n"
"only affects the selected application if the file type is\n"
@@ -120,28 +120,28 @@ KServiceListWidget::KServiceListWidget(int kind, QWidget *parent, const char *na
i18n("Assigns a lower priority to the selected\n"
"service, moving it down in the list."));
- servNewButton = new QPushButton(i18n("Add..."), gb);
+ servNewButton = new TQPushButton(i18n("Add..."), gb);
servNewButton->setEnabled(false);
- connect(servNewButton, SIGNAL(clicked()), SLOT(addService()));
+ connect(servNewButton, TQT_SIGNAL(clicked()), TQT_SLOT(addService()));
grid->addWidget(servNewButton, 1, 1);
- QWhatsThis::add( servNewButton, i18n( "Add a new application for this file type." ) );
+ TQWhatsThis::add( servNewButton, i18n( "Add a new application for this file type." ) );
- servEditButton = new QPushButton(i18n("Edit..."), gb);
+ servEditButton = new TQPushButton(i18n("Edit..."), gb);
servEditButton->setEnabled(false);
- connect(servEditButton, SIGNAL(clicked()), SLOT(editService()));
+ connect(servEditButton, TQT_SIGNAL(clicked()), TQT_SLOT(editService()));
grid->addWidget(servEditButton, 4, 1);
- QWhatsThis::add( servEditButton, i18n( "Edit command line of the selected application." ) );
+ TQWhatsThis::add( servEditButton, i18n( "Edit command line of the selected application." ) );
- servRemoveButton = new QPushButton(i18n("Remove"), gb);
+ servRemoveButton = new TQPushButton(i18n("Remove"), gb);
servRemoveButton->setEnabled(false);
- connect(servRemoveButton, SIGNAL(clicked()), SLOT(removeService()));
+ connect(servRemoveButton, TQT_SIGNAL(clicked()), TQT_SLOT(removeService()));
grid->addWidget(servRemoveButton, 5, 1);
- QWhatsThis::add( servRemoveButton, i18n( "Remove the selected application from the list." ) );
+ TQWhatsThis::add( servRemoveButton, i18n( "Remove the selected application from the list." ) );
}
void KServiceListWidget::setTypeItem( TypesListItem * item )
@@ -163,14 +163,14 @@ void KServiceListWidget::setTypeItem( TypesListItem * item )
if ( item )
{
- QStringList services = ( m_kind == SERVICELIST_APPLICATIONS )
+ TQStringList services = ( m_kind == SERVICELIST_APPLICATIONS )
? item->appServices()
: item->embedServices();
if (services.count() == 0) {
servicesLB->insertItem(i18n("None"));
} else {
- for ( QStringList::Iterator it = services.begin();
+ for ( TQStringList::Iterator it = services.begin();
it != services.end(); it++ )
{
KService::Ptr pService = KService::serviceByDesktopPath( *it );
@@ -196,7 +196,7 @@ void KServiceListWidget::promoteService()
return;
}
- QListBoxItem *selItem = servicesLB->item(selIndex);
+ TQListBoxItem *selItem = servicesLB->item(selIndex);
servicesLB->takeItem(selItem);
servicesLB->insertItem(selItem, selIndex-1);
servicesLB->setCurrentItem(selIndex - 1);
@@ -219,7 +219,7 @@ void KServiceListWidget::demoteService()
return;
}
- QListBoxItem *selItem = servicesLB->item(selIndex);
+ TQListBoxItem *selItem = servicesLB->item(selIndex);
servicesLB->takeItem(selItem);
servicesLB->insertItem(selItem, selIndex+1);
servicesLB->setCurrentItem(selIndex + 1);
@@ -237,9 +237,9 @@ void KServiceListWidget::addService()
KService::Ptr service = 0L;
if ( m_kind == SERVICELIST_APPLICATIONS )
{
- KOpenWithDlg dlg(m_item->name(), QString::null, 0L);
+ KOpenWithDlg dlg(m_item->name(), TQString::null, 0L);
dlg.setSaveNewApplications(true);
- if (dlg.exec() != QDialog::Accepted)
+ if (dlg.exec() != TQDialog::Accepted)
return;
service = dlg.service();
@@ -250,8 +250,8 @@ void KServiceListWidget::addService()
}
else
{
- KServiceSelectDlg dlg(m_item->name(), QString::null, 0L);
- if (dlg.exec() != QDialog::Accepted)
+ KServiceSelectDlg dlg(m_item->name(), TQString::null, 0L);
+ if (dlg.exec() != TQDialog::Accepted)
return;
service = dlg.service();
Q_ASSERT(service);
@@ -294,14 +294,14 @@ void KServiceListWidget::editService()
{
// Just like popping up an add dialog except that we
// pass the current command line as a default
- QListBoxItem *selItem = servicesLB->item(selected);
+ TQListBoxItem *selItem = servicesLB->item(selected);
KService::Ptr service = KService::serviceByDesktopPath(
((KServiceListItem*)selItem)->desktopPath );
if (!service)
return;
- QString path = service->desktopEntryPath();
+ TQString path = service->desktopEntryPath();
// If the path to the desktop file is relative, try to get the full
// path from KStdDirs.
@@ -310,7 +310,7 @@ void KServiceListWidget::editService()
serviceURL.setPath( path );
KFileItem item( serviceURL, "application/x-desktop", KFileItem::Unknown );
KPropertiesDialog dlg( &item, this, 0, true /*modal*/, false /*no auto-show*/ );
- if ( dlg.exec() != QDialog::Accepted )
+ if ( dlg.exec() != TQDialog::Accepted )
return;
// Reload service
@@ -349,15 +349,15 @@ void KServiceListWidget::removeService()
if (!m_item) return;
// Here are some strings already so that we don't have to break translations
// later on.
- QString msg1 = i18n("The service <b>%1</b> can not be removed.");
- QString msg2 = i18n("The service is listed here because it has been associated "
+ TQString msg1 = i18n("The service <b>%1</b> can not be removed.");
+ TQString msg2 = i18n("The service is listed here because it has been associated "
"with the <b>%1</b> (%2) file type and files of type "
"<b>%3</b> (%4) are per definition also of type "
"<b>%5</b>.");
- QString msg3 = i18n("Either select the <b>%1</b> file type to remove the "
+ TQString msg3 = i18n("Either select the <b>%1</b> file type to remove the "
"service from there or move the service down "
"to deprecate it.");
- QString msg4 = i18n("Do you want to remove the service from the <b>%1</b> "
+ TQString msg4 = i18n("Do you want to remove the service from the <b>%1</b> "
"file type or from the <b>%2</b> file type?");
int selected = servicesLB->currentItem();
@@ -398,7 +398,7 @@ void KServiceListWidget::updatePreferredServices()
{
if (!m_item)
return;
- QStringList sl;
+ TQStringList sl;
unsigned int count = servicesLB->count();
for (unsigned int i = 0; i < count; i++) {
diff --git a/kcontrol/filetypes/kservicelistwidget.h b/kcontrol/filetypes/kservicelistwidget.h
index fb20d1c64..eb2590781 100644
--- a/kcontrol/filetypes/kservicelistwidget.h
+++ b/kcontrol/filetypes/kservicelistwidget.h
@@ -21,8 +21,8 @@
#ifndef _KSERVICELISTWIDGET_H
#define _KSERVICELISTWIDGET_H
-#include <qgroupbox.h>
-#include <qlistbox.h>
+#include <tqgroupbox.h>
+#include <tqlistbox.h>
class TypesListItem;
class QLineEdit;
class QPushButton;
@@ -33,8 +33,8 @@ class KServiceListItem : public QListBoxText
public:
KServiceListItem( KService *pService, int kind );
bool isImmutable();
- QString desktopPath;
- QString localPath;
+ TQString desktopPath;
+ TQString localPath;
};