From 495d08bc2db58ee7fc4ea55a7158f2f61b82fc56 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 3 Jan 2011 20:16:47 +0000 Subject: Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1211357 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kwin/kcmkwin/kwinrules/detectwidget.cpp | 4 +- kwin/kcmkwin/kwinrules/detectwidgetbase.ui | 8 ++-- kwin/kcmkwin/kwinrules/editshortcutbase.ui | 14 +++--- kwin/kcmkwin/kwinrules/kcm.cpp | 4 +- kwin/kcmkwin/kwinrules/kwinrules.desktop | 4 +- kwin/kcmkwin/kwinrules/main.cpp | 2 +- kwin/kcmkwin/kwinrules/ruleslistbase.ui | 8 ++-- kwin/kcmkwin/kwinrules/ruleswidget.cpp | 24 +++++----- kwin/kcmkwin/kwinrules/ruleswidget.h | 4 +- kwin/kcmkwin/kwinrules/ruleswidgetbase.ui | 72 +++++++++++++++--------------- 10 files changed, 72 insertions(+), 72 deletions(-) (limited to 'kwin/kcmkwin/kwinrules') diff --git a/kwin/kcmkwin/kwinrules/detectwidget.cpp b/kwin/kcmkwin/kwinrules/detectwidget.cpp index 1a497c8bc..918951b35 100644 --- a/kwin/kcmkwin/kwinrules/detectwidget.cpp +++ b/kwin/kcmkwin/kwinrules/detectwidget.cpp @@ -189,7 +189,7 @@ WId DetectDialog::findWindow() { Window root; Window child; - uint mask; + uint tqmask; int rootX, rootY, x, y; Window parent = qt_xrootwin(); Atom wm_state = XInternAtom( qt_xdisplay(), "WM_STATE", False ); @@ -198,7 +198,7 @@ WId DetectDialog::findWindow() ++i ) { XQueryPointer( qt_xdisplay(), parent, &root, &child, - &rootX, &rootY, &x, &y, &mask ); + &rootX, &rootY, &x, &y, &tqmask ); if( child == None ) return 0; Atom type; diff --git a/kwin/kcmkwin/kwinrules/detectwidgetbase.ui b/kwin/kcmkwin/kwinrules/detectwidgetbase.ui index 31cae3ef3..789594e97 100644 --- a/kwin/kcmkwin/kwinrules/detectwidgetbase.ui +++ b/kwin/kcmkwin/kwinrules/detectwidgetbase.ui @@ -4,7 +4,7 @@ Form3 - + 0 0 @@ -29,7 +29,7 @@ Expanding - + 20 40 @@ -213,6 +213,6 @@ - - + + diff --git a/kwin/kcmkwin/kwinrules/editshortcutbase.ui b/kwin/kcmkwin/kwinrules/editshortcutbase.ui index 3813ae589..c3a0d7ec6 100644 --- a/kwin/kcmkwin/kwinrules/editshortcutbase.ui +++ b/kwin/kcmkwin/kwinrules/editshortcutbase.ui @@ -4,7 +4,7 @@ EditShortcutBase - + 0 0 @@ -50,7 +50,7 @@ For example "<b>Shift+Alt+(123) Shift+Ctrl+(ABC)</b>" will first try - layout2 + tqlayout2 @@ -66,7 +66,7 @@ For example "<b>Shift+Alt+(123) Shift+Ctrl+(ABC)</b>" will first try Expanding - + 40 20 @@ -91,7 +91,7 @@ For example "<b>Shift+Alt+(123) Shift+Ctrl+(ABC)</b>" will first try Expanding - + 40 20 @@ -116,7 +116,7 @@ For example "<b>Shift+Alt+(123) Shift+Ctrl+(ABC)</b>" will first try Expanding - + 40 20 @@ -159,6 +159,6 @@ For example "<b>Shift+Alt+(123) Shift+Ctrl+(ABC)</b>" will first try editShortcut() clearShortcut() - - + + diff --git a/kwin/kcmkwin/kwinrules/kcm.cpp b/kwin/kcmkwin/kwinrules/kcm.cpp index 19b714311..90c7a0cb8 100644 --- a/kwin/kcmkwin/kwinrules/kcm.cpp +++ b/kwin/kcmkwin/kwinrules/kcm.cpp @@ -42,9 +42,9 @@ KCMRules::KCMRules( TQWidget *parent, const char *name ) : KCModule( parent, name ) , config( "kwinrulesrc" ) { - TQVBoxLayout *layout = new TQVBoxLayout( this ); + TQVBoxLayout *tqlayout = new TQVBoxLayout( this ); widget = new KCMRulesList( this ); - layout->addWidget( widget ); + tqlayout->addWidget( widget ); connect( widget, TQT_SIGNAL( changed( bool )), TQT_SLOT( moduleChanged( bool ))); KAboutData *about = new KAboutData(I18N_NOOP( "kcmkwinrules" ), I18N_NOOP( "Window-Specific Settings Configuration Module" ), diff --git a/kwin/kcmkwin/kwinrules/kwinrules.desktop b/kwin/kcmkwin/kwinrules/kwinrules.desktop index 245994a8a..3bd0e0c67 100644 --- a/kwin/kcmkwin/kwinrules/kwinrules.desktop +++ b/kwin/kcmkwin/kwinrules/kwinrules.desktop @@ -154,7 +154,7 @@ Keywords[cs]=velikost,pozice,umístění,stav,chování oken,pravidla Keywords[csb]=miara,pòłożenié,stón,ùchòwanié òknół,òkna,spamiãtanié nastôwów,zapamiãtanié nastôwów,regle Keywords[cy]=maint,lleoliad,cyflwr,ffenestr,ymddygiad,ffenestri,penodol,ffyrdd osgoi,cofio,rheolau Keywords[da]=størrelse,position,tilstand,vinduesopførsel,vinduer,specifik, omgåelse,husk,regler -Keywords[de]=Größe,Position,Status,Fensterverhalten,Fenster,Regeln +Keywords[de]=Größe,Position,tqStatus,Fensterverhalten,Fenster,Regeln Keywords[el]=μέγεθος,θέση,κατάσταση,συμπεριφορά παραθύρου,παράθυρα,ειδικές,λύσεις,αποθήκευση,κανόνων Keywords[en_GB]=size,position,state,window behaviour,windows,specific,workarounds,remember,rules Keywords[eo]=grandeco,pozicio,stato,fenestra konduto,fenestroj,reguloj @@ -180,7 +180,7 @@ Keywords[lv]=izmērs,novietojums,statuss,loga izturēšanās,logi,specifisks,apj Keywords[mk]=size,position,state,window behavior,windows,specific,workarounds,remember,rules,големина,позиција,состојба,однесување на прозорец,специфично,заобиколни Keywords[mt]=size,position,state,window behavior,windows,specific,workarounds,remember,rules,daqs Keywords[nb]=størrelse,posisjon,status,vindusoppførsel,vinduer,spesifikk,jukseløsninger,husk,regler -Keywords[nds]=Grött,Positschoon,Status,Finsterbedregen,Finstern,enkel,enkelte,Regeln,behollen,workaround +Keywords[nds]=Grött,Positschoon,tqStatus,Finsterbedregen,Finstern,enkel,enkelte,Regeln,behollen,workaround Keywords[ne]=साइज, स्थिति, अवस्था, सञ्झ्याल व्यवहार, सञ्झ्यालहरू, निर्दिष्ट, कार्यक्षेत्र, याद गर्नुहोस्, नियम Keywords[nl]=grootte,positie,venstergedrag,vensters,specifiek,alternatieven,onthouden,regels Keywords[nn]=storleik,plassering,tilstand,vindaugsåtferd,vindauge,spesifikk,jukseløysingar,hugs,reglar diff --git a/kwin/kcmkwin/kwinrules/main.cpp b/kwin/kcmkwin/kwinrules/main.cpp index b58c96239..af25412f8 100644 --- a/kwin/kcmkwin/kwinrules/main.cpp +++ b/kwin/kcmkwin/kwinrules/main.cpp @@ -179,7 +179,7 @@ static Rules* findRule( const TQValueList< Rules* >& rules, Window wid, bool who if( type == NET::Unknown ) ret->types = NET::NormalMask; else - ret->types = 1 << type; // convert type to its mask + ret->types = 1 << type; // convert type to its tqmask ret->title = title; // set, but make unimportant ret->titlematch = Rules::UnimportantMatch; ret->clientmachine = machine; // set, but make unimportant diff --git a/kwin/kcmkwin/kwinrules/ruleslistbase.ui b/kwin/kcmkwin/kwinrules/ruleslistbase.ui index c2abdaa9d..b36a1987f 100644 --- a/kwin/kcmkwin/kwinrules/ruleslistbase.ui +++ b/kwin/kcmkwin/kwinrules/ruleslistbase.ui @@ -4,7 +4,7 @@ Form1 - + 0 0 @@ -77,7 +77,7 @@ Expanding - + 20 294 @@ -86,6 +86,6 @@ - - + + diff --git a/kwin/kcmkwin/kwinrules/ruleswidget.cpp b/kwin/kcmkwin/kwinrules/ruleswidget.cpp index 2525644d9..ea426e7f1 100644 --- a/kwin/kcmkwin/kwinrules/ruleswidget.cpp +++ b/kwin/kcmkwin/kwinrules/ruleswidget.cpp @@ -78,7 +78,7 @@ RulesWidget::RulesWidget( TQWidget* parent, const char* name ) " until it is hidden (this action will be deleted after the window is hidden)." "" ); // window tabs have enable signals done in designer - // geometry tab + // tqgeometry tab SETUP( position, set ); SETUP( size, set ); SETUP( desktop, set ); @@ -106,7 +106,7 @@ RulesWidget::RulesWidget( TQWidget* parent, const char* name ) SETUP( ignoreposition, force ); SETUP( minsize, force ); SETUP( maxsize, force ); - SETUP( strictgeometry, force ); + SETUP( stricttqgeometry, force ); SETUP( disableglobalshortcuts, force ); KWinModule module; int i; @@ -126,7 +126,7 @@ void RulesWidget::updateEnable##var() \ var->setEnabled( enable_##var->isChecked() && rule_##var->currentItem() != 0 ); \ } -// geometry tab +// tqgeometry tab UPDATE_ENABLE_SLOT( position ) UPDATE_ENABLE_SLOT( size ) UPDATE_ENABLE_SLOT( desktop ) @@ -158,7 +158,7 @@ UPDATE_ENABLE_SLOT( type ) UPDATE_ENABLE_SLOT( ignoreposition ) UPDATE_ENABLE_SLOT( minsize ) UPDATE_ENABLE_SLOT( maxsize ) -UPDATE_ENABLE_SLOT( strictgeometry ) +UPDATE_ENABLE_SLOT( stricttqgeometry ) UPDATE_ENABLE_SLOT( disableglobalshortcuts ) #undef UPDATE_ENABLE_SLOT @@ -428,7 +428,7 @@ void RulesWidget::setRules( Rules* rules ) CHECKBOX_FORCE_RULE( ignoreposition, ); LINEEDIT_FORCE_RULE( minsize, sizeToStr ); LINEEDIT_FORCE_RULE( maxsize, sizeToStr ); - CHECKBOX_FORCE_RULE( strictgeometry, ); + CHECKBOX_FORCE_RULE( stricttqgeometry, ); CHECKBOX_FORCE_RULE( disableglobalshortcuts, ); } @@ -518,7 +518,7 @@ Rules* RulesWidget::rules() const CHECKBOX_FORCE_RULE( ignoreposition, ); LINEEDIT_FORCE_RULE( minsize, strToSize ); LINEEDIT_FORCE_RULE( maxsize, strToSize ); - CHECKBOX_FORCE_RULE( strictgeometry, ); + CHECKBOX_FORCE_RULE( stricttqgeometry, ); CHECKBOX_FORCE_RULE( disableglobalshortcuts, ); return rules; } @@ -621,7 +621,7 @@ void RulesWidget::prefillUnusedValues( const KWin::WindowInfo& info ) CHECKBOX_PREFILL( above,, info.state() & NET::KeepAbove ); CHECKBOX_PREFILL( below,, info.state() & NET::KeepBelow ); // noborder is only internal KWin information, so let's guess - CHECKBOX_PREFILL( noborder,, info.frameGeometry() == info.geometry() ); + CHECKBOX_PREFILL( noborder,, info.frameGeometry() == info.tqgeometry() ); CHECKBOX_PREFILL( skiptaskbar,, info.state() & NET::SkipTaskbar ); CHECKBOX_PREFILL( skippager,, info.state() & NET::SkipPager ); //CHECKBOX_PREFILL( acceptfocus, ); @@ -635,7 +635,7 @@ void RulesWidget::prefillUnusedValues( const KWin::WindowInfo& info ) //CHECKBOX_PREFILL( ignoreposition, ); LINEEDIT_PREFILL( minsize, sizeToStr, info.frameGeometry().size() ); LINEEDIT_PREFILL( maxsize, sizeToStr, info.frameGeometry().size() ); - //CHECKBOX_PREFILL( strictgeometry, ); + //CHECKBOX_PREFILL( stricttqgeometry, ); //CHECKBOX_PREFILL( disableglobalshortcuts, ); } @@ -661,7 +661,7 @@ bool RulesWidget::finalCheck() all_types = false; if( wmclass_match->currentItem() == Rules::UnimportantMatch && all_types ) { - if( KMessageBox::warningContinueCancel( topLevelWidget(), + if( KMessageBox::warningContinueCancel( tqtopLevelWidget(), i18n( "You have specified the window class as unimportant.\n" "This means the settings will possibly apply to windows from all applications. " "If you really want to create a generic setting, it is recommended you at least " @@ -673,14 +673,14 @@ bool RulesWidget::finalCheck() void RulesWidget::prepareWindowSpecific( WId window ) { - tabs->setCurrentPage( 2 ); // geometry tab, skip tabs for window identification + tabs->setCurrentPage( 2 ); // tqgeometry tab, skip tabs for window identification KWin::WindowInfo info( window, -1U, -1U ); // read everything prefillUnusedValues( info ); } void RulesWidget::shortcutEditClicked() { - EditShortcutDialog dlg( topLevelWidget()); + EditShortcutDialog dlg( tqtopLevelWidget()); dlg.setShortcut( shortcut->text()); if( dlg.exec() == TQDialog::Accepted ) shortcut->setText( dlg.shortcut()); @@ -735,7 +735,7 @@ EditShortcut::EditShortcut( TQWidget* parent, const char* name ) void EditShortcut::editShortcut() { - ShortcutDialog dlg( KShortcut( shortcut->text()), topLevelWidget()); + ShortcutDialog dlg( KShortcut( shortcut->text()), tqtopLevelWidget()); if( dlg.exec() == TQDialog::Accepted ) shortcut->setText( dlg.shortcut().toString()); } diff --git a/kwin/kcmkwin/kwinrules/ruleswidget.h b/kwin/kcmkwin/kwinrules/ruleswidget.h index b47ad88ab..ec38818ff 100644 --- a/kwin/kcmkwin/kwinrules/ruleswidget.h +++ b/kwin/kcmkwin/kwinrules/ruleswidget.h @@ -54,7 +54,7 @@ class RulesWidget virtual void machineMatchChanged(); virtual void shortcutEditClicked(); private slots: - // geometry tab + // tqgeometry tab void updateEnableposition(); void updateEnablesize(); void updateEnabledesktop(); @@ -81,7 +81,7 @@ class RulesWidget void updateEnableignoreposition(); void updateEnableminsize(); void updateEnablemaxsize(); - void updateEnablestrictgeometry(); + void updateEnablestricttqgeometry(); void updateEnableshortcut(); void updateEnabledisableglobalshortcuts(); // internal diff --git a/kwin/kcmkwin/kwinrules/ruleswidgetbase.ui b/kwin/kcmkwin/kwinrules/ruleswidgetbase.ui index 01c1b9918..0b23f2ed2 100644 --- a/kwin/kcmkwin/kwinrules/ruleswidgetbase.ui +++ b/kwin/kcmkwin/kwinrules/ruleswidgetbase.ui @@ -4,7 +4,7 @@ Form2 - + 0 0 @@ -87,7 +87,7 @@ Expanding - + 20 40 @@ -129,7 +129,7 @@ Expanding - + 212 20 @@ -157,7 +157,7 @@ Expanding - + 211 20 @@ -199,7 +199,7 @@ Expanding - + 212 20 @@ -230,7 +230,7 @@ Expanding - + 211 20 @@ -271,7 +271,7 @@ Expanding - + 270 20 @@ -296,7 +296,7 @@ Expanding - + 269 20 @@ -470,7 +470,7 @@ Expanding - + 199 20 @@ -501,7 +501,7 @@ Expanding - + 199 20 @@ -543,7 +543,7 @@ Expanding - + 199 20 @@ -574,7 +574,7 @@ Expanding - + 199 20 @@ -616,7 +616,7 @@ Expanding - + 199 20 @@ -647,7 +647,7 @@ Expanding - + 199 20 @@ -1181,7 +1181,7 @@ Expanding - + 20 16 @@ -1347,7 +1347,7 @@ Expanding - + 171 20 @@ -1364,7 +1364,7 @@ Expanding - + 290 20 @@ -1381,7 +1381,7 @@ Expanding - + 290 20 @@ -1398,7 +1398,7 @@ Expanding - + 290 20 @@ -1415,7 +1415,7 @@ Expanding - + 290 20 @@ -1432,7 +1432,7 @@ Expanding - + 290 20 @@ -1449,7 +1449,7 @@ Expanding - + 290 20 @@ -1466,7 +1466,7 @@ Expanding - + 290 20 @@ -1796,7 +1796,7 @@ Expanding - + 20 80 @@ -1847,7 +1847,7 @@ Expanding - + 181 20 @@ -2231,7 +2231,7 @@ enable_ignoreposition - Ignore requested &geometry + Ignore requested &tqgeometry @@ -2278,7 +2278,7 @@ Expanding - + 20 160 @@ -2287,10 +2287,10 @@ - enable_strictgeometry + enable_stricttqgeometry - Strictly obey geometry + Strictly obey tqgeometry @@ -2313,7 +2313,7 @@ - rule_strictgeometry + rule_stricttqgeometry false @@ -2321,7 +2321,7 @@ - strictgeometry + stricttqgeometry false @@ -2523,9 +2523,9 @@ enable_maxsize rule_maxsize maxsize - enable_strictgeometry - rule_strictgeometry - strictgeometry + enable_stricttqgeometry + rule_stricttqgeometry + stricttqgeometry enable_disableglobalshortcuts rule_disableglobalshortcuts disableglobalshortcuts @@ -2539,8 +2539,8 @@ machineMatchChanged() shortcutEditClicked() - - + + kcombobox.h kpushbutton.h -- cgit v1.2.1