summaryrefslogtreecommitdiffstats
path: root/kaddressbook/views/kaddressbookiconview.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
commit67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch)
tree5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /kaddressbook/views/kaddressbookiconview.cpp
parent2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff)
downloadtdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz
tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kaddressbook/views/kaddressbookiconview.cpp')
-rw-r--r--kaddressbook/views/kaddressbookiconview.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/kaddressbook/views/kaddressbookiconview.cpp b/kaddressbook/views/kaddressbookiconview.cpp
index 58b4a3409..16fe5cad0 100644
--- a/kaddressbook/views/kaddressbookiconview.cpp
+++ b/kaddressbook/views/kaddressbookiconview.cpp
@@ -17,8 +17,8 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
As a special exception, permission is given to link this program
- with any edition of Qt, and distribute the resulting executable,
- without including the source code for Qt in the source distribution.
+ with any edition of TQt, and distribute the resulting executable,
+ without including the source code for TQt in the source distribution.
*/
#include <tqapplication.h>
@@ -42,9 +42,9 @@
class IconViewFactory : public ViewFactory
{
public:
- KAddressBookView *view( KAB::Core *core, TQWidget *parent, const char *name )
+ KAddressBookView *view( KAB::Core *core, TQWidget *tqparent, const char *name )
{
- return new KAddressBookIconView( core, parent, name );
+ return new KAddressBookIconView( core, tqparent, name );
}
TQString type() const { return I18N_NOOP( "Icon" ); }
@@ -59,8 +59,8 @@ extern "C" {
}
}
-AddresseeIconView::AddresseeIconView( TQWidget *parent, const char *name )
- : KIconView( parent, name )
+AddresseeIconView::AddresseeIconView( TQWidget *tqparent, const char *name )
+ : KIconView( tqparent, name )
{
setSelectionMode( TQIconView::Extended );
setResizeMode( TQIconView::Adjust );
@@ -96,8 +96,8 @@ class AddresseeIconViewItem : public KIconViewItem
{
public:
AddresseeIconViewItem( const KABC::Field::List&, KABC::AddressBook *doc,
- const KABC::Addressee &addr, TQIconView *parent )
- : KIconViewItem( parent ), mDocument( doc ), mAddressee( addr )
+ const KABC::Addressee &addr, TQIconView *tqparent )
+ : KIconViewItem( tqparent ), mDocument( doc ), mAddressee( addr )
{
refresh();
}
@@ -106,7 +106,7 @@ class AddresseeIconViewItem : public KIconViewItem
void refresh()
{
- mAddressee = mDocument->tqfindByUid( mAddressee.uid() );
+ mAddressee = mDocument->findByUid( mAddressee.uid() );
if ( !mAddressee.isEmpty() )
setText( mAddressee.givenName() + " " + mAddressee.familyName() );
@@ -136,8 +136,8 @@ class AddresseeIconViewItem : public KIconViewItem
KAddressBookIconView::KAddressBookIconView( KAB::Core *core,
- TQWidget *parent, const char *name)
- : KAddressBookView( core, parent, name )
+ TQWidget *tqparent, const char *name)
+ : KAddressBookView( core, tqparent, name )
{
TQVBoxLayout *tqlayout = new TQVBoxLayout( viewWidget() );
@@ -233,7 +233,7 @@ void KAddressBookIconView::refresh( const TQString &uid )
}
}
- refresh( TQString::null );
+ refresh( TQString() );
}
}
@@ -291,7 +291,7 @@ void KAddressBookIconView::addresseeSelected()
}
if ( !found )
- emit selected( TQString::null );
+ emit selected( TQString() );
}
void KAddressBookIconView::rmbClicked( TQIconViewItem*, const TQPoint &point )
@@ -301,12 +301,12 @@ void KAddressBookIconView::rmbClicked( TQIconViewItem*, const TQPoint &point )
void KAddressBookIconView::scrollUp()
{
- TQApplication::postEvent( mIconView, new TQKeyEvent( TQEvent::KeyPress, Qt::Key_Up, 0, 0 ) );
+ TQApplication::postEvent( mIconView, new TQKeyEvent( TQEvent::KeyPress, TQt::Key_Up, 0, 0 ) );
}
void KAddressBookIconView::scrollDown()
{
- TQApplication::postEvent( mIconView, new TQKeyEvent( TQEvent::KeyPress, Qt::Key_Down, 0, 0 ) );
+ TQApplication::postEvent( mIconView, new TQKeyEvent( TQEvent::KeyPress, TQt::Key_Down, 0, 0 ) );
}
#include "kaddressbookiconview.moc"