diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-08-09 22:25:47 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-08-09 22:25:47 -0500 |
commit | eaa7ee2e0bbca40ba3173c4304f81957e8964291 (patch) | |
tree | 4f793aa48a5080aedc94ce6e519c3b86708f2b88 /tqtinterface/qt4/src/kernel/tqlayout.cpp | |
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/src/kernel/tqlayout.cpp')
-rw-r--r-- | tqtinterface/qt4/src/kernel/tqlayout.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/tqtinterface/qt4/src/kernel/tqlayout.cpp b/tqtinterface/qt4/src/kernel/tqlayout.cpp index 9a74fce..9c3132a 100644 --- a/tqtinterface/qt4/src/kernel/tqlayout.cpp +++ b/tqtinterface/qt4/src/kernel/tqlayout.cpp @@ -1538,7 +1538,7 @@ public: int heightForWidth( int, int, int ); int minimumHeightForWidth( int, int, int ); - bool tqfindWidget( TQWidget* w, int *row, int *col ); + bool findWidget( TQWidget* w, int *row, int *col ); inline void getNextPos( int &row, int &col ) { row = nextR; col = nextC; } inline uint count() const @@ -1550,7 +1550,7 @@ private: void recalcHFW( int w, int s ); void addHfwData ( TQGridBox *box, int width ); void init(); - TQSize tqfindSize( TQCOORD TQLayoutStruct::*, int ) const; + TQSize findSize( TQCOORD TQLayoutStruct::*, int ) const; void addData( TQGridBox *b, bool r = TRUE, bool c = TRUE ); void setSize( int rows, int cols ); void setupLayoutData( int space ); @@ -1683,7 +1683,7 @@ int TQGridLayoutData::minimumHeightForWidth( int w, int margin, int spacing ) return has_hfw ? (hfw_minheight + 2*margin) : -1; } -bool TQGridLayoutData::tqfindWidget( TQWidget* w, int *row, int *col ) +bool TQGridLayoutData::findWidget( TQWidget* w, int *row, int *col ) { TQPtrListIterator<TQGridBox> it( things ); TQGridBox * box; @@ -1716,7 +1716,7 @@ bool TQGridLayoutData::tqfindWidget( TQWidget* w, int *row, int *col ) return FALSE; } -TQSize TQGridLayoutData::tqfindSize( TQCOORD TQLayoutStruct::*size, int spacer ) const +TQSize TQGridLayoutData::findSize( TQCOORD TQLayoutStruct::*size, int spacer ) const { TQGridLayoutData *that = (TQGridLayoutData *)this; that->setupLayoutData( spacer ); @@ -1767,17 +1767,17 @@ TQ_SPExpandData TQGridLayoutData::expanding( int spacing ) QSize TQGridLayoutData::tqsizeHint( int spacer ) const { - return tqfindSize( &TQLayoutStruct::tqsizeHint, spacer ); + return findSize( &TQLayoutStruct::tqsizeHint, spacer ); } QSize TQGridLayoutData::tqmaximumSize( int spacer ) const { - return tqfindSize( &TQLayoutStruct::tqmaximumSize, spacer ); + return findSize( &TQLayoutStruct::tqmaximumSize, spacer ); } QSize TQGridLayoutData::tqminimumSize( int spacer ) const { - return tqfindSize( &TQLayoutStruct::tqminimumSize, spacer ); + return findSize( &TQLayoutStruct::tqminimumSize, spacer ); } void TQGridLayoutData::setSize( int r, int c ) @@ -2526,9 +2526,9 @@ int TQGridLayout::minimumHeightForWidth( int w ) const Note: if a widget spans multiple rows/columns, the top-left cell is returned. */ -bool TQGridLayout::tqfindWidget( TQWidget* w, int *row, int *col ) +bool TQGridLayout::findWidget( TQWidget* w, int *row, int *col ) { - return data->tqfindWidget( w, row, col ); + return data->findWidget( w, row, col ); } /*! @@ -3419,7 +3419,7 @@ void TQBoxLayout::addItem( QLayoutItem *item ) \warning Does not call TQLayout::insertChildLayout() if \a item is a TQLayout. - \sa addItem(), tqfindWidget() + \sa addItem(), findWidget() */ void TQBoxLayout::insertItem( int index, TQLayoutItem *item ) { @@ -3644,7 +3644,7 @@ void TQBoxLayout::addStrut( int size ) Returns the index of \a w, or -1 if \a w is not found. */ -int TQBoxLayout::tqfindWidget( TQWidget* w ) +int TQBoxLayout::findWidget( TQWidget* w ) { const int n = data->list.count(); for ( int i = 0; i < n; i++ ) { |