summaryrefslogtreecommitdiffstats
path: root/kopete/libkopete/ui/kopetelistviewsearchline.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kopete/libkopete/ui/kopetelistviewsearchline.cpp
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kopete/libkopete/ui/kopetelistviewsearchline.cpp')
-rw-r--r--kopete/libkopete/ui/kopetelistviewsearchline.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kopete/libkopete/ui/kopetelistviewsearchline.cpp b/kopete/libkopete/ui/kopetelistviewsearchline.cpp
index a71d86c0..edb63ffc 100644
--- a/kopete/libkopete/ui/kopetelistviewsearchline.cpp
+++ b/kopete/libkopete/ui/kopetelistviewsearchline.cpp
@@ -24,12 +24,12 @@ namespace Kopete {
namespace UI {
namespace ListView {
-SearchLine::SearchLine( QWidget *parent, ListView *listView, const char *name )
+SearchLine::SearchLine( TQWidget *parent, ListView *listView, const char *name )
: KListViewSearchLine( parent, listView, name )
{
}
-SearchLine::SearchLine(QWidget *parent, const char *name)
+SearchLine::SearchLine(TQWidget *parent, const char *name)
: KListViewSearchLine( parent, 0, name )
{
}
@@ -39,7 +39,7 @@ SearchLine::~SearchLine()
}
-void SearchLine::updateSearch( const QString &s )
+void SearchLine::updateSearch( const TQString &s )
{
// we copy a huge chunk of code here simply in order to override
// the way items are shown/hidden. KSearchLine rudely
@@ -54,7 +54,7 @@ void SearchLine::updateSearch( const QString &s )
// If there's a selected item that is visible, make sure that it's visible
// when the search changes too (assuming that it still matches).
- QListViewItem *currentItem = 0;
+ TQListViewItem *currentItem = 0;
switch( listView()->selectionMode() )
{
@@ -64,7 +64,7 @@ void SearchLine::updateSearch( const QString &s )
currentItem = listView()->selectedItem();
break;
default:
- for( QListViewItemIterator it(listView(), QListViewItemIterator::Selected | QListViewItemIterator::Visible);
+ for( TQListViewItemIterator it(listView(), TQListViewItemIterator::Selected | TQListViewItemIterator::Visible);
it.current() && !currentItem; ++it )
{
if( listView()->itemRect( it.current() ).isValid() )
@@ -85,10 +85,10 @@ void SearchLine::updateSearch( const QString &s )
void SearchLine::checkItemParentsNotVisible()
{
//BEGIN code from KSearchLine::checkItemParentsNotVisible
- QListViewItemIterator it( listView() );
+ TQListViewItemIterator it( listView() );
for( ; it.current(); ++it )
{
- QListViewItem *item = it.current();
+ TQListViewItem *item = it.current();
if( itemMatches( item, search ) )
setItemVisible( item, true );
else
@@ -97,7 +97,7 @@ void SearchLine::checkItemParentsNotVisible()
//END code from KSearchLine::checkItemParentsNotVisible
}
-bool SearchLine::checkItemParentsVisible( QListViewItem *item )
+bool SearchLine::checkItemParentsVisible( TQListViewItem *item )
{
//BEGIN code from KSearchLine::checkItemParentsVisible
bool visible = false;
@@ -123,7 +123,7 @@ bool SearchLine::checkItemParentsVisible( QListViewItem *item )
//END code from KSearchLine::checkItemParentsVisible
}
-void SearchLine::setItemVisible( QListViewItem *it, bool b )
+void SearchLine::setItemVisible( TQListViewItem *it, bool b )
{
if( Item *item = dynamic_cast<Item*>( it ) )
item->setSearchMatch( b );