summaryrefslogtreecommitdiffstats
path: root/kontact/plugins/summary
diff options
context:
space:
mode:
Diffstat (limited to 'kontact/plugins/summary')
-rw-r--r--kontact/plugins/summary/dropwidget.cpp12
-rw-r--r--kontact/plugins/summary/dropwidget.h10
-rw-r--r--kontact/plugins/summary/kcmkontactsummary.cpp42
-rw-r--r--kontact/plugins/summary/kcmkontactsummary.h6
-rw-r--r--kontact/plugins/summary/summaryview_part.cpp130
-rw-r--r--kontact/plugins/summary/summaryview_part.h34
-rw-r--r--kontact/plugins/summary/summaryview_plugin.cpp26
-rw-r--r--kontact/plugins/summary/summaryview_plugin.h6
8 files changed, 133 insertions, 133 deletions
diff --git a/kontact/plugins/summary/dropwidget.cpp b/kontact/plugins/summary/dropwidget.cpp
index 0d6aa5305..341c37d80 100644
--- a/kontact/plugins/summary/dropwidget.cpp
+++ b/kontact/plugins/summary/dropwidget.cpp
@@ -19,22 +19,22 @@
Boston, MA 02110-1301, USA.
*/
-#include <qdragobject.h>
+#include <tqdragobject.h>
#include "dropwidget.h"
-DropWidget::DropWidget( QWidget *parent, const char *name )
- : QWidget( parent, name )
+DropWidget::DropWidget( TQWidget *parent, const char *name )
+ : TQWidget( parent, name )
{
setAcceptDrops( true );
}
-void DropWidget::dragEnterEvent( QDragEnterEvent *event )
+void DropWidget::dragEnterEvent( TQDragEnterEvent *event )
{
- event->accept( QTextDrag::canDecode( event ) );
+ event->accept( TQTextDrag::canDecode( event ) );
}
-void DropWidget::dropEvent( QDropEvent *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 );
diff --git a/kontact/plugins/summary/dropwidget.h b/kontact/plugins/summary/dropwidget.h
index 7cde7f5e0..ade7b6c17 100644
--- a/kontact/plugins/summary/dropwidget.h
+++ b/kontact/plugins/summary/dropwidget.h
@@ -22,21 +22,21 @@
#ifndef DROP_WIDGET_H
#define DROP_WIDGET_H
-#include <qwidget.h>
+#include <tqwidget.h>
class DropWidget : public QWidget
{
Q_OBJECT
public:
- DropWidget( QWidget *parent, const char *name = 0 );
+ DropWidget( TQWidget *parent, const char *name = 0 );
signals:
- void summaryWidgetDropped( QWidget *target, QWidget *widget, int alignment );
+ void summaryWidgetDropped( TQWidget *target, TQWidget *widget, int alignment );
protected:
- virtual void dragEnterEvent( QDragEnterEvent* );
- virtual void dropEvent( QDropEvent* );
+ virtual void dragEnterEvent( TQDragEnterEvent* );
+ virtual void dropEvent( TQDropEvent* );
};
#endif
diff --git a/kontact/plugins/summary/kcmkontactsummary.cpp b/kontact/plugins/summary/kcmkontactsummary.cpp
index d52d991fc..cf8154168 100644
--- a/kontact/plugins/summary/kcmkontactsummary.cpp
+++ b/kontact/plugins/summary/kcmkontactsummary.cpp
@@ -33,9 +33,9 @@
#include <kplugininfo.h>
#include <ktrader.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qpixmap.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqpixmap.h>
#include "kcmkontactsummary.h"
@@ -43,7 +43,7 @@
extern "C"
{
- KDE_EXPORT KCModule *create_kontactsummary( QWidget *parent, const char * ) {
+ KDE_EXPORT KCModule *create_kontactsummary( TQWidget *parent, const char * ) {
return new KCMKontactSummary( parent, "kcmkontactsummary" );
}
}
@@ -52,10 +52,10 @@ class PluginItem : public QCheckListItem
{
public:
PluginItem( KPluginInfo *info, KListView *parent )
- : QCheckListItem( parent, QString::null, QCheckListItem::CheckBox ),
+ : TQCheckListItem( parent, TQString::null, TQCheckListItem::CheckBox ),
mInfo( info )
{
- QPixmap pm = KGlobal::iconLoader()->loadIcon( mInfo->icon(), KIcon::Small );
+ TQPixmap pm = KGlobal::iconLoader()->loadIcon( mInfo->icon(), KIcon::Small );
setPixmap( 0, pm );
}
@@ -64,21 +64,21 @@ class PluginItem : public QCheckListItem
return mInfo;
}
- virtual QString text( int column ) const
+ virtual TQString text( int column ) const
{
if ( column == 0 )
return mInfo->name();
else if ( column == 1 )
return mInfo->comment();
else
- return QString::null;
+ return TQString::null;
}
private:
KPluginInfo *mInfo;
};
-PluginView::PluginView( QWidget *parent, const char *name )
+PluginView::PluginView( TQWidget *parent, const char *name )
: KListView( parent, name )
{
addColumn( i18n( "Name" ) );
@@ -90,12 +90,12 @@ PluginView::~PluginView()
{
}
-KCMKontactSummary::KCMKontactSummary( QWidget *parent, const char *name )
+KCMKontactSummary::KCMKontactSummary( TQWidget *parent, const char *name )
: KCModule( parent, name )
{
- QVBoxLayout *layout = new QVBoxLayout( this, 0, KDialog::spacingHint() );
+ TQVBoxLayout *layout = new TQVBoxLayout( this, 0, KDialog::spacingHint() );
- QLabel *label = new QLabel( i18n( "Here you can select which summary plugins to have visible in your summary view." ), this );
+ TQLabel *label = new TQLabel( i18n( "Here you can select which summary plugins to have visible in your summary view." ), this );
layout->addWidget( label );
mPluginView = new PluginView( this );
@@ -103,8 +103,8 @@ KCMKontactSummary::KCMKontactSummary( QWidget *parent, const char *name )
layout->setStretchFactor( mPluginView, 1 );
- connect( mPluginView, SIGNAL( clicked( QListViewItem* ) ),
- this, SLOT( itemClicked( QListViewItem* ) ) );
+ connect( mPluginView, TQT_SIGNAL( clicked( TQListViewItem* ) ),
+ this, TQT_SLOT( itemClicked( TQListViewItem* ) ) );
load();
KAboutData *about = new KAboutData( I18N_NOOP( "kontactsummary" ),
@@ -119,10 +119,10 @@ KCMKontactSummary::KCMKontactSummary( QWidget *parent, const char *name )
void KCMKontactSummary::load()
{
KTrader::OfferList offers = KTrader::self()->query(
- QString::fromLatin1( "Kontact/Plugin" ),
- QString( "[X-KDE-KontactPluginVersion] == %1" ).arg( KONTACT_PLUGIN_VERSION ) );
+ TQString::fromLatin1( "Kontact/Plugin" ),
+ TQString( "[X-KDE-KontactPluginVersion] == %1" ).arg( KONTACT_PLUGIN_VERSION ) );
- QStringList activeSummaries;
+ TQStringList activeSummaries;
KConfig config( "kontact_summaryrc" );
if ( !config.hasKey( "ActiveSummaries" ) ) {
@@ -148,7 +148,7 @@ void KCMKontactSummary::load()
if ( !(*it)->isPluginEnabled() )
continue;
- QVariant var = (*it)->property( "X-KDE-KontactPluginHasSummary" );
+ TQVariant var = (*it)->property( "X-KDE-KontactPluginHasSummary" );
if ( !var.isValid() )
continue;
@@ -163,9 +163,9 @@ void KCMKontactSummary::load()
void KCMKontactSummary::save()
{
- QStringList activeSummaries;
+ TQStringList activeSummaries;
- QListViewItemIterator it( mPluginView, QListViewItemIterator::Checked );
+ TQListViewItemIterator it( mPluginView, TQListViewItemIterator::Checked );
while ( it.current() ) {
PluginItem *item = static_cast<PluginItem*>( it.current() );
activeSummaries.append( item->pluginInfo()->pluginName() );
@@ -181,7 +181,7 @@ void KCMKontactSummary::defaults()
emit changed( true );
}
-void KCMKontactSummary::itemClicked( QListViewItem* )
+void KCMKontactSummary::itemClicked( TQListViewItem* )
{
emit changed( true );
}
diff --git a/kontact/plugins/summary/kcmkontactsummary.h b/kontact/plugins/summary/kcmkontactsummary.h
index 3c6c6d05d..fd1f983d9 100644
--- a/kontact/plugins/summary/kcmkontactsummary.h
+++ b/kontact/plugins/summary/kcmkontactsummary.h
@@ -35,7 +35,7 @@ class PluginView : public KListView
Q_OBJECT
public:
- PluginView( QWidget *parent, const char *name = 0 );
+ PluginView( TQWidget *parent, const char *name = 0 );
~PluginView();
};
@@ -44,14 +44,14 @@ class KCMKontactSummary : public KCModule
Q_OBJECT
public:
- KCMKontactSummary( QWidget *parent = 0, const char *name = 0 );
+ KCMKontactSummary( TQWidget *parent = 0, const char *name = 0 );
virtual void load();
virtual void save();
virtual void defaults();
private slots:
- void itemClicked( QListViewItem* );
+ void itemClicked( TQListViewItem* );
private:
PluginView *mPluginView;
diff --git a/kontact/plugins/summary/summaryview_part.cpp b/kontact/plugins/summary/summaryview_part.cpp
index 9597de674..0b22f853b 100644
--- a/kontact/plugins/summary/summaryview_part.cpp
+++ b/kontact/plugins/summary/summaryview_part.cpp
@@ -21,10 +21,10 @@
Boston, MA 02110-1301, USA.
*/
-#include <qframe.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qtimer.h>
+#include <tqframe.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqtimer.h>
#include <dcopclient.h>
#include <kaction.h>
@@ -38,7 +38,7 @@
#include <kservice.h>
#include <ktrader.h>
#include <kstandarddirs.h>
-#include <qscrollview.h>
+#include <tqscrollview.h>
#include <kglobal.h>
#include <klocale.h>
#include <kcmultidialog.h>
@@ -67,7 +67,7 @@ namespace Kontact
SummaryViewPart::SummaryViewPart( Kontact::Core *core, const char*,
const KAboutData *aboutData,
- QObject *parent, const char *name )
+ TQObject *parent, const char *name )
: KParts::ReadOnlyPart( parent, name ),
mCore( core ), mFrame( 0 ), mConfigAction( 0 )
{
@@ -77,25 +77,25 @@ SummaryViewPart::SummaryViewPart( Kontact::Core *core, const char*,
initGUI( core );
- connect( kapp, SIGNAL( kdisplayPaletteChanged() ), SLOT( slotAdjustPalette() ) );
+ connect( kapp, TQT_SIGNAL( kdisplayPaletteChanged() ), TQT_SLOT( slotAdjustPalette() ) );
slotAdjustPalette();
- setDate( QDate::currentDate() );
- connect( mCore, SIGNAL( dayChanged( const QDate& ) ),
- SLOT( setDate( const QDate& ) ) );
+ setDate( TQDate::currentDate() );
+ connect( mCore, TQT_SIGNAL( dayChanged( const TQDate& ) ),
+ TQT_SLOT( setDate( const TQDate& ) ) );
KParts::InfoExtension *info = new KParts::InfoExtension( this, "Summary" );
- connect( this, SIGNAL( textChanged( const QString& ) ),
- info, SIGNAL( textChanged( const QString& ) ) );
+ connect( this, TQT_SIGNAL( textChanged( const TQString& ) ),
+ info, TQT_SIGNAL( textChanged( const TQString& ) ) );
mConfigAction = new KAction( i18n( "&Configure Summary View..." ),
"configure", 0, this,
- SLOT( slotConfigure() ), actionCollection(),
+ TQT_SLOT( slotConfigure() ), actionCollection(),
"summaryview_configure" );
setXMLFile( "kontactsummary_part.rc" );
- QTimer::singleShot( 0, this, SLOT( slotTextChanged() ) );
+ TQTimer::singleShot( 0, this, TQT_SLOT( slotTextChanged() ) );
}
SummaryViewPart::~SummaryViewPart()
@@ -122,7 +122,7 @@ void SummaryViewPart::partActivateEvent( KParts::PartActivateEvent *event )
void SummaryViewPart::updateSummaries()
{
- QMap<QString, Kontact::Summary*>::Iterator it;
+ TQMap<TQString, Kontact::Summary*>::Iterator it;
for ( it = mSummaries.begin(); it != mSummaries.end(); ++it )
it.data()->updateSummary( false );
}
@@ -136,18 +136,18 @@ void SummaryViewPart::updateWidgets()
KPIM::IdentityManager idm( true, this );
const KPIM::Identity &id = idm.defaultIdentity();
- QString currentUser = i18n( "Summary for %1" ).arg( id.fullName() );
- mUsernameLabel->setText( QString::fromLatin1( "<b>%1</b>" ).arg( currentUser ) );
+ TQString currentUser = i18n( "Summary for %1" ).arg( id.fullName() );
+ mUsernameLabel->setText( TQString::fromLatin1( "<b>%1</b>" ).arg( currentUser ) );
mSummaries.clear();
mFrame = new DropWidget( mMainWidget );
- connect( mFrame, SIGNAL( summaryWidgetDropped( QWidget*, QWidget*, int ) ),
- this, SLOT( summaryWidgetMoved( QWidget*, QWidget*, int ) ) );
+ connect( mFrame, TQT_SIGNAL( summaryWidgetDropped( TQWidget*, TQWidget*, int ) ),
+ this, TQT_SLOT( summaryWidgetMoved( TQWidget*, TQWidget*, int ) ) );
mMainLayout->insertWidget( 2, mFrame );
- QStringList activeSummaries;
+ TQStringList activeSummaries;
KConfig config( "kontact_summaryrc" );
if ( !config.hasKey( "ActiveSummaries" ) ) {
@@ -161,11 +161,11 @@ void SummaryViewPart::updateWidgets()
}
// Collect all summary widgets with a summaryHeight > 0
- QStringList loadedSummaries;
+ TQStringList loadedSummaries;
- QValueList<Kontact::Plugin*> plugins = mCore->pluginList();
- QValueList<Kontact::Plugin*>::ConstIterator end = plugins.end();
- QValueList<Kontact::Plugin*>::ConstIterator it = plugins.begin();
+ TQValueList<Kontact::Plugin*> plugins = mCore->pluginList();
+ TQValueList<Kontact::Plugin*>::ConstIterator end = plugins.end();
+ TQValueList<Kontact::Plugin*>::ConstIterator it = plugins.begin();
for ( ; it != end; ++it ) {
Kontact::Plugin *plugin = *it;
if ( activeSummaries.find( plugin->identifier() ) == activeSummaries.end() )
@@ -176,10 +176,10 @@ void SummaryViewPart::updateWidgets()
if ( summary->summaryHeight() > 0 ) {
mSummaries.insert( plugin->identifier(), summary );
- connect( summary, SIGNAL( message( const QString& ) ),
- BroadcastStatus::instance(), SLOT( setStatusMsg( const QString& ) ) );
- connect( summary, SIGNAL( summaryWidgetDropped( QWidget*, QWidget*, int ) ),
- this, SLOT( summaryWidgetMoved( QWidget*, QWidget*, int ) ) );
+ connect( summary, TQT_SIGNAL( message( const TQString& ) ),
+ BroadcastStatus::instance(), TQT_SLOT( setStatusMsg( 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() ) ) {
@@ -195,7 +195,7 @@ void SummaryViewPart::updateWidgets()
// Remove all unavailable summary widgets
{
- QStringList::Iterator strIt;
+ TQStringList::Iterator strIt;
for ( strIt = mLeftColumnSummaries.begin(); strIt != mLeftColumnSummaries.end(); ++strIt ) {
if ( loadedSummaries.find( *strIt ) == loadedSummaries.end() ) {
strIt = mLeftColumnSummaries.remove( strIt );
@@ -211,17 +211,17 @@ void SummaryViewPart::updateWidgets()
}
// Add vertical line between the two rows of summary widgets.
- QFrame *vline = new QFrame( mFrame );
- vline->setFrameStyle( QFrame::VLine | QFrame::Plain );
+ TQFrame *vline = new TQFrame( mFrame );
+ vline->setFrameStyle( TQFrame::VLine | TQFrame::Plain );
- QHBoxLayout *layout = new QHBoxLayout( mFrame );
+ TQHBoxLayout *layout = new TQHBoxLayout( mFrame );
- mLeftColumn = new QVBoxLayout( layout, KDialog::spacingHint() );
+ mLeftColumn = new TQVBoxLayout( layout, KDialog::spacingHint() );
layout->addWidget( vline );
- mRightColumn = new QVBoxLayout( layout, KDialog::spacingHint() );
+ mRightColumn = new TQVBoxLayout( layout, KDialog::spacingHint() );
- QStringList::Iterator strIt;
+ TQStringList::Iterator strIt;
for ( strIt = mLeftColumnSummaries.begin(); strIt != mLeftColumnSummaries.end(); ++strIt ) {
if ( mSummaries.find( *strIt ) != mSummaries.end() )
mLeftColumn->addWidget( mSummaries[ *strIt ] );
@@ -241,7 +241,7 @@ void SummaryViewPart::updateWidgets()
mRightColumn->addStretch();
}
-void SummaryViewPart::summaryWidgetMoved( QWidget *target, QWidget *widget, int alignment )
+void SummaryViewPart::summaryWidgetMoved( TQWidget *target, TQWidget *widget, int alignment )
{
if ( target == widget )
return;
@@ -314,9 +314,9 @@ void SummaryViewPart::slotAdjustPalette()
mMainWidget->setPaletteBackgroundColor( kapp->palette().active().base() );
}
-void SummaryViewPart::setDate( const QDate& newDate )
+void SummaryViewPart::setDate( const TQDate& newDate )
{
- QString date( "<b>%1</b>" );
+ TQString date( "<b>%1</b>" );
date = date.arg( KGlobal::locale()->formatDate( newDate ) );
mDateLabel->setText( date );
}
@@ -325,26 +325,26 @@ void SummaryViewPart::slotConfigure()
{
KCMultiDialog dlg( mMainWidget, "ConfigDialog", true );
- QStringList modules = configModules();
+ TQStringList modules = configModules();
modules.prepend( "kcmkontactsummary.desktop" );
- connect( &dlg, SIGNAL( configCommitted() ),
- this, SLOT( updateWidgets() ) );
+ connect( &dlg, TQT_SIGNAL( configCommitted() ),
+ this, TQT_SLOT( updateWidgets() ) );
- QStringList::ConstIterator strIt;
+ TQStringList::ConstIterator strIt;
for ( strIt = modules.begin(); strIt != modules.end(); ++strIt )
dlg.addModule( *strIt );
dlg.exec();
}
-QStringList SummaryViewPart::configModules() const
+TQStringList SummaryViewPart::configModules() const
{
- QStringList modules;
+ TQStringList modules;
- QMap<QString, Kontact::Summary*>::ConstIterator it;
+ TQMap<TQString, Kontact::Summary*>::ConstIterator it;
for ( it = mSummaries.begin(); it != mSummaries.end(); ++it ) {
- QStringList cm = it.data()->configModules();
- QStringList::ConstIterator strIt;
+ TQStringList cm = it.data()->configModules();
+ TQStringList::ConstIterator strIt;
for ( strIt = cm.begin(); strIt != cm.end(); ++strIt )
if ( !(*strIt).isEmpty() && !modules.contains( *strIt ) )
modules.append( *strIt );
@@ -355,37 +355,37 @@ QStringList SummaryViewPart::configModules() const
void SummaryViewPart::initGUI( Kontact::Core *core )
{
- QScrollView *sv = new QScrollView( core );
+ TQScrollView *sv = new TQScrollView( core );
- sv->setResizePolicy( QScrollView::AutoOneFit );
- sv->setFrameStyle( QFrame::NoFrame | QFrame::Plain );
- sv->setHScrollBarMode( QScrollView::AlwaysOff );
+ sv->setResizePolicy( TQScrollView::AutoOneFit );
+ sv->setFrameStyle( TQFrame::NoFrame | TQFrame::Plain );
+ sv->setHScrollBarMode( TQScrollView::AlwaysOff );
- mMainWidget = new QFrame( sv->viewport() );
+ mMainWidget = new TQFrame( sv->viewport() );
sv->addChild( mMainWidget );
- mMainWidget->setFrameStyle( QFrame::Panel | QFrame::Sunken );
- sv->setFocusPolicy( QWidget::StrongFocus );
+ mMainWidget->setFrameStyle( TQFrame::Panel | TQFrame::Sunken );
+ sv->setFocusPolicy( TQWidget::StrongFocus );
setWidget( sv );
- mMainLayout = new QVBoxLayout( mMainWidget,KDialog::marginHint(),
+ mMainLayout = new TQVBoxLayout( mMainWidget,KDialog::marginHint(),
KDialog::spacingHint() );
- QHBoxLayout *hbl = new QHBoxLayout( mMainLayout );
- mUsernameLabel = new QLabel( mMainWidget );
+ TQHBoxLayout *hbl = new TQHBoxLayout( mMainLayout );
+ mUsernameLabel = new TQLabel( mMainWidget );
hbl->addWidget( mUsernameLabel );
- mDateLabel = new QLabel( mMainWidget );
+ mDateLabel = new TQLabel( mMainWidget );
mDateLabel->setAlignment( AlignRight );
hbl->addWidget( mDateLabel );
- QFrame *hline = new QFrame( mMainWidget );
- hline->setFrameStyle( QFrame::HLine | QFrame::Plain );
+ TQFrame *hline = new TQFrame( mMainWidget );
+ hline->setFrameStyle( TQFrame::HLine | TQFrame::Plain );
mMainLayout->insertWidget( 1, hline );
mFrame = new DropWidget( mMainWidget );
mMainLayout->insertWidget( 2, mFrame );
- connect( mFrame, SIGNAL( summaryWidgetDropped( QWidget*, QWidget*, int ) ),
- this, SLOT( summaryWidgetMoved( QWidget*, QWidget*, int ) ) );
+ connect( mFrame, TQT_SIGNAL( summaryWidgetDropped( TQWidget*, TQWidget*, int ) ),
+ this, TQT_SLOT( summaryWidgetMoved( TQWidget*, TQWidget*, int ) ) );
updateWidgets();
}
@@ -420,15 +420,15 @@ void SummaryViewPart::saveLayout()
config.sync();
}
-QString SummaryViewPart::widgetName( QWidget *widget ) const
+TQString SummaryViewPart::widgetName( TQWidget *widget ) const
{
- QMap<QString, Kontact::Summary*>::ConstIterator it;
+ TQMap<TQString, Kontact::Summary*>::ConstIterator it;
for ( it = mSummaries.begin(); it != mSummaries.end(); ++it ) {
if ( it.data() == widget )
return it.key();
}
- return QString::null;
+ return TQString::null;
}
#include "summaryview_part.moc"
diff --git a/kontact/plugins/summary/summaryview_part.h b/kontact/plugins/summary/summaryview_part.h
index f98d7d065..0868b13c9 100644
--- a/kontact/plugins/summary/summaryview_part.h
+++ b/kontact/plugins/summary/summaryview_part.h
@@ -24,8 +24,8 @@
#ifndef SUMMARYVIEW_PART_H
#define SUMMARYVIEW_PART_H
-#include <qdatetime.h>
-#include <qmap.h>
+#include <tqdatetime.h>
+#include <tqmap.h>
#include <kparts/part.h>
@@ -56,17 +56,17 @@ class SummaryViewPart : public KParts::ReadOnlyPart
public:
SummaryViewPart( Kontact::Core *core, const char *widgetName,
const KAboutData *aboutData,
- QObject *parent = 0, const char *name = 0 );
+ TQObject *parent = 0, const char *name = 0 );
~SummaryViewPart();
public slots:
void slotTextChanged();
void slotAdjustPalette();
- void setDate( const QDate& newDate );
+ void setDate( const TQDate& newDate );
void updateSummaries();
signals:
- void textChanged( const QString& );
+ void textChanged( const TQString& );
protected:
virtual bool openFile();
@@ -75,29 +75,29 @@ class SummaryViewPart : public KParts::ReadOnlyPart
protected slots:
void slotConfigure();
void updateWidgets();
- void summaryWidgetMoved( QWidget *target, QWidget *widget, int alignment );
+ void summaryWidgetMoved( TQWidget *target, TQWidget *widget, int alignment );
private:
void initGUI( Kontact::Core *core );
void loadLayout();
void saveLayout();
- QString widgetName( QWidget* ) const;
+ TQString widgetName( TQWidget* ) const;
- QStringList configModules() const;
+ TQStringList configModules() const;
- QMap<QString, Kontact::Summary*> mSummaries;
+ TQMap<TQString, Kontact::Summary*> mSummaries;
Kontact::Core *mCore;
DropWidget *mFrame;
- QFrame *mMainWidget;
- QVBoxLayout *mMainLayout;
- QVBoxLayout *mLeftColumn;
- QVBoxLayout *mRightColumn;
- QLabel *mUsernameLabel;
- QLabel *mDateLabel;
+ TQFrame *mMainWidget;
+ TQVBoxLayout *mMainLayout;
+ TQVBoxLayout *mLeftColumn;
+ TQVBoxLayout *mRightColumn;
+ TQLabel *mUsernameLabel;
+ TQLabel *mDateLabel;
KAction *mConfigAction;
- QStringList mLeftColumnSummaries;
- QStringList mRightColumnSummaries;
+ TQStringList mLeftColumnSummaries;
+ TQStringList mRightColumnSummaries;
};
#endif
diff --git a/kontact/plugins/summary/summaryview_plugin.cpp b/kontact/plugins/summary/summaryview_plugin.cpp
index a73faf7e0..9f9073808 100644
--- a/kontact/plugins/summary/summaryview_plugin.cpp
+++ b/kontact/plugins/summary/summaryview_plugin.cpp
@@ -27,23 +27,23 @@
#include <kaboutdata.h>
#include <kaction.h>
-#include <qpopupmenu.h>
+#include <tqpopupmenu.h>
typedef KGenericFactory< SummaryView, Kontact::Core > SummaryViewFactory;
K_EXPORT_COMPONENT_FACTORY( libkontact_summaryplugin,
SummaryViewFactory( "kontact_summaryplugin" ) )
-SummaryView::SummaryView( Kontact::Core *core, const char *name, const QStringList& )
+SummaryView::SummaryView( Kontact::Core *core, const char *name, const TQStringList& )
: Kontact::Plugin( core, core, name),
mAboutData( 0 ), mPart( 0 )
{
setInstance( SummaryViewFactory::instance() );
mSyncAction = new KSelectAction( i18n( "Synchronize All" ), "reload", 0, this,
- SLOT( doSync() ), actionCollection(),
+ TQT_SLOT( doSync() ), actionCollection(),
"kontact_summary_sync" );
- connect( mSyncAction, SIGNAL( activated( const QString& ) ), this, SLOT( syncAccount( const QString& ) ) );
- connect( mSyncAction->popupMenu(), SIGNAL( aboutToShow() ), this, SLOT( fillSyncActionSubEntries() ) );
+ connect( mSyncAction, TQT_SIGNAL( activated( const TQString& ) ), this, TQT_SLOT( syncAccount( const TQString& ) ) );
+ connect( mSyncAction->popupMenu(), TQT_SIGNAL( aboutToShow() ), this, TQT_SLOT( fillSyncActionSubEntries() ) );
insertSyncAction( mSyncAction );
fillSyncActionSubEntries();
@@ -51,7 +51,7 @@ SummaryView::SummaryView( Kontact::Core *core, const char *name, const QStringLi
void SummaryView::fillSyncActionSubEntries()
{
- QStringList menuItems;
+ TQStringList menuItems;
menuItems.append( i18n("All") );
DCOPRef ref( "kmail", "KMailIface" );
@@ -59,16 +59,16 @@ void SummaryView::fillSyncActionSubEntries()
if ( reply.isValid() )
{
- const QStringList accounts = reply;
+ const TQStringList accounts = reply;
menuItems += accounts;
}
mSyncAction->clear();
mSyncAction->setItems( menuItems );
}
-void SummaryView::syncAccount( const QString& account )
+void SummaryView::syncAccount( const TQString& account )
{
- const QString acc = account == i18n("All") ? QString() : account;
+ const TQString acc = account == i18n("All") ? TQString() : account;
DCOPRef ref( "kmail", "KMailIface" );
ref.send( "checkAccount", acc );
fillSyncActionSubEntries();
@@ -83,12 +83,12 @@ void SummaryView::doSync()
if ( mPart )
mPart->updateSummaries();
- const QValueList<Kontact::Plugin*> pluginList = core()->pluginList();
- for ( QValueList<Kontact::Plugin*>::ConstIterator it = pluginList.begin(), end = pluginList.end();
+ const TQValueList<Kontact::Plugin*> pluginList = core()->pluginList();
+ for ( TQValueList<Kontact::Plugin*>::ConstIterator it = pluginList.begin(), end = pluginList.end();
it != end; ++it ) {
// execute all sync actions but our own
- QPtrList<KAction> *actions = (*it)->syncActions();
- for ( QPtrList<KAction>::Iterator jt = actions->begin(), end = actions->end(); jt != end; ++jt ) {
+ TQPtrList<KAction> *actions = (*it)->syncActions();
+ for ( TQPtrList<KAction>::Iterator jt = actions->begin(), end = actions->end(); jt != end; ++jt ) {
if ( *jt != mSyncAction )
(*jt)->activate();
}
diff --git a/kontact/plugins/summary/summaryview_plugin.h b/kontact/plugins/summary/summaryview_plugin.h
index 9093a1b34..82e3db96b 100644
--- a/kontact/plugins/summary/summaryview_plugin.h
+++ b/kontact/plugins/summary/summaryview_plugin.h
@@ -26,7 +26,7 @@
#include <klocale.h>
#include <kparts/part.h>
-#include <qmap.h>
+#include <tqmap.h>
class KSelectAction;
@@ -37,7 +37,7 @@ class SummaryView : public Kontact::Plugin
Q_OBJECT
public:
- SummaryView( Kontact::Core *core, const char *name, const QStringList& );
+ SummaryView( Kontact::Core *core, const char *name, const TQStringList& );
~SummaryView();
int weight() const { return 100; }
@@ -50,7 +50,7 @@ class SummaryView : public Kontact::Plugin
private slots:
void doSync();
- void syncAccount( const QString& account );
+ void syncAccount( const TQString& account );
void fillSyncActionSubEntries();
private: