diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
commit | c663b6440964f6ac48027143ac9e63298991f9d0 (patch) | |
tree | 6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /kcontrol/konqhtml/jsopts.cpp | |
parent | a061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff) | |
download | tdebase-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/konqhtml/jsopts.cpp')
-rw-r--r-- | kcontrol/konqhtml/jsopts.cpp | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/kcontrol/konqhtml/jsopts.cpp b/kcontrol/konqhtml/jsopts.cpp index b6522f767..ae73fc686 100644 --- a/kcontrol/konqhtml/jsopts.cpp +++ b/kcontrol/konqhtml/jsopts.cpp @@ -11,9 +11,9 @@ // Big changes to accommodate per-domain settings // (c) Leo Savernik 2002-2003 -#include <qlayout.h> -#include <qwhatsthis.h> -#include <qvgroupbox.h> +#include <tqlayout.h> +#include <tqwhatsthis.h> +#include <tqvgroupbox.h> #include <kconfig.h> #include <klistview.h> #include <kdebug.h> @@ -34,42 +34,42 @@ // == class KJavaScriptOptions ===== -KJavaScriptOptions::KJavaScriptOptions( KConfig* config, QString group, QWidget *parent, +KJavaScriptOptions::KJavaScriptOptions( KConfig* config, TQString group, TQWidget *parent, const char *name ) : KCModule( parent, name ), _removeJavaScriptDomainAdvice(false), m_pConfig( config ), m_groupname( group ), - js_global_policies(config,group,true,QString::null), + js_global_policies(config,group,true,TQString::null), _removeECMADomainSettings(false) { - QVBoxLayout* toplevel = new QVBoxLayout( this, 10, 5 ); + TQVBoxLayout* toplevel = new TQVBoxLayout( this, 10, 5 ); // the global checkbox - QGroupBox* globalGB = new QGroupBox( 2, Vertical, i18n( "Global Settings" ), this ); + TQGroupBox* globalGB = new TQGroupBox( 2, Vertical, i18n( "Global Settings" ), this ); toplevel->addWidget( globalGB ); - enableJavaScriptGloballyCB = new QCheckBox( i18n( "Ena&ble JavaScript globally" ), globalGB ); - QWhatsThis::add( enableJavaScriptGloballyCB, i18n("Enables the execution of scripts written in ECMA-Script " + enableJavaScriptGloballyCB = new TQCheckBox( i18n( "Ena&ble JavaScript globally" ), globalGB ); + TQWhatsThis::add( enableJavaScriptGloballyCB, i18n("Enables the execution of scripts written in ECMA-Script " "(also known as JavaScript) that can be contained in HTML pages. " "Note that, as with any browser, enabling scripting languages can be a security problem.") ); - connect( enableJavaScriptGloballyCB, SIGNAL( clicked() ), SLOT( changed() ) ); - connect( enableJavaScriptGloballyCB, SIGNAL( clicked() ), this, SLOT( slotChangeJSEnabled() ) ); + connect( enableJavaScriptGloballyCB, TQT_SIGNAL( clicked() ), TQT_SLOT( changed() ) ); + connect( enableJavaScriptGloballyCB, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotChangeJSEnabled() ) ); - reportErrorsCB = new QCheckBox( i18n( "Report &errors" ), globalGB ); - QWhatsThis::add( reportErrorsCB, i18n("Enables the reporting of errors that occur when JavaScript " + reportErrorsCB = new TQCheckBox( i18n( "Report &errors" ), globalGB ); + TQWhatsThis::add( reportErrorsCB, i18n("Enables the reporting of errors that occur when JavaScript " "code is executed.") ); - connect( reportErrorsCB, SIGNAL( clicked() ), SLOT( changed() ) ); + connect( reportErrorsCB, TQT_SIGNAL( clicked() ), TQT_SLOT( changed() ) ); - jsDebugWindow = new QCheckBox( i18n( "Enable debu&gger" ), globalGB ); - QWhatsThis::add( jsDebugWindow, i18n( "Enables builtin JavaScript debugger." ) ); - connect( jsDebugWindow, SIGNAL( clicked() ), SLOT( changed() ) ); + jsDebugWindow = new TQCheckBox( i18n( "Enable debu&gger" ), globalGB ); + TQWhatsThis::add( jsDebugWindow, i18n( "Enables builtin JavaScript debugger." ) ); + connect( jsDebugWindow, TQT_SIGNAL( clicked() ), TQT_SLOT( changed() ) ); // the domain-specific listview domainSpecific = new JSDomainListView(m_pConfig,m_groupname,this,this); - connect(domainSpecific,SIGNAL(changed(bool)),SLOT(changed())); + connect(domainSpecific,TQT_SIGNAL(changed(bool)),TQT_SLOT(changed())); toplevel->addWidget( domainSpecific, 2 ); - QWhatsThis::add( domainSpecific, i18n("Here you can set specific JavaScript policies for any particular " + TQWhatsThis::add( domainSpecific, i18n("Here you can set specific JavaScript policies for any particular " "host or domain. To add a new policy, simply click the <i>New...</i> " "button and supply the necessary information requested by the " "dialog box. To change an existing policy, click on the <i>Change...</i> " @@ -79,17 +79,17 @@ KJavaScriptOptions::KJavaScriptOptions( KConfig* config, QString group, QWidget "button allows you to easily share your policies with other people by allowing " "you to save and retrieve them from a zipped file.") ); - QString wtstr = i18n("This box contains the domains and hosts you have set " + TQString wtstr = i18n("This box contains the domains and hosts you have set " "a specific JavaScript policy for. This policy will be used " "instead of the default policy for enabling or disabling JavaScript on pages sent by these " "domains or hosts. <p>Select a policy and use the controls on " "the right to modify it."); - QWhatsThis::add( domainSpecific->listView(), wtstr ); + TQWhatsThis::add( domainSpecific->listView(), wtstr ); - QWhatsThis::add( domainSpecific->importButton(), i18n("Click this button to choose the file that contains " + TQWhatsThis::add( domainSpecific->importButton(), i18n("Click this button to choose the file that contains " "the JavaScript policies. These policies will be merged " "with the existing ones. Duplicate entries are ignored.") ); - QWhatsThis::add( domainSpecific->exportButton(), i18n("Click this button to save the JavaScript policy to a zipped " + TQWhatsThis::add( domainSpecific->exportButton(), i18n("Click this button to save the JavaScript policy to a zipped " "file. The file, named <b>javascript_policy.tgz</b>, will be " "saved to a location of your choice." ) ); @@ -97,7 +97,7 @@ KJavaScriptOptions::KJavaScriptOptions( KConfig* config, QString group, QWidget js_policies_frame = new JSPoliciesFrame(&js_global_policies, i18n("Global JavaScript Policies"),this); toplevel->addWidget(js_policies_frame); - connect(js_policies_frame, SIGNAL(changed()), SLOT(changed())); + connect(js_policies_frame, TQT_SIGNAL(changed()), TQT_SLOT(changed())); // Finally do the loading load(); @@ -165,8 +165,8 @@ void KJavaScriptOptions::slotChangeJSEnabled() { // == class JSDomainListView ===== -JSDomainListView::JSDomainListView(KConfig *config,const QString &group, - KJavaScriptOptions *options, QWidget *parent,const char *name) +JSDomainListView::JSDomainListView(KConfig *config,const TQString &group, + KJavaScriptOptions *options, TQWidget *parent,const char *name) : DomainListView(config,i18n( "Do&main-Specific" ), parent, name), group(group), options(options) { } @@ -174,20 +174,20 @@ JSDomainListView::JSDomainListView(KConfig *config,const QString &group, JSDomainListView::~JSDomainListView() { } -void JSDomainListView::updateDomainListLegacy(const QStringList &domainConfig) +void JSDomainListView::updateDomainListLegacy(const TQStringList &domainConfig) { domainSpecificLV->clear(); JSPolicies pol(config,group,false); pol.defaults(); - for (QStringList::ConstIterator it = domainConfig.begin(); + for (TQStringList::ConstIterator it = domainConfig.begin(); it != domainConfig.end(); ++it) { - QString domain; + TQString domain; KHTMLSettings::KJavaScriptAdvice javaAdvice; KHTMLSettings::KJavaScriptAdvice javaScriptAdvice; KHTMLSettings::splitDomainAdvice(*it, domain, javaAdvice, javaScriptAdvice); if (javaScriptAdvice != KHTMLSettings::KJavaScriptDunno) { - QListViewItem *index = - new QListViewItem( domainSpecificLV, domain, + TQListViewItem *index = + new TQListViewItem( domainSpecificLV, domain, i18n(KHTMLSettings::adviceToStr(javaScriptAdvice)) ); pol.setDomain(domain); @@ -200,7 +200,7 @@ void JSDomainListView::updateDomainListLegacy(const QStringList &domainConfig) void JSDomainListView::setupPolicyDlg(PushButton trigger,PolicyDialog &pDlg, Policies *pol) { JSPolicies *jspol = static_cast<JSPolicies *>(pol); - QString caption; + TQString caption; switch (trigger) { case AddButton: caption = i18n( "New JavaScript Policy" ); |