summaryrefslogtreecommitdiffstats
path: root/kontact/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'kontact/plugins')
-rw-r--r--kontact/plugins/kmail/kcmkmailsummary.cpp10
-rw-r--r--kontact/plugins/kmail/kmail_plugin.cpp2
-rw-r--r--kontact/plugins/kmail/summarywidget.cpp8
-rw-r--r--kontact/plugins/knotes/knotes_part.cpp4
-rw-r--r--kontact/plugins/knotes/knotes_part_p.h8
-rw-r--r--kontact/plugins/knotes/knotes_plugin.cpp4
-rw-r--r--kontact/plugins/knotes/knotes_plugin.h2
-rw-r--r--kontact/plugins/knotes/knotetip.cpp4
-rw-r--r--kontact/plugins/knotes/summarywidget.cpp10
-rw-r--r--kontact/plugins/korganizer/kcmkorgsummary.cpp10
-rw-r--r--kontact/plugins/korganizer/korganizerplugin.cpp4
-rw-r--r--kontact/plugins/korganizer/summarywidget.cpp34
-rw-r--r--kontact/plugins/korganizer/todoplugin.cpp2
-rw-r--r--kontact/plugins/korganizer/todosummarywidget.cpp28
-rw-r--r--kontact/plugins/kpilot/kpilot_plugin.cpp4
-rw-r--r--kontact/plugins/kpilot/kpilot_plugin.h2
-rw-r--r--kontact/plugins/kpilot/summarywidget.cpp4
-rw-r--r--kontact/plugins/newsticker/kcmkontactknt.cpp22
-rw-r--r--kontact/plugins/newsticker/newsfeeds.h282
-rw-r--r--kontact/plugins/newsticker/newsticker_plugin.cpp4
-rw-r--r--kontact/plugins/newsticker/newsticker_plugin.h2
-rw-r--r--kontact/plugins/newsticker/summarywidget.cpp16
-rw-r--r--kontact/plugins/specialdates/kcmsdsummary.cpp12
-rw-r--r--kontact/plugins/specialdates/sdsummarywidget.cpp52
-rw-r--r--kontact/plugins/specialdates/specialdates_plugin.cpp4
-rw-r--r--kontact/plugins/specialdates/specialdates_plugin.h2
-rw-r--r--kontact/plugins/summary/dropwidget.cpp6
-rw-r--r--kontact/plugins/summary/dropwidget.h2
-rw-r--r--kontact/plugins/summary/kcmkontactsummary.cpp10
-rw-r--r--kontact/plugins/summary/summaryview_part.cpp38
-rw-r--r--kontact/plugins/summary/summaryview_part.h2
-rw-r--r--kontact/plugins/test/test_part.cpp2
-rw-r--r--kontact/plugins/weather/summarywidget.cpp22
-rw-r--r--kontact/plugins/weather/weather_plugin.cpp4
-rw-r--r--kontact/plugins/weather/weather_plugin.h2
35 files changed, 312 insertions, 312 deletions
diff --git a/kontact/plugins/kmail/kcmkmailsummary.cpp b/kontact/plugins/kmail/kcmkmailsummary.cpp
index 656ffe4e9..e27254e33 100644
--- a/kontact/plugins/kmail/kcmkmailsummary.cpp
+++ b/kontact/plugins/kmail/kcmkmailsummary.cpp
@@ -75,7 +75,7 @@ void KCMKMailSummary::modified()
void KCMKMailSummary::initGUI()
{
- TQVBoxLayout *layout = new TQVBoxLayout( this, 0, KDialog::spacingHint() );
+ TQVBoxLayout *tqlayout = new TQVBoxLayout( this, 0, KDialog::spacingHint() );
mFolderView = new KListView( this );
mFolderView->setRootIsDecorated( true );
@@ -85,8 +85,8 @@ void KCMKMailSummary::initGUI()
mFullPath = new TQCheckBox( i18n( "Show full path for folders" ), this );
- layout->addWidget( mFolderView );
- layout->addWidget( mFullPath );
+ tqlayout->addWidget( mFolderView );
+ tqlayout->addWidget( mFullPath );
}
void KCMKMailSummary::initFolders()
@@ -108,7 +108,7 @@ void KCMKMailSummary::initFolders()
DCOPRef folderRef = kmail.call( "getFolder(TQString)", *it );
folderRef.call( "displayName()" ).get( displayName );
}
- if ( (*it).contains( '/' ) == 1 ) {
+ if ( (*it).tqcontains( '/' ) == 1 ) {
if ( mFolderMap.find( *it ) == mFolderMap.end() )
mFolderMap.insert( *it, new TQListViewItem( mFolderView,
displayName ) );
@@ -137,7 +137,7 @@ void KCMKMailSummary::loadFolders()
TQMap<TQString, TQListViewItem*>::Iterator it;
for ( it = mFolderMap.begin(); it != mFolderMap.end(); ++it ) {
if ( TQCheckListItem *qli = dynamic_cast<TQCheckListItem*>( it.data() ) ) {
- if ( folders.contains( it.key() ) ) {
+ if ( folders.tqcontains( it.key() ) ) {
qli->setOn( true );
mFolderView->ensureItemVisible( it.data() );
} else {
diff --git a/kontact/plugins/kmail/kmail_plugin.cpp b/kontact/plugins/kmail/kmail_plugin.cpp
index 5a8797472..c2aff819d 100644
--- a/kontact/plugins/kmail/kmail_plugin.cpp
+++ b/kontact/plugins/kmail/kmail_plugin.cpp
@@ -83,7 +83,7 @@ bool KMailPlugin::canDecodeDrag( TQMimeSource *qms )
void KMailPlugin::processDropEvent( TQDropEvent * de )
{
kdDebug() << k_funcinfo << endl;
- CalendarLocal cal( TQString::fromLatin1("UTC") );
+ CalendarLocal cal( TQString::tqfromLatin1("UTC") );
KABC::Addressee::List list;
if ( VCalDrag::decode( de, &cal ) || ICalDrag::decode( de, &cal ) ) {
diff --git a/kontact/plugins/kmail/summarywidget.cpp b/kontact/plugins/kmail/summarywidget.cpp
index 43c1e2cb7..92023570c 100644
--- a/kontact/plugins/kmail/summarywidget.cpp
+++ b/kontact/plugins/kmail/summarywidget.cpp
@@ -117,7 +117,7 @@ void SummaryWidget::updateFolderList( const TQStringList& folders )
TQStringList::ConstIterator it;
DCOPRef kmail( "kmail", "KMailIface" );
for ( it = folders.begin(); it != folders.end(); ++it ) {
- if ( activeFolders.contains( *it ) ) {
+ if ( activeFolders.tqcontains( *it ) ) {
DCOPRef folderRef = kmail.call( "getFolder(TQString)", *it );
const int numMsg = folderRef.call( "messages()" );
const int numUnreadMsg = folderRef.call( "unreadMessages()" );
@@ -132,7 +132,7 @@ void SummaryWidget::updateFolderList( const TQStringList& folders )
KURLLabel *urlLabel = new KURLLabel( *it, folderPath, this );
urlLabel->installEventFilter( this );
- urlLabel->setAlignment( AlignLeft );
+ urlLabel->tqsetAlignment( AlignLeft );
urlLabel->show();
connect( urlLabel, TQT_SIGNAL( leftClickedURL( const TQString& ) ),
TQT_SLOT( selectFolder( const TQString& ) ) );
@@ -143,7 +143,7 @@ void SummaryWidget::updateFolderList( const TQStringList& folders )
new TQLabel( TQString( i18n("%1: number of unread messages "
"%2: total number of messages", "%1 / %2") )
.arg( numUnreadMsg ).arg( numMsg ), this );
- label->setAlignment( AlignLeft );
+ label->tqsetAlignment( AlignLeft );
label->show();
mLayout->addWidget( label, counter, 2 );
mLabels.append( label );
@@ -154,7 +154,7 @@ void SummaryWidget::updateFolderList( const TQStringList& folders )
if ( counter == 0 ) {
TQLabel *label = new TQLabel( i18n( "No unread messages in your monitored folders" ), this );
- label->setAlignment( AlignHCenter | AlignVCenter );
+ label->tqsetAlignment( AlignHCenter | AlignVCenter );
mLayout->addMultiCellWidget( label, 0, 0, 0, 2 );
label->show();
mLabels.append( label );
diff --git a/kontact/plugins/knotes/knotes_part.cpp b/kontact/plugins/knotes/knotes_part.cpp
index d4a5e8547..ef70e8f56 100644
--- a/kontact/plugins/knotes/knotes_part.cpp
+++ b/kontact/plugins/knotes/knotes_part.cpp
@@ -139,7 +139,7 @@ void KNotesPart::printSelectedNotes()
//printer.setFont( m_config->font() );
//printer.setContext( m_editor->context() );
//printer.setStyleSheet( m_editor->styleSheet() );
- printer.setColorGroup( colorGroup() );
+ printer.tqsetColorGroup( tqcolorGroup() );
printer.printNote( , content );
#endif
}
@@ -161,7 +161,7 @@ TQString KNotesPart::newNote( const TQString& name, const TQString& text )
if ( !name.isEmpty() )
journal->setSummary( name );
else
- journal->setSummary( KGlobal::locale()->formatDateTime( TQDateTime::currentDateTime() ) );
+ journal->setSummary( KGlobal::locale()->formatDateTime( TQDateTime::tqcurrentDateTime() ) );
// the body of the note
journal->setDescription( text );
diff --git a/kontact/plugins/knotes/knotes_part_p.h b/kontact/plugins/knotes/knotes_part_p.h
index 0bf073f3a..2c96235f5 100644
--- a/kontact/plugins/knotes/knotes_part_p.h
+++ b/kontact/plugins/knotes/knotes_part_p.h
@@ -129,9 +129,9 @@ class KNoteEditDlg : public KDialogBase, virtual public KXMLGUIClient
actionCollection()->setWidget( this );
TQWidget *page = plainPage();
- TQVBoxLayout *layout = new TQVBoxLayout( page );
+ TQVBoxLayout *tqlayout = new TQVBoxLayout( page );
- TQHBoxLayout *hbl = new TQHBoxLayout( layout, marginHint() );
+ TQHBoxLayout *hbl = new TQHBoxLayout( tqlayout, marginHint() );
TQLabel *label = new TQLabel( page);
label->setText( i18n( "Name:" ) );
hbl->addWidget( label,0 );
@@ -148,8 +148,8 @@ class KNoteEditDlg : public KDialogBase, virtual public KXMLGUIClient
mTool = static_cast<KToolBar *>(factory.container( "note_tool", this ));
- layout->addWidget( mTool );
- layout->addWidget( mNoteEdit );
+ tqlayout->addWidget( mTool );
+ tqlayout->addWidget( mNoteEdit );
}
TQString text() const
diff --git a/kontact/plugins/knotes/knotes_plugin.cpp b/kontact/plugins/knotes/knotes_plugin.cpp
index 1a94fdea3..0fe265524 100644
--- a/kontact/plugins/knotes/knotes_plugin.cpp
+++ b/kontact/plugins/knotes/knotes_plugin.cpp
@@ -59,9 +59,9 @@ KParts::ReadOnlyPart* KNotesPlugin::createPart()
return new KNotesPart( this, "notes" );
}
-Kontact::Summary *KNotesPlugin::createSummaryWidget( TQWidget *parentWidget )
+Kontact::Summary *KNotesPlugin::createSummaryWidget( TQWidget *tqparentWidget )
{
- return new KNotesSummaryWidget( this, parentWidget );
+ return new KNotesSummaryWidget( this, tqparentWidget );
}
const KAboutData *KNotesPlugin::aboutData()
diff --git a/kontact/plugins/knotes/knotes_plugin.h b/kontact/plugins/knotes/knotes_plugin.h
index a94494581..65e6450df 100644
--- a/kontact/plugins/knotes/knotes_plugin.h
+++ b/kontact/plugins/knotes/knotes_plugin.h
@@ -37,7 +37,7 @@ class KNotesPlugin : public Kontact::Plugin
KNotesPlugin( Kontact::Core *core, const char *name, const TQStringList& );
~KNotesPlugin();
- virtual Kontact::Summary *createSummaryWidget( TQWidget *parentWidget );
+ virtual Kontact::Summary *createSummaryWidget( TQWidget *tqparentWidget );
int weight() const { return 600; }
diff --git a/kontact/plugins/knotes/knotetip.cpp b/kontact/plugins/knotes/knotetip.cpp
index 64db3a336..3ba9a9ab3 100644
--- a/kontact/plugins/knotes/knotetip.cpp
+++ b/kontact/plugins/knotes/knotetip.cpp
@@ -52,8 +52,8 @@ KNoteTip::KNoteTip( KIconView *parent )
mPreview->setHScrollBarMode( TQScrollView::AlwaysOff );
mPreview->setVScrollBarMode( TQScrollView::AlwaysOff );
- TQBoxLayout *layout = new TQVBoxLayout( this );
- layout->addWidget( mPreview );
+ TQBoxLayout *tqlayout = new TQVBoxLayout( this );
+ tqlayout->addWidget( mPreview );
setPalette( TQToolTip::palette() );
setMargin( 1 );
diff --git a/kontact/plugins/knotes/summarywidget.cpp b/kontact/plugins/knotes/summarywidget.cpp
index 012e6ae82..b714ff19e 100644
--- a/kontact/plugins/knotes/summarywidget.cpp
+++ b/kontact/plugins/knotes/summarywidget.cpp
@@ -58,7 +58,7 @@ KNotesSummaryWidget::KNotesSummaryWidget( Kontact::Plugin *plugin,
mLayout = new TQGridLayout( mainLayout, 7, 3, 3 );
mLayout->setRowStretch( 6, 1 );
- mCalendar = new KCal::CalendarLocal( TQString::fromLatin1("UTC") );
+ mCalendar = new KCal::CalendarLocal( TQString::tqfromLatin1("UTC") );
KNotesResourceManager *manager = new KNotesResourceManager();
TQObject::connect( manager, TQT_SIGNAL( sigRegisteredNote( KCal::Journal* ) ),
@@ -92,8 +92,8 @@ void KNotesSummaryWidget::updateView()
// Fill Note Pixmap Field
label = new TQLabel( this );
label->setPixmap( pm );
- label->setMaximumWidth( label->minimumSizeHint().width() );
- label->setAlignment( AlignVCenter );
+ label->setMaximumWidth( label->tqminimumSizeHint().width() );
+ label->tqsetAlignment( AlignVCenter );
mLayout->addWidget( label, counter, 0 );
mLabels.append( label );
@@ -103,7 +103,7 @@ void KNotesSummaryWidget::updateView()
KURLLabel *urlLabel = new KURLLabel( (*it)->uid(), newtext, this );
urlLabel->installEventFilter( this );
urlLabel->setTextFormat(RichText);
- urlLabel->setAlignment( urlLabel->alignment() | Qt::WordBreak );
+ urlLabel->tqsetAlignment( urlLabel->tqalignment() | Qt::WordBreak );
mLayout->addWidget( urlLabel, counter, 1 );
mLabels.append( urlLabel );
@@ -118,7 +118,7 @@ void KNotesSummaryWidget::updateView()
} else {
TQLabel *noNotes = new TQLabel( i18n( "No Notes Available" ), this );
- noNotes->setAlignment( AlignHCenter | AlignVCenter );
+ noNotes->tqsetAlignment( AlignHCenter | AlignVCenter );
mLayout->addWidget( noNotes, 0, 1 );
mLabels.append( noNotes );
}
diff --git a/kontact/plugins/korganizer/kcmkorgsummary.cpp b/kontact/plugins/korganizer/kcmkorgsummary.cpp
index 2a4b6a3e1..ba431eb38 100644
--- a/kontact/plugins/korganizer/kcmkorgsummary.cpp
+++ b/kontact/plugins/korganizer/kcmkorgsummary.cpp
@@ -90,10 +90,10 @@ void KCMKOrgSummary::customDaysChanged( int value )
void KCMKOrgSummary::initGUI()
{
- TQVBoxLayout *layout = new TQVBoxLayout( this, 0, KDialog::spacingHint() );
+ TQVBoxLayout *tqlayout = new TQVBoxLayout( this, 0, KDialog::spacingHint() );
mCalendarGroup = new TQButtonGroup( 0, Vertical, i18n( "Appointments" ), this );
- TQVBoxLayout *boxLayout = new TQVBoxLayout( mCalendarGroup->layout(),
+ TQVBoxLayout *boxLayout = new TQVBoxLayout( mCalendarGroup->tqlayout(),
KDialog::spacingHint() );
TQLabel *label = new TQLabel( i18n( "How many days should the calendar show at once?" ), mCalendarGroup );
@@ -122,15 +122,15 @@ void KCMKOrgSummary::initGUI()
hbox->addStretch( 1 );
- layout->addWidget( mCalendarGroup );
+ tqlayout->addWidget( mCalendarGroup );
mTodoGroup = new TQButtonGroup( 2, Horizontal, i18n( "To-dos" ), this );
new TQRadioButton( i18n( "Show all to-dos" ), mTodoGroup );
new TQRadioButton( i18n( "Show today's to-dos only" ), mTodoGroup );
- layout->addWidget( mTodoGroup );
+ tqlayout->addWidget( mTodoGroup );
- layout->addStretch();
+ tqlayout->addStretch();
}
void KCMKOrgSummary::load()
diff --git a/kontact/plugins/korganizer/korganizerplugin.cpp b/kontact/plugins/korganizer/korganizerplugin.cpp
index cd590ec96..d740721c2 100644
--- a/kontact/plugins/korganizer/korganizerplugin.cpp
+++ b/kontact/plugins/korganizer/korganizerplugin.cpp
@@ -224,8 +224,8 @@ void KOrganizerPlugin::processDropEvent( TQDropEvent *event )
KTempFile tf;
tf.setAutoDelete( true );
- TQString uri = TQString::fromLatin1("kmail:") + TQString::number( mail.serialNumber() );
- tf.file()->writeBlock( event->encodedData( "message/rfc822" ) );
+ TQString uri = TQString::tqfromLatin1("kmail:") + TQString::number( mail.serialNumber() );
+ tf.file()->writeBlock( event->tqencodedData( "message/rfc822" ) );
tf.close();
interface()->openEventEditor( i18n("Mail: %1").arg( mail.subject() ), txt,
uri, tf.name(), TQStringList(), "message/rfc822" );
diff --git a/kontact/plugins/korganizer/summarywidget.cpp b/kontact/plugins/korganizer/summarywidget.cpp
index cab7788f9..06a4694c4 100644
--- a/kontact/plugins/korganizer/summarywidget.cpp
+++ b/kontact/plugins/korganizer/summarywidget.cpp
@@ -97,9 +97,9 @@ void SummaryWidget::updateView()
TQPixmap pma = loader.loadIcon( "calendaranniversary", KIcon::Small );
TQDate dt;
- TQDate currentDate = TQDate::currentDate();
- for ( dt=currentDate;
- dt<=currentDate.addDays( days - 1 );
+ TQDate tqcurrentDate = TQDate::tqcurrentDate();
+ for ( dt=tqcurrentDate;
+ dt<=tqcurrentDate.addDays( days - 1 );
dt=dt.addDays(1) ) {
KCal::Event::List events = mCalendar->events( dt );
@@ -123,8 +123,8 @@ void SummaryWidget::updateView()
int span=1; int dayof=1;
if ( ev->isMultiDay() ) {
TQDate d = ev->dtStart().date();
- if ( d < currentDate ) {
- d = currentDate;
+ if ( d < tqcurrentDate ) {
+ d = tqcurrentDate;
}
while ( d < ev->dtEnd().date() ) {
if ( d < dt ) {
@@ -141,15 +141,15 @@ void SummaryWidget::updateView()
// Fill Appointment Pixmap Field
label = new TQLabel( this );
- if ( ev->categories().contains( "Birthday" ) ) {
+ if ( ev->categories().tqcontains( "Birthday" ) ) {
label->setPixmap( pmb );
- } else if ( ev->categories().contains( "Anniversary" ) ) {
+ } else if ( ev->categories().tqcontains( "Anniversary" ) ) {
label->setPixmap( pma );
} else {
label->setPixmap( pm );
}
- label->setMaximumWidth( label->minimumSizeHint().width() );
- label->setAlignment( AlignVCenter );
+ label->setMaximumWidth( label->tqminimumSizeHint().width() );
+ label->tqsetAlignment( AlignVCenter );
mLayout->addWidget( label, counter, 0 );
mLabels.append( label );
@@ -159,12 +159,12 @@ void SummaryWidget::updateView()
// Modify event date for printing
TQDate sD = TQDate( dt.year(), dt.month(), dt.day() );
- if ( ( sD.month() == currentDate.month() ) &&
- ( sD.day() == currentDate.day() ) ) {
+ if ( ( sD.month() == tqcurrentDate.month() ) &&
+ ( sD.day() == tqcurrentDate.day() ) ) {
datestr = i18n( "Today" );
makeBold = true;
- } else if ( ( sD.month() == currentDate.addDays( 1 ).month() ) &&
- ( sD.day() == currentDate.addDays( 1 ).day() ) ) {
+ } else if ( ( sD.month() == tqcurrentDate.addDays( 1 ).month() ) &&
+ ( sD.day() == tqcurrentDate.addDays( 1 ).day() ) ) {
datestr = i18n( "Tomorrow" );
} else {
datestr = KGlobal::locale()->formatDate( sD );
@@ -179,7 +179,7 @@ void SummaryWidget::updateView()
}
label = new TQLabel( datestr, this );
- label->setAlignment( AlignLeft | AlignVCenter );
+ label->tqsetAlignment( AlignLeft | AlignVCenter );
if ( makeBold ) {
TQFont font = label->font();
font.setBold( true );
@@ -198,7 +198,7 @@ void SummaryWidget::updateView()
urlLabel->setText( newtext );
urlLabel->setURL( ev->uid() );
urlLabel->installEventFilter( this );
- urlLabel->setAlignment( urlLabel->alignment() | Qt::WordBreak );
+ urlLabel->tqsetAlignment( urlLabel->tqalignment() | Qt::WordBreak );
mLayout->addWidget( urlLabel, counter, 2 );
mLabels.append( urlLabel );
@@ -228,7 +228,7 @@ void SummaryWidget::updateView()
.arg( KGlobal::locale()->formatTime( sST ) )
.arg( KGlobal::locale()->formatTime( sET ) );
label = new TQLabel( datestr, this );
- label->setAlignment( AlignLeft | AlignVCenter );
+ label->tqsetAlignment( AlignLeft | AlignVCenter );
mLayout->addWidget( label, counter, 3 );
mLabels.append( label );
}
@@ -242,7 +242,7 @@ void SummaryWidget::updateView()
i18n( "No appointments pending within the next day",
"No appointments pending within the next %n days",
days ), this, "nothing to see" );
- noEvents->setAlignment( AlignHCenter | AlignVCenter );
+ noEvents->tqsetAlignment( AlignHCenter | AlignVCenter );
mLayout->addWidget( noEvents, 0, 2 );
mLabels.append( noEvents );
}
diff --git a/kontact/plugins/korganizer/todoplugin.cpp b/kontact/plugins/korganizer/todoplugin.cpp
index bc76205c2..3b553ee0f 100644
--- a/kontact/plugins/korganizer/todoplugin.cpp
+++ b/kontact/plugins/korganizer/todoplugin.cpp
@@ -217,7 +217,7 @@ void TodoPlugin::processDropEvent( TQDropEvent *event )
tf.setAutoDelete( true );
TQString uri = "kmail:" + TQString::number( mail.serialNumber() ) + "/" +
mail.messageId();
- tf.file()->writeBlock( event->encodedData( "message/rfc822" ) );
+ tf.file()->writeBlock( event->tqencodedData( "message/rfc822" ) );
tf.close();
interface()->openTodoEditor( i18n("Mail: %1").arg( mail.subject() ),
txt, uri, tf.name(), TQStringList(), "message/rfc822", false );
diff --git a/kontact/plugins/korganizer/todosummarywidget.cpp b/kontact/plugins/korganizer/todosummarywidget.cpp
index 953aa42cb..05e9ea55e 100644
--- a/kontact/plugins/korganizer/todosummarywidget.cpp
+++ b/kontact/plugins/korganizer/todosummarywidget.cpp
@@ -94,7 +94,7 @@ void TodoSummaryWidget::updateView()
TQLabel *label = 0;
int counter = 0;
- TQDate currentDate = TQDate::currentDate();
+ TQDate tqcurrentDate = TQDate::tqcurrentDate();
KCal::Todo::List todos = mCalendar->todos();
if ( todos.count() > 0 ) {
TQPixmap pm = loader.loadIcon( "todo", KIcon::Small );
@@ -111,27 +111,27 @@ void TodoSummaryWidget::updateView()
// show uncomplete todos from the last days
if ( todo->hasDueDate() && !todo->isCompleted() &&
- todo->dtDue().date() < currentDate ) {
+ todo->dtDue().date() < tqcurrentDate ) {
accepted = true;
stateText = i18n( "overdue" );
}
// show todos which started somewhere in the past and has to be finished in future
if ( todo->hasStartDate() && todo->hasDueDate() &&
- todo->dtStart().date() < currentDate &&
- currentDate < todo->dtDue().date() ) {
+ todo->dtStart().date() < tqcurrentDate &&
+ tqcurrentDate < todo->dtDue().date() ) {
accepted = true;
stateText = i18n( "in progress" );
}
// all todos which start today
- if ( todo->hasStartDate() && todo->dtStart().date() == currentDate ) {
+ if ( todo->hasStartDate() && todo->dtStart().date() == tqcurrentDate ) {
accepted = true;
stateText = i18n( "starts today" );
}
// all todos which end today
- if ( todo->hasDueDate() && todo->dtDue().date() == currentDate ) {
+ if ( todo->hasDueDate() && todo->dtDue().date() == tqcurrentDate ) {
accepted = true;
stateText = i18n( "ends today" );
}
@@ -141,13 +141,13 @@ void TodoSummaryWidget::updateView()
label = new TQLabel( this );
label->setPixmap( pm );
- label->setSizePolicy( TQSizePolicy::Maximum, TQSizePolicy::Maximum );
+ label->tqsetSizePolicy( TQSizePolicy::Maximum, TQSizePolicy::Maximum );
mLayout->addWidget( label, counter, 0 );
mLabels.append( label );
label = new TQLabel( TQString::number( todo->percentComplete() ) + "%", this );
- label->setAlignment( AlignHCenter | AlignVCenter );
- label->setSizePolicy( TQSizePolicy::Maximum, TQSizePolicy::Maximum );
+ label->tqsetAlignment( AlignHCenter | AlignVCenter );
+ label->tqsetSizePolicy( TQSizePolicy::Maximum, TQSizePolicy::Maximum );
mLayout->addWidget( label, counter, 1 );
mLabels.append( label );
@@ -168,14 +168,14 @@ void TodoSummaryWidget::updateView()
connect( urlLabel, TQT_SIGNAL( rightClickedURL( const TQString& ) ),
this, TQT_SLOT( popupMenu( const TQString& ) ) );
- TQString tipText( KCal::IncidenceFormatter::toolTipStr( mCalendar, todo, currentDate, true ) );
+ TQString tipText( KCal::IncidenceFormatter::toolTipStr( mCalendar, todo, tqcurrentDate, true ) );
if ( !tipText.isEmpty() ) {
TQToolTip::add( urlLabel, tipText );
}
label = new TQLabel( stateText, this );
- label->setAlignment( AlignLeft | AlignVCenter );
- label->setSizePolicy( TQSizePolicy::Maximum, TQSizePolicy::Maximum );
+ label->tqsetAlignment( AlignLeft | AlignVCenter );
+ label->tqsetSizePolicy( TQSizePolicy::Maximum, TQSizePolicy::Maximum );
mLayout->addWidget( label, counter, 3 );
mLabels.append( label );
@@ -185,7 +185,7 @@ void TodoSummaryWidget::updateView()
if ( counter == 0 ) {
TQLabel *noTodos = new TQLabel( i18n( "No to-dos pending" ), this );
- noTodos->setAlignment( AlignHCenter | AlignVCenter );
+ noTodos->tqsetAlignment( AlignHCenter | AlignVCenter );
mLayout->addWidget( noTodos, 0, 1 );
mLabels.append( noTodos );
}
@@ -214,7 +214,7 @@ void TodoSummaryWidget::completeTodo( const TQString &uid )
IncidenceChanger *changer = new IncidenceChanger( mCalendar, this );
if ( !todo->isReadOnly() && changer->beginChange( todo, 0, TQString() ) ) {
KCal::Todo *oldTodo = todo->clone();
- todo->setCompleted( TQDateTime::currentDateTime() );
+ todo->setCompleted( TQDateTime::tqcurrentDateTime() );
changer->changeIncidence( oldTodo, todo, KOGlobals::COMPLETION_MODIFIED, this );
changer->endChange( todo, 0, TQString() );
delete oldTodo;
diff --git a/kontact/plugins/kpilot/kpilot_plugin.cpp b/kontact/plugins/kpilot/kpilot_plugin.cpp
index 953c5f255..88e9d7886 100644
--- a/kontact/plugins/kpilot/kpilot_plugin.cpp
+++ b/kontact/plugins/kpilot/kpilot_plugin.cpp
@@ -43,9 +43,9 @@ KPilotPlugin::KPilotPlugin( Kontact::Core *core, const char *name, const TQStrin
}
-Kontact::Summary *KPilotPlugin::createSummaryWidget( TQWidget *parentWidget )
+Kontact::Summary *KPilotPlugin::createSummaryWidget( TQWidget *tqparentWidget )
{
- return new SummaryWidget( parentWidget );
+ return new SummaryWidget( tqparentWidget );
}
const KAboutData *KPilotPlugin::aboutData()
diff --git a/kontact/plugins/kpilot/kpilot_plugin.h b/kontact/plugins/kpilot/kpilot_plugin.h
index 5695d2605..b1a08cbef 100644
--- a/kontact/plugins/kpilot/kpilot_plugin.h
+++ b/kontact/plugins/kpilot/kpilot_plugin.h
@@ -33,7 +33,7 @@ class KPilotPlugin : public Kontact::Plugin
KPilotPlugin( Kontact::Core *core, const char *name, const TQStringList& );
KPilotPlugin();
- virtual Kontact::Summary *createSummaryWidget( TQWidget *parentWidget );
+ virtual Kontact::Summary *createSummaryWidget( TQWidget *tqparentWidget );
virtual bool showInSideBar() const { return false; }
// virtual TQStringList configModules() const;
diff --git a/kontact/plugins/kpilot/summarywidget.cpp b/kontact/plugins/kpilot/summarywidget.cpp
index 779a55c19..ba11d9b57 100644
--- a/kontact/plugins/kpilot/summarywidget.cpp
+++ b/kontact/plugins/kpilot/summarywidget.cpp
@@ -98,10 +98,10 @@ SummaryWidget::SummaryWidget( TQWidget *parent, const char *name )
// Conduits:
row++;
mConduitsTextLabel = new TQLabel( i18n( "<i>Conduits:</i>" ), this );
- mConduitsTextLabel->setAlignment( AlignAuto | AlignTop | ExpandTabs );
+ mConduitsTextLabel->tqsetAlignment( AlignAuto | AlignTop | ExpandTabs );
mLayout->addWidget( mConduitsTextLabel, row, 0 );
mConduitsLabel = new TQLabel( i18n( "No information available" ), this );
- mConduitsLabel->setAlignment( mConduitsLabel->alignment() | Qt::WordBreak );
+ mConduitsLabel->tqsetAlignment( mConduitsLabel->tqalignment() | Qt::WordBreak );
mLayout->addMultiCellWidget( mConduitsLabel, row, row, 1, 3 );
// widgets shown if kpilotDaemon is not running
diff --git a/kontact/plugins/newsticker/kcmkontactknt.cpp b/kontact/plugins/newsticker/kcmkontactknt.cpp
index 13734a8ab..0b0a98a33 100644
--- a/kontact/plugins/newsticker/kcmkontactknt.cpp
+++ b/kontact/plugins/newsticker/kcmkontactknt.cpp
@@ -60,22 +60,22 @@ NewsEditDialog::NewsEditDialog( const TQString& title, const TQString& url, TQWi
Ok, parent, 0, true, true )
{
TQWidget *page = plainPage();
- TQGridLayout *layout = new TQGridLayout( page, 2, 3, marginHint(),
+ TQGridLayout *tqlayout = new TQGridLayout( page, 2, 3, marginHint(),
spacingHint() );
TQLabel *label = new TQLabel( i18n( "Name:" ), page );
- layout->addWidget( label, 0, 0 );
+ tqlayout->addWidget( label, 0, 0 );
mTitle = new TQLineEdit( page );
label->setBuddy( mTitle );
- layout->addMultiCellWidget( mTitle, 0, 0, 1, 2 );
+ tqlayout->addMultiCellWidget( mTitle, 0, 0, 1, 2 );
label = new TQLabel( i18n( "URL:" ), page );
- layout->addWidget( label, 1, 0 );
+ tqlayout->addWidget( label, 1, 0 );
mURL = new TQLineEdit( page );
label->setBuddy( mURL );
- layout->addMultiCellWidget( mURL, 1, 1, 1, 2 );
+ tqlayout->addMultiCellWidget( mURL, 1, 1, 1, 2 );
mTitle->setText( title );
mURL->setText( url );
@@ -331,16 +331,16 @@ void KCMKontactKNT::modified()
void KCMKontactKNT::initGUI()
{
- TQGridLayout *layout = new TQGridLayout( this, 2, 3, KDialog::marginHint(),
+ TQGridLayout *tqlayout = new TQGridLayout( this, 2, 3, KDialog::marginHint(),
KDialog::spacingHint() );
mAllNews = new KListView( this );
mAllNews->addColumn( i18n( "All" ) );
mAllNews->setRootIsDecorated( true );
mAllNews->setFullWidth( true );
- layout->addWidget( mAllNews, 0, 0 );
+ tqlayout->addWidget( mAllNews, 0, 0 );
- TQVBoxLayout *vbox = new TQVBoxLayout( layout, KDialog::spacingHint() );
+ TQVBoxLayout *vbox = new TQVBoxLayout( tqlayout, KDialog::spacingHint() );
vbox->addStretch();
mAddButton = new KPushButton( i18n( "Add" ), this );
@@ -354,12 +354,12 @@ void KCMKontactKNT::initGUI()
mSelectedNews = new KListView( this );
mSelectedNews->addColumn( i18n( "Selected" ) );
mSelectedNews->setFullWidth( true );
- layout->addWidget( mSelectedNews, 0, 2 );
+ tqlayout->addWidget( mSelectedNews, 0, 2 );
TQGroupBox *box = new TQGroupBox( 0, Qt::Vertical,
i18n( "News Feed Settings" ), this );
- TQGridLayout *boxLayout = new TQGridLayout( box->layout(), 2, 3,
+ TQGridLayout *boxLayout = new TQGridLayout( box->tqlayout(), 2, 3,
KDialog::spacingHint() );
TQLabel *label = new TQLabel( i18n( "Refresh time:" ), box );
@@ -384,7 +384,7 @@ void KCMKontactKNT::initGUI()
mDeleteButton->setEnabled( false );
boxLayout->addWidget( mDeleteButton, 1, 2 );
- layout->addMultiCellWidget( box, 1, 1, 0, 2 );
+ tqlayout->addMultiCellWidget( box, 1, 1, 0, 2 );
}
bool KCMKontactKNT::dcopActive() const
diff --git a/kontact/plugins/newsticker/newsfeeds.h b/kontact/plugins/newsticker/newsfeeds.h
index 66555d4fe..6f8e7fa48 100644
--- a/kontact/plugins/newsticker/newsfeeds.h
+++ b/kontact/plugins/newsticker/newsfeeds.h
@@ -58,257 +58,257 @@ class NewsSourceData
static NewsSourceData NewsSourceDefault[DEFAULT_NEWSSOURCES] = {
// Arts ---------------
NewsSourceData(
- TQString::fromLatin1("Bureau 42"),
- TQString::fromLatin1("http://www.bureau42.com/rdf/"),
- TQString::fromLatin1("http://www.bureau42.com/favicon.ico"),
+ TQString::tqfromLatin1("Bureau 42"),
+ TQString::tqfromLatin1("http://www.bureau42.com/rdf/"),
+ TQString::tqfromLatin1("http://www.bureau42.com/favicon.ico"),
NewsSourceData::Arts ),
NewsSourceData(
- TQString::fromLatin1("eFilmCritic"),
- TQString::fromLatin1("http://efilmcritic.com/fo.rdf"),
- TQString::fromLatin1("http://efilmcritic.com/favicon.ico"),
+ TQString::tqfromLatin1("eFilmCritic"),
+ TQString::tqfromLatin1("http://efilmcritic.com/fo.rdf"),
+ TQString::tqfromLatin1("http://efilmcritic.com/favicon.ico"),
NewsSourceData::Arts ),
// Business -----------
NewsSourceData(
- TQString::fromLatin1("Internet.com Business"),
- TQString::fromLatin1("http://headlines.internet.com/internetnews/bus-news/news.rss"),
+ TQString::tqfromLatin1("Internet.com Business"),
+ TQString::tqfromLatin1("http://headlines.internet.com/internetnews/bus-news/news.rss"),
TQString::null,
NewsSourceData::Business ),
NewsSourceData(
- TQString::fromLatin1("TradeSims"),
- TQString::fromLatin1("http://www.tradesims.com/AEX.rdf"),
+ TQString::tqfromLatin1("TradeSims"),
+ TQString::tqfromLatin1("http://www.tradesims.com/AEX.rdf"),
TQString::null,
NewsSourceData::Business ),
// Computers ----------
NewsSourceData(
- TQString::fromLatin1("KDE Deutschland"),
- TQString::fromLatin1("http://www.kde.de/nachrichten/nachrichten.rdf"),
- TQString::fromLatin1("http://www.kde.de/favicon.ico"),
+ TQString::tqfromLatin1("KDE Deutschland"),
+ TQString::tqfromLatin1("http://www.kde.de/nachrichten/nachrichten.rdf"),
+ TQString::tqfromLatin1("http://www.kde.de/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData(
- TQString::fromLatin1("KDE France"),
- TQString::fromLatin1("http://www.kde-france.org/backend-breves.php3"),
+ TQString::tqfromLatin1("KDE France"),
+ TQString::tqfromLatin1("http://www.kde-france.org/backend-breves.php3"),
TQString::null,
NewsSourceData::Computers ),
NewsSourceData(
- TQString::fromLatin1("FreeBSD Project News"),
- TQString::fromLatin1("http://www.freebsd.org/news/news.rdf"),
- TQString::fromLatin1("http://www.freebsd.org/favicon.ico"),
+ TQString::tqfromLatin1("FreeBSD Project News"),
+ TQString::tqfromLatin1("http://www.freebsd.org/news/news.rdf"),
+ TQString::tqfromLatin1("http://www.freebsd.org/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData(
- TQString::fromLatin1("dot.kde.org"),
- TQString::fromLatin1("http://www.kde.org/dotkdeorg.rdf"),
- TQString::fromLatin1("http://www.kde.org/favicon.ico"),
+ TQString::tqfromLatin1("dot.kde.org"),
+ TQString::tqfromLatin1("http://www.kde.org/dotkdeorg.rdf"),
+ TQString::tqfromLatin1("http://www.kde.org/favicon.ico"),
NewsSourceData::Computers ),
- NewsSourceData( TQString::fromLatin1("KDE-Look.org"),
- TQString::fromLatin1("http://www.kde.org/kde-look-content.rdf"),
- TQString::fromLatin1("http://kde-look.org/img/favicon-1-1.ico"),
+ NewsSourceData( TQString::tqfromLatin1("KDE-Look.org"),
+ TQString::tqfromLatin1("http://www.kde.org/kde-look-content.rdf"),
+ TQString::tqfromLatin1("http://kde-look.org/img/favicon-1-1.ico"),
NewsSourceData::Computers ),
- NewsSourceData( TQString::fromLatin1("KDE-Apps.org"),
- TQString::fromLatin1("http://www.kde.org/dot/kde-apps-content.rdf"),
- TQString::fromLatin1("http://kde-apps.org/img/favicon-1-1.ico"),
+ NewsSourceData( TQString::tqfromLatin1("KDE-Apps.org"),
+ TQString::tqfromLatin1("http://www.kde.org/dot/kde-apps-content.rdf"),
+ TQString::tqfromLatin1("http://kde-apps.org/img/favicon-1-1.ico"),
NewsSourceData::Computers ),
- NewsSourceData( TQString::fromLatin1("DesktopLinux"),
- TQString::fromLatin1("http://www.desktoplinux.com/backend/index.html"),
- TQString::fromLatin1("http://www.desktoplinux.com/images/favicon.ico"),
+ NewsSourceData( TQString::tqfromLatin1("DesktopLinux"),
+ TQString::tqfromLatin1("http://www.desktoplinux.com/backend/index.html"),
+ TQString::tqfromLatin1("http://www.desktoplinux.com/images/favicon.ico"),
NewsSourceData::Computers ),
- NewsSourceData( TQString::fromLatin1("DistroWatch"),
- TQString::fromLatin1("http://distrowatch.com/news/dw.xml"),
- TQString::fromLatin1("http://distrowatch.com/favicon.ico"),
+ NewsSourceData( TQString::tqfromLatin1("DistroWatch"),
+ TQString::tqfromLatin1("http://distrowatch.com/news/dw.xml"),
+ TQString::tqfromLatin1("http://distrowatch.com/favicon.ico"),
NewsSourceData::Computers ),
/*URL changed*/
NewsSourceData(
- TQString::fromLatin1("GNOME News"),
- TQString::fromLatin1("http://www.gnomedesktop.org/node/feed"),
+ TQString::tqfromLatin1("GNOME News"),
+ TQString::tqfromLatin1("http://www.gnomedesktop.org/node/feed"),
TQString::null,
NewsSourceData::Computers ),
NewsSourceData(
- TQString::fromLatin1("Slashdot"),
- TQString::fromLatin1("http://slashdot.org/slashdot.rdf"),
- TQString::fromLatin1("http://slashdot.org/favicon.ico"),
+ TQString::tqfromLatin1("Slashdot"),
+ TQString::tqfromLatin1("http://slashdot.org/slashdot.rdf"),
+ TQString::tqfromLatin1("http://slashdot.org/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData(
- TQString::fromLatin1("Ask Slashdot"),
- TQString::fromLatin1("http://slashdot.org/askslashdot.rdf"),
- TQString::fromLatin1("http://slashdot.org/favicon.ico"),
+ TQString::tqfromLatin1("Ask Slashdot"),
+ TQString::tqfromLatin1("http://slashdot.org/askslashdot.rdf"),
+ TQString::tqfromLatin1("http://slashdot.org/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData(
- TQString::fromLatin1("Slashdot: Features"),
- TQString::fromLatin1("http://slashdot.org/features.rdf"),
- TQString::fromLatin1("http://slashdot.org/favicon.ico"),
+ TQString::tqfromLatin1("Slashdot: Features"),
+ TQString::tqfromLatin1("http://slashdot.org/features.rdf"),
+ TQString::tqfromLatin1("http://slashdot.org/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData(
- TQString::fromLatin1("Slashdot: Apache"),
- TQString::fromLatin1("http://slashdot.org/apache.rdf"),
- TQString::fromLatin1("http://slashdot.org/favicon.ico"),
+ TQString::tqfromLatin1("Slashdot: Apache"),
+ TQString::tqfromLatin1("http://slashdot.org/apache.rdf"),
+ TQString::tqfromLatin1("http://slashdot.org/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData(
- TQString::fromLatin1("Slashdot: Books"),
- TQString::fromLatin1("http://slashdot.org/books.rdf"),
- TQString::fromLatin1("http://slashdot.org/favicon.ico"),
+ TQString::tqfromLatin1("Slashdot: Books"),
+ TQString::tqfromLatin1("http://slashdot.org/books.rdf"),
+ TQString::tqfromLatin1("http://slashdot.org/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData(
- TQString::fromLatin1("Jabber News"),
- TQString::fromLatin1("http://www.jabber.org/news/rss.xml"),
+ TQString::tqfromLatin1("Jabber News"),
+ TQString::tqfromLatin1("http://www.jabber.org/news/rss.xml"),
TQString::null,
NewsSourceData::Computers ),
NewsSourceData(
- TQString::fromLatin1("Freshmeat"),
- TQString::fromLatin1("http://freshmeat.net/backend/fm.rdf"),
- TQString::fromLatin1("http://freshmeat.net/favicon.ico"),
+ TQString::tqfromLatin1("Freshmeat"),
+ TQString::tqfromLatin1("http://freshmeat.net/backend/fm.rdf"),
+ TQString::tqfromLatin1("http://freshmeat.net/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData(
- TQString::fromLatin1("Linux Weekly News"),
- TQString::fromLatin1("http://www.lwn.net/headlines/rss"),
- TQString::fromLatin1("http://www.lwn.net/favicon.ico"),
+ TQString::tqfromLatin1("Linux Weekly News"),
+ TQString::tqfromLatin1("http://www.lwn.net/headlines/rss"),
+ TQString::tqfromLatin1("http://www.lwn.net/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData(
- TQString::fromLatin1("heise online news"),
- TQString::fromLatin1("http://www.heise.de/newsticker/heise.rdf"),
- TQString::fromLatin1("http://www.heise.de/favicon.ico"),
+ TQString::tqfromLatin1("heise online news"),
+ TQString::tqfromLatin1("http://www.heise.de/newsticker/heise.rdf"),
+ TQString::tqfromLatin1("http://www.heise.de/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData(
- TQString::fromLatin1("RUS-CERT Ticker"),
- TQString::fromLatin1("http://cert.uni-stuttgart.de/ticker/rus-cert.rdf"),
- TQString::fromLatin1("http://cert.uni-stuttgart.de/favicon.ico"),
+ TQString::tqfromLatin1("RUS-CERT Ticker"),
+ TQString::tqfromLatin1("http://cert.uni-stuttgart.de/ticker/rus-cert.rdf"),
+ TQString::tqfromLatin1("http://cert.uni-stuttgart.de/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData(
- TQString::fromLatin1("RUS-CERT Elsewhere"),
- TQString::fromLatin1("http://cert.uni-stuttgart.de/ticker/rus-cert-elsewhere.rdf"),
- TQString::fromLatin1("http://cert.uni-stuttgart.de/favicon.ico"),
+ TQString::tqfromLatin1("RUS-CERT Elsewhere"),
+ TQString::tqfromLatin1("http://cert.uni-stuttgart.de/ticker/rus-cert-elsewhere.rdf"),
+ TQString::tqfromLatin1("http://cert.uni-stuttgart.de/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData(
- TQString::fromLatin1("Kuro5hin"),
- TQString::fromLatin1("http://kuro5hin.org/backend.rdf"),
- TQString::fromLatin1("http://kuro5hin.org/favicon.ico"),
+ TQString::tqfromLatin1("Kuro5hin"),
+ TQString::tqfromLatin1("http://kuro5hin.org/backend.rdf"),
+ TQString::tqfromLatin1("http://kuro5hin.org/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData(
- TQString::fromLatin1("Prolinux"),
- TQString::fromLatin1("http://www.pl-forum.de/backend/pro-linux.rdf"),
- TQString::fromLatin1("http://www.prolinux.de/favicon.ico"),
+ TQString::tqfromLatin1("Prolinux"),
+ TQString::tqfromLatin1("http://www.pl-forum.de/backend/pro-linux.rdf"),
+ TQString::tqfromLatin1("http://www.prolinux.de/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData(
- TQString::fromLatin1("LinuxSecurity.com"),
- TQString::fromLatin1("http://www.linuxsecurity.com/linuxsecurity_hybrid.rdf"),
- TQString::fromLatin1("http://www.linuxsecurity.com/favicon.ico"),
+ TQString::tqfromLatin1("LinuxSecurity.com"),
+ TQString::tqfromLatin1("http://www.linuxsecurity.com/linuxsecurity_hybrid.rdf"),
+ TQString::tqfromLatin1("http://www.linuxsecurity.com/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData(
- TQString::fromLatin1("Linux Game Tome"),
- TQString::fromLatin1("http://happypenguin.org/html/news.rdf"),
+ TQString::tqfromLatin1("Linux Game Tome"),
+ TQString::tqfromLatin1("http://happypenguin.org/html/news.rdf"),
TQString::null,
NewsSourceData::Computers ),
NewsSourceData(
- TQString::fromLatin1("Mozilla"),
- TQString::fromLatin1("http://www.mozilla.org/news.rdf"),
- TQString::fromLatin1("http://www.mozillazine.org/favicon.ico"),
+ TQString::tqfromLatin1("Mozilla"),
+ TQString::tqfromLatin1("http://www.mozilla.org/news.rdf"),
+ TQString::tqfromLatin1("http://www.mozillazine.org/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData(
- TQString::fromLatin1("MozillaZine"),
- TQString::fromLatin1("http://www.mozillazine.org/contents.rdf"),
- TQString::fromLatin1("http://www.mozillazine.org/favicon.ico"),
+ TQString::tqfromLatin1("MozillaZine"),
+ TQString::tqfromLatin1("http://www.mozillazine.org/contents.rdf"),
+ TQString::tqfromLatin1("http://www.mozillazine.org/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData(
- TQString::fromLatin1("Daemon News"),
- TQString::fromLatin1("http://daily.daemonnews.org/ddn.rdf.php3"),
+ TQString::tqfromLatin1("Daemon News"),
+ TQString::tqfromLatin1("http://daily.daemonnews.org/ddn.rdf.php3"),
TQString::null,
NewsSourceData::Computers ),
NewsSourceData(
- TQString::fromLatin1("use Perl;"),
- TQString::fromLatin1("http://use.perl.org/useperl.rdf"),
+ TQString::tqfromLatin1("use Perl;"),
+ TQString::tqfromLatin1("http://use.perl.org/useperl.rdf"),
TQString::null,
NewsSourceData::Computers ),
NewsSourceData(
- TQString::fromLatin1("Root prompt"),
- TQString::fromLatin1("http://www.rootprompt.org/rss/"),
- TQString::fromLatin1("http://www.rootprompt.org/favicon.ico"),
+ TQString::tqfromLatin1("Root prompt"),
+ TQString::tqfromLatin1("http://www.rootprompt.org/rss/"),
+ TQString::tqfromLatin1("http://www.rootprompt.org/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData(
- TQString::fromLatin1("SecurityFocus"),
- TQString::fromLatin1("http://www.securityfocus.com/topnews-rdf.html"),
- TQString::fromLatin1("http://www.securityfocus.com/favicon.ico"),
+ TQString::tqfromLatin1("SecurityFocus"),
+ TQString::tqfromLatin1("http://www.securityfocus.com/topnews-rdf.html"),
+ TQString::tqfromLatin1("http://www.securityfocus.com/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData(
- TQString::fromLatin1("Arstechnica"),
- TQString::fromLatin1("http://arstechnica.com/etc/rdf/ars.rdf"),
- TQString::fromLatin1("http://arstechnica.com/favicon.ico"),
+ TQString::tqfromLatin1("Arstechnica"),
+ TQString::tqfromLatin1("http://arstechnica.com/etc/rdf/ars.rdf"),
+ TQString::tqfromLatin1("http://arstechnica.com/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData(
- TQString::fromLatin1("amiga-news.de - deutschsprachige Amiga Nachrichten"),
- TQString::fromLatin1("http://www.amiga-news.de/de/backends/news/index.rss"),
- TQString::fromLatin1("http://www.amiga-news.de/favicon.ico"),
+ TQString::tqfromLatin1("amiga-news.de - deutschsprachige Amiga Nachrichten"),
+ TQString::tqfromLatin1("http://www.amiga-news.de/de/backends/news/index.rss"),
+ TQString::tqfromLatin1("http://www.amiga-news.de/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData(
- TQString::fromLatin1("amiga-news.de - english Amiga news"),
- TQString::fromLatin1("http://www.amiga-news.de/en/backends/news/index.rss"),
- TQString::fromLatin1("http://www.amiga-news.de/favicon.ico"),
+ TQString::tqfromLatin1("amiga-news.de - english Amiga news"),
+ TQString::tqfromLatin1("http://www.amiga-news.de/en/backends/news/index.rss"),
+ TQString::tqfromLatin1("http://www.amiga-news.de/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData(
- TQString::fromLatin1("FreshPorts - the place for ports"),
- TQString::fromLatin1("http://www.freshports.org/news.php3"),
- TQString::fromLatin1("http://www.freshports.org/favicon.ico"),
+ TQString::tqfromLatin1("FreshPorts - the place for ports"),
+ TQString::tqfromLatin1("http://www.freshports.org/news.php3"),
+ TQString::tqfromLatin1("http://www.freshports.org/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData(
- TQString::fromLatin1("zez.org - about code "),
- TQString::fromLatin1("http://zez.org/article/rssheadlines"),
+ TQString::tqfromLatin1("zez.org - about code "),
+ TQString::tqfromLatin1("http://zez.org/article/rssheadlines"),
TQString::null,
NewsSourceData::Computers ),
NewsSourceData(
- TQString::fromLatin1("BSDatwork.com"),
- TQString::fromLatin1("http://BSDatwork.com/backend.php"),
- TQString::fromLatin1("http://BSDatwork.com/favicon.ico"),
+ TQString::tqfromLatin1("BSDatwork.com"),
+ TQString::tqfromLatin1("http://BSDatwork.com/backend.php"),
+ TQString::tqfromLatin1("http://BSDatwork.com/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData(
- TQString::fromLatin1("FreshSource - the place for source"),
- TQString::fromLatin1("http://www.freshsource.org/news.php"),
- TQString::fromLatin1("http://www.freshsource.org/favicon.ico"),
+ TQString::tqfromLatin1("FreshSource - the place for source"),
+ TQString::tqfromLatin1("http://www.freshsource.org/news.php"),
+ TQString::tqfromLatin1("http://www.freshsource.org/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData(
- TQString::fromLatin1("The FreeBSD Diary"),
- TQString::fromLatin1("http://www.freebsddiary.org/news.php"),
- TQString::fromLatin1("http://www.freebsddiary.org/favicon.ico"),
+ TQString::tqfromLatin1("The FreeBSD Diary"),
+ TQString::tqfromLatin1("http://www.freebsddiary.org/news.php"),
+ TQString::tqfromLatin1("http://www.freebsddiary.org/favicon.ico"),
NewsSourceData::Computers ),
// Miscellaneous ------
NewsSourceData(
- TQString::fromLatin1("tagesschau.de"),
- TQString::fromLatin1("http://www.tagesschau.de/newsticker.rdf"),
- TQString::fromLatin1("http://www.tagesschau.de/favicon.ico"),
+ TQString::tqfromLatin1("tagesschau.de"),
+ TQString::tqfromLatin1("http://www.tagesschau.de/newsticker.rdf"),
+ TQString::tqfromLatin1("http://www.tagesschau.de/favicon.ico"),
NewsSourceData::Misc ),
NewsSourceData(
- TQString::fromLatin1("CNN Top Stories"),
- TQString::fromLatin1("http://rss.cnn.com/rss/cnn_topstories.rss"),
- TQString::fromLatin1("http://www.cnn.com/favicon.ico"),
+ TQString::tqfromLatin1("CNN Top Stories"),
+ TQString::tqfromLatin1("http://rss.cnn.com/rss/cnn_topstories.rss"),
+ TQString::tqfromLatin1("http://www.cnn.com/favicon.ico"),
NewsSourceData::Misc ),
/*feed URL changed*/
NewsSourceData(
- TQString::fromLatin1("HotWired"),
- TQString::fromLatin1("http://www.wired.com/news/feeds/rss2/0,2610,,00.xml"),
- TQString::fromLatin1("http://www.hotwired.com/favicon.ico"),
+ TQString::tqfromLatin1("HotWired"),
+ TQString::tqfromLatin1("http://www.wired.com/news/feeds/rss2/0,2610,,00.xml"),
+ TQString::tqfromLatin1("http://www.hotwired.com/favicon.ico"),
NewsSourceData::Misc ),
NewsSourceData(
- TQString::fromLatin1("The Register"),
- TQString::fromLatin1("http://www.theregister.co.uk/headlines.rss"),
- TQString::fromLatin1("http://www.theregister.co.uk/favicon.ico"),
+ TQString::tqfromLatin1("The Register"),
+ TQString::tqfromLatin1("http://www.theregister.co.uk/headlines.rss"),
+ TQString::tqfromLatin1("http://www.theregister.co.uk/favicon.ico"),
NewsSourceData::Misc ),
NewsSourceData(
- TQString::fromLatin1( "Christian Science Monitor" ),
- TQString::fromLatin1( "http://www.csmonitor.com/rss/csm.rss"),
- TQString::fromLatin1( "http://www.csmonitor.com/favicon.ico"),
+ TQString::tqfromLatin1( "Christian Science Monitor" ),
+ TQString::tqfromLatin1( "http://www.csmonitor.com/rss/csm.rss"),
+ TQString::tqfromLatin1( "http://www.csmonitor.com/favicon.ico"),
NewsSourceData::Misc ),
// Recreation
// Society
NewsSourceData(
- TQString::fromLatin1("nippon.it"),
- TQString::fromLatin1("http://www.nippon.it/backend.it.php"),
- TQString::fromLatin1("http://www.nippon.it/favicon.ico"),
+ TQString::tqfromLatin1("nippon.it"),
+ TQString::tqfromLatin1("http://www.nippon.it/backend.it.php"),
+ TQString::tqfromLatin1("http://www.nippon.it/favicon.ico"),
NewsSourceData::Society ),
NewsSourceData(
- TQString::fromLatin1( "gflash" ),
- TQString::fromLatin1( "http://www.gflash.de/backend.php"),
- TQString::fromLatin1( "http://www.gflash.de/favicon.ico"),
+ TQString::tqfromLatin1( "gflash" ),
+ TQString::tqfromLatin1( "http://www.gflash.de/backend.php"),
+ TQString::tqfromLatin1( "http://www.gflash.de/favicon.ico"),
NewsSourceData::Society ),
NewsSourceData(
- TQString::fromLatin1( "Quintessenz" ),
- TQString::fromLatin1( "http://quintessenz.at/cgi-bin/rdf"),
- TQString::fromLatin1( "http://quintessenz.at/favicon.ico"),
+ TQString::tqfromLatin1( "Quintessenz" ),
+ TQString::tqfromLatin1( "http://quintessenz.at/cgi-bin/rdf"),
+ TQString::tqfromLatin1( "http://quintessenz.at/favicon.ico"),
NewsSourceData::Society )
};
diff --git a/kontact/plugins/newsticker/newsticker_plugin.cpp b/kontact/plugins/newsticker/newsticker_plugin.cpp
index 4afb0350d..24f30a851 100644
--- a/kontact/plugins/newsticker/newsticker_plugin.cpp
+++ b/kontact/plugins/newsticker/newsticker_plugin.cpp
@@ -37,7 +37,7 @@ NewsTickerPlugin::NewsTickerPlugin( Kontact::Core *core, const char *name, const
setInstance( NewsTickerPluginFactory::instance() );
}
-Kontact::Summary *NewsTickerPlugin::createSummaryWidget( TQWidget* parentWidget )
+Kontact::Summary *NewsTickerPlugin::createSummaryWidget( TQWidget* tqparentWidget )
{
- return new SummaryWidget( parentWidget );
+ return new SummaryWidget( tqparentWidget );
}
diff --git a/kontact/plugins/newsticker/newsticker_plugin.h b/kontact/plugins/newsticker/newsticker_plugin.h
index b3c0b651d..e651e7dd7 100644
--- a/kontact/plugins/newsticker/newsticker_plugin.h
+++ b/kontact/plugins/newsticker/newsticker_plugin.h
@@ -31,7 +31,7 @@ class NewsTickerPlugin : public Kontact::Plugin
NewsTickerPlugin( Kontact::Core *core, const char *name, const TQStringList& );
NewsTickerPlugin();
- virtual Kontact::Summary *createSummaryWidget( TQWidget* parentWidget );
+ virtual Kontact::Summary *createSummaryWidget( TQWidget* tqparentWidget );
protected:
virtual KParts::ReadOnlyPart* createPart() { return 0L; }
diff --git a/kontact/plugins/newsticker/summarywidget.cpp b/kontact/plugins/newsticker/summarywidget.cpp
index b45f8c7bf..5283d84d8 100644
--- a/kontact/plugins/newsticker/summarywidget.cpp
+++ b/kontact/plugins/newsticker/summarywidget.cpp
@@ -140,8 +140,8 @@ void SummaryWidget::initDocuments()
connectDCOPSignal( "rssservice", feedRef.obj(), "documentUpdated(DCOPRef)",
"documentUpdated(DCOPRef)", false );
- if ( qApp )
- qApp->eventLoop()->processEvents( TQEventLoop::ExcludeUserInput |
+ if ( tqApp )
+ tqApp->eventLoop()->processEvents( TQEventLoop::ExcludeUserInput |
TQEventLoop::ExcludeSocketNotifiers );
}
@@ -168,8 +168,8 @@ void SummaryWidget::documentUpdated( DCOPRef feedRef )
DCOPRef artRef = feedRef.call( "article(int)", i );
TQString title, url;
- if ( qApp )
- qApp->eventLoop()->processEvents( TQEventLoop::ExcludeUserInput |
+ if ( tqApp )
+ tqApp->eventLoop()->processEvents( TQEventLoop::ExcludeUserInput |
TQEventLoop::ExcludeSocketNotifiers );
artRef.call( "title()" ).get( title );
@@ -220,7 +220,7 @@ void SummaryWidget::updateView()
KURLLabel *urlLabel = new KURLLabel( hbox );
urlLabel->setURL( (*it).url );
urlLabel->setPixmap( (*it).logo );
- urlLabel->setMaximumSize( urlLabel->minimumSizeHint() );
+ urlLabel->setMaximumSize( urlLabel->tqminimumSizeHint() );
mLabels.append( urlLabel );
connect( urlLabel, TQT_SIGNAL( leftClickedURL( const TQString& ) ),
@@ -231,13 +231,13 @@ void SummaryWidget::updateView()
// header
TQLabel *label = new TQLabel( hbox );
label->setText( KCharsets::resolveEntities( (*it).title ) );
- label->setAlignment( AlignLeft|AlignVCenter );
+ label->tqsetAlignment( AlignLeft|AlignVCenter );
label->setFont( boldFont );
label->setIndent( 6 );
- label->setMaximumSize( label->minimumSizeHint() );
+ label->setMaximumSize( label->tqminimumSizeHint() );
mLabels.append( label );
- hbox->setMaximumWidth( hbox->minimumSizeHint().width() );
+ hbox->setMaximumWidth( hbox->tqminimumSizeHint().width() );
hbox->show();
// articles
diff --git a/kontact/plugins/specialdates/kcmsdsummary.cpp b/kontact/plugins/specialdates/kcmsdsummary.cpp
index 326055855..183a2e122 100644
--- a/kontact/plugins/specialdates/kcmsdsummary.cpp
+++ b/kontact/plugins/specialdates/kcmsdsummary.cpp
@@ -85,10 +85,10 @@ void KCMSDSummary::customDaysChanged( int value )
void KCMSDSummary::initGUI()
{
- TQGridLayout *layout = new TQGridLayout( this, 3, 2, KDialog::spacingHint() );
+ TQGridLayout *tqlayout = new TQGridLayout( this, 3, 2, KDialog::spacingHint() );
mDaysGroup = new TQButtonGroup( 0, Vertical, i18n( "Special Dates Summary" ), this );
- TQVBoxLayout *boxLayout = new TQVBoxLayout( mDaysGroup->layout(),
+ TQVBoxLayout *boxLayout = new TQVBoxLayout( mDaysGroup->tqlayout(),
KDialog::spacingHint() );
TQLabel *label = new TQLabel( i18n( "How many days should the special dates summary show at once?" ), mDaysGroup );
@@ -117,7 +117,7 @@ void KCMSDSummary::initGUI()
hbox->addStretch( 1 );
- layout->addMultiCellWidget( mDaysGroup, 0, 0, 0, 1 );
+ tqlayout->addMultiCellWidget( mDaysGroup, 0, 0, 0, 1 );
mCalendarGroup = new TQButtonGroup( 1, Horizontal, i18n( "Special Dates From Calendar" ), this );
@@ -132,10 +132,10 @@ void KCMSDSummary::initGUI()
mShowBirthdaysFromKAB = new TQCheckBox( i18n( "Show birthdays" ), mContactGroup );
mShowAnniversariesFromKAB = new TQCheckBox( i18n( "Show anniversaries" ), mContactGroup );
- layout->addWidget( mCalendarGroup, 1, 0 );
- layout->addWidget( mContactGroup, 1, 1 );
+ tqlayout->addWidget( mCalendarGroup, 1, 0 );
+ tqlayout->addWidget( mContactGroup, 1, 1 );
- layout->setRowStretch( 2, 1 );
+ tqlayout->setRowStretch( 2, 1 );
}
void KCMSDSummary::load()
diff --git a/kontact/plugins/specialdates/sdsummarywidget.cpp b/kontact/plugins/specialdates/sdsummarywidget.cpp
index 2967e889c..bd1fa73bc 100644
--- a/kontact/plugins/specialdates/sdsummarywidget.cpp
+++ b/kontact/plugins/specialdates/sdsummarywidget.cpp
@@ -183,8 +183,8 @@ int SDSummaryWidget::span( KCal::Event *event )
int span=1;
if ( event->isMultiDay() && event->doesFloat() ) {
TQDate d = event->dtStart().date();
- if ( d < TQDate::currentDate() ) {
- d = TQDate::currentDate();
+ if ( d < TQDate::tqcurrentDate() ) {
+ d = TQDate::tqcurrentDate();
}
while ( d < event->dtEnd().date() ) {
span++;
@@ -199,8 +199,8 @@ int SDSummaryWidget::dayof( KCal::Event *event, const TQDate& date )
{
int dayof=1;
TQDate d = event->dtStart().date();
- if ( d < TQDate::currentDate() ) {
- d = TQDate::currentDate();
+ if ( d < TQDate::tqcurrentDate() ) {
+ d = TQDate::tqcurrentDate();
}
while ( d < event->dtEnd().date() ) {
if ( d < date ) {
@@ -228,7 +228,7 @@ void SDSummaryWidget::updateView()
// No reason to show the date year
TQString savefmt = KGlobal::locale()->dateFormat();
KGlobal::locale()->setDateFormat( KGlobal::locale()->
- dateFormat().replace( 'Y', ' ' ) );
+ dateFormat().tqreplace( 'Y', ' ' ) );
// Search for Birthdays and Anniversaries in the Addressbook
KABC::AddressBook::Iterator it;
@@ -269,9 +269,9 @@ void SDSummaryWidget::updateView()
// Search for Birthdays, Anniversaries, Holidays, and Special Occasions
// in the Calendar
TQDate dt;
- TQDate currentDate = TQDate::currentDate();
- for ( dt=currentDate;
- dt<=currentDate.addDays( mDaysAhead - 1 );
+ TQDate tqcurrentDate = TQDate::tqcurrentDate();
+ for ( dt=tqcurrentDate;
+ dt<=tqcurrentDate.addDays( mDaysAhead - 1 );
dt=dt.addDays(1) ) {
KCal::Event::List events = mCalendar->events( dt,
KCal::EventSortStartDate,
@@ -358,8 +358,8 @@ void SDSummaryWidget::updateView()
// Seach for Holidays
if ( mShowHolidays ) {
if ( initHolidays() ) {
- for ( dt=currentDate;
- dt<=currentDate.addDays( mDaysAhead - 1 );
+ for ( dt=tqcurrentDate;
+ dt<=tqcurrentDate.addDays( mDaysAhead - 1 );
dt=dt.addDays(1) ) {
TQValueList<KHoliday> holidays = mHolidays->getHolidays( dt );
TQValueList<KHoliday>::ConstIterator it = holidays.begin();
@@ -429,8 +429,8 @@ void SDSummaryWidget::updateView()
} else {
label->setPixmap( icon_img );
}
- label->setMaximumWidth( label->minimumSizeHint().width() );
- label->setAlignment( AlignVCenter );
+ label->setMaximumWidth( label->tqminimumSizeHint().width() );
+ label->tqsetAlignment( AlignVCenter );
mLayout->addWidget( label, counter, 0 );
mLabels.append( label );
@@ -438,7 +438,7 @@ void SDSummaryWidget::updateView()
TQString datestr;
//Muck with the year -- change to the year 'daysTo' days away
- int year = currentDate.addDays( (*addrIt).daysTo ).year();
+ int year = tqcurrentDate.addDays( (*addrIt).daysTo ).year();
TQDate sD = TQDate( year, (*addrIt).date.month(), (*addrIt).date.day() );
if ( (*addrIt).daysTo == 0 ) {
@@ -457,7 +457,7 @@ void SDSummaryWidget::updateView()
}
label = new TQLabel( datestr, this );
- label->setAlignment( AlignLeft | AlignVCenter );
+ label->tqsetAlignment( AlignLeft | AlignVCenter );
mLayout->addWidget( label, counter, 1 );
mLabels.append( label );
if ( makeBold ) {
@@ -474,7 +474,7 @@ void SDSummaryWidget::updateView()
label->setText( i18n( "in 1 day", "in %n days", (*addrIt).daysTo ) );
}
- label->setAlignment( AlignLeft | AlignVCenter );
+ label->tqsetAlignment( AlignLeft | AlignVCenter );
mLayout->addWidget( label, counter, 2 );
mLabels.append( label );
@@ -492,7 +492,7 @@ void SDSummaryWidget::updateView()
}
label = new TQLabel( this );
label->setText( what );
- label->setAlignment( AlignLeft | AlignVCenter );
+ label->tqsetAlignment( AlignLeft | AlignVCenter );
mLayout->addWidget( label, counter, 3 );
mLabels.append( label );
@@ -530,7 +530,7 @@ void SDSummaryWidget::updateView()
} else {
label->setText( i18n( "one year", "%n years", (*addrIt).yearsOld ) );
}
- label->setAlignment( AlignLeft | AlignVCenter );
+ label->tqsetAlignment( AlignLeft | AlignVCenter );
mLayout->addWidget( label, counter, 5 );
mLabels.append( label );
}
@@ -542,7 +542,7 @@ void SDSummaryWidget::updateView()
i18n( "No special dates within the next 1 day",
"No special dates pending within the next %n days",
mDaysAhead ), this, "nothing to see" );
- label->setAlignment( AlignHCenter | AlignVCenter );
+ label->tqsetAlignment( AlignHCenter | AlignVCenter );
mLayout->addMultiCellWidget( label, 0, 0, 0, 4 );
mLabels.append( label );
}
@@ -556,7 +556,7 @@ void SDSummaryWidget::updateView()
void SDSummaryWidget::mailContact( const TQString &uid )
{
KABC::StdAddressBook *ab = KABC::StdAddressBook::self( true );
- TQString email = ab->findByUid( uid ).fullEmail();
+ TQString email = ab->tqfindByUid( uid ).fullEmail();
kapp->invokeMailer( email, TQString::null );
}
@@ -605,27 +605,27 @@ bool SDSummaryWidget::eventFilter( TQObject *obj, TQEvent* e )
void SDSummaryWidget::dateDiff( const TQDate &date, int &days, int &years )
{
- TQDate currentDate;
+ TQDate tqcurrentDate;
TQDate eventDate;
if ( TQDate::leapYear( date.year() ) && date.month() == 2 && date.day() == 29 ) {
- currentDate = TQDate( date.year(), TQDate::currentDate().month(), TQDate::currentDate().day() );
- if ( !TQDate::leapYear( TQDate::currentDate().year() ) )
+ tqcurrentDate = TQDate( date.year(), TQDate::tqcurrentDate().month(), TQDate::tqcurrentDate().day() );
+ if ( !TQDate::leapYear( TQDate::tqcurrentDate().year() ) )
eventDate = TQDate( date.year(), date.month(), 28 ); // celebrate one day earlier ;)
else
eventDate = TQDate( date.year(), date.month(), date.day() );
} else {
- currentDate = TQDate( 0, TQDate::currentDate().month(), TQDate::currentDate().day() );
+ tqcurrentDate = TQDate( 0, TQDate::tqcurrentDate().month(), TQDate::tqcurrentDate().day() );
eventDate = TQDate( 0, date.month(), date.day() );
}
- int offset = currentDate.daysTo( eventDate );
+ int offset = tqcurrentDate.daysTo( eventDate );
if ( offset < 0 ) {
days = 365 + offset;
- years = TQDate::currentDate().year() + 1 - date.year();
+ years = TQDate::tqcurrentDate().year() + 1 - date.year();
} else {
days = offset;
- years = TQDate::currentDate().year() - date.year();
+ years = TQDate::tqcurrentDate().year() - date.year();
}
}
diff --git a/kontact/plugins/specialdates/specialdates_plugin.cpp b/kontact/plugins/specialdates/specialdates_plugin.cpp
index c8a816c2f..70cfa5213 100644
--- a/kontact/plugins/specialdates/specialdates_plugin.cpp
+++ b/kontact/plugins/specialdates/specialdates_plugin.cpp
@@ -49,9 +49,9 @@ SpecialdatesPlugin::~SpecialdatesPlugin()
{
}
-Kontact::Summary *SpecialdatesPlugin::createSummaryWidget( TQWidget *parentWidget )
+Kontact::Summary *SpecialdatesPlugin::createSummaryWidget( TQWidget *tqparentWidget )
{
- return new SDSummaryWidget( this, parentWidget );
+ return new SDSummaryWidget( this, tqparentWidget );
}
const KAboutData *SpecialdatesPlugin::aboutData()
diff --git a/kontact/plugins/specialdates/specialdates_plugin.h b/kontact/plugins/specialdates/specialdates_plugin.h
index 59fc8dbba..eb3a514ff 100644
--- a/kontact/plugins/specialdates/specialdates_plugin.h
+++ b/kontact/plugins/specialdates/specialdates_plugin.h
@@ -39,7 +39,7 @@ class SpecialdatesPlugin : public Kontact::Plugin
const KAboutData *aboutData();
- virtual Kontact::Summary *createSummaryWidget( TQWidget *parentWidget );
+ virtual Kontact::Summary *createSummaryWidget( TQWidget *tqparentWidget );
protected:
virtual KParts::ReadOnlyPart *createPart() { return false; }
diff --git a/kontact/plugins/summary/dropwidget.cpp b/kontact/plugins/summary/dropwidget.cpp
index 341c37d80..5b6039827 100644
--- a/kontact/plugins/summary/dropwidget.cpp
+++ b/kontact/plugins/summary/dropwidget.cpp
@@ -36,9 +36,9 @@ void DropWidget::dragEnterEvent( TQDragEnterEvent *event )
void DropWidget::dropEvent( TQDropEvent *event )
{
- int alignment = ( event->pos().x() < (width() / 2) ? Qt::AlignLeft : Qt::AlignRight );
- alignment |= ( event->pos().y() < (height() / 2) ? Qt::AlignTop : Qt::AlignBottom );
- emit summaryWidgetDropped( this, event->source(), alignment );
+ int tqalignment = ( event->pos().x() < (width() / 2) ? Qt::AlignLeft : Qt::AlignRight );
+ tqalignment |= ( event->pos().y() < (height() / 2) ? Qt::AlignTop : Qt::AlignBottom );
+ emit summaryWidgetDropped( this, event->source(), tqalignment );
}
#include "dropwidget.moc"
diff --git a/kontact/plugins/summary/dropwidget.h b/kontact/plugins/summary/dropwidget.h
index ade7b6c17..41c892eaf 100644
--- a/kontact/plugins/summary/dropwidget.h
+++ b/kontact/plugins/summary/dropwidget.h
@@ -32,7 +32,7 @@ class DropWidget : public QWidget
DropWidget( TQWidget *parent, const char *name = 0 );
signals:
- void summaryWidgetDropped( TQWidget *target, TQWidget *widget, int alignment );
+ void summaryWidgetDropped( TQWidget *target, TQWidget *widget, int tqalignment );
protected:
virtual void dragEnterEvent( TQDragEnterEvent* );
diff --git a/kontact/plugins/summary/kcmkontactsummary.cpp b/kontact/plugins/summary/kcmkontactsummary.cpp
index f21a2bb35..22d27f47d 100644
--- a/kontact/plugins/summary/kcmkontactsummary.cpp
+++ b/kontact/plugins/summary/kcmkontactsummary.cpp
@@ -93,15 +93,15 @@ PluginView::~PluginView()
KCMKontactSummary::KCMKontactSummary( TQWidget *parent, const char *name )
: KCModule( parent, name )
{
- TQVBoxLayout *layout = new TQVBoxLayout( this, 0, KDialog::spacingHint() );
+ TQVBoxLayout *tqlayout = new TQVBoxLayout( this, 0, KDialog::spacingHint() );
TQLabel *label = new TQLabel( i18n( "Here you can select which summary plugins to have visible in your summary view." ), this );
- layout->addWidget( label );
+ tqlayout->addWidget( label );
mPluginView = new PluginView( this );
- layout->addWidget( mPluginView );
+ tqlayout->addWidget( mPluginView );
- layout->setStretchFactor( mPluginView, 1 );
+ tqlayout->setStretchFactor( mPluginView, 1 );
connect( mPluginView, TQT_SIGNAL( clicked( TQListViewItem* ) ),
this, TQT_SLOT( itemClicked( TQListViewItem* ) ) );
@@ -119,7 +119,7 @@ KCMKontactSummary::KCMKontactSummary( TQWidget *parent, const char *name )
void KCMKontactSummary::load()
{
KTrader::OfferList offers = KTrader::self()->query(
- TQString::fromLatin1( "Kontact/Plugin" ),
+ TQString::tqfromLatin1( "Kontact/Plugin" ),
TQString( "[X-KDE-KontactPluginVersion] == %1" ).arg( KONTACT_PLUGIN_VERSION ) );
TQStringList activeSummaries;
diff --git a/kontact/plugins/summary/summaryview_part.cpp b/kontact/plugins/summary/summaryview_part.cpp
index 0b22f853b..e7c161ea1 100644
--- a/kontact/plugins/summary/summaryview_part.cpp
+++ b/kontact/plugins/summary/summaryview_part.cpp
@@ -58,7 +58,7 @@
#include "summaryview_part.h"
#include "broadcaststatus.h"
-using KPIM::BroadcastStatus;
+using KPIM::BroadcasStatus;
namespace Kontact
{
@@ -80,7 +80,7 @@ SummaryViewPart::SummaryViewPart( Kontact::Core *core, const char*,
connect( kapp, TQT_SIGNAL( kdisplayPaletteChanged() ), TQT_SLOT( slotAdjustPalette() ) );
slotAdjustPalette();
- setDate( TQDate::currentDate() );
+ setDate( TQDate::tqcurrentDate() );
connect( mCore, TQT_SIGNAL( dayChanged( const TQDate& ) ),
TQT_SLOT( setDate( const TQDate& ) ) );
@@ -137,7 +137,7 @@ void SummaryViewPart::updateWidgets()
const KPIM::Identity &id = idm.defaultIdentity();
TQString currentUser = i18n( "Summary for %1" ).arg( id.fullName() );
- mUsernameLabel->setText( TQString::fromLatin1( "<b>%1</b>" ).arg( currentUser ) );
+ mUsernameLabel->setText( TQString::tqfromLatin1( "<b>%1</b>" ).arg( currentUser ) );
mSummaries.clear();
@@ -177,12 +177,12 @@ void SummaryViewPart::updateWidgets()
mSummaries.insert( plugin->identifier(), summary );
connect( summary, TQT_SIGNAL( message( const TQString& ) ),
- BroadcastStatus::instance(), TQT_SLOT( setStatusMsg( const TQString& ) ) );
+ BroadcasStatus::instance(), TQT_SLOT( seStatusMsg( const TQString& ) ) );
connect( summary, TQT_SIGNAL( summaryWidgetDropped( TQWidget*, TQWidget*, int ) ),
this, TQT_SLOT( summaryWidgetMoved( TQWidget*, TQWidget*, int ) ) );
- if ( !mLeftColumnSummaries.contains( plugin->identifier() ) &&
- !mRightColumnSummaries.contains( plugin->identifier() ) ) {
+ if ( !mLeftColumnSummaries.tqcontains( plugin->identifier() ) &&
+ !mRightColumnSummaries.tqcontains( plugin->identifier() ) ) {
mLeftColumnSummaries.append( plugin->identifier() );
}
@@ -214,11 +214,11 @@ void SummaryViewPart::updateWidgets()
TQFrame *vline = new TQFrame( mFrame );
vline->setFrameStyle( TQFrame::VLine | TQFrame::Plain );
- TQHBoxLayout *layout = new TQHBoxLayout( mFrame );
+ TQHBoxLayout *tqlayout = new TQHBoxLayout( mFrame );
- mLeftColumn = new TQVBoxLayout( layout, KDialog::spacingHint() );
- layout->addWidget( vline );
- mRightColumn = new TQVBoxLayout( layout, KDialog::spacingHint() );
+ mLeftColumn = new TQVBoxLayout( tqlayout, KDialog::spacingHint() );
+ tqlayout->addWidget( vline );
+ mRightColumn = new TQVBoxLayout( tqlayout, KDialog::spacingHint() );
TQStringList::Iterator strIt;
@@ -241,7 +241,7 @@ void SummaryViewPart::updateWidgets()
mRightColumn->addStretch();
}
-void SummaryViewPart::summaryWidgetMoved( TQWidget *target, TQWidget *widget, int alignment )
+void SummaryViewPart::summaryWidgetMoved( TQWidget *target, TQWidget *widget, int tqalignment )
{
if ( target == widget )
return;
@@ -266,17 +266,17 @@ void SummaryViewPart::summaryWidgetMoved( TQWidget *target, TQWidget *widget, in
if ( target == mFrame ) {
int pos = 0;
- if ( alignment & Qt::AlignTop )
+ if ( tqalignment & Qt::AlignTop )
pos = 0;
- if ( alignment & Qt::AlignLeft ) {
- if ( alignment & Qt::AlignBottom )
+ if ( tqalignment & Qt::AlignLeft ) {
+ if ( tqalignment & Qt::AlignBottom )
pos = mLeftColumnSummaries.count();
mLeftColumn->insertWidget( pos, widget );
mLeftColumnSummaries.insert( mLeftColumnSummaries.at( pos ), widgetName( widget ) );
} else {
- if ( alignment & Qt::AlignBottom )
+ if ( tqalignment & Qt::AlignBottom )
pos = mRightColumnSummaries.count();
mRightColumn->insertWidget( pos, widget );
@@ -288,7 +288,7 @@ void SummaryViewPart::summaryWidgetMoved( TQWidget *target, TQWidget *widget, in
int targetPos = mLeftColumn->findWidget( target );
if ( targetPos != -1 ) {
- if ( alignment == Qt::AlignBottom )
+ if ( tqalignment == Qt::AlignBottom )
targetPos++;
mLeftColumn->insertWidget( targetPos, widget );
@@ -296,7 +296,7 @@ void SummaryViewPart::summaryWidgetMoved( TQWidget *target, TQWidget *widget, in
} else {
targetPos = mRightColumn->findWidget( target );
- if ( alignment == Qt::AlignBottom )
+ if ( tqalignment == Qt::AlignBottom )
targetPos++;
mRightColumn->insertWidget( targetPos, widget );
@@ -346,7 +346,7 @@ TQStringList SummaryViewPart::configModules() const
TQStringList cm = it.data()->configModules();
TQStringList::ConstIterator strIt;
for ( strIt = cm.begin(); strIt != cm.end(); ++strIt )
- if ( !(*strIt).isEmpty() && !modules.contains( *strIt ) )
+ if ( !(*strIt).isEmpty() && !modules.tqcontains( *strIt ) )
modules.append( *strIt );
}
@@ -374,7 +374,7 @@ void SummaryViewPart::initGUI( Kontact::Core *core )
mUsernameLabel = new TQLabel( mMainWidget );
hbl->addWidget( mUsernameLabel );
mDateLabel = new TQLabel( mMainWidget );
- mDateLabel->setAlignment( AlignRight );
+ mDateLabel->tqsetAlignment( AlignRight );
hbl->addWidget( mDateLabel );
TQFrame *hline = new TQFrame( mMainWidget );
diff --git a/kontact/plugins/summary/summaryview_part.h b/kontact/plugins/summary/summaryview_part.h
index 1e99f7369..38e68b153 100644
--- a/kontact/plugins/summary/summaryview_part.h
+++ b/kontact/plugins/summary/summaryview_part.h
@@ -75,7 +75,7 @@ class SummaryViewPart : public KParts::ReadOnlyPart
protected slots:
void slotConfigure();
void updateWidgets();
- void summaryWidgetMoved( TQWidget *target, TQWidget *widget, int alignment );
+ void summaryWidgetMoved( TQWidget *target, TQWidget *widget, int tqalignment );
private:
void initGUI( Kontact::Core *core );
diff --git a/kontact/plugins/test/test_part.cpp b/kontact/plugins/test/test_part.cpp
index c58f8f57b..b921d025a 100644
--- a/kontact/plugins/test/test_part.cpp
+++ b/kontact/plugins/test/test_part.cpp
@@ -41,7 +41,7 @@
#include <kservice.h>
-TestPart::TestPart(TQObject *parent, const char *name) // ## parentWidget
+TestPart::TestPart(TQObject *parent, const char *name) // ## tqparentWidget
: KParts::ReadOnlyPart(parent, name)
{
setInstance( new KInstance("testpart") ); // ## memleak
diff --git a/kontact/plugins/weather/summarywidget.cpp b/kontact/plugins/weather/summarywidget.cpp
index 8c1064094..abe117648 100644
--- a/kontact/plugins/weather/summarywidget.cpp
+++ b/kontact/plugins/weather/summarywidget.cpp
@@ -43,7 +43,7 @@ SummaryWidget::SummaryWidget( TQWidget *parent, const char *name )
DCOPObject( "WeatherSummaryWidget" ), mProc( 0 )
{
mLayout = new TQVBoxLayout( this, 3, 3 );
- mLayout->setAlignment( Qt::AlignTop );
+ mLayout->tqsetAlignment( Qt::AlignTop );
TQPixmap icon = KGlobal::iconLoader()->loadIcon( "kweather", KIcon::Desktop, KIcon::SizeMedium );
TQWidget *header = createHeader( this, icon, i18n( "Weather Service" ) );
@@ -106,16 +106,16 @@ void SummaryWidget::updateView()
TQImage img;
img = (*it).icon();
- TQGridLayout *layout = new TQGridLayout( mLayout, 3, 3, 3 );
- mLayouts.append( layout );
+ TQGridLayout *tqlayout = new TQGridLayout( mLayout, 3, 3, 3 );
+ mLayouts.append( tqlayout );
KURLLabel* urlLabel = new KURLLabel( this );
urlLabel->installEventFilter( this );
urlLabel->setURL( (*it).stationID() );
urlLabel->setPixmap( img.smoothScale( 32, 32 ) );
- urlLabel->setMaximumSize( urlLabel->sizeHint() );
- urlLabel->setAlignment( AlignTop );
- layout->addMultiCellWidget( urlLabel, 0, 1, 0, 0 );
+ urlLabel->setMaximumSize( urlLabel->tqsizeHint() );
+ urlLabel->tqsetAlignment( AlignTop );
+ tqlayout->addMultiCellWidget( urlLabel, 0, 1, 0, 0 );
mLabels.append( urlLabel );
connect ( urlLabel, TQT_SIGNAL( leftClickedURL( const TQString& ) ),
this, TQT_SLOT( showReport( const TQString& ) ) );
@@ -125,8 +125,8 @@ void SummaryWidget::updateView()
TQFont font = label->font();
font.setBold( true );
label->setFont( font );
- label->setAlignment( AlignLeft );
- layout->addMultiCellWidget( label, 0, 0, 1, 2 );
+ label->tqsetAlignment( AlignLeft );
+ tqlayout->addMultiCellWidget( label, 0, 0, 1, 2 );
mLabels.append( label );
TQString labelText;
@@ -140,11 +140,11 @@ void SummaryWidget::updateView()
.arg( i18n( "Rel. Humidity" ) )
.arg( (*it).relativeHumidity() );
- TQToolTip::add( label, labelText.replace( " ", "&nbsp;" ) );
+ TQToolTip::add( label, labelText.tqreplace( " ", "&nbsp;" ) );
label = new TQLabel( cover, this );
- label->setAlignment( AlignLeft );
- layout->addMultiCellWidget( label, 1, 1, 1, 2 );
+ label->tqsetAlignment( AlignLeft );
+ tqlayout->addMultiCellWidget( label, 1, 1, 1, 2 );
mLabels.append( label );
}
diff --git a/kontact/plugins/weather/weather_plugin.cpp b/kontact/plugins/weather/weather_plugin.cpp
index a3ea74d1e..d42a24f61 100644
--- a/kontact/plugins/weather/weather_plugin.cpp
+++ b/kontact/plugins/weather/weather_plugin.cpp
@@ -37,9 +37,9 @@ WeatherPlugin::WeatherPlugin( Kontact::Core *core, const char *name, const TQStr
setInstance( WeatherPluginFactory::instance() );
}
-Kontact::Summary *WeatherPlugin::createSummaryWidget( TQWidget *parentWidget )
+Kontact::Summary *WeatherPlugin::createSummaryWidget( TQWidget *tqparentWidget )
{
- return new SummaryWidget( parentWidget );
+ return new SummaryWidget( tqparentWidget );
}
const KAboutData *WeatherPlugin::aboutData()
diff --git a/kontact/plugins/weather/weather_plugin.h b/kontact/plugins/weather/weather_plugin.h
index 4ab019645..924eb0a32 100644
--- a/kontact/plugins/weather/weather_plugin.h
+++ b/kontact/plugins/weather/weather_plugin.h
@@ -31,7 +31,7 @@ class WeatherPlugin : public Kontact::Plugin
WeatherPlugin( Kontact::Core *core, const char *name, const TQStringList& );
WeatherPlugin();
- virtual Kontact::Summary *createSummaryWidget( TQWidget *parentWidget );
+ virtual Kontact::Summary *createSummaryWidget( TQWidget *tqparentWidget );
const KAboutData *aboutData();