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/konqhtml/advancedTabOptions.ui | 22 ++++++++++---------- kcontrol/konqhtml/appearance.cpp | 4 ++-- kcontrol/konqhtml/domainlistview.cpp | 4 ++-- kcontrol/konqhtml/filteropts.cpp | 6 +++--- kcontrol/konqhtml/htmlopts.cpp | 4 ++-- kcontrol/konqhtml/jsopts.cpp | 2 +- kcontrol/konqhtml/jspolicies.cpp | 12 +++++------ kcontrol/konqhtml/nsconfigwidget.ui | 36 ++++++++++++++++----------------- kcontrol/konqhtml/pluginopts.cpp | 18 ++++++++--------- 9 files changed, 54 insertions(+), 54 deletions(-) (limited to 'kcontrol/konqhtml') diff --git a/kcontrol/konqhtml/advancedTabOptions.ui b/kcontrol/konqhtml/advancedTabOptions.ui index 7116bc1ee..5df531f10 100644 --- a/kcontrol/konqhtml/advancedTabOptions.ui +++ b/kcontrol/konqhtml/advancedTabOptions.ui @@ -1,6 +1,6 @@ advancedTabOptions - + advancedTabOptions @@ -19,7 +19,7 @@ 0 - + TextLabel3 @@ -41,7 +41,7 @@ Horizontal - + layout @@ -49,7 +49,7 @@ unnamed - + m_pNewTabsInBackground @@ -60,7 +60,7 @@ This will open a new tab in the background, instead of in the foreground. - + m_pOpenAfterCurrentPage @@ -71,7 +71,7 @@ This will open a new tab opened from a page after the current tab, instead of after the last tab. - + m_pTabConfirm @@ -82,7 +82,7 @@ This will ask you whether you are sure you want to close a window when it has multiple tabs opened in it. - + m_pPermanentCloseButton @@ -93,7 +93,7 @@ This will display close buttons inside each tab instead of websites' icons. - + m_pPopupsWithinTabs @@ -104,7 +104,7 @@ Whether or not JavaScript popups if allowed shall open in a new tab or in a new window. - + m_pTabCloseActivatePrevious @@ -115,7 +115,7 @@ When checking this the previous used or opened tab will be activated when you close the current active tab instead of the one right to the current tab. - + m_pKonquerorTabforExternalURL @@ -138,7 +138,7 @@ Expanding - + 20 0 diff --git a/kcontrol/konqhtml/appearance.cpp b/kcontrol/konqhtml/appearance.cpp index 0c15acebe..8c832e770 100644 --- a/kcontrol/konqhtml/appearance.cpp +++ b/kcontrol/konqhtml/appearance.cpp @@ -40,7 +40,7 @@ KAppearanceOptions::KAppearanceOptions(KConfig *config, TQString group, TQWidget int r = 0; int E = 0, M = 1, W = 3; //CT 3 (instead 2) allows smaller color buttons - TQGroupBox* gb = new TQGroupBox( 1, TQGroupBox::Horizontal, i18n("Font Si&ze"), this ); + TQGroupBox* gb = new TQGroupBox( 1, Qt::Horizontal, i18n("Font Si&ze"), this ); lay->addMultiCellWidget(gb, r, r, E, W); TQWhatsThis::add( gb, i18n("This is the relative font size Konqueror uses to display web sites.") ); @@ -231,7 +231,7 @@ KAppearanceOptions::KAppearanceOptions(KConfig *config, TQString group, TQWidget TQFontDatabase db; - m_families = db.families(); + m_families = db.tqfamilies(); m_pFonts[0]->setFonts( m_families ); m_pFonts[1]->setFonts( m_families ); diff --git a/kcontrol/konqhtml/domainlistview.cpp b/kcontrol/konqhtml/domainlistview.cpp index 29dccb14b..a2c7ceb53 100644 --- a/kcontrol/konqhtml/domainlistview.cpp +++ b/kcontrol/konqhtml/domainlistview.cpp @@ -39,7 +39,7 @@ DomainListView::DomainListView(KConfig *config,const TQString &title, layout()->setSpacing(0); layout()->setMargin(0); TQGridLayout* thisLayout = new TQGridLayout(layout()); - thisLayout->setAlignment(Qt::AlignTop); + thisLayout->tqsetAlignment(Qt::AlignTop); thisLayout->setSpacing(KDialog::spacingHint()); thisLayout->setMargin(KDialog::marginHint()); @@ -163,7 +163,7 @@ void DomainListView::deletePressed() return; } - DomainPolicyMap::Iterator it = domainPolicies.find(index); + DomainPolicyMap::Iterator it = domainPolicies.tqfind(index); if (it != domainPolicies.end()) { delete it.data(); domainPolicies.remove(it); diff --git a/kcontrol/konqhtml/filteropts.cpp b/kcontrol/konqhtml/filteropts.cpp index 79ab4d45a..c7bb2bdbd 100644 --- a/kcontrol/konqhtml/filteropts.cpp +++ b/kcontrol/konqhtml/filteropts.cpp @@ -55,7 +55,7 @@ KCMFilter::KCMFilter(KConfig *config, TQString group, mKillCheck = new TQCheckBox(i18n("Hide filtered images"), this); topLayout->addWidget( mKillCheck ); - TQGroupBox *topBox = new TQGroupBox( 1, Horizontal, i18n("URL Expressions to Filter"), this ); + TQGroupBox *topBox = new TQGroupBox( 1, Qt::Horizontal, i18n("URL Expressions to Filter"), this ); topLayout->addWidget( topBox ); mListBox = new TQListBox( topBox ); @@ -189,7 +189,7 @@ void KCMFilter::importFilters() } } - if (!line.isEmpty() && mListBox->findItem(line, Qt::CaseSensitive|Qt::ExactMatch) == 0) + if (!line.isEmpty() && mListBox->tqfindItem(line, TQt::CaseSensitive|TQt::ExactMatch) == 0) paths.append(line); } f.close(); @@ -267,7 +267,7 @@ void KCMFilter::load( bool useDefaults ) for (int i=0; ilayout(), KDialog::spacingHint() ); + TQVBoxLayout *laygroup = new TQVBoxLayout(bgTabbedBrowsing->tqlayout(), KDialog::spacingHint() ); m_pShowMMBInTabs = new TQCheckBox( i18n( "Open &links in new tab instead of in new window" ), bgTabbedBrowsing ); TQWhatsThis::add( m_pShowMMBInTabs, i18n("This will open a new tab instead of a new window in various situations, " @@ -108,7 +108,7 @@ KMiscHTMLOptions::KMiscHTMLOptions(KConfig *config, TQString group, TQWidget *pa TQVGroupBox *bgMouse = new TQVGroupBox( i18n("Mouse Beha&vior"), this ); m_cbCursor = new TQCheckBox(i18n("Chan&ge cursor over links"), bgMouse ); - TQWhatsThis::add( m_cbCursor, i18n("If this option is set, the shape of the cursor will change " + TQWhatsThis::add( m_cbCursor, i18n("If this option is set, the tqshape of the cursor will change " "(usually to a hand) if it is moved over a hyperlink.") ); connect(m_cbCursor, TQT_SIGNAL(clicked()), TQT_SLOT(slotChanged())); diff --git a/kcontrol/konqhtml/jsopts.cpp b/kcontrol/konqhtml/jsopts.cpp index ae73fc686..e50224f53 100644 --- a/kcontrol/konqhtml/jsopts.cpp +++ b/kcontrol/konqhtml/jsopts.cpp @@ -45,7 +45,7 @@ KJavaScriptOptions::KJavaScriptOptions( KConfig* config, TQString group, TQWidge TQVBoxLayout* toplevel = new TQVBoxLayout( this, 10, 5 ); // the global checkbox - TQGroupBox* globalGB = new TQGroupBox( 2, Vertical, i18n( "Global Settings" ), this ); + TQGroupBox* globalGB = new TQGroupBox( 2, Qt::Vertical, i18n( "Global Settings" ), this ); toplevel->addWidget( globalGB ); enableJavaScriptGloballyCB = new TQCheckBox( i18n( "Ena&ble JavaScript globally" ), globalGB ); diff --git a/kcontrol/konqhtml/jspolicies.cpp b/kcontrol/konqhtml/jspolicies.cpp index 5196af8dd..eeedca18a 100644 --- a/kcontrol/konqhtml/jspolicies.cpp +++ b/kcontrol/konqhtml/jspolicies.cpp @@ -136,7 +136,7 @@ JSPoliciesFrame::JSPoliciesFrame(JSPolicies *policies, const TQString &title, layout()->setSpacing(0); layout()->setMargin(0); TQGridLayout *this_layout = new TQGridLayout(layout(),5,10+is_per_domain*2); - this_layout->setAlignment(Qt::AlignTop); + this_layout->tqsetAlignment(Qt::AlignTop); this_layout->setSpacing(3); this_layout->setMargin(11); @@ -362,19 +362,19 @@ JSPoliciesFrame::~JSPoliciesFrame() { void JSPoliciesFrame::refresh() { TQRadioButton *button; - button = static_cast(js_popup->find( + button = static_cast(js_popup->tqfind( policies->window_open)); if (button != 0) button->setChecked(true); - button = static_cast(js_resize->find( + button = static_cast(js_resize->tqfind( policies->window_resize)); if (button != 0) button->setChecked(true); - button = static_cast(js_move->find( + button = static_cast(js_move->tqfind( policies->window_move)); if (button != 0) button->setChecked(true); - button = static_cast(js_focus->find( + button = static_cast(js_focus->tqfind( policies->window_focus)); if (button != 0) button->setChecked(true); - button = static_cast(js_statusbar->find( + button = static_cast(js_statusbar->tqfind( policies->window_status)); if (button != 0) button->setChecked(true); } diff --git a/kcontrol/konqhtml/nsconfigwidget.ui b/kcontrol/konqhtml/nsconfigwidget.ui index d772595c2..23e4ac881 100644 --- a/kcontrol/konqhtml/nsconfigwidget.ui +++ b/kcontrol/konqhtml/nsconfigwidget.ui @@ -1,7 +1,7 @@ NSConfigWidget Stefan Schimanski <1Stein@gmx.de> - + NSConfigWidget @@ -28,11 +28,11 @@ 6 - + TabWidget2 - + tab @@ -43,7 +43,7 @@ unnamed - + Layout1 @@ -51,7 +51,7 @@ unnamed - + scanButton @@ -72,7 +72,7 @@ Expanding - + 20 20 @@ -81,7 +81,7 @@ - + scanAtStartup @@ -92,11 +92,11 @@ If this option is enabled, KDE will look for new Netscape plugins every time it starts up. This makes it easier for you if you often install new plugins, but it may also slow down KDE startup. You might want to disable this option, especially if you seldom install plugins. - + GroupBox1 - + 300 0 @@ -109,7 +109,7 @@ unnamed - + dirRemove @@ -120,7 +120,7 @@ &Remove - + dirNew @@ -139,7 +139,7 @@ 18 - + dirDown @@ -150,7 +150,7 @@ Do&wn - + dirUp @@ -184,7 +184,7 @@ Expanding - + 20 20 @@ -195,7 +195,7 @@ - + tab @@ -206,7 +206,7 @@ unnamed - + Information @@ -239,7 +239,7 @@ Here you can see a list of the Netscape plugins KDE has found. - + useArtsdsp @@ -264,7 +264,7 @@ - qwidget.h + tqwidget.h kurlrequester.h klineedit.h kpushbutton.h diff --git a/kcontrol/konqhtml/pluginopts.cpp b/kcontrol/konqhtml/pluginopts.cpp index d5cd4cc2b..8640a9991 100644 --- a/kcontrol/konqhtml/pluginopts.cpp +++ b/kcontrol/konqhtml/pluginopts.cpp @@ -61,8 +61,8 @@ KPluginOptions::KPluginOptions( KConfig* config, TQString group, TQWidget *paren enablePluginsGloballyCB = new TQCheckBox( i18n( "&Enable plugins globally" ), globalGB ); enableHTTPOnly = new TQCheckBox( i18n( "Only allow &HTTP and HTTPS URLs for plugins" ), globalGB ); enableUserDemand = new TQCheckBox( i18n( "&Load plugins on demand only" ), globalGB ); - priorityLabel = new TQLabel(i18n("CPU priority for plugins: %1").arg(TQString::null), globalGB); - priority = new TQSlider(5, 100, 5, 100, Horizontal, globalGB); + priorityLabel = new TQLabel(i18n("CPU priority for plugins: %1").arg(TQString()), globalGB); + priority = new TQSlider(5, 100, 5, 100, Qt::Horizontal, globalGB); connect( enablePluginsGloballyCB, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotChanged() ) ); connect( enablePluginsGloballyCB, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotTogglePluginsEnabled() ) ); connect( enableHTTPOnly, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotChanged() ) ); @@ -72,14 +72,14 @@ KPluginOptions::KPluginOptions( KConfig* config, TQString group, TQWidget *paren TQFrame *hrule = new TQFrame(globalGB); hrule->setFrameStyle(TQFrame::HLine | TQFrame::Sunken); - hrule->setSizePolicy(TQSizePolicy::MinimumExpanding,TQSizePolicy::Fixed); + hrule->tqsetSizePolicy(TQSizePolicy::MinimumExpanding,TQSizePolicy::Fixed); /************************************************************************** ********************* Domain-specific Settings *************************** *************************************************************************/ TQPushButton *domainSpecPB = new TQPushButton(i18n("Domain-Specific Settin&gs"), globalGB); - domainSpecPB->setSizePolicy(TQSizePolicy::Fixed,TQSizePolicy::Fixed); + domainSpecPB->tqsetSizePolicy(TQSizePolicy::Fixed,TQSizePolicy::Fixed); connect(domainSpecPB,TQT_SIGNAL(clicked()),TQT_SLOT(slotShowDomainDlg())); domainSpecificDlg = new KDialogBase(KDialogBase::Swallow, @@ -282,7 +282,7 @@ void KPluginOptions::scan() int ret = KMessageBox::warningYesNoCancel( this, i18n("Do you want to apply your changes " "before the scan? Otherwise the " - "changes will be lost."), TQString::null, KStdGuiItem::save(), KStdGuiItem::discard() ); + "changes will be lost."), TQString(), KStdGuiItem::save(), KStdGuiItem::discard() ); if ( ret==KMessageBox::Cancel ) { m_widget->scanButton->setEnabled(true); return; @@ -430,16 +430,16 @@ void KPluginOptions::dirSelect( TQListBoxItem *item ) unsigned cur = m_widget->dirList->index(m_widget->dirList->selectedItem()); m_widget->dirDown->setEnabled( item!=0 && curdirList->count()-1 ); m_widget->dirUp->setEnabled( item!=0 && cur>0 ); - m_widget->dirEdit->setURL( item!=0 ? item->text() : TQString::null ); + m_widget->dirEdit->setURL( item!=0 ? item->text() : TQString() ); } void KPluginOptions::dirNew() { - m_widget->dirList->insertItem( TQString::null, 0 ); + m_widget->dirList->insertItem( TQString(), 0 ); m_widget->dirList->setCurrentItem( 0 ); dirSelect( m_widget->dirList->selectedItem() ); - m_widget->dirEdit->setURL(TQString::null); + m_widget->dirEdit->setURL(TQString()); m_widget->dirEdit->setFocus(); change(); } @@ -447,7 +447,7 @@ void KPluginOptions::dirNew() void KPluginOptions::dirRemove() { - m_widget->dirEdit->setURL(TQString::null); + m_widget->dirEdit->setURL(TQString()); delete m_widget->dirList->selectedItem(); m_widget->dirRemove->setEnabled( false ); m_widget->dirUp->setEnabled( false ); -- cgit v1.2.3