From 8155225c9be993acc0512956416d195edfef4eb9 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 19 Jan 2011 01:42:14 +0000 Subject: Enable compilation with TQt for Qt4 3.4.0 TP2 This should not break compatibility with TQt for Qt3; if it does please fix it ASAP! git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1215552 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kcontrol/componentchooser/browserconfig_ui.ui | 20 +++++++------- kcontrol/componentchooser/componentchooser.cpp | 32 +++++++++++----------- kcontrol/componentchooser/componentchooser_ui.ui | 12 ++++---- kcontrol/componentchooser/componentconfig_ui.ui | 8 +++--- kcontrol/componentchooser/emailclientconfig_ui.ui | 24 ++++++++-------- .../componentchooser/terminalemulatorconfig_ui.ui | 20 +++++++------- 6 files changed, 58 insertions(+), 58 deletions(-) (limited to 'kcontrol/componentchooser') diff --git a/kcontrol/componentchooser/browserconfig_ui.ui b/kcontrol/componentchooser/browserconfig_ui.ui index 886724970..84fed5cfc 100644 --- a/kcontrol/componentchooser/browserconfig_ui.ui +++ b/kcontrol/componentchooser/browserconfig_ui.ui @@ -1,6 +1,6 @@ BrowserConfig_UI - + BrowserConfig_UI @@ -27,7 +27,7 @@ 0 - + buttonGroup1 @@ -41,7 +41,7 @@ unnamed - + label @@ -49,7 +49,7 @@ <qt>Open <b>http</b> and <b>https</b> URLs</qt> - + radioKIO @@ -60,7 +60,7 @@ true - + radioExec @@ -68,7 +68,7 @@ in the following browser: - + layout3 @@ -86,14 +86,14 @@ Fixed - + 20 20 - + lineExec @@ -101,7 +101,7 @@ false - + btnSelectBrowser @@ -134,7 +134,7 @@ Expanding - + 20 20 diff --git a/kcontrol/componentchooser/componentchooser.cpp b/kcontrol/componentchooser/componentchooser.cpp index 88fdeb165..abe1e5c74 100644 --- a/kcontrol/componentchooser/componentchooser.cpp +++ b/kcontrol/componentchooser/componentchooser.cpp @@ -38,7 +38,7 @@ #include #include -class MyListBoxItem: public QListBoxText +class MyListBoxItem: public TQListBoxText { public: MyListBoxItem(const TQString& text, const TQString &file):TQListBoxText(text),File(file){} @@ -147,7 +147,7 @@ void CfgEmailClient::load(KConfig *) kmailCB->setChecked(useKMail); otherCB->setChecked(!useKMail); txtEMailClient->setText(emailClient); - txtEMailClient->setFixedHeight(txtEMailClient->sizeHint().height()); + txtEMailClient->setFixedHeight(txtEMailClient->tqsizeHint().height()); chkRunTerminal->setChecked((pSettings->getSetting(KEMailSettings::ClientTerminal) == "true")); emit changed(false); @@ -169,9 +169,9 @@ void CfgEmailClient::selectEmailClient() TQString client = dlg.text(); // get the preferred Terminal Application - KConfigGroup confGroup( KGlobal::config(), TQString::fromLatin1("General") ); - TQString preferredTerminal = confGroup.readPathEntry("TerminalApplication", TQString::fromLatin1("konsole")); - preferredTerminal += TQString::fromLatin1(" -e "); + KConfigGroup confGroup( KGlobal::config(), TQString::tqfromLatin1("General") ); + TQString preferredTerminal = confGroup.readPathEntry("TerminalApplication", TQString::tqfromLatin1("konsole")); + preferredTerminal += TQString::tqfromLatin1(" -e "); int len = preferredTerminal.length(); bool b = client.left(len) == preferredTerminal; @@ -393,7 +393,7 @@ ComponentChooser::ComponentChooser(TQWidget *parent, const char *name): ServiceChooser->insertItem(new MyListBoxItem(cfg.readEntry("Name",i18n("Unknown")),(*it))); } - ServiceChooser->setFixedWidth(ServiceChooser->sizeHint().width()); + ServiceChooser->setFixedWidth(ServiceChooser->tqsizeHint().width()); ServiceChooser->sort(); connect(ServiceChooser,TQT_SIGNAL(highlighted(TQListBoxItem*)),this,TQT_SLOT(slotServiceSelected(TQListBoxItem*))); ServiceChooser->setSelected(0,true); @@ -410,14 +410,14 @@ void ComponentChooser::slotServiceSelected(TQListBoxItem* it) { KSimpleConfig cfg(static_cast(it)->File); ComponentDescription->setText(cfg.readEntry("Comment",i18n("No description available"))); - ComponentDescription->setMinimumSize(ComponentDescription->sizeHint()); + ComponentDescription->setMinimumSize(ComponentDescription->tqsizeHint()); TQString cfgType=cfg.readEntry("configurationType"); TQWidget *newConfigWidget = 0; if (cfgType.isEmpty() || (cfgType=="component")) { - if (!(configWidget && configWidget->qt_cast("CfgComponent"))) + if (!(configWidget && configWidget->tqqt_cast("CfgComponent"))) { CfgComponent* cfgcomp = new CfgComponent(configContainer); cfgcomp->ChooserDocu->setText(i18n("Choose from the list below which component should be used by default for the %1 service.").arg(it->text())); @@ -430,7 +430,7 @@ void ComponentChooser::slotServiceSelected(TQListBoxItem* it) { } else if (cfgType=="internal_email") { - if (!(configWidget && configWidget->qt_cast("CfgEmailClient"))) + if (!(configWidget && configWidget->tqqt_cast("CfgEmailClient"))) { newConfigWidget = new CfgEmailClient(configContainer); } @@ -438,7 +438,7 @@ void ComponentChooser::slotServiceSelected(TQListBoxItem* it) { } else if (cfgType=="internal_terminal") { - if (!(configWidget && configWidget->qt_cast("CfgTerminalEmulator"))) + if (!(configWidget && configWidget->tqqt_cast("CfgTerminalEmulator"))) { newConfigWidget = new CfgTerminalEmulator(configContainer); } @@ -446,7 +446,7 @@ void ComponentChooser::slotServiceSelected(TQListBoxItem* it) { } else if (cfgType=="internal_browser") { - if (!(configWidget && configWidget->qt_cast("CfgBrowser"))) + if (!(configWidget && configWidget->tqqt_cast("CfgBrowser"))) { newConfigWidget = new CfgBrowser(configContainer); } @@ -461,11 +461,11 @@ void ComponentChooser::slotServiceSelected(TQListBoxItem* it) { delete configWidget; configWidget=newConfigWidget; connect(configWidget,TQT_SIGNAL(changed(bool)),this,TQT_SLOT(emitChanged(bool))); - configContainer->setMinimumSize(configWidget->sizeHint()); + configContainer->setMinimumSize(configWidget->tqsizeHint()); } if (configWidget) - static_cast(configWidget->qt_cast("CfgPlugin"))->load(&cfg); + static_cast(configWidget->tqqt_cast("CfgPlugin"))->load(&cfg); emitChanged(false); latestEditedService=static_cast(it)->File; @@ -487,7 +487,7 @@ void ComponentChooser::load() { if( configWidget ) { CfgPlugin * plugin = static_cast( - configWidget->qt_cast( "CfgPlugin" ) ); + configWidget->tqqt_cast( "CfgPlugin" ) ); if( plugin ) { KSimpleConfig cfg(latestEditedService); @@ -500,7 +500,7 @@ void ComponentChooser::save() { if( configWidget ) { CfgPlugin * plugin = static_cast( - configWidget->qt_cast( "CfgPlugin" ) ); + configWidget->tqqt_cast( "CfgPlugin" ) ); if( plugin ) { KSimpleConfig cfg(latestEditedService); @@ -512,7 +512,7 @@ void ComponentChooser::save() { void ComponentChooser::restoreDefault() { if (configWidget) { - static_cast(configWidget->qt_cast("CfgPlugin"))->defaults(); + static_cast(configWidget->tqqt_cast("CfgPlugin"))->defaults(); emitChanged(true); } diff --git a/kcontrol/componentchooser/componentchooser_ui.ui b/kcontrol/componentchooser/componentchooser_ui.ui index ed1ed7f7b..8af26fab9 100644 --- a/kcontrol/componentchooser/componentchooser_ui.ui +++ b/kcontrol/componentchooser/componentchooser_ui.ui @@ -1,6 +1,6 @@ ComponentChooser_UI - + ComponentChooser_UI @@ -27,7 +27,7 @@ 0 - + GroupBox1 @@ -52,14 +52,14 @@ 11 - + configContainer - + GroupBox2 @@ -84,14 +84,14 @@ 11 - + ComponentDescription - + WordBreak|AlignTop diff --git a/kcontrol/componentchooser/componentconfig_ui.ui b/kcontrol/componentchooser/componentconfig_ui.ui index d6a7bba87..a988335a9 100644 --- a/kcontrol/componentchooser/componentconfig_ui.ui +++ b/kcontrol/componentchooser/componentconfig_ui.ui @@ -1,6 +1,6 @@ ComponentConfig_UI - + ComponentConfig_UI @@ -19,14 +19,14 @@ 0 - + ChooserDocu - + WordBreak|AlignVCenter @@ -45,7 +45,7 @@ Expanding - + 0 91 diff --git a/kcontrol/componentchooser/emailclientconfig_ui.ui b/kcontrol/componentchooser/emailclientconfig_ui.ui index d4cb44085..2cae19a55 100644 --- a/kcontrol/componentchooser/emailclientconfig_ui.ui +++ b/kcontrol/componentchooser/emailclientconfig_ui.ui @@ -1,6 +1,6 @@ EmailClientConfig_UI - + EmailClientConfig_UI @@ -30,7 +30,7 @@ 0 - + ButtonGroup2 @@ -50,7 +50,7 @@ 0 - + Layout4 @@ -58,7 +58,7 @@ unnamed - + txtEMailClient @@ -73,7 +73,7 @@ 0 - + 0 0 @@ -86,7 +86,7 @@ Press this button to select your favorite email client. Please note that the file you select has to have the executable attribute set in order to be accepted.<br> You can also use several placeholders which will be replaced with the actual values when the email client is called:<ul> <li>%t: Recipient's address</li> <li>%s: Subject</li> <li>%c: Carbon Copy (CC)</li> <li>%b: Blind Carbon Copy (BCC)</li> <li>%B: Template body text</li> <li>%A: Attachment </li> </ul> - + btnSelectEmail @@ -102,7 +102,7 @@ - + chkRunTerminal @@ -126,14 +126,14 @@ Expanding - + 0 16 - + kmailCB @@ -144,7 +144,7 @@ Kmail is the standard Mail program for the KDE desktop. - + otherCB @@ -165,7 +165,7 @@ Fixed - + 30 16 @@ -182,7 +182,7 @@ Fixed - + 30 16 diff --git a/kcontrol/componentchooser/terminalemulatorconfig_ui.ui b/kcontrol/componentchooser/terminalemulatorconfig_ui.ui index 7d355fdd8..91d11f64b 100644 --- a/kcontrol/componentchooser/terminalemulatorconfig_ui.ui +++ b/kcontrol/componentchooser/terminalemulatorconfig_ui.ui @@ -1,6 +1,6 @@ TerminalEmulatorConfig_UI - + TerminalEmulatorConfig_UI @@ -27,7 +27,7 @@ 0 - + ButtonGroup1 @@ -57,14 +57,14 @@ Expanding - + 0 87 - + otherCB @@ -82,14 +82,14 @@ Fixed - + 31 20 - + terminalCB @@ -97,7 +97,7 @@ &Use Konsole as terminal application - + Layout4 @@ -105,7 +105,7 @@ unnamed - + terminalLE @@ -120,7 +120,7 @@ 0 - + 0 0 @@ -130,7 +130,7 @@ Press this button to select your favorite terminal client. Please note that the file you select has to have the executable attribute set in order to be accepted.<br> Also note that some programs that utilize Terminal Emulator will not work if you add command line arguments (Example: konsole -ls). - + btnSelectTerminal -- cgit v1.2.1