summaryrefslogtreecommitdiffstats
path: root/kopete/libkopete/ui/kopetefileconfirmdialog.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kopete/libkopete/ui/kopetefileconfirmdialog.cpp
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kopete/libkopete/ui/kopetefileconfirmdialog.cpp')
-rw-r--r--kopete/libkopete/ui/kopetefileconfirmdialog.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/kopete/libkopete/ui/kopetefileconfirmdialog.cpp b/kopete/libkopete/ui/kopetefileconfirmdialog.cpp
index 01036a05..fffeec66 100644
--- a/kopete/libkopete/ui/kopetefileconfirmdialog.cpp
+++ b/kopete/libkopete/ui/kopetefileconfirmdialog.cpp
@@ -15,7 +15,7 @@
*************************************************************************
*/
-#include <qtextedit.h>
+#include <tqtextedit.h>
#include <klineedit.h>
#include <kconfig.h>
@@ -31,7 +31,7 @@
#include "kopetemetacontact.h"
#include "kopetecontact.h"
-KopeteFileConfirmDialog::KopeteFileConfirmDialog(const Kopete::FileTransferInfo &info,const QString& description,QWidget *parent, const char *name )
+KopeteFileConfirmDialog::KopeteFileConfirmDialog(const Kopete::FileTransferInfo &info,const TQString& description,TQWidget *parent, const char *name )
: KDialogBase( parent, name, false, i18n( "A User Would Like to Send You a File" ),
KDialogBase::User1 | KDialogBase::User2, KDialogBase::User1, true, i18n( "&Refuse" ), i18n( "&Accept" ) ),
m_info( info )
@@ -40,19 +40,19 @@ KopeteFileConfirmDialog::KopeteFileConfirmDialog(const Kopete::FileTransferInfo
m_emited=false;
m_view=new FileConfirmBase(this, "FileConfirmView");
- m_view->m_from->setText( info.contact()->metaContact()->displayName() + QString::fromLatin1( " <" ) +
- info.contact()->contactId() + QString::fromLatin1( "> " ) );
+ m_view->m_from->setText( info.contact()->metaContact()->displayName() + TQString::fromLatin1( " <" ) +
+ info.contact()->contactId() + TQString::fromLatin1( "> " ) );
m_view->m_size->setText( KGlobal::locale()->formatNumber( long( info.size() ), 0 ) );
m_view->m_description->setText( description );
m_view->m_filename->setText( info.file() );
KGlobal::config()->setGroup("File Transfer");
- const QString defaultPath=KGlobal::config()->readEntry("defaultPath" , QDir::homeDirPath() );
- m_view->m_saveto->setText(defaultPath + QString::fromLatin1( "/" ) + info.file() );
+ const TQString defaultPath=KGlobal::config()->readEntry("defaultPath" , TQDir::homeDirPath() );
+ m_view->m_saveto->setText(defaultPath + TQString::fromLatin1( "/" ) + info.file() );
setMainWidget(m_view);
- connect(m_view->cmdBrowse, SIGNAL(clicked()), this, SLOT(slotBrowsePressed()));
+ connect(m_view->cmdBrowse, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotBrowsePressed()));
}
KopeteFileConfirmDialog::~KopeteFileConfirmDialog()
@@ -61,7 +61,7 @@ KopeteFileConfirmDialog::~KopeteFileConfirmDialog()
void KopeteFileConfirmDialog::slotBrowsePressed()
{
- QString saveFileName = KFileDialog::getSaveFileName( m_view->m_saveto->text(), QString::fromLatin1( "*" ), 0L , i18n( "File Transfer" ) );
+ TQString saveFileName = KFileDialog::getSaveFileName( m_view->m_saveto->text(), TQString::fromLatin1( "*" ), 0L , i18n( "File Transfer" ) );
if ( !saveFileName.isNull())
{
m_view->m_saveto->setText(saveFileName);
@@ -74,14 +74,14 @@ void KopeteFileConfirmDialog::slotUser2()
KURL url(m_view->m_saveto->text());
if(url.isValid() && url.isLocalFile() )
{
- const QString directory=url.directory();
+ const TQString directory=url.directory();
if(!directory.isEmpty())
{
KGlobal::config()->setGroup("File Transfer");
KGlobal::config()->writeEntry("defaultPath" , directory );
}
- if(QFile(m_view->m_saveto->text()).exists())
+ if(TQFile(m_view->m_saveto->text()).exists())
{
int ret=KMessageBox::warningContinueCancel(this, i18n("The file '%1' already exists.\nDo you want to overwrite it ?").arg(m_view->m_saveto->text()) ,
i18n("Overwrite File") , KStdGuiItem::save());
@@ -103,7 +103,7 @@ void KopeteFileConfirmDialog::slotUser1()
close();
}
-void KopeteFileConfirmDialog::closeEvent( QCloseEvent *e)
+void KopeteFileConfirmDialog::closeEvent( TQCloseEvent *e)
{
if(!m_emited)
{