From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- korganizer/plugins/exchange/exchange.cpp | 44 ++++++++++++++++---------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'korganizer/plugins/exchange/exchange.cpp') diff --git a/korganizer/plugins/exchange/exchange.cpp b/korganizer/plugins/exchange/exchange.cpp index 86377f04..3d3719ed 100644 --- a/korganizer/plugins/exchange/exchange.cpp +++ b/korganizer/plugins/exchange/exchange.cpp @@ -17,7 +17,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include +#include #include #include @@ -69,29 +69,29 @@ Exchange::Exchange(KOrg::MainWindow *parent, const char *name) : setXMLFile("plugins/exchangeui.rc"); - new KAction(i18n("&Download..."), 0, this, SLOT(download()), + new KAction(i18n("&Download..."), 0, this, TQT_SLOT(download()), actionCollection(), "exchange_download"); - KAction *action = new KAction(i18n("&Upload Event..."), 0, this, SLOT(upload()), + KAction *action = new KAction(i18n("&Upload Event..."), 0, this, TQT_SLOT(upload()), actionCollection(), "exchange_upload"); - QObject::connect(mainWindow()->view(),SIGNAL(incidenceSelected(Incidence *)), - this, SLOT(slotIncidenceSelected(Incidence *))); + TQObject::connect(mainWindow()->view(),TQT_SIGNAL(incidenceSelected(Incidence *)), + this, TQT_SLOT(slotIncidenceSelected(Incidence *))); action->setEnabled( false ); - QObject::connect(this,SIGNAL(enableIncidenceActions(bool)), - action,SLOT(setEnabled(bool))); + TQObject::connect(this,TQT_SIGNAL(enableIncidenceActions(bool)), + action,TQT_SLOT(setEnabled(bool))); - action = new KAction(i18n("De&lete Event"), 0, this, SLOT(remove()), + action = new KAction(i18n("De&lete Event"), 0, this, TQT_SLOT(remove()), actionCollection(), "exchange_delete"); - QObject::connect(this,SIGNAL(enableIncidenceActions(bool)), - action,SLOT(setEnabled(bool))); + TQObject::connect(this,TQT_SIGNAL(enableIncidenceActions(bool)), + action,TQT_SLOT(setEnabled(bool))); action->setEnabled( false ); - new KAction(i18n("&Configure..."), 0, this, SLOT(configure()), + new KAction(i18n("&Configure..."), 0, this, TQT_SLOT(configure()), actionCollection(), "exchange_configure"); - connect( this, SIGNAL( calendarChanged() ), mainWindow()->view(), SLOT( updateView() ) ); - connect( this, SIGNAL( calendarChanged(const QDate &, const QDate &)), - mainWindow()->view(), SLOT(updateView(const QDate &, const QDate &)) ); + connect( this, TQT_SIGNAL( calendarChanged() ), mainWindow()->view(), TQT_SLOT( updateView() ) ); + connect( this, TQT_SIGNAL( calendarChanged(const TQDate &, const TQDate &)), + mainWindow()->view(), TQT_SLOT(updateView(const TQDate &, const TQDate &)) ); } Exchange::~Exchange() @@ -99,12 +99,12 @@ Exchange::~Exchange() kdDebug(5850) << "Exchange Plugin destructor" << endl; } -QString Exchange::info() +TQString Exchange::info() { return i18n("This plugin imports and export calendar events from/to a Microsoft Exchange 2000 Server."); } -QString Exchange::shortInfo() +TQString Exchange::shortInfo() { return i18n("Exchange Plugin"); } @@ -118,11 +118,11 @@ void Exchange::download() { ExchangeDialog dialog( mainWindow()->view()->startDate(), mainWindow()->view()->endDate() ); - if (dialog.exec() != QDialog::Accepted ) + if (dialog.exec() != TQDialog::Accepted ) return; - QDate start = dialog.m_start->date(); - QDate end = dialog.m_end->date(); + TQDate start = dialog.m_start->date(); + TQDate end = dialog.m_end->date(); KCal::Calendar* calendar = mainWindow()->view()->calendar(); @@ -183,13 +183,13 @@ void Exchange::configure() kdDebug(5850) << "Exchange::configure" << endl; ExchangeConfig dialog( mAccount ); - if (dialog.exec() == QDialog::Accepted ) + if (dialog.exec() == TQDialog::Accepted ) mAccount->save( "Calendar/Exchange Plugin" ); } -void Exchange::showError( int error, const QString& moreInfo /* = QString::null */ ) +void Exchange::showError( int error, const TQString& moreInfo /* = TQString::null */ ) { - QString errorText; + TQString errorText; switch( error ) { case KPIM::ExchangeClient::ResultOK: errorText = i18n( "No Error" ); -- cgit v1.2.3