summaryrefslogtreecommitdiffstats
path: root/kmail/editorwatcher.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kmail/editorwatcher.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmail/editorwatcher.cpp')
-rw-r--r--kmail/editorwatcher.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kmail/editorwatcher.cpp b/kmail/editorwatcher.cpp
index e9fec6608..273c5997f 100644
--- a/kmail/editorwatcher.cpp
+++ b/kmail/editorwatcher.cpp
@@ -27,7 +27,7 @@
#include <kprocess.h>
#include <kuserprofile.h>
-#include <qsocketnotifier.h>
+#include <tqsocketnotifier.h>
#include <cassert>
@@ -48,8 +48,8 @@
using namespace KMail;
-EditorWatcher::EditorWatcher(const KURL & url, const QString &mimeType, bool openWith, QObject * parent) :
- QObject( parent ),
+EditorWatcher::EditorWatcher(const KURL & url, const TQString &mimeType, bool openWith, TQObject * parent) :
+ TQObject( parent ),
mUrl( url ),
mMimeType( mimeType ),
mOpenWith( openWith ),
@@ -61,7 +61,7 @@ EditorWatcher::EditorWatcher(const KURL & url, const QString &mimeType, bool ope
mDone( false )
{
assert( mUrl.isLocalFile() );
- connect( &mTimer, SIGNAL(timeout()), SLOT(checkEditDone()) );
+ connect( &mTimer, TQT_SIGNAL(timeout()), TQT_SLOT(checkEditDone()) );
}
bool EditorWatcher::start()
@@ -71,7 +71,7 @@ bool EditorWatcher::start()
list.append( mUrl );
KService::Ptr offer = KServiceTypeProfile::preferredService( mMimeType, "Application" );
if ( mOpenWith || !offer ) {
- KOpenWithDlg dlg( list, i18n("Edit with:"), QString::null, 0 );
+ KOpenWithDlg dlg( list, i18n("Edit with:"), TQString::null, 0 );
if ( !dlg.exec() )
return false;
offer = dlg.service();
@@ -85,8 +85,8 @@ bool EditorWatcher::start()
if ( mInotifyFd > 0 ) {
mInotifyWatch = inotify_add_watch( mInotifyFd, mUrl.path().latin1(), IN_CLOSE | IN_OPEN | IN_MODIFY );
if ( mInotifyWatch >= 0 ) {
- QSocketNotifier *sn = new QSocketNotifier( mInotifyFd, QSocketNotifier::Read, this );
- connect( sn, SIGNAL(activated(int)), SLOT(inotifyEvent()) );
+ TQSocketNotifier *sn = new TQSocketNotifier( mInotifyFd, TQSocketNotifier::Read, this );
+ connect( sn, TQT_SIGNAL(activated(int)), TQT_SLOT(inotifyEvent()) );
mHaveInotify = true;
mFileModified = false;
}
@@ -96,10 +96,10 @@ bool EditorWatcher::start()
#endif
// start the editor
- QStringList params = KRun::processDesktopExec( *offer, list, false );
+ TQStringList params = KRun::processDesktopExec( *offer, list, false );
mEditor = new KProcess( this );
*mEditor << params;
- connect( mEditor, SIGNAL(processExited(KProcess*)), SLOT(editorExited()) );
+ connect( mEditor, TQT_SIGNAL(processExited(KProcess*)), TQT_SLOT(editorExited()) );
if ( !mEditor->start() )
return false;
mEditorRunning = true;