diff options
author | Timothy Pearson <[email protected]> | 2011-08-09 22:25:47 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-08-09 22:25:47 -0500 |
commit | eaa7ee2e0bbca40ba3173c4304f81957e8964291 (patch) | |
tree | 4f793aa48a5080aedc94ce6e519c3b86708f2b88 /tqtinterface/qt4/tools/designer/plugins/kdevdlg | |
parent | 79a9d7a46a20d4a0923bc06fc471fdc2176ef865 (diff) | |
download | experimental-eaa7ee2e0bbca40ba3173c4304f81957e8964291.tar.gz experimental-eaa7ee2e0bbca40ba3173c4304f81957e8964291.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
Diffstat (limited to 'tqtinterface/qt4/tools/designer/plugins/kdevdlg')
-rw-r--r-- | tqtinterface/qt4/tools/designer/plugins/kdevdlg/kdevdlg2ui.cpp | 26 | ||||
-rw-r--r-- | tqtinterface/qt4/tools/designer/plugins/kdevdlg/main.cpp | 2 |
2 files changed, 14 insertions, 14 deletions
diff --git a/tqtinterface/qt4/tools/designer/plugins/kdevdlg/kdevdlg2ui.cpp b/tqtinterface/qt4/tools/designer/plugins/kdevdlg/kdevdlg2ui.cpp index 0030ab8..3c03e6d 100644 --- a/tqtinterface/qt4/tools/designer/plugins/kdevdlg/kdevdlg2ui.cpp +++ b/tqtinterface/qt4/tools/designer/plugins/kdevdlg/kdevdlg2ui.cpp @@ -181,20 +181,20 @@ void KDEVDLG2UI::writeStyles( const TQStringList styles, bool isFrame ) TQString shadow = "NoFrame"; TQString tqshape = "StyledPanel"; int width = 2; - if ( styles.tqcontains( "WS_EX_STATICEDGE" ) ) { + if ( styles.contains( "WS_EX_STATICEDGE" ) ) { shadow = "Plain"; width = 1; defineFrame = TRUE; } - if ( styles.tqcontains( "WS_EX_CLIENTEDGE" ) ) { + if ( styles.contains( "WS_EX_CLIENTEDGE" ) ) { shadow = "Sunken"; defineFrame = TRUE; } - if ( styles.tqcontains( "WS_EX_DLGMODALFRAME" ) ) { + if ( styles.contains( "WS_EX_DLGMODALFRAME" ) ) { shadow = "Raised"; defineFrame = TRUE; } - if ( !styles.tqcontains( "WS_BORDER" ) ) { + if ( !styles.contains( "WS_BORDER" ) ) { tqshape = "NoFrame"; defineFrame = TRUE; } @@ -206,13 +206,13 @@ void KDEVDLG2UI::writeStyles( const TQStringList styles, bool isFrame ) } } - if ( styles.tqcontains("WS_DISABLED") ) + if ( styles.contains("WS_DISABLED") ) writeBool("enabled", FALSE ); - if ( styles.tqcontains("WS_EX_ACCEPTFILES") ) + if ( styles.contains("WS_EX_ACCEPTFILES") ) writeBool("acceptDrops", TRUE ); - if ( styles.tqcontains("WS_EX_TRANSPARENT") ) + if ( styles.contains("WS_EX_TRANSPARENT") ) writeBool("autoMask", TRUE ); - if ( !styles.tqcontains("WS_TABSTOP") ) + if ( !styles.contains("WS_TABSTOP") ) writeEnum("focusPolicy", "NoFocus"); } @@ -283,11 +283,11 @@ bool KDEVDLG2UI::parse( TQStringList& get ) void KDEVDLG2UI::cleanString( TQString * text ) { if ( !text ) return; - text->tqreplace( "\\n", "\n" ); - text->tqreplace( "\\t", "\t" ); - text->tqreplace( "&", "&" ); - text->tqreplace( "<", "<" ); - text->tqreplace( ">", ">" ); + text->replace( "\\n", "\n" ); + text->replace( "\\t", "\t" ); + text->replace( "&", "&" ); + text->replace( "<", "<" ); + text->replace( ">", ">" ); } /*! diff --git a/tqtinterface/qt4/tools/designer/plugins/kdevdlg/main.cpp b/tqtinterface/qt4/tools/designer/plugins/kdevdlg/main.cpp index 9ecac6e..fd2df40 100644 --- a/tqtinterface/qt4/tools/designer/plugins/kdevdlg/main.cpp +++ b/tqtinterface/qt4/tools/designer/plugins/kdevdlg/main.cpp @@ -93,7 +93,7 @@ TQStringList KDevDlgFilter::import( const TQString &, const TQString& filename ) TQTextStream in; in.setDevice( &file ); - TQString name = filename.right( filename.length() - filename.tqfindRev( TQDir::separator() ) - 1 ).section( ".", 0, 0 ); + TQString name = filename.right( filename.length() - filename.findRev( TQDir::separator() ) - 1 ).section( ".", 0, 0 ); KDEVDLG2UI c( &in, name ); TQStringList files; c.parse(); |