summaryrefslogtreecommitdiffstats
path: root/kaddressbook/views
diff options
context:
space:
mode:
Diffstat (limited to 'kaddressbook/views')
-rw-r--r--kaddressbook/views/cardview.cpp12
-rw-r--r--kaddressbook/views/cardview.h10
-rw-r--r--kaddressbook/views/colorlistbox.cpp4
-rw-r--r--kaddressbook/views/colorlistbox.h2
-rw-r--r--kaddressbook/views/configurecardviewdialog.cpp8
-rw-r--r--kaddressbook/views/configurecardviewdialog.h4
-rw-r--r--kaddressbook/views/configuretableviewdialog.cpp8
-rw-r--r--kaddressbook/views/configuretableviewdialog.h4
-rw-r--r--kaddressbook/views/contactlistview.cpp16
-rw-r--r--kaddressbook/views/contactlistview.h8
-rw-r--r--kaddressbook/views/kaddressbookcardview.cpp20
-rw-r--r--kaddressbook/views/kaddressbookcardview.h4
-rw-r--r--kaddressbook/views/kaddressbookiconview.cpp16
-rw-r--r--kaddressbook/views/kaddressbookiconview.h4
-rw-r--r--kaddressbook/views/kaddressbooktableview.cpp12
-rw-r--r--kaddressbook/views/kaddressbooktableview.h2
16 files changed, 67 insertions, 67 deletions
diff --git a/kaddressbook/views/cardview.cpp b/kaddressbook/views/cardview.cpp
index b790b0c3..df956398 100644
--- a/kaddressbook/views/cardview.cpp
+++ b/kaddressbook/views/cardview.cpp
@@ -42,8 +42,8 @@
class CardViewTip : public TQLabel
{
public:
- CardViewTip( TQWidget *tqparent = 0, const char *name = 0 )
- : TQLabel( tqparent, name )
+ CardViewTip( TQWidget *parent = 0, const char *name = 0 )
+ : TQLabel( parent, name )
{
setPalette( TQToolTip::palette() );
setFrameStyle( Panel | Plain );
@@ -192,8 +192,8 @@ class CardViewItemPrivate
};
-CardViewItem::CardViewItem( CardView *tqparent, const TQString &caption )
- : d( new CardViewItemPrivate() ), mView( tqparent )
+CardViewItem::CardViewItem( CardView *parent, const TQString &caption )
+ : d( new CardViewItemPrivate() ), mView( parent )
{
d->mCaption = caption;
@@ -569,8 +569,8 @@ CardViewItem::Field *CardViewItem::fieldAt( const TQPoint & itempos ) const
}
-CardView::CardView( TQWidget *tqparent, const char *name )
- : TQScrollView( tqparent, name ),
+CardView::CardView( TQWidget *parent, const char *name )
+ : TQScrollView( parent, name ),
d( new CardViewPrivate() )
{
d->mItemList.setAutoDelete( true );
diff --git a/kaddressbook/views/cardview.h b/kaddressbook/views/cardview.h
index e2229dd2..e3c29e5a 100644
--- a/kaddressbook/views/cardview.h
+++ b/kaddressbook/views/cardview.h
@@ -60,12 +60,12 @@ class CardViewItem
/**
Constructor.
- @param tqparent The CardView that this card should be displayed on.
+ @param parent The CardView that this card should be displayed on.
@param caption The caption of the card. This is the text that will
appear at the top of the card. This is also the string that will
be used to sort the cards in the view.
*/
- CardViewItem( CardView *tqparent, const TQString &caption = TQString() );
+ CardViewItem( CardView *parent, const TQString &caption = TQString() );
virtual ~CardViewItem();
/**
@@ -129,7 +129,7 @@ class CardViewItem
bool isSelected() const;
/**
- Called by the tqparent card view when the mouse has been resting for
+ Called by the parent card view when the mouse has been resting for
a certain amount of time. If the label or value at pos is obscured
(trimmed) make the label display the full text.
*/
@@ -202,12 +202,12 @@ class CardView : public TQScrollView
/**
Constructor.
*/
- CardView( TQWidget *tqparent, const char *name );
+ CardView( TQWidget *parent, const char *name );
virtual ~CardView();
/**
Inserts the item into the card view. This method does not have
- to be called if you created the item with a proper tqparent. Once
+ to be called if you created the item with a proper parent. Once
inserted, the CardView takes ownership of the item.
*/
void insertItem( CardViewItem *item );
diff --git a/kaddressbook/views/colorlistbox.cpp b/kaddressbook/views/colorlistbox.cpp
index df190d3c..a003246f 100644
--- a/kaddressbook/views/colorlistbox.cpp
+++ b/kaddressbook/views/colorlistbox.cpp
@@ -25,8 +25,8 @@
#include "colorlistbox.h"
-ColorListBox::ColorListBox( TQWidget *tqparent, const char *name, WFlags f )
- :KListBox( tqparent, name, f ), mCurrentOnDragEnter(-1)
+ColorListBox::ColorListBox( TQWidget *parent, const char *name, WFlags f )
+ :KListBox( parent, name, f ), mCurrentOnDragEnter(-1)
{
connect( this, TQT_SIGNAL(selected(int)), this, TQT_SLOT(newColor(int)) );
setAcceptDrops( true);
diff --git a/kaddressbook/views/colorlistbox.h b/kaddressbook/views/colorlistbox.h
index 566ec8b0..acccd0b0 100644
--- a/kaddressbook/views/colorlistbox.h
+++ b/kaddressbook/views/colorlistbox.h
@@ -29,7 +29,7 @@ class ColorListBox : public KListBox
TQ_OBJECT
public:
- ColorListBox( TQWidget *tqparent=0, const char * name=0, WFlags f=0 );
+ ColorListBox( TQWidget *parent=0, const char * name=0, WFlags f=0 );
void setColor( uint index, const TQColor &color );
TQColor color( uint index ) const;
diff --git a/kaddressbook/views/configurecardviewdialog.cpp b/kaddressbook/views/configurecardviewdialog.cpp
index 846be389..8cacbfec 100644
--- a/kaddressbook/views/configurecardviewdialog.cpp
+++ b/kaddressbook/views/configurecardviewdialog.cpp
@@ -47,9 +47,9 @@
/////////////////////////////////
// ConfigureCardViewDialog
-ConfigureCardViewWidget::ConfigureCardViewWidget( KABC::AddressBook *ab, TQWidget *tqparent,
+ConfigureCardViewWidget::ConfigureCardViewWidget( KABC::AddressBook *ab, TQWidget *parent,
const char *name )
- : ViewConfigureWidget( ab, tqparent, name )
+ : ViewConfigureWidget( ab, parent, name )
{
TQWidget *page = addPage( i18n( "Look & Feel" ), TQString(),
DesktopIcon( "looknfeel" ) );
@@ -76,8 +76,8 @@ void ConfigureCardViewWidget::saveSettings( KConfig *config )
////////////////////////
// CardViewLookNFeelPage
-CardViewLookNFeelPage::CardViewLookNFeelPage( TQWidget *tqparent, const char *name )
- : TQVBox( tqparent, name )
+CardViewLookNFeelPage::CardViewLookNFeelPage( TQWidget *parent, const char *name )
+ : TQVBox( parent, name )
{
initGUI();
}
diff --git a/kaddressbook/views/configurecardviewdialog.h b/kaddressbook/views/configurecardviewdialog.h
index 52ec9cbb..40ddfe4f 100644
--- a/kaddressbook/views/configurecardviewdialog.h
+++ b/kaddressbook/views/configurecardviewdialog.h
@@ -48,7 +48,7 @@ class CardViewLookAndFeelPage;
class ConfigureCardViewWidget : public ViewConfigureWidget
{
public:
- ConfigureCardViewWidget( KABC::AddressBook *ab, TQWidget *tqparent, const char *name );
+ ConfigureCardViewWidget( KABC::AddressBook *ab, TQWidget *parent, const char *name );
virtual ~ConfigureCardViewWidget();
virtual void restoreSettings( KConfig* );
@@ -83,7 +83,7 @@ class CardViewLookNFeelPage : public TQVBox {
TQ_OBJECT
public:
- CardViewLookNFeelPage( TQWidget *tqparent=0, const char *name=0 );
+ CardViewLookNFeelPage( TQWidget *parent=0, const char *name=0 );
~CardViewLookNFeelPage();
void restoreSettings( KConfig* );
diff --git a/kaddressbook/views/configuretableviewdialog.cpp b/kaddressbook/views/configuretableviewdialog.cpp
index 179a819a..b5fb9ded 100644
--- a/kaddressbook/views/configuretableviewdialog.cpp
+++ b/kaddressbook/views/configuretableviewdialog.cpp
@@ -41,9 +41,9 @@
#include "configuretableviewdialog.h"
ConfigureTableViewWidget::ConfigureTableViewWidget( KABC::AddressBook *ab,
- TQWidget *tqparent,
+ TQWidget *parent,
const char *name )
- : ViewConfigureWidget( ab, tqparent, name )
+ : ViewConfigureWidget( ab, parent, name )
{
TQWidget *page = addPage( i18n( "Look & Feel" ), TQString(),
KGlobal::iconLoader()->loadIcon( "looknfeel",
@@ -72,8 +72,8 @@ void ConfigureTableViewWidget::saveSettings( KConfig *config )
-LookAndFeelPage::LookAndFeelPage(TQWidget *tqparent, const char *name)
- : TQWidget(tqparent, name)
+LookAndFeelPage::LookAndFeelPage(TQWidget *parent, const char *name)
+ : TQWidget(parent, name)
{
initGUI();
diff --git a/kaddressbook/views/configuretableviewdialog.h b/kaddressbook/views/configuretableviewdialog.h
index a0228cba..3533ae0d 100644
--- a/kaddressbook/views/configuretableviewdialog.h
+++ b/kaddressbook/views/configuretableviewdialog.h
@@ -45,7 +45,7 @@ class LookAndFeelPage;
class ConfigureTableViewWidget : public ViewConfigureWidget
{
public:
- ConfigureTableViewWidget( KABC::AddressBook *ab, TQWidget *tqparent, const char *name );
+ ConfigureTableViewWidget( KABC::AddressBook *ab, TQWidget *parent, const char *name );
virtual ~ConfigureTableViewWidget();
virtual void restoreSettings( KConfig* );
@@ -66,7 +66,7 @@ class LookAndFeelPage : public TQWidget
TQ_OBJECT
public:
- LookAndFeelPage( TQWidget *tqparent, const char *name = 0 );
+ LookAndFeelPage( TQWidget *parent, const char *name = 0 );
~LookAndFeelPage() {}
void restoreSettings( KConfig* );
diff --git a/kaddressbook/views/contactlistview.cpp b/kaddressbook/views/contactlistview.cpp
index eab88e2e..47a1e86e 100644
--- a/kaddressbook/views/contactlistview.cpp
+++ b/kaddressbook/views/contactlistview.cpp
@@ -47,8 +47,8 @@
/////////////////////////////////
// DynamicTip Methods
-DynamicTip::DynamicTip( ContactListView *tqparent)
- : TQToolTip( tqparent )
+DynamicTip::DynamicTip( ContactListView *parent)
+ : TQToolTip( parent )
{
}
@@ -147,12 +147,12 @@ void DynamicTip::maybeTip( const TQPoint &pos )
// ContactListViewItem Methods
ContactListViewItem::ContactListViewItem(const KABC::Addressee &a,
- ContactListView *tqparent,
+ ContactListView *parent,
KABC::AddressBook *doc,
const KABC::Field::List &fields,
KIMProxy *proxy )
- : KListViewItem(tqparent), mAddressee(a), mFields( fields ),
- parentListView( tqparent ), mDocument(doc), mIMProxy( proxy )
+ : KListViewItem(parent), mAddressee(a), mFields( fields ),
+ parentListView( parent ), mDocument(doc), mIMProxy( proxy )
{
if ( mIMProxy )
mHasIM = mIMProxy->isPresent( mAddressee.uid() );
@@ -208,7 +208,7 @@ void ContactListViewItem::paintCell(TQPainter * p,
}
-ContactListView *ContactListViewItem::tqparent()
+ContactListView *ContactListViewItem::parent()
{
return parentListView;
}
@@ -258,9 +258,9 @@ void ContactListViewItem::setHasIM( bool hasIM )
ContactListView::ContactListView(KAddressBookTableView *view,
KABC::AddressBook* /* doc */,
- TQWidget *tqparent,
+ TQWidget *parent,
const char *name )
- : KListView( tqparent, name ),
+ : KListView( parent, name ),
pabWidget( view ),
oldColumn( 0 )
{
diff --git a/kaddressbook/views/contactlistview.h b/kaddressbook/views/contactlistview.h
index 5492b916..96966d5c 100644
--- a/kaddressbook/views/contactlistview.h
+++ b/kaddressbook/views/contactlistview.h
@@ -44,7 +44,7 @@ class KIMProxy;
class DynamicTip : public TQToolTip
{
public:
- DynamicTip( ContactListView * tqparent );
+ DynamicTip( ContactListView * parent );
protected:
void maybeTip( const TQPoint & );
@@ -56,11 +56,11 @@ class ContactListViewItem : public KListViewItem
{
public:
- ContactListViewItem(const KABC::Addressee &a, ContactListView* tqparent,
+ ContactListViewItem(const KABC::Addressee &a, ContactListView* parent,
KABC::AddressBook *doc, const KABC::Field::List &fields, KIMProxy *proxy );
const KABC::Addressee &addressee() const { return mAddressee; }
virtual void refresh();
- virtual ContactListView* tqparent();
+ virtual ContactListView* parent();
virtual TQString key ( int, bool ) const;
void setHasIM( bool hasIM );
/** Adds the border around the cell if the user wants it.
@@ -90,7 +90,7 @@ class ContactListView : public KListView
public:
ContactListView(KAddressBookTableView *view,
KABC::AddressBook *doc,
- TQWidget *tqparent,
+ TQWidget *parent,
const char *name = 0L );
virtual ~ContactListView() {}
//void resort();
diff --git a/kaddressbook/views/kaddressbookcardview.cpp b/kaddressbook/views/kaddressbookcardview.cpp
index 1c7f2806..211b62dd 100644
--- a/kaddressbook/views/kaddressbookcardview.cpp
+++ b/kaddressbook/views/kaddressbookcardview.cpp
@@ -43,19 +43,19 @@
class CardViewFactory : public ViewFactory
{
public:
- KAddressBookView *view( KAB::Core *core, TQWidget *tqparent, const char *name )
+ KAddressBookView *view( KAB::Core *core, TQWidget *parent, const char *name )
{
- return new KAddressBookCardView( core, tqparent, name );
+ return new KAddressBookCardView( core, parent, name );
}
TQString type() const { return I18N_NOOP("Card"); }
TQString description() const { return i18n( "Rolodex style cards represent contacts." ); }
- ViewConfigureWidget *configureWidget( KABC::AddressBook *ab, TQWidget *tqparent,
+ ViewConfigureWidget *configureWidget( KABC::AddressBook *ab, TQWidget *parent,
const char *name = 0 )
{
- return new ConfigureCardViewWidget( ab, tqparent, name );
+ return new ConfigureCardViewWidget( ab, parent, name );
}
};
@@ -72,8 +72,8 @@ class AddresseeCardViewItem : public CardViewItem
AddresseeCardViewItem( const KABC::Field::List &fields,
bool showEmptyFields,
KABC::AddressBook *doc, const KABC::Addressee &addr,
- CardView *tqparent )
- : CardViewItem( tqparent, addr.realName() ),
+ CardView *parent )
+ : CardViewItem( parent, addr.realName() ),
mFields( fields ), mShowEmptyFields( showEmptyFields ),
mDocument( doc ), mAddressee( addr )
{
@@ -116,8 +116,8 @@ class AddresseeCardViewItem : public CardViewItem
};
-AddresseeCardView::AddresseeCardView( TQWidget *tqparent, const char *name )
- : CardView( tqparent, name )
+AddresseeCardView::AddresseeCardView( TQWidget *parent, const char *name )
+ : CardView( parent, name )
{
setAcceptDrops( true );
}
@@ -144,8 +144,8 @@ void AddresseeCardView::startDrag()
KAddressBookCardView::KAddressBookCardView( KAB::Core *core,
- TQWidget *tqparent, const char *name )
- : KAddressBookView( core, tqparent, name )
+ TQWidget *parent, const char *name )
+ : KAddressBookView( core, parent, name )
{
mShowEmptyFields = false;
diff --git a/kaddressbook/views/kaddressbookcardview.h b/kaddressbook/views/kaddressbookcardview.h
index 9ccc8a40..128b146a 100644
--- a/kaddressbook/views/kaddressbookcardview.h
+++ b/kaddressbook/views/kaddressbookcardview.h
@@ -46,7 +46,7 @@ class KAddressBookCardView : public KAddressBookView
TQ_OBJECT
public:
- KAddressBookCardView( KAB::Core *core, TQWidget *tqparent,
+ KAddressBookCardView( KAB::Core *core, TQWidget *parent,
const char *name = 0 );
virtual ~KAddressBookCardView();
@@ -80,7 +80,7 @@ class AddresseeCardView : public CardView
Q_OBJECT
TQ_OBJECT
public:
- AddresseeCardView( TQWidget *tqparent, const char *name = 0 );
+ AddresseeCardView( TQWidget *parent, const char *name = 0 );
~AddresseeCardView();
signals:
diff --git a/kaddressbook/views/kaddressbookiconview.cpp b/kaddressbook/views/kaddressbookiconview.cpp
index 16fe5cad..b99bca85 100644
--- a/kaddressbook/views/kaddressbookiconview.cpp
+++ b/kaddressbook/views/kaddressbookiconview.cpp
@@ -42,9 +42,9 @@
class IconViewFactory : public ViewFactory
{
public:
- KAddressBookView *view( KAB::Core *core, TQWidget *tqparent, const char *name )
+ KAddressBookView *view( KAB::Core *core, TQWidget *parent, const char *name )
{
- return new KAddressBookIconView( core, tqparent, name );
+ return new KAddressBookIconView( core, parent, name );
}
TQString type() const { return I18N_NOOP( "Icon" ); }
@@ -59,8 +59,8 @@ extern "C" {
}
}
-AddresseeIconView::AddresseeIconView( TQWidget *tqparent, const char *name )
- : KIconView( tqparent, name )
+AddresseeIconView::AddresseeIconView( TQWidget *parent, const char *name )
+ : KIconView( parent, 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 *tqparent )
- : KIconViewItem( tqparent ), mDocument( doc ), mAddressee( addr )
+ const KABC::Addressee &addr, TQIconView *parent )
+ : KIconViewItem( parent ), mDocument( doc ), mAddressee( addr )
{
refresh();
}
@@ -136,8 +136,8 @@ class AddresseeIconViewItem : public KIconViewItem
KAddressBookIconView::KAddressBookIconView( KAB::Core *core,
- TQWidget *tqparent, const char *name)
- : KAddressBookView( core, tqparent, name )
+ TQWidget *parent, const char *name)
+ : KAddressBookView( core, parent, name )
{
TQVBoxLayout *tqlayout = new TQVBoxLayout( viewWidget() );
diff --git a/kaddressbook/views/kaddressbookiconview.h b/kaddressbook/views/kaddressbookiconview.h
index 5b9c8c7c..614920c2 100644
--- a/kaddressbook/views/kaddressbookiconview.h
+++ b/kaddressbook/views/kaddressbookiconview.h
@@ -45,7 +45,7 @@ class KAddressBookIconView : public KAddressBookView
TQ_OBJECT
public:
- KAddressBookIconView( KAB::Core *core, TQWidget *tqparent,
+ KAddressBookIconView( KAB::Core *core, TQWidget *parent,
const char *name = 0 );
virtual ~KAddressBookIconView();
@@ -79,7 +79,7 @@ class AddresseeIconView : public KIconView
TQ_OBJECT
public:
- AddresseeIconView( TQWidget *tqparent, const char *name = 0 );
+ AddresseeIconView( TQWidget *parent, const char *name = 0 );
~AddresseeIconView();
signals:
diff --git a/kaddressbook/views/kaddressbooktableview.cpp b/kaddressbook/views/kaddressbooktableview.cpp
index 65bcd36c..19364d59 100644
--- a/kaddressbook/views/kaddressbooktableview.cpp
+++ b/kaddressbook/views/kaddressbooktableview.cpp
@@ -61,9 +61,9 @@
class TableViewFactory : public ViewFactory
{
public:
- KAddressBookView *view( KAB::Core *core, TQWidget *tqparent, const char *name )
+ KAddressBookView *view( KAB::Core *core, TQWidget *parent, const char *name )
{
- return new KAddressBookTableView( core, tqparent, name );
+ return new KAddressBookTableView( core, parent, name );
}
TQString type() const { return I18N_NOOP( "Table" ); }
@@ -71,10 +71,10 @@ class TableViewFactory : public ViewFactory
TQString description() const { return i18n( "A listing of contacts in a table. Each cell of "
"the table holds a field of the contact." ); }
- ViewConfigureWidget *configureWidget( KABC::AddressBook *ab, TQWidget *tqparent,
+ ViewConfigureWidget *configureWidget( KABC::AddressBook *ab, TQWidget *parent,
const char *name = 0 )
{
- return new ConfigureTableViewWidget( ab, tqparent, name );
+ return new ConfigureTableViewWidget( ab, parent, name );
}
};
@@ -86,8 +86,8 @@ extern "C" {
}
KAddressBookTableView::KAddressBookTableView( KAB::Core *core,
- TQWidget *tqparent, const char *name )
- : KAddressBookView( core, tqparent, name )
+ TQWidget *parent, const char *name )
+ : KAddressBookView( core, parent, name )
{
mMainLayout = new TQVBoxLayout( viewWidget(), 2 );
diff --git a/kaddressbook/views/kaddressbooktableview.h b/kaddressbook/views/kaddressbooktableview.h
index f212829f..5c9a7510 100644
--- a/kaddressbook/views/kaddressbooktableview.h
+++ b/kaddressbook/views/kaddressbooktableview.h
@@ -65,7 +65,7 @@ friend class ContactListView;
TQ_OBJECT
public:
- KAddressBookTableView( KAB::Core *core, TQWidget *tqparent,
+ KAddressBookTableView( KAB::Core *core, TQWidget *parent,
const char *name = 0 );
virtual ~KAddressBookTableView();