diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
commit | 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch) | |
tree | 5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /kmail/editorwatcher.cpp | |
parent | 2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff) | |
download | tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip |
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4,
however Qt3 builds are OK. Any alterations this commit makes to kdepim
behaviour under Qt3 are unintentional and should be fixed.
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmail/editorwatcher.cpp')
-rw-r--r-- | kmail/editorwatcher.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kmail/editorwatcher.cpp b/kmail/editorwatcher.cpp index bca75762f..e16c19cb4 100644 --- a/kmail/editorwatcher.cpp +++ b/kmail/editorwatcher.cpp @@ -49,8 +49,8 @@ using namespace KMail; EditorWatcher::EditorWatcher(const KURL & url, const TQString &mimeType, bool openWith, - TQObject * parent, TQWidget *tqparentWidget) : - TQObject( parent ), + TQObject * tqparent, TQWidget *tqparentWidget) : + TQObject( tqparent ), mUrl( url ), mMimeType( mimeType ), mOpenWith( openWith ), @@ -73,7 +73,7 @@ bool EditorWatcher::start() list.append( mUrl ); KService::Ptr offer = KServiceTypeProfile::preferredService( mMimeType, "Application" ); if ( mOpenWith || !offer ) { - KOpenWithDlg dlg( list, i18n("Edit with:"), TQString::null, 0 ); + KOpenWithDlg dlg( list, i18n("Edit with:"), TQString(), 0 ); if ( !dlg.exec() ) return false; offer = dlg.service(); @@ -118,7 +118,7 @@ void EditorWatcher::inotifyEvent() char buffer[4096]; ioctl( mInotifyFd, FIONREAD, &pending ); while ( pending > 0 ) { - int size = read( mInotifyFd, buffer, QMIN( pending, (int)sizeof(buffer) ) ); + int size = read( mInotifyFd, buffer, TQMIN( pending, (int)sizeof(buffer) ) ); pending -= size; if ( size < 0 ) break; // error |