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/kicker/advancedDialog.cpp | 6 +- kcontrol/kicker/advancedOptions.ui | 40 ++++----- kcontrol/kicker/applettab.ui | 34 ++++---- kcontrol/kicker/applettab_impl.cpp | 4 +- kcontrol/kicker/extensionInfo.cpp | 16 ++-- kcontrol/kicker/extensionInfo.h | 4 +- kcontrol/kicker/hidingtab.ui | 74 ++++++++-------- kcontrol/kicker/lookandfeeltab.ui | 50 +++++------ kcontrol/kicker/lookandfeeltab_impl.cpp | 12 +-- kcontrol/kicker/main.cpp | 4 +- kcontrol/kicker/menutab.ui | 88 +++++++++---------- kcontrol/kicker/menutab_impl.cpp | 12 +-- kcontrol/kicker/menutab_impl.h | 2 +- kcontrol/kicker/positiontab.ui | 146 ++++++++++++++++---------------- kcontrol/kicker/positiontab_impl.cpp | 14 +-- 15 files changed, 253 insertions(+), 253 deletions(-) (limited to 'kcontrol/kicker') diff --git a/kcontrol/kicker/advancedDialog.cpp b/kcontrol/kicker/advancedDialog.cpp index 372104c4a..6da3bca4a 100644 --- a/kcontrol/kicker/advancedDialog.cpp +++ b/kcontrol/kicker/advancedDialog.cpp @@ -51,7 +51,7 @@ advancedDialog::advancedDialog(TQWidget* parent, const char* name) layout->addWidget(m_advancedWidget); layout->addStretch(); - setMinimumSize( sizeHint() ); + setMinimumSize( tqsizeHint() ); connect(m_advancedWidget->handles, TQT_SIGNAL(clicked(int)), this, TQT_SLOT(changed())); @@ -86,7 +86,7 @@ void advancedDialog::load() int defaultHideButtonSize = c.readNumEntry("HideButtonSize", 14); m_advancedWidget->hideButtonSize->setValue(defaultHideButtonSize); - TQColor color = c.readColorEntry( "TintColor", &colorGroup().mid() ); + TQColor color = c.readColorEntry( "TintColor", &tqcolorGroup().mid() ); m_advancedWidget->tintColorB->setColor( color ); int tintValue = c.readNumEntry( "TintValue", 33 ); m_advancedWidget->tintSlider->setValue( tintValue ); @@ -123,7 +123,7 @@ void advancedDialog::save() // is there a config group for this extension? if(!c.hasGroup(group) || - group.contains("Extension") < 1) + group.tqcontains("Extension") < 1) { continue; } diff --git a/kcontrol/kicker/advancedOptions.ui b/kcontrol/kicker/advancedOptions.ui index 215ef7e8b..b867b6094 100644 --- a/kcontrol/kicker/advancedOptions.ui +++ b/kcontrol/kicker/advancedOptions.ui @@ -1,6 +1,6 @@ advancedKickerOptions - + advancedKickerOptions @@ -19,7 +19,7 @@ 0 - + groupBox3 @@ -30,7 +30,7 @@ unnamed - + TextLabel2 @@ -71,7 +71,7 @@ Expanding - + 101 20 @@ -80,7 +80,7 @@ - + handles @@ -91,7 +91,7 @@ unnamed - + visibleHandles @@ -108,7 +108,7 @@ </qt> - + fadeOutHandles @@ -122,7 +122,7 @@ </qt> - + hideHandles @@ -145,7 +145,7 @@ Expanding - + 21 20 @@ -154,7 +154,7 @@ - + groupBox2 @@ -194,21 +194,21 @@ Expanding - + 20 21 - + textLabel3 Min - + AlignVCenter|AlignLeft @@ -225,14 +225,14 @@ Expanding - + 81 20 - + tintSlider @@ -243,21 +243,21 @@ Use this slider to set how much transparent panels should be tinted using the tint color. - + textLabel2 Max - + AlignVCenter|AlignRight Use this slider to set how much transparent panels should be tinted using the tint color. - + textLabel1_2 @@ -271,7 +271,7 @@ Use this slider to set how much transparent panels should be tinted using the tint color. - + textLabel1 @@ -285,7 +285,7 @@ Click on this button to set the color to use when tinting transparent panels. - + menubarPanelTransparent diff --git a/kcontrol/kicker/applettab.ui b/kcontrol/kicker/applettab.ui index 6ebfa2c88..8b0aeb223 100644 --- a/kcontrol/kicker/applettab.ui +++ b/kcontrol/kicker/applettab.ui @@ -1,6 +1,6 @@ AppletTabBase - + AppletTabBase @@ -16,7 +16,7 @@ unnamed - + level_group @@ -27,7 +27,7 @@ unnamed - + trusted_rb @@ -35,7 +35,7 @@ Load only trusted applets internal - + new_rb @@ -43,7 +43,7 @@ Load startup config applets internal - + all_rb @@ -53,7 +53,7 @@ - + list_group @@ -70,7 +70,7 @@ unnamed - + Layout13 @@ -78,7 +78,7 @@ unnamed - + Available Applets @@ -94,7 +94,7 @@ lb_available - + Layout12 @@ -112,18 +112,18 @@ Expanding - + 20 20 - + pb_add - + 0 0 @@ -143,14 +143,14 @@ Minimum - + 20 20 - + pb_remove @@ -162,7 +162,7 @@ 0 - + 0 0 @@ -182,7 +182,7 @@ Expanding - + 20 20 @@ -191,7 +191,7 @@ - + Trusted Applets diff --git a/kcontrol/kicker/applettab_impl.cpp b/kcontrol/kicker/applettab_impl.cpp index a8b7cdb20..534f2cbdb 100644 --- a/kcontrol/kicker/applettab_impl.cpp +++ b/kcontrol/kicker/applettab_impl.cpp @@ -132,7 +132,7 @@ void AppletTab::load( bool useDefaults ) TQStringList list = c.readListEntry("TrustedApplets"); for ( TQStringList::Iterator it = list.begin(); it != list.end(); ++it ) { - if(available.contains(*it)) + if(available.tqcontains(*it)) l_trusted << (*it); } } @@ -142,7 +142,7 @@ void AppletTab::load( bool useDefaults ) for ( TQStringList::Iterator it = available.begin(); it != available.end(); ++it ) { - if(!l_trusted.contains(*it)) + if(!l_trusted.tqcontains(*it)) l_available << (*it); } diff --git a/kcontrol/kicker/extensionInfo.cpp b/kcontrol/kicker/extensionInfo.cpp index d1a0b2766..89f000410 100644 --- a/kcontrol/kicker/extensionInfo.cpp +++ b/kcontrol/kicker/extensionInfo.cpp @@ -125,7 +125,7 @@ void ExtensionInfo::load() c.setGroup("General"); _position = c.readNumEntry ("Position", _position); - _alignment = c.readNumEntry ("Alignment", _alignment); + _tqalignment = c.readNumEntry ("Alignment", _tqalignment); _xineramaScreen = c.readNumEntry ("XineramaScreen", _xineramaScreen); _showLeftHB = c.readBoolEntry("ShowLeftHideButton", _showLeftHB); _showRightHB = c.readBoolEntry("ShowRightHideButton", _showRightHB); @@ -147,7 +147,7 @@ void ExtensionInfo::load() } _orig_position = _position; - _orig_alignment = _alignment; + _orig_tqalignment = _tqalignment; _orig_size = _size; _orig_customSize = _customSize; @@ -170,10 +170,10 @@ void ExtensionInfo::configChanged() _orig_position = _position = position; } - int alignment = c.readNumEntry ("Alignment", TQApplication::reverseLayout() ? 2 : 0); - if (alignment != _alignment && alignment != _orig_alignment) + int tqalignment = c.readNumEntry ("Alignment", TQApplication::reverseLayout() ? 2 : 0); + if (tqalignment != _tqalignment && tqalignment != _orig_tqalignment) { - _orig_alignment = _alignment = alignment; + _orig_tqalignment = _tqalignment = tqalignment; } if (_resizeable) @@ -197,7 +197,7 @@ void ExtensionInfo::setDefaults() { // defaults _position = 3; - _alignment = TQApplication::reverseLayout() ? 2 : 0; + _tqalignment = TQApplication::reverseLayout() ? 2 : 0; _xineramaScreen = TQApplication::desktop()->primaryScreen(); _size = 2; _showLeftHB = false; @@ -225,7 +225,7 @@ void ExtensionInfo::save() c.setGroup("General"); c.writeEntry("Position", _position); - c.writeEntry("Alignment", _alignment); + c.writeEntry("Alignment", _tqalignment); c.writeEntry("XineramaScreen", _xineramaScreen); c.writeEntry("ShowLeftHideButton", _showLeftHB); c.writeEntry("ShowRightHideButton", _showRightHB); @@ -251,7 +251,7 @@ void ExtensionInfo::save() } _orig_position = _position; - _orig_alignment = _alignment; + _orig_tqalignment = _tqalignment; _orig_size = _size; _orig_customSize = _customSize; diff --git a/kcontrol/kicker/extensionInfo.h b/kcontrol/kicker/extensionInfo.h index 169322aa4..5b890d324 100644 --- a/kcontrol/kicker/extensionInfo.h +++ b/kcontrol/kicker/extensionInfo.h @@ -47,7 +47,7 @@ class ExtensionInfo // Configuration settings TQString _name; int _position; - int _alignment; + int _tqalignment; int _xineramaScreen; int _size; int _customSize; @@ -67,7 +67,7 @@ class ExtensionInfo // Original settings to ensure that we can figure out // what has changed externally to the panel vs within the panel int _orig_position; - int _orig_alignment; + int _orig_tqalignment; int _orig_size; int _orig_customSize; diff --git a/kcontrol/kicker/hidingtab.ui b/kcontrol/kicker/hidingtab.ui index 8d7b0b254..eaa5961fe 100644 --- a/kcontrol/kicker/hidingtab.ui +++ b/kcontrol/kicker/hidingtab.ui @@ -1,6 +1,6 @@ HidingTabBase - + HidingTabBase @@ -19,7 +19,7 @@ 0 - + m_panelsGroupBox @@ -36,7 +36,7 @@ 0 - + m_panelListLabel @@ -47,7 +47,7 @@ m_panelList - + m_panelList @@ -62,7 +62,7 @@ Expanding - + 342 20 @@ -71,7 +71,7 @@ - + m_modeGroup @@ -92,14 +92,14 @@ Fixed - + 30 20 - + m_manual @@ -113,7 +113,7 @@ If this option is selected, the only way to hide the panel will be to click on the hide buttons that appear on either end of it. - + layout5 @@ -144,7 +144,7 @@ Here you can change the delay after which the panel will disappear if not used. - + DelayLabel_2_3_2 @@ -179,7 +179,7 @@ Expanding - + 20 20 @@ -188,7 +188,7 @@ - + m_background @@ -202,7 +202,7 @@ If this option is selected, the panel will allow itself to be covered by other windows. - + m_automatic @@ -216,7 +216,7 @@ If this option is selected, the panel will automatically hide after a period of time and reappear when you move the mouse to the screen edge where the panel is hidden. This is particularly useful for small screen resolutions, such as on laptops. - + layout6 @@ -224,7 +224,7 @@ unnamed - + m_backgroundRaise @@ -238,7 +238,7 @@ When this option is selected, moving the pointer to the specified edge of the screen will cause the panel to appear on top of any windows that may be covering it. - + Top Left Corner @@ -299,7 +299,7 @@ Expanding - + 20 20 @@ -308,7 +308,7 @@ - + m_autoHideSwitch @@ -332,7 +332,7 @@ Fixed - + 50 10 @@ -341,7 +341,7 @@ - + m_manualGroup @@ -363,7 +363,7 @@ unnamed - + m_lHB @@ -377,7 +377,7 @@ When this option is selected, a panel-hiding button appears on the left end of the panel. - + m_rHB @@ -401,7 +401,7 @@ Expanding - + 20 20 @@ -410,7 +410,7 @@ - + m_manualGroup_2 @@ -439,14 +439,14 @@ Expanding - + 20 20 - + m_animateHiding @@ -467,14 +467,14 @@ Fixed - + 30 20 - + Layout2 @@ -482,7 +482,7 @@ unnamed - + m_hideSlider @@ -532,14 +532,14 @@ Expanding - + 20 20 - + TextLabel4_2_2_2_3 @@ -557,7 +557,7 @@ Fast - + AlignVCenter|AlignRight @@ -573,14 +573,14 @@ Expanding - + 20 20 - + TextLabel5_2_2_2_3 @@ -598,13 +598,13 @@ Medium - + AlignCenter - + TextLabel3_2_2_3_3 @@ -637,7 +637,7 @@ Expanding - + 20 16 diff --git a/kcontrol/kicker/lookandfeeltab.ui b/kcontrol/kicker/lookandfeeltab.ui index 87f87cfc7..7eb945008 100644 --- a/kcontrol/kicker/lookandfeeltab.ui +++ b/kcontrol/kicker/lookandfeeltab.ui @@ -1,6 +1,6 @@ LookAndFeelTabBase - + LookAndFeelTabBase @@ -22,7 +22,7 @@ 0 - + general_group @@ -33,7 +33,7 @@ unnamed - + kcfg_ShowMouseOverEffects @@ -44,7 +44,7 @@ When this option is selected a mouseover effect appears when the mouse cursor is moved over panel buttons - + kcfg_ShowIconActivationEffect @@ -55,7 +55,7 @@ When this option is selected an activation effect appears when panel buttons are left clicked. - + kcfg_ShowToolTips @@ -68,7 +68,7 @@ - + GroupBox9 @@ -79,7 +79,7 @@ unnamed - + TextLabel1 @@ -93,7 +93,7 @@ Choose a tile image for the K menu. - + TextLabel2 @@ -227,7 +227,7 @@ When the Custom Color option is selected, use this button to pick a color for window list tile backgrounds - + TextLabel5 @@ -281,7 +281,7 @@ When the Custom Color option is selected, use this button to pick a color for the desktop tile background - + TextLabel6 @@ -306,7 +306,7 @@ When the Custom Color option is selected, use this button to pick a color for application tile backgrounds - + TextLabel3 @@ -359,7 +359,7 @@ Expanding - + 66 130 @@ -368,7 +368,7 @@ - + buttonGroup1 @@ -389,14 +389,14 @@ Fixed - + 20 20 - + kcfg_ColorizeBackground @@ -413,7 +413,7 @@ If this option is selected, the panel background image will be colored to match the default colors. To change the default colors, go to the 'Colors' control module. - + m_backgroundLabel @@ -428,13 +428,13 @@ 0 - + 50 50 - + 50 50 @@ -449,7 +449,7 @@ true - + AlignCenter @@ -480,7 +480,7 @@ This option is only active if 'Enable background image' is selected. - + kcfg_UseBackgroundTheme @@ -488,7 +488,7 @@ This option is only active if 'Enable background image' is selected. Enable &background image - + kcfg_Transparent @@ -498,7 +498,7 @@ This option is only active if 'Enable background image' is selected. - + layout3 @@ -506,7 +506,7 @@ This option is only active if 'Enable background image' is selected. unnamed - + advancedOptionsButton @@ -527,7 +527,7 @@ This option is only active if 'Enable background image' is selected. Expanding - + 289 20 @@ -546,7 +546,7 @@ This option is only active if 'Enable background image' is selected. Expanding - + 20 0 diff --git a/kcontrol/kicker/lookandfeeltab_impl.cpp b/kcontrol/kicker/lookandfeeltab_impl.cpp index 24c640a1d..984666d36 100644 --- a/kcontrol/kicker/lookandfeeltab_impl.cpp +++ b/kcontrol/kicker/lookandfeeltab_impl.cpp @@ -190,35 +190,35 @@ void LookAndFeelTab::load(bool useDefaults) if (config.readBoolEntry("EnableKMenuTiles", false)) { tile = config.readEntry("KMenuTile", "solid_blue"); - m_kmenuTile->setCurrentItem(m_tilename.findIndex(tile)); + m_kmenuTile->setCurrentItem(m_tilename.tqfindIndex(tile)); kcfg_KMenuTileColor->setEnabled(tile == "Colorize"); } if (config.readBoolEntry("EnableDesktopButtonTiles", false)) { tile = config.readEntry("DesktopButtonTile", "solid_orange"); - m_desktopTile->setCurrentItem(m_tilename.findIndex(tile)); + m_desktopTile->setCurrentItem(m_tilename.tqfindIndex(tile)); kcfg_DesktopButtonTileColor->setEnabled(tile == "Colorize"); } if (config.readBoolEntry("EnableURLTiles", false)) { tile = config.readEntry("URLTile", "solid_gray"); - m_urlTile->setCurrentItem(m_tilename.findIndex(tile)); + m_urlTile->setCurrentItem(m_tilename.tqfindIndex(tile)); kcfg_URLTileColor->setEnabled(tile == "Colorize"); } if (config.readBoolEntry("EnableBrowserTiles", false)) { tile = config.readEntry("BrowserTile", "solid_green"); - m_browserTile->setCurrentItem(m_tilename.findIndex(tile)); + m_browserTile->setCurrentItem(m_tilename.tqfindIndex(tile)); kcfg_BrowserTileColor->setEnabled(tile == "Colorize"); } if (config.readBoolEntry("EnableWindowListTiles", false)) { tile = config.readEntry("WindowListTile", "solid_green"); - m_windowListTile->setCurrentItem(m_tilename.findIndex(tile)); + m_windowListTile->setCurrentItem(m_tilename.tqfindIndex(tile)); kcfg_WindowListTileColor->setEnabled(tile == "Colorize"); } } @@ -328,7 +328,7 @@ void LookAndFeelTab::fillTileCombos() TQPixmap pix(tile); TQFileInfo fi(tile); tile = fi.fileName(); - tile.truncate(tile.find("_tiny_up.png")); + tile.truncate(tile.tqfind("_tiny_up.png")); m_tilename << tile; // Transform tile to words with title case diff --git a/kcontrol/kicker/main.cpp b/kcontrol/kicker/main.cpp index e60746db8..31cd34c11 100644 --- a/kcontrol/kicker/main.cpp +++ b/kcontrol/kicker/main.cpp @@ -141,7 +141,7 @@ void KickerConfig::restartKicker() } TQCString appname; appname = "kicker"; - kapp->dcopClient()->send(appname, appname, "restart", ""); + kapp->dcopClient()->send(appname, appname, "restart", TQString("")); } void KickerConfig::notifyKicker() @@ -187,7 +187,7 @@ void KickerConfig::setupExtensionInfo(KConfig& config, bool checkExists, bool re TQString group(*it); // is there a config group for this extension? - if (!config.hasGroup(group) || group.contains("Extension") < 1) + if (!config.hasGroup(group) || group.tqcontains("Extension") < 1) { continue; } diff --git a/kcontrol/kicker/menutab.ui b/kcontrol/kicker/menutab.ui index 7d3a3d460..b24573f67 100644 --- a/kcontrol/kicker/menutab.ui +++ b/kcontrol/kicker/menutab.ui @@ -1,6 +1,6 @@ MenuTabBase - + MenuTabBase @@ -19,7 +19,7 @@ 0 - + layout5 @@ -27,7 +27,7 @@ unnamed - + textLabel1 @@ -38,7 +38,7 @@ comboMenuStyle - + Kickoff @@ -63,7 +63,7 @@ Expanding - + 40 20 @@ -72,7 +72,7 @@ - + m_kmenuGroup @@ -83,7 +83,7 @@ unnamed - + layout7 @@ -91,7 +91,7 @@ unnamed - + m_openOnHover @@ -99,7 +99,7 @@ Open menu on mouse hover - + kcfg_MenuEntryFormat @@ -119,7 +119,7 @@ unnamed - + m_formatSimple @@ -130,7 +130,7 @@ When this option is selected, items in the K Menu will appear with the application's name next to the icon. - + m_formatNameDesc @@ -144,7 +144,7 @@ When this option is selected, items in the K Menu will appear with the application's name and a brief description next to the icon. - + m_formatDescOnly @@ -155,7 +155,7 @@ When this option is selected, items in the K Menu will appear with the application's brief description next to the icon. - + m_formDescName @@ -171,7 +171,7 @@ - + kcfg_UseSidePixmap @@ -197,14 +197,14 @@ MinimumExpanding - + 20 0 - + kcfg_ShowKMenuText @@ -225,7 +225,7 @@ 0 - + kcfg_KMenuText @@ -233,7 +233,7 @@ 35 - + TextLabel1_3_3_2 @@ -261,13 +261,13 @@ 0 - + 26 26 - + 26 26 @@ -280,7 +280,7 @@ - + TextLabel1_3_3_2 @@ -296,7 +296,7 @@ Text: - + TextLabel1_3_3_2 @@ -327,7 +327,7 @@ Expanding - + 20 20 @@ -345,7 +345,7 @@ MinimumExpanding - + 20 0 @@ -353,7 +353,7 @@ - + m_editKMenuButton @@ -389,7 +389,7 @@ 1 - + 0 0 @@ -411,7 +411,7 @@ 0 - + m_browserGroup @@ -422,7 +422,7 @@ unnamed - + Layout3 @@ -430,7 +430,7 @@ unnamed - + m_maxQuickBrowserItemsLabel @@ -463,7 +463,7 @@ - + kcfg_ShowHiddenFiles @@ -487,7 +487,7 @@ Expanding - + 20 0 @@ -496,7 +496,7 @@ - + m_recentGroup @@ -507,7 +507,7 @@ unnamed - + Layout3 @@ -515,7 +515,7 @@ unnamed - + m_maxRecentDocumentsItemsLabel @@ -558,7 +558,7 @@ Expanding - + 20 0 @@ -567,7 +567,7 @@ - + m_pRecentOrderGroup @@ -578,7 +578,7 @@ unnamed - + Layout4 @@ -586,7 +586,7 @@ unnamed - + TextLabel2 @@ -619,7 +619,7 @@ - + kcfg_RecentVsOften @@ -633,7 +633,7 @@ When this option is selected the QuickStart menu area will be filled with the applications you have used most recently. - + m_showFrequent @@ -654,7 +654,7 @@ Expanding - + 20 0 @@ -663,7 +663,7 @@ - + m_pSearchGroup @@ -674,7 +674,7 @@ unnamed - + kcfg_UseSearchBar @@ -698,7 +698,7 @@ Expanding - + 20 0 diff --git a/kcontrol/kicker/menutab_impl.cpp b/kcontrol/kicker/menutab_impl.cpp index 970aa10a1..cd1d27fa9 100644 --- a/kcontrol/kicker/menutab_impl.cpp +++ b/kcontrol/kicker/menutab_impl.cpp @@ -93,9 +93,9 @@ MenuTab::MenuTab( TQWidget *parent, const char* name ) btnCustomKMenuIcon->setPixmap(kmenu_icon); KConfig *config; - config = new KConfig(TQString::fromLatin1("kdeglobals"), false, false); - config->setGroup(TQString::fromLatin1("RecentDocuments")); - maxrecentdocs->setValue(config->readNumEntry(TQString::fromLatin1("MaxEntries"), 10)); + config = new KConfig(TQString::tqfromLatin1("kdeglobals"), false, false); + config->setGroup(TQString::tqfromLatin1("RecentDocuments")); + maxrecentdocs->setValue(config->readNumEntry(TQString::tqfromLatin1("MaxEntries"), 10)); m_browserGroupLayout->setColStretch( 1, 1 ); m_pRecentOrderGroupLayout->setColStretch( 1, 1 ); @@ -148,7 +148,7 @@ void MenuTab::load( bool useDefaults ) df.readName(), *it, SmallIcon(df.readIcon()), - qFind(ext.begin(), ext.end(), *it) != ext.end()); + tqFind(ext.begin(), ext.end(), *it) != ext.end()); connect(menuItem, TQT_SIGNAL(toggled(bool)), TQT_SIGNAL(changed())); } } @@ -247,8 +247,8 @@ void MenuTab::save() // Save recent documents KConfig *config; - config = new KConfig(TQString::fromLatin1("kdeglobals"), false, false); - config->setGroup(TQString::fromLatin1("RecentDocuments")); + config = new KConfig(TQString::tqfromLatin1("kdeglobals"), false, false); + config->setGroup(TQString::tqfromLatin1("RecentDocuments")); config->writeEntry("MaxEntries", maxrecentdocs->value()); config->sync(); diff --git a/kcontrol/kicker/menutab_impl.h b/kcontrol/kicker/menutab_impl.h index 3ef197f09..b143b0072 100644 --- a/kcontrol/kicker/menutab_impl.h +++ b/kcontrol/kicker/menutab_impl.h @@ -25,7 +25,7 @@ #include "menutab.h" -class kSubMenuItem : public TQObject, public QCheckListItem +class kSubMenuItem : public TQObject, public TQCheckListItem { Q_OBJECT diff --git a/kcontrol/kicker/positiontab.ui b/kcontrol/kicker/positiontab.ui index b0566f5dc..7af261fde 100644 --- a/kcontrol/kicker/positiontab.ui +++ b/kcontrol/kicker/positiontab.ui @@ -1,7 +1,7 @@ PositionTabBase Aaron J. Seigo - + PositionTabBase @@ -23,7 +23,7 @@ 0 - + m_panelsGroupBox @@ -40,7 +40,7 @@ 0 - + m_panelListLabel @@ -51,7 +51,7 @@ m_panelList - + m_panelList @@ -66,7 +66,7 @@ Expanding - + 342 20 @@ -75,7 +75,7 @@ - + XineramaGroup @@ -86,7 +86,7 @@ unnamed - + Layout13 @@ -104,14 +104,14 @@ Expanding - + 20 0 - + m_monitorImage @@ -123,7 +123,7 @@ 0 - + 151 115 @@ -132,7 +132,7 @@ true - + AlignCenter @@ -149,7 +149,7 @@ Expanding - + 20 0 @@ -158,7 +158,7 @@ - + Layout12 @@ -176,14 +176,14 @@ Expanding - + 20 0 - + m_identifyButton @@ -196,7 +196,7 @@ - + Layout9 @@ -204,7 +204,7 @@ unnamed - + m_xineramaScreenLabel @@ -215,7 +215,7 @@ m_xineramaScreenComboBox - + m_xineramaScreenComboBox @@ -235,7 +235,7 @@ Expanding - + 0 101 @@ -244,7 +244,7 @@ - + m_rsizeGroup @@ -267,7 +267,7 @@ how it is positioned on the screen and how much of the screen it should use. unnamed - + Layout8 @@ -275,7 +275,7 @@ how it is positioned on the screen and how much of the screen it should use. unnamed - + m_percentSlider @@ -334,7 +334,7 @@ how it is positioned on the screen and how much of the screen it should use. - + m_expandCheckBox @@ -357,14 +357,14 @@ how it is positioned on the screen and how much of the screen it should use. Expanding - + 16 16 - + m_sizeGroup @@ -386,7 +386,7 @@ how it is positioned on the screen and how much of the screen it should use. unnamed - + Tiny @@ -426,14 +426,14 @@ how it is positioned on the screen and how much of the screen it should use. Fixed - + 30 40 - + Layout9 @@ -441,7 +441,7 @@ how it is positioned on the screen and how much of the screen it should use. unnamed - + m_customSlider @@ -511,7 +511,7 @@ how it is positioned on the screen and how much of the screen it should use. - + m_locationGroup @@ -538,7 +538,7 @@ how it is positioned on the screen and how much of the screen it should use. Expanding - + 20 0 @@ -555,14 +555,14 @@ how it is positioned on the screen and how much of the screen it should use. Expanding - + 21 0 - + Layout7 @@ -570,7 +570,7 @@ how it is positioned on the screen and how much of the screen it should use. unnamed - + Layout8 @@ -578,7 +578,7 @@ how it is positioned on the screen and how much of the screen it should use. unnamed - + locationTopLeft @@ -590,13 +590,13 @@ how it is positioned on the screen and how much of the screen it should use.0 - + 32 16 - + 32 16 @@ -612,7 +612,7 @@ how it is positioned on the screen and how much of the screen it should use.true - + locationTop @@ -624,13 +624,13 @@ how it is positioned on the screen and how much of the screen it should use.0 - + 32 16 - + 32 16 @@ -646,7 +646,7 @@ how it is positioned on the screen and how much of the screen it should use.true - + locationTopRight @@ -658,13 +658,13 @@ how it is positioned on the screen and how much of the screen it should use.0 - + 32 16 - + 32 16 @@ -682,7 +682,7 @@ how it is positioned on the screen and how much of the screen it should use. - + Layout10 @@ -690,7 +690,7 @@ how it is positioned on the screen and how much of the screen it should use. unnamed - + locationLeftTop @@ -702,13 +702,13 @@ how it is positioned on the screen and how much of the screen it should use.0 - + 16 24 - + 16 24 @@ -724,7 +724,7 @@ how it is positioned on the screen and how much of the screen it should use.true - + locationLeft @@ -736,13 +736,13 @@ how it is positioned on the screen and how much of the screen it should use.0 - + 16 24 - + 16 24 @@ -758,7 +758,7 @@ how it is positioned on the screen and how much of the screen it should use.true - + locationLeftBottom @@ -770,13 +770,13 @@ how it is positioned on the screen and how much of the screen it should use.0 - + 16 24 - + 16 24 @@ -794,7 +794,7 @@ how it is positioned on the screen and how much of the screen it should use. - + Layout7 @@ -802,7 +802,7 @@ how it is positioned on the screen and how much of the screen it should use. unnamed - + locationBottomLeft @@ -814,13 +814,13 @@ how it is positioned on the screen and how much of the screen it should use.0 - + 32 16 - + 32 16 @@ -836,7 +836,7 @@ how it is positioned on the screen and how much of the screen it should use.true - + locationBottom @@ -848,13 +848,13 @@ how it is positioned on the screen and how much of the screen it should use.0 - + 32 16 - + 32 16 @@ -870,7 +870,7 @@ how it is positioned on the screen and how much of the screen it should use.true - + locationBottomRight @@ -882,13 +882,13 @@ how it is positioned on the screen and how much of the screen it should use.0 - + 32 16 - + 32 16 @@ -906,7 +906,7 @@ how it is positioned on the screen and how much of the screen it should use. - + Layout9 @@ -914,7 +914,7 @@ how it is positioned on the screen and how much of the screen it should use. unnamed - + locationRightTop @@ -926,13 +926,13 @@ how it is positioned on the screen and how much of the screen it should use.0 - + 16 24 - + 16 24 @@ -948,7 +948,7 @@ how it is positioned on the screen and how much of the screen it should use.true - + locationRight @@ -960,13 +960,13 @@ how it is positioned on the screen and how much of the screen it should use.0 - + 16 24 - + 16 24 @@ -982,7 +982,7 @@ how it is positioned on the screen and how much of the screen it should use.true - + locationRightBottom @@ -994,13 +994,13 @@ how it is positioned on the screen and how much of the screen it should use.0 - + 16 24 - + 16 24 diff --git a/kcontrol/kicker/positiontab_impl.cpp b/kcontrol/kicker/positiontab_impl.cpp index d65498430..5f89cd5a6 100644 --- a/kcontrol/kicker/positiontab_impl.cpp +++ b/kcontrol/kicker/positiontab_impl.cpp @@ -60,7 +60,7 @@ PositionTab::PositionTab(TQWidget *parent, const char* name) { TQPixmap monitor(locate("data", "kcontrol/pics/monitor.png")); m_monitorImage->setPixmap(monitor); - m_monitorImage->setFixedSize(m_monitorImage->sizeHint()); + m_monitorImage->setFixedSize(m_monitorImage->tqsizeHint()); m_pretendDesktop = new TQWidget(m_monitorImage, "pretendBG"); m_pretendDesktop->setGeometry(offsetX, offsetY, maxX, maxY); @@ -220,7 +220,7 @@ void PositionTab::sizeChanged(int which) void PositionTab::movePanel(int whichButton) { - TQPushButton* pushed = reinterpret_cast(m_locationGroup->find(whichButton)); + TQPushButton* pushed = reinterpret_cast(m_locationGroup->tqfind(whichButton)); if (pushed == locationTopLeft) { @@ -558,7 +558,7 @@ void PositionTab::switchPanel(int panelItem) m_customSpinbox->setValue(m_panelInfo->_customSize); m_sizeGroup->setEnabled(m_panelInfo->_resizeable); m_panelPos = m_panelInfo->_position; - m_panelAlign = m_panelInfo->_alignment; + m_panelAlign = m_panelInfo->_tqalignment; if(m_panelInfo->_xineramaScreen >= 0 && m_panelInfo->_xineramaScreen < TQApplication::desktop()->numScreens()) m_xineramaScreenComboBox->setCurrentItem(m_panelInfo->_xineramaScreen); else if(m_panelInfo->_xineramaScreen == -2) /* the All Screens option: qt uses -1 for default, so -2 for all */ @@ -672,7 +672,7 @@ void PositionTab::storeInfo() } m_panelInfo->_position = m_panelPos; - m_panelInfo->_alignment = m_panelAlign; + m_panelInfo->_tqalignment = m_panelAlign; if(m_xineramaScreenComboBox->currentItem() == m_xineramaScreenComboBox->count()-1) m_panelInfo->_xineramaScreen = -2; /* all screens */ else @@ -687,7 +687,7 @@ void PositionTab::showIdentify() for(int s=0; s < TQApplication::desktop()->numScreens();s++) { - TQLabel *screenLabel = new TQLabel(0,"Screen Identify", WDestructiveClose | WStyle_Customize | WX11BypassWM ); + TQLabel *screenLabel = new TQLabel(0,"Screen Identify", (WFlags)(WDestructiveClose | WStyle_Customize | WX11BypassWM) ); TQFont identifyFont(KGlobalSettings::generalFont()); identifyFont.setPixelSize(100); @@ -696,14 +696,14 @@ void PositionTab::showIdentify() screenLabel->setFrameStyle(TQFrame::Panel); screenLabel->setFrameShadow(TQFrame::Plain); - screenLabel->setAlignment(Qt::AlignCenter); + screenLabel->tqsetAlignment(Qt::AlignCenter); screenLabel->setNum(s + 1); // BUGLET: we should not allow the identification to be entered again // until the timer fires. TQTimer::singleShot(1500, screenLabel, TQT_SLOT(close())); TQPoint screenCenter(TQApplication::desktop()->screenGeometry(s).center()); - TQRect targetGeometry(TQPoint(0,0),screenLabel->sizeHint()); + TQRect targetGeometry(TQPoint(0,0),screenLabel->tqsizeHint()); targetGeometry.moveCenter(screenCenter); screenLabel->setGeometry(targetGeometry); -- cgit v1.2.3