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 --- kpersonalizer/kcountrypage.cpp | 36 ++++++++++++++++++------------------ kpersonalizer/kcountrypagedlg.ui | 26 +++++++++++++------------- kpersonalizer/keyecandypage.cpp | 14 +++++++------- kpersonalizer/keyecandypagedlg.ui | 28 ++++++++++++++-------------- kpersonalizer/kfindlanguage.cpp | 28 ++++++++++++++-------------- kpersonalizer/kospage.cpp | 2 +- kpersonalizer/kospage.h | 2 +- kpersonalizer/kospagedlg.ui | 32 ++++++++++++++++---------------- kpersonalizer/kpersonalizer.cpp | 10 +++++----- kpersonalizer/krefinepagedlg.ui | 36 ++++++++++++++++++------------------ kpersonalizer/kstylepage.cpp | 14 +++++++------- kpersonalizer/kstylepagedlg.ui | 12 ++++++------ kpersonalizer/ksysinfo.cpp | 32 ++++++++++++++++---------------- kpersonalizer/stylepreview.ui | 36 ++++++++++++++++++------------------ kpersonalizer/stylepreview.ui.h | 2 +- 15 files changed, 155 insertions(+), 155 deletions(-) (limited to 'kpersonalizer') diff --git a/kpersonalizer/kcountrypage.cpp b/kpersonalizer/kcountrypage.cpp index 4e30c7363..d7e286c15 100644 --- a/kpersonalizer/kcountrypage.cpp +++ b/kpersonalizer/kcountrypage.cpp @@ -76,7 +76,7 @@ KCountryPage::~KCountryPage(){ void KCountryPage::loadCountryList(KLanguageButton *combo) { - TQString sub = TQString::fromLatin1("l10n/"); + TQString sub = TQString::tqfromLatin1("l10n/"); // clear the list combo->clear(); @@ -86,17 +86,17 @@ void KCountryPage::loadCountryList(KLanguageButton *combo) { for ( TQStringList::ConstIterator it = regionfiles.begin(); it != regionfiles.end(); ++it ) { KSimpleConfig entry(*it); - entry.setGroup(TQString::fromLatin1("KCM Locale")); - TQString name = entry.readEntry(TQString::fromLatin1("Name"), i18n("without name")); + entry.setGroup(TQString::tqfromLatin1("KCM Locale")); + TQString name = entry.readEntry(TQString::tqfromLatin1("Name"), i18n("without name")); TQString tag = *it; int index; - index = tag.findRev('/'); + index = tag.tqfindRev('/'); if (index != -1) tag = tag.mid(index + 1); - index = tag.findRev('.'); + index = tag.tqfindRev('.'); if (index != -1) tag.truncate(index); @@ -113,17 +113,17 @@ void KCountryPage::loadCountryList(KLanguageButton *combo) { for ( TQStringList::ConstIterator it = countrylist.begin(); it != countrylist.end(); ++it ) { KSimpleConfig entry(*it); - entry.setGroup(TQString::fromLatin1("KCM Locale")); - TQString name = entry.readEntry(TQString::fromLatin1("Name"), i18n("without name")); + entry.setGroup(TQString::tqfromLatin1("KCM Locale")); + TQString name = entry.readEntry(TQString::tqfromLatin1("Name"), i18n("without name")); TQString submenu = '-' + entry.readEntry("Region"); TQString tag = *it; - int index = tag.findRev('/'); + int index = tag.tqfindRev('/'); tag.truncate(index); - index = tag.findRev('/'); + index = tag.tqfindRev('/'); tag = tag.mid(index+1); - TQPixmap flag( locate( "locale", TQString::fromLatin1("l10n/%1/flag.png").arg(tag) ) ); + TQPixmap flag( locate( "locale", TQString::tqfromLatin1("l10n/%1/flag.png").arg(tag) ) ); TQIconSet icon( flag ); combo->insertItem( icon, name, tag, submenu ); } @@ -138,7 +138,7 @@ void KCountryPage::fillLanguageMenu(KLanguageButton *combo) { for ( it = langlist.begin(); it != langlist.end(); ++it ) { if ((*it).isNull()) { combo->insertSeparator(); - submenu = TQString::fromLatin1("all"); + submenu = TQString::tqfromLatin1("all"); combo->insertSubmenu(i18n("All"), submenu, TQString::null); continue; } @@ -151,9 +151,9 @@ bool KCountryPage::save(KLanguageButton *comboCountry, KLanguageButton *comboLan kdDebug() << "KCountryPage::save()" << endl; KConfigBase *config = KGlobal::config(); - config->setGroup(TQString::fromLatin1("Locale")); - config->writeEntry(TQString::fromLatin1("Country"), comboCountry->current(), true, true); - config->writeEntry(TQString::fromLatin1("Language"), comboLang->current(), true, true); + config->setGroup(TQString::tqfromLatin1("Locale")); + config->writeEntry(TQString::tqfromLatin1("Country"), comboCountry->current(), true, true); + config->writeEntry(TQString::tqfromLatin1("Language"), comboLang->current(), true, true); config->sync(); // only make the system reload the language, if the selected one deferes from the old saved one. @@ -167,7 +167,7 @@ bool KCountryPage::save(KLanguageButton *comboCountry, KLanguageButton *comboLan kapp->dcopClient()->attach(); // ksycoca needs to be rebuilt KProcess proc; - proc << TQString::fromLatin1("kbuildsycoca"); + proc << TQString::tqfromLatin1("kbuildsycoca"); proc.start(KProcess::DontCare); kdDebug() << "KLocaleConfig::save : sending signal to kdesktop" << endl; // inform kicker and kdeskop about the new language @@ -182,10 +182,10 @@ bool KCountryPage::save(KLanguageButton *comboCountry, KLanguageButton *comboLan void KCountryPage::setLangForCountry(const TQString &country) { KSimpleConfig ent(locate("locale", "l10n/" + country + "/entry.desktop"), true); - ent.setGroup(TQString::fromLatin1("KCM Locale")); - langs = ent.readListEntry(TQString::fromLatin1("Languages")); + ent.setGroup(TQString::tqfromLatin1("KCM Locale")); + langs = ent.readListEntry(TQString::tqfromLatin1("Languages")); - TQString lang = TQString::fromLatin1("en_US"); + TQString lang = TQString::tqfromLatin1("en_US"); // use the first INSTALLED langauge in the list, or default to C for ( TQStringList::Iterator it = langs.begin(); it != langs.end(); ++it ) { if (cb_language->contains(*it)) { diff --git a/kpersonalizer/kcountrypagedlg.ui b/kpersonalizer/kcountrypagedlg.ui index 72ab5f5cd..168c0d014 100644 --- a/kpersonalizer/kcountrypagedlg.ui +++ b/kpersonalizer/kcountrypagedlg.ui @@ -1,6 +1,6 @@ KCountryPageDlg - + KCountryPageDlg @@ -16,7 +16,7 @@ unnamed - + Layout6 @@ -36,7 +36,7 @@ 0 - + 150 0 @@ -56,7 +56,7 @@ - + TextLabel10_2 @@ -64,7 +64,7 @@ Please choose your language: - + TextLabel6 @@ -84,7 +84,7 @@ RichText - + WordBreak|AlignTop|AlignLeft @@ -92,7 +92,7 @@ - + txt_welcome @@ -100,7 +100,7 @@ <h3>Welcome to Trinity %VERSION%!</h3> - + Layout6_2 @@ -120,7 +120,7 @@ 0 - + 150 0 @@ -140,7 +140,7 @@ - + TextLabel10 @@ -148,7 +148,7 @@ Please choose your country: - + px_introSidebar @@ -160,7 +160,7 @@ 0 - + 170 430 @@ -189,7 +189,7 @@ Fixed - + 20 30 diff --git a/kpersonalizer/keyecandypage.cpp b/kpersonalizer/keyecandypage.cpp index bb76455b4..ca9846cc3 100644 --- a/kpersonalizer/keyecandypage.cpp +++ b/kpersonalizer/keyecandypage.cpp @@ -623,13 +623,13 @@ void KEyeCandyPage::save(bool currSettings){ kdesktopconf->sync(); KGlobal::config()->sync(); // restart kwin for window effects - kapp->dcopClient()->send("knotify", "Notify", "reconfigure()", ""); - kapp->dcopClient()->send("kwin*", "", "reconfigure()", ""); + kapp->dcopClient()->send("knotify", "Notify", "reconfigure()", TQString("")); + kapp->dcopClient()->send("kwin*", "", "reconfigure()", TQString("")); // set the display options (style effects) KIPC::sendMessageAll(KIPC::SettingsChanged); TQApplication::syncX(); // kicker stuff: Iconzooming etc. - kapp->dcopClient()->send( "kicker", "Panel", "configure()", "" ); + kapp->dcopClient()->send( "kicker", "Panel", "configure()", TQString("") ); // Icon stuff for (int i=0; idcopClient()->send( "konqueror*", "KonquerorIface", "reparseConfiguration()", "" ); - kapp->dcopClient()->send( "kdesktop", "KDesktopIface", "configure()", "" ); - kapp->dcopClient()->send( "kdesktop", "KBackgroundIface", "configure()", "" ); - kapp->dcopClient()->send( "kdesktop", "KDesktopIface", "lineupIcons()", "" ); + kapp->dcopClient()->send( "konqueror*", "KonquerorIface", "reparseConfiguration()", TQString("") ); + kapp->dcopClient()->send( "kdesktop", "KDesktopIface", "configure()", TQString("") ); + kapp->dcopClient()->send( "kdesktop", "KBackgroundIface", "configure()", TQString("") ); + kapp->dcopClient()->send( "kdesktop", "KDesktopIface", "lineupIcons()", TQString("") ); } void KEyeCandyPage::slotEyeCandyShowDetails(bool details){ diff --git a/kpersonalizer/keyecandypagedlg.ui b/kpersonalizer/keyecandypagedlg.ui index 4f94df4ed..81baf5c80 100644 --- a/kpersonalizer/keyecandypagedlg.ui +++ b/kpersonalizer/keyecandypagedlg.ui @@ -1,6 +1,6 @@ KEyeCandyPageDlg - + KEyeCandyPageDlg @@ -16,7 +16,7 @@ unnamed - + px_eyecandySidebar @@ -28,7 +28,7 @@ 0 - + 170 430 @@ -47,7 +47,7 @@ 0 - + TextLabel8 @@ -63,7 +63,7 @@ <P>Trinity offers many visually appealing special effects, such as smoothed fonts, previews in the file manager and animated menus. All this beauty, however, comes at a small performance cost. </P> If you have a fast, new processor, you might want to turn them all on, but for those of us with slower processors, starting off with less eye candy helps to keep your desktop more responsive. - + WordBreak|AlignTop|AlignLeft @@ -71,7 +71,7 @@ If you have a fast, new processor, you might want to turn them all on, but for t - + Layout8 @@ -79,7 +79,7 @@ If you have a fast, new processor, you might want to turn them all on, but for t unnamed - + TextLabel3_2 @@ -98,7 +98,7 @@ If you have a fast, new processor, you might want to turn them all on, but for t PlainText - + AlignCenter @@ -120,7 +120,7 @@ If you have a fast, new processor, you might want to turn them all on, but for t Expanding - + Fast_2 @@ -136,7 +136,7 @@ If you have a fast, new processor, you might want to turn them all on, but for t Fast Processor (more effects) - + AlignCenter @@ -147,7 +147,7 @@ If you have a fast, new processor, you might want to turn them all on, but for t - + sld_effects @@ -167,7 +167,7 @@ If you have a fast, new processor, you might want to turn them all on, but for t Right - + Layout7 @@ -175,7 +175,7 @@ If you have a fast, new processor, you might want to turn them all on, but for t unnamed - + btn_detail @@ -222,7 +222,7 @@ If you have a fast, new processor, you might want to turn them all on, but for t 0 - + 0 120 diff --git a/kpersonalizer/kfindlanguage.cpp b/kpersonalizer/kfindlanguage.cpp index a23f98322..61e2b1935 100644 --- a/kpersonalizer/kfindlanguage.cpp +++ b/kpersonalizer/kfindlanguage.cpp @@ -34,19 +34,19 @@ KFindLanguage::KFindLanguage() { m_oldlang = config->readEntry("Language"); m_oldlang = m_oldlang.lower(); - m_oldlang = m_oldlang.left(m_oldlang.find(':')); // only use the first lang + m_oldlang = m_oldlang.left(m_oldlang.tqfind(':')); // only use the first lang m_country = config->readEntry("Country", "C"); if (m_country == "C") { - m_country = TQString::fromLatin1(getenv("LANG")); + m_country = TQString::tqfromLatin1(getenv("LANG")); if(m_country.left(5) == "nn_NO") // glibc's nn_NO is KDE's no_NY m_country = "no"; - if(m_country.contains("_")) - m_country = m_country.mid(m_country.find("_")+1); - if(m_country.contains(".")) - m_country = m_country.left(m_country.find(".")); - if(m_country.contains("@")) - m_country = m_country.left(m_country.find("@")); + if(m_country.tqcontains("_")) + m_country = m_country.mid(m_country.tqfind("_")+1); + if(m_country.tqcontains(".")) + m_country = m_country.left(m_country.tqfind(".")); + if(m_country.tqcontains("@")) + m_country = m_country.left(m_country.tqfind("@")); if(m_country != "C") m_country = m_country.lower(); if(m_country == "en") // special-case "en" - should be "en_GB" or "en_US", but plain "en" is in use quite often @@ -54,7 +54,7 @@ KFindLanguage::KFindLanguage() { } // get the users primary Languages - KSimpleConfig ent(locate("locale", TQString::fromLatin1("l10n/%1/entry.desktop").arg(m_country)), true); + KSimpleConfig ent(locate("locale", TQString::tqfromLatin1("l10n/%1/entry.desktop").arg(m_country)), true); ent.setGroup("KCM Locale"); TQStringList langs = ent.readListEntry("Languages"); if (langs.isEmpty()) @@ -82,9 +82,9 @@ KFindLanguage::KFindLanguage() { TQString name = entry.readEntry("Name", i18n("without name")); TQString tag = *it; - int index = tag.findRev('/'); + int index = tag.tqfindRev('/'); tag = tag.left(index); - index = tag.findRev('/'); + index = tag.tqfindRev('/'); tag = tag.mid(index+1); m_langlist << tag; @@ -96,7 +96,7 @@ KFindLanguage::KFindLanguage() { if (m_oldlang.isEmpty()) { compare = langs.first(); for(TQStringList::Iterator it = langs.begin(); it != langs.end(); ++it) { - if (*it == TQString::fromLatin1(getenv("LANG")).mid(3, 2).lower()) + if (*it == TQString::tqfromLatin1(getenv("LANG")).mid(3, 2).lower()) compare = *it; } } @@ -109,10 +109,10 @@ KFindLanguage::KFindLanguage() { TQStringList::ConstIterator it; for( it = m_langlist.begin(); it != m_langlist.end(); ++it) { int match=0; - TQString l = (*it).left((*it).find(";")); + TQString l = (*it).left((*it).tqfind(";")); if (l == "C") match++; - if(l.contains(compare)) + if(l.tqcontains(compare)) match+=2; if(l.left(compare.length()) == compare) match+=10; diff --git a/kpersonalizer/kospage.cpp b/kpersonalizer/kospage.cpp index 3d92f2f4e..7706331fb 100644 --- a/kpersonalizer/kospage.cpp +++ b/kpersonalizer/kospage.cpp @@ -93,7 +93,7 @@ void KOSPage::save(bool currSettings){ kapp->dcopClient()->send("kdesktop", "KDesktopIface", "configure()", TQByteArray()); /////////////////////////////////////////// /// restart kwin for window effects - kapp->dcopClient()->send("kwin*", "", "reconfigure()", ""); + kapp->dcopClient()->send("kwin*", "", "reconfigure()", TQString("")); /////////////////////////////////////////// // Make the kaccess daemon read the changed config file diff --git a/kpersonalizer/kospage.h b/kpersonalizer/kospage.h index b28719dc1..69bd2d959 100644 --- a/kpersonalizer/kospage.h +++ b/kpersonalizer/kospage.h @@ -64,7 +64,7 @@ private: // DEFAULT VALUES SET BY USER bool b_Gestures, b_MacMenuBar, b_SingleClick, b_BusyCursor, b_ShowMenuBar, b_DesktopUnderline, b_KonqUnderline, b_ChangeCursor, b_syncClipboards; - QString s_TitlebarDCC, s_FocusPolicy, s_AltTabStyle, s_MMB, + TQString s_TitlebarDCC, s_FocusPolicy, s_AltTabStyle, s_MMB, s_TitlebarMMB, s_TitlebarRMB; TQMap map_AppUserKeys, map_GlobalUserKeys; // DEFAULT VALLUES SET BY USER (END) diff --git a/kpersonalizer/kospagedlg.ui b/kpersonalizer/kospagedlg.ui index e4c5fd4b3..1419a11bc 100644 --- a/kpersonalizer/kospagedlg.ui +++ b/kpersonalizer/kospagedlg.ui @@ -1,6 +1,6 @@ KOSPageDlg - + KOSPageDlg @@ -16,12 +16,12 @@ unnamed - + textview_ospage - + px_osSidebar @@ -33,7 +33,7 @@ 0 - + 170 430 @@ -52,7 +52,7 @@ 0 - + TextLabel9 @@ -60,7 +60,7 @@ Description: - + bg_ospage @@ -71,7 +71,7 @@ unnamed - + rb_kde @@ -82,7 +82,7 @@ true - + rb_unix @@ -90,7 +90,7 @@ UNIX (R) - + rb_windows @@ -98,7 +98,7 @@ Microsoft Windows (R) - + rb_mac @@ -108,7 +108,7 @@ - + TextLabel1 @@ -136,7 +136,7 @@ Trinity allows you to customize its behavior according to your needs. Fixed - + 22 10 @@ -153,25 +153,25 @@ Trinity allows you to customize its behavior according to your needs. Fixed - + 22 16 - + TextLabel2 For motion impaired users, Trinity provides keyboard gestures to activate special keyboard settings. - + WordBreak|AlignVCenter - + cb_gestures diff --git a/kpersonalizer/kpersonalizer.cpp b/kpersonalizer/kpersonalizer.cpp index e28848cc0..71349d2e9 100644 --- a/kpersonalizer/kpersonalizer.cpp +++ b/kpersonalizer/kpersonalizer.cpp @@ -232,11 +232,11 @@ void KPersonalizer::setBeforeSession(){ /** there seems to be a bug in TQWizard, that makes this evil hack necessary */ void KPersonalizer::setPosition() { - TQSize hint = countrypage->sizeHint(); - TQSize os_size = ospage->sizeHint(); - TQSize candy_size = eyecandy->sizeHint(); - TQSize style_size = stylepage->sizeHint(); - TQSize refine_size = refinepage->sizeHint(); + TQSize hint = countrypage->tqsizeHint(); + TQSize os_size = ospage->tqsizeHint(); + TQSize candy_size = eyecandy->tqsizeHint(); + TQSize style_size = stylepage->tqsizeHint(); + TQSize refine_size = refinepage->tqsizeHint(); // get the width of the broadest child-widget if ( hint.width() < os_size.width() ) diff --git a/kpersonalizer/krefinepagedlg.ui b/kpersonalizer/krefinepagedlg.ui index 8d5b58357..a13e3364b 100644 --- a/kpersonalizer/krefinepagedlg.ui +++ b/kpersonalizer/krefinepagedlg.ui @@ -1,6 +1,6 @@ KRefinePageDlg - + KRefinePageDlg @@ -16,7 +16,7 @@ unnamed - + TextLabel11 @@ -32,13 +32,13 @@ <h3>Finished</h3> <p>After closing this dialog you can always restart this Wizard by choosing the entry <b>Desktop Settings Wizard</b> from the Settings menu.</p> - + WordBreak|AlignVCenter|AlignLeft - + Frame3 @@ -52,7 +52,7 @@ unnamed - + px_kcontrol @@ -65,7 +65,7 @@ - + TextLabel1 @@ -80,13 +80,13 @@ You can refine the settings you made by starting the Trinity Control Center by choosing the entry <b>Control Center</b> in the K menu. - + WordBreak|AlignTop|AlignLeft - + px_finishSidebar @@ -98,7 +98,7 @@ 0 - + 170 430 @@ -117,7 +117,7 @@ 0 - + lb_kcontrol @@ -132,7 +132,7 @@ You can also start the Trinity Control Center using the button below. - + WordBreak|AlignCenter @@ -146,7 +146,7 @@ Fixed - + 30 16 @@ -163,14 +163,14 @@ Fixed - + 20 16 - + Layout5 @@ -188,14 +188,14 @@ Expanding - + 20 20 - + pb_kcontrol @@ -213,7 +213,7 @@ Expanding - + 20 20 @@ -232,7 +232,7 @@ Expanding - + 20 20 diff --git a/kpersonalizer/kstylepage.cpp b/kpersonalizer/kstylepage.cpp index 1323d94fe..04f6e49da 100644 --- a/kpersonalizer/kstylepage.cpp +++ b/kpersonalizer/kstylepage.cpp @@ -238,7 +238,7 @@ void KStylePage::saveIcons(bool curSettings) { for (KIcon::Group i=KIcon::FirstGroup; isetGroup(TQString::fromLatin1(groups[i]) + "Icons"); + KGlobal::config()->setGroup(TQString::tqfromLatin1(groups[i]) + "Icons"); KGlobal::config()->writeEntry("Size", icontheme.defaultSize(i)); } KGlobal::config()->sync(); @@ -522,9 +522,9 @@ void KStylePage::liveUpdate() { // color palette changes KIPC::sendMessageAll(KIPC::PaletteChanged); // kwin-style - kapp->dcopClient()->send("kwin*", "", "reconfigure()", ""); + kapp->dcopClient()->send("kwin*", "", "reconfigure()", TQString("")); // kdesktop-background - kapp->dcopClient()->send("kdesktop", "KBackgroundIface", "configure()", ""); + kapp->dcopClient()->send("kdesktop", "KBackgroundIface", "configure()", TQString("")); } /** show the previewWidget styled with the selected one */ @@ -542,7 +542,7 @@ void KStylePage::switchPrevStyle() { // go ahead setStyleRecursive( stylePreview, palette, style ); // this flickers, but reliably draws the widgets corretly. - stylePreview->resize( stylePreview->sizeHint() ); + stylePreview->resize( stylePreview->tqsizeHint() ); delete appliedStyle; appliedStyle = style; @@ -552,11 +552,11 @@ void KStylePage::setStyleRecursive(TQWidget* w, TQPalette &palette, TQStyle* s) // Apply the new style. w->setStyle(s); // Recursively update all children. - const TQObjectList *children = w->children(); - if (!children) + const TQObjectList children = w->childrenListObject(); + if (children.isEmpty()) return; // Apply the style to each child widget. - TQPtrListIterator childit(*children); + TQPtrListIterator childit(children); TQObject *child; while ((child = childit.current()) != 0) { ++childit; diff --git a/kpersonalizer/kstylepagedlg.ui b/kpersonalizer/kstylepagedlg.ui index e32074ca3..58890bb36 100644 --- a/kpersonalizer/kstylepagedlg.ui +++ b/kpersonalizer/kstylepagedlg.ui @@ -1,6 +1,6 @@ KStylePageDlg - + KStylePageDlg @@ -16,7 +16,7 @@ unnamed - + TextLabel7 @@ -31,13 +31,13 @@ Please choose the way your computer should look by selecting one of the items below. - + WordBreak|AlignVCenter|AlignLeft - + px_stylesSidebar @@ -49,7 +49,7 @@ 0 - + 170 430 @@ -81,7 +81,7 @@ - + TextLabel2 diff --git a/kpersonalizer/ksysinfo.cpp b/kpersonalizer/ksysinfo.cpp index 20a089b8f..014e6d489 100644 --- a/kpersonalizer/ksysinfo.cpp +++ b/kpersonalizer/ksysinfo.cpp @@ -57,9 +57,9 @@ void KSysInfo::initXInfo() { // vendor m_xvendor = !dpy ? TQString::null : (TQString)ServerVendor(dpy); // XFree-Inc? - m_xfree_inc = m_xvendor.contains("XFree86"); + m_xfree_inc = m_xvendor.tqcontains("XFree86"); // X.org ? - m_xorg = m_xvendor.contains("X.Org"); + m_xorg = m_xvendor.tqcontains("X.Org"); // release-number m_xrelease = !dpy ? 0 : VendorRelease(dpy); // RENDER-support @@ -99,29 +99,29 @@ bool KSysInfo::getRenderSupport(){ void KSysInfo::initFontFamilies() { TQFontDatabase fdb; - TQStringList families = fdb.families(); + TQStringList families = fdb.tqfamilies(); m_normal_font = TQString::null; m_fixed_font = TQString::null; int normal_priority = 0, fixed_priority = 0; for (uint i=0; i < families.count(); i++) { TQString font = *families.at(i); //add further NORMAL fonts here - if ( (font.contains("Arial [") || font=="Arial") && normal_priority < 15 ) { + if ( (font.tqcontains("Arial [") || font=="Arial") && normal_priority < 15 ) { m_normal_font = font; normal_priority = 15; - } else if ( font.contains("Vera Sans") && normal_priority < 12 ) { + } else if ( font.tqcontains("Vera Sans") && normal_priority < 12 ) { m_normal_font = font; normal_priority = 12; - } else if ( (font.contains("Luxi Sans") || font.contains("Lucidux Sans")) && normal_priority < 10 ) { + } else if ( (font.tqcontains("Luxi Sans") || font.tqcontains("Lucidux Sans")) && normal_priority < 10 ) { m_normal_font = font; normal_priority = 10; - } else if ( font.contains("Helmet") && normal_priority < 7 ) { + } else if ( font.tqcontains("Helmet") && normal_priority < 7 ) { m_normal_font = font; normal_priority = 7; - } else if ( font.contains("Nimbus Sans") && normal_priority < 5 ) { + } else if ( font.tqcontains("Nimbus Sans") && normal_priority < 5 ) { m_normal_font = font; normal_priority = 5; - } else if ( font.contains("Sans") & m_fdb->isSmoothlyScalable(font) && normal_priority < 3 ) { + } else if ( font.tqcontains("Sans") & m_fdb->isSmoothlyScalable(font) && normal_priority < 3 ) { m_normal_font = font; normal_priority = 3; } else if ( m_fdb->isSmoothlyScalable(font) && !(m_fdb->isFixedPitch(font,"Normal") && m_fdb->isFixedPitch(font,"Bold")) && normal_priority < 2) { @@ -132,16 +132,16 @@ void KSysInfo::initFontFamilies() { normal_priority = 1; } //add further FIXED fonts here - if (font.contains("Courier New") && fixed_priority < 15){ + if (font.tqcontains("Courier New") && fixed_priority < 15){ m_fixed_font = font; fixed_priority = 15; - } else if ( (font.contains("Luxi Mono") || font.contains("Lucidux Mono")) && fixed_priority < 10 ) { + } else if ( (font.tqcontains("Luxi Mono") || font.tqcontains("Lucidux Mono")) && fixed_priority < 10 ) { m_fixed_font = font; fixed_priority = 10; - } else if (font.contains("Andale Mono") && fixed_priority < 5) { + } else if (font.tqcontains("Andale Mono") && fixed_priority < 5) { m_fixed_font = font; fixed_priority = 5; - } else if ( font.contains("Mono") && m_fdb->isSmoothlyScalable(font) && fixed_priority < 3 ) { + } else if ( font.tqcontains("Mono") && m_fdb->isSmoothlyScalable(font) && fixed_priority < 3 ) { m_fixed_font = font; fixed_priority = 3; } else if ( m_fdb->isSmoothlyScalable(font) && m_fdb->isFixedPitch(font,"Normal") && fixed_priority < 2 ) { @@ -201,11 +201,11 @@ TQFont KSysInfo::getFixedWidthFont(){ // File Parser while (file->readLine(buf, sizeof(buf) - 1) > 0) { TQString s1 = TQString::fromLocal8Bit(buf); - TQString s2 = s1.mid(s1.find(":") + 1); - s1.truncate(s1.find(":")); + TQString s2 = s1.mid(s1.tqfind(":") + 1); + s1.truncate(s1.tqfind(":")); s1=s1.stripWhiteSpace(); s2=s2.stripWhiteSpace(); - if(s1.contains("MHz")){ + if(s1.tqcontains("MHz")){ float fspeed = s2.toFloat(0); fspeed = floor(fspeed); m_cpu_speed = (int)fspeed; diff --git a/kpersonalizer/stylepreview.ui b/kpersonalizer/stylepreview.ui index 0f0972b8a..7e132c4c7 100644 --- a/kpersonalizer/stylepreview.ui +++ b/kpersonalizer/stylepreview.ui @@ -1,6 +1,6 @@ StylePreview - + StylePreview @@ -16,7 +16,7 @@ unnamed - + Frame3 @@ -30,11 +30,11 @@ unnamed - + TabWidget2 - + tab @@ -45,7 +45,7 @@ unnamed - + ProgressBar1 @@ -53,7 +53,7 @@ 70 - + PushButton1 @@ -61,12 +61,12 @@ Button - + SpinBox1 - + ComboBox @@ -76,7 +76,7 @@ ComboBox1 - + Slider1 @@ -84,7 +84,7 @@ Horizontal - + ButtonGroup1 @@ -95,7 +95,7 @@ unnamed - + RadioButton1 @@ -106,7 +106,7 @@ true - + RadioButton2 @@ -128,7 +128,7 @@ Horizontal - + CheckBox1 @@ -144,7 +144,7 @@ - + ScrollBar1 @@ -157,7 +157,7 @@ - + tab @@ -176,10 +176,10 @@ stylepreview.ui.h kdialog.h - + init() - eventFilter( QObject * obj, QEvent * ev ) - + eventFilter( TQObject * obj, TQEvent * ev ) + diff --git a/kpersonalizer/stylepreview.ui.h b/kpersonalizer/stylepreview.ui.h index d073ddc34..048f9fba9 100644 --- a/kpersonalizer/stylepreview.ui.h +++ b/kpersonalizer/stylepreview.ui.h @@ -48,7 +48,7 @@ void StylePreview::init() { ++it; obj->installEventFilter(this); - ((TQWidget*)obj)->setFocusPolicy(NoFocus); + ((TQWidget*)obj)->setFocusPolicy(TQ_NoFocus); } delete l; } -- cgit v1.2.3