Remove the tq in front of these incorrectly TQt4-converted methods/data members:

tqrepaint[...]
tqinvalidate[...]
tqparent[...]
tqmask[...]
tqlayout[...]
tqalignment[...]


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1240522 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 14 years ago
parent fc5197ec86
commit dfb7562b7e

@ -66,7 +66,7 @@ Spaces
================================================================================ ================================================================================
Spaces should be used between the conditional / loop type and the Spaces should be used between the conditional / loop type and the
conditional statement. They should not be used after tqparenthesis. However conditional statement. They should not be used after parenthesis. However
the should be to mark of mathematical or comparative operators. the should be to mark of mathematical or comparative operators.
if ( foo == bar ) if ( foo == bar )

@ -137,7 +137,7 @@
</spacer> </spacer>
</vbox> </vbox>
</widget> </widget>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
<includehints> <includehints>
<includehint>klineedit.h</includehint> <includehint>klineedit.h</includehint>
<includehint>ksqueezedtextlabel.h</includehint> <includehint>ksqueezedtextlabel.h</includehint>

@ -116,7 +116,7 @@ class Part::ApplyFiltersInterceptor : public ArticleInterceptor
} }
}; };
Part::Part( TQWidget *tqparentWidget, const char * /*widgetName*/, Part::Part( TQWidget *parentWidget, const char * /*widgetName*/,
TQObject *tqparent, const char *name, const TQStringList& ) TQObject *tqparent, const char *name, const TQStringList& )
: DCOPObject("AkregatorIface") : DCOPObject("AkregatorIface")
, MyBasePart(tqparent, name) , MyBasePart(tqparent, name)
@ -168,7 +168,7 @@ Part::Part( TQWidget *tqparentWidget, const char * /*widgetName*/,
{ {
m_storage = Backend::StorageFactoryRegistry::self()->getFactory("dummy")->createStorage(storageParams); m_storage = Backend::StorageFactoryRegistry::self()->getFactory("dummy")->createStorage(storageParams);
KMessageBox::error(tqparentWidget, i18n("Unable to load storage backend plugin \"%1\". No feeds are archived.").tqarg(Settings::archiveBackend()), i18n("Plugin error") ); KMessageBox::error(parentWidget, i18n("Unable to load storage backend plugin \"%1\". No feeds are archived.").tqarg(Settings::archiveBackend()), i18n("Plugin error") );
} }
Filters::ArticleFilterList list; Filters::ArticleFilterList list;
@ -187,7 +187,7 @@ Part::Part( TQWidget *tqparentWidget, const char * /*widgetName*/,
m_actionManager = new ActionManagerImpl(this); m_actionManager = new ActionManagerImpl(this);
ActionManager::setInstance(m_actionManager); ActionManager::setInstance(m_actionManager);
m_view = new Akregator::View(this, tqparentWidget, m_actionManager, "akregator_view"); m_view = new Akregator::View(this, parentWidget, m_actionManager, "akregator_view");
m_actionManager->initView(m_view); m_actionManager->initView(m_view);
m_actionManager->setTagSet(Kernel::self()->tagSet()); m_actionManager->setTagSet(Kernel::self()->tagSet());
@ -823,7 +823,7 @@ KParts::Part* Part::hitTest(TQWidget *widget, const TQPoint &globalPos)
if (!widget) { if (!widget) {
break; break;
} }
widget = widget->tqparentWidget(); widget = widget->parentWidget();
} }
if (m_view && m_view->currentFrame() && child) { if (m_view && m_view->currentFrame() && child) {
return m_view->currentFrame()->part(); return m_view->currentFrame()->part();

@ -82,7 +82,7 @@ namespace Akregator
typedef MyBasePart inherited; typedef MyBasePart inherited;
/** Default constructor.*/ /** Default constructor.*/
Part(TQWidget *tqparentWidget, const char *widgetName, Part(TQWidget *parentWidget, const char *widgetName,
TQObject *tqparent, const char *name, const TQStringList&); TQObject *tqparent, const char *name, const TQStringList&);
/** Destructor. */ /** Destructor. */

@ -212,15 +212,15 @@ class NodeListView::CreateItemVisitor : public TreeNodeVisitor
TagNodeItem* item = 0; TagNodeItem* item = 0;
TreeNode* prev = node->prevSibling(); TreeNode* prev = node->prevSibling();
FolderItem* tqparentItem = static_cast<FolderItem*>(m_view->findNodeItem(node->tqparent())); FolderItem* parentItem = static_cast<FolderItem*>(m_view->findNodeItem(node->tqparent()));
if (tqparentItem) if (parentItem)
{ {
if (prev) if (prev)
{ {
item = new TagNodeItem( tqparentItem, m_view->findNodeItem(prev), node); item = new TagNodeItem( parentItem, m_view->findNodeItem(prev), node);
} }
else else
item = new TagNodeItem( tqparentItem, node); item = new TagNodeItem( parentItem, node);
} }
else else
{ {
@ -234,8 +234,8 @@ class NodeListView::CreateItemVisitor : public TreeNodeVisitor
item->nodeChanged(); item->nodeChanged();
m_view->d->itemDict.insert(node, item); m_view->d->itemDict.insert(node, item);
m_view->connectToNode(node); m_view->connectToNode(node);
if (tqparentItem) if (parentItem)
tqparentItem->sortChildItems(0, true); parentItem->sortChildItems(0, true);
return true; return true;
} }
@ -246,15 +246,15 @@ class NodeListView::CreateItemVisitor : public TreeNodeVisitor
TagFolderItem* item = 0; TagFolderItem* item = 0;
TreeNode* prev = node->prevSibling(); TreeNode* prev = node->prevSibling();
FolderItem* tqparentItem = static_cast<FolderItem*>(m_view->findNodeItem(node->tqparent())); FolderItem* parentItem = static_cast<FolderItem*>(m_view->findNodeItem(node->tqparent()));
if (tqparentItem) if (parentItem)
{ {
if (prev) if (prev)
{ {
item = new TagFolderItem( tqparentItem, m_view->findNodeItem(prev), node); item = new TagFolderItem( parentItem, m_view->findNodeItem(prev), node);
} }
else else
item = new TagFolderItem(tqparentItem, node); item = new TagFolderItem(parentItem, node);
} }
else else
{ {
@ -284,15 +284,15 @@ class NodeListView::CreateItemVisitor : public TreeNodeVisitor
FolderItem* item = 0; FolderItem* item = 0;
TreeNode* prev = node->prevSibling(); TreeNode* prev = node->prevSibling();
FolderItem* tqparentItem = static_cast<FolderItem*>(m_view->findNodeItem(node->tqparent())); FolderItem* parentItem = static_cast<FolderItem*>(m_view->findNodeItem(node->tqparent()));
if (tqparentItem) if (parentItem)
{ {
if (prev) if (prev)
{ {
item = new FolderItem( tqparentItem, m_view->findNodeItem(prev), node); item = new FolderItem( parentItem, m_view->findNodeItem(prev), node);
} }
else else
item = new FolderItem(tqparentItem, node); item = new FolderItem(parentItem, node);
} }
else else
{ {
@ -321,16 +321,16 @@ class NodeListView::CreateItemVisitor : public TreeNodeVisitor
FeedItem* item = 0; FeedItem* item = 0;
TreeNode* prev = node->prevSibling(); TreeNode* prev = node->prevSibling();
FolderItem* tqparentItem = static_cast<FolderItem*>(m_view->findNodeItem(node->tqparent())); FolderItem* parentItem = static_cast<FolderItem*>(m_view->findNodeItem(node->tqparent()));
if (tqparentItem) if (parentItem)
{ {
if (prev) if (prev)
{ {
item = new FeedItem( tqparentItem, m_view->findNodeItem(prev), node); item = new FeedItem( parentItem, m_view->findNodeItem(prev), node);
} }
else else
item = new FeedItem( tqparentItem, node); item = new FeedItem( parentItem, node);
} }
else else
{ {
@ -534,7 +534,7 @@ void NodeListView::movableDropEvent(TQListViewItem* /*tqparent*/, TQListViewItem
{ {
openFolder(); openFolder();
Folder* tqparentNode = (dynamic_cast<FolderItem*> (d->tqparent))->node(); Folder* parentNode = (dynamic_cast<FolderItem*> (d->tqparent))->node();
TreeNode* afterMeNode = 0; TreeNode* afterMeNode = 0;
TreeNode* current = selectedNode(); TreeNode* current = selectedNode();
@ -542,7 +542,7 @@ void NodeListView::movableDropEvent(TQListViewItem* /*tqparent*/, TQListViewItem
afterMeNode = (dynamic_cast<TreeNodeItem*> (d->afterme))->node(); afterMeNode = (dynamic_cast<TreeNodeItem*> (d->afterme))->node();
current->tqparent()->removeChild(current); current->tqparent()->removeChild(current);
tqparentNode->insertChild(current, afterMeNode); parentNode->insertChild(current, afterMeNode);
KListView::movableDropEvent(d->tqparent, d->afterme); KListView::movableDropEvent(d->tqparent, d->afterme);
} }
} }

@ -186,24 +186,24 @@ Document::Document(const TQDomDocument &doc) : d(new Private)
/* This is ugly but necessary since RSS 0.90 and 1.0 have a different tqparent /* This is ugly but necessary since RSS 0.90 and 1.0 have a different tqparent
* node for <image>, <textinput> and <item> than RSS 0.91-0.94 and RSS 2.0. * node for <image>, <textinput> and <item> than RSS 0.91-0.94 and RSS 2.0.
*/ */
TQDomNode tqparentNode; TQDomNode parentNode;
if (d->version == v0_90 || d->version == v1_0 || d->format == AtomFeed) if (d->version == v0_90 || d->version == v1_0 || d->format == AtomFeed)
tqparentNode = rootNode; parentNode = rootNode;
else else
{ {
// following is a HACK for broken 0.91 feeds like xanga.com's // following is a HACK for broken 0.91 feeds like xanga.com's
if (!rootNode.namedItem(TQString::tqfromLatin1("item")).isNull()) if (!rootNode.namedItem(TQString::tqfromLatin1("item")).isNull())
tqparentNode = rootNode; parentNode = rootNode;
else else
tqparentNode = channelNode; parentNode = channelNode;
} }
// image and textinput aren't supported by Atom.. handle in case feed provides // image and textinput aren't supported by Atom.. handle in case feed provides
TQDomNode n = tqparentNode.namedItem(TQString::tqfromLatin1("image")); TQDomNode n = parentNode.namedItem(TQString::tqfromLatin1("image"));
if (!n.isNull()) if (!n.isNull())
d->image = new Image(n); d->image = new Image(n);
n = tqparentNode.namedItem(TQString::tqfromLatin1("textinput")); n = parentNode.namedItem(TQString::tqfromLatin1("textinput"));
if (!n.isNull()) if (!n.isNull())
d->textInput = new TextInput(n); d->textInput = new TextInput(n);
@ -214,7 +214,7 @@ Document::Document(const TQDomDocument &doc) : d(new Private)
else else
tagName=TQString::tqfromLatin1("item"); tagName=TQString::tqfromLatin1("item");
for (n = tqparentNode.firstChild(); !n.isNull(); n = n.nextSibling()) { for (n = parentNode.firstChild(); !n.isNull(); n = n.nextSibling()) {
const TQDomElement e = n.toElement(); const TQDomElement e = n.toElement();
if (e.tagName() == tagName) if (e.tagName() == tagName)
d->articles.append(Article(e, d->format, d->version)); d->articles.append(Article(e, d->format, d->version));

@ -186,7 +186,7 @@ static void authorFromString(const TQString& strp, TQString& name, TQString& ema
// after removing the email, str might have // after removing the email, str might have
// the format "(Foo M. Bar)". We cut off // the format "(Foo M. Bar)". We cut off
// tqparentheses if there are any. However, if // parentheses if there are any. However, if
// str is of the format "Foo M. Bar (President)", // str is of the format "Foo M. Bar (President)",
// we should not cut anything. // we should not cut anything.

@ -203,7 +203,7 @@
Modify some recent patches that were Python 2.2 only so they would Modify some recent patches that were Python 2.2 only so they would
still work with 2.1. Add a view.properties() method (returning a still work with 2.1. Add a view.properties() method (returning a
dict of propname -> Property) for cases where a property is tqmasked dict of propname -> Property) for cases where a property is masked
by a method name. by a method name.
2003-03-01 Reverted changes in Mk4py/scxx, avoid Mk4tcl warning 2003-03-01 Reverted changes in Mk4py/scxx, avoid Mk4tcl warning

@ -1398,30 +1398,30 @@ void c4_ColOfInts::ResizeData(int index_, int count_, bool clear_)
/* _currwidth 1: 2: 4: /* _currwidth 1: 2: 4:
* shiftPos 3 2 1 shift the offset right this much * shiftPos 3 2 1 shift the offset right this much
* tqmaskPos 7 3 1 tqmask the offset with this * maskPos 7 3 1 tqmask the offset with this
*/ */
const int shiftPos = _currWidth == 4 ? 1 : 4 - _currWidth; const int shiftPos = _currWidth == 4 ? 1 : 4 - _currWidth;
const int tqmaskPos = (1 << shiftPos) - 1; const int maskPos = (1 << shiftPos) - 1;
// the following code is similar to c4_Column::Resize, but at bit level // the following code is similar to c4_Column::Resize, but at bit level
// turn insertion into deletion by inserting entire bytes // turn insertion into deletion by inserting entire bytes
if (count_ > 0) { if (count_ > 0) {
unsigned off = (unsigned) index_ >> shiftPos; unsigned off = (unsigned) index_ >> shiftPos;
int gapBytes = (count_ + tqmaskPos) >> shiftPos; int gapBytes = (count_ + maskPos) >> shiftPos;
InsertData(off, gapBytes, clear_); InsertData(off, gapBytes, clear_);
// oops, we might have inserted too low by a few entries // oops, we might have inserted too low by a few entries
const int bits = (index_ & tqmaskPos) * _currWidth; const int bits = (index_ & maskPos) * _currWidth;
if (bits) { if (bits) {
const int tqmaskLow = (1 << bits) - 1; const int maskLow = (1 << bits) - 1;
// move the first few bits to start of inserted range // move the first few bits to start of inserted range
t4_byte* p = CopyNow(off + gapBytes); t4_byte* p = CopyNow(off + gapBytes);
t4_byte one = *p & tqmaskLow; t4_byte one = *p & maskLow;
*p &= ~tqmaskLow; *p &= ~maskLow;
* CopyNow(off) = one; * CopyNow(off) = one;
} }

@ -23,7 +23,7 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// c4_Field // c4_Field
c4_Field::c4_Field (const char*& description_, c4_Field* tqparent_) c4_Field::c4_Field (const char*& description_, c4_Field* parent_)
: _type (0) : _type (0)
{ {
_indirect = this; _indirect = this;
@ -47,7 +47,7 @@ c4_Field::c4_Field (const char*& description_, c4_Field* tqparent_)
if (*description_ == '^') { if (*description_ == '^') {
++description_; ++description_;
_indirect = tqparent_; _indirect = parent_;
d4_assert(*description_ == ']'); d4_assert(*description_ == ']');
} }

@ -397,7 +397,7 @@ void c4_HandlerSeq::ExchangeEntries(int srcPos_, c4_HandlerSeq& dst_, int dstPos
c4_HandlerSeq& t1 = SubEntry(col, srcPos_); c4_HandlerSeq& t1 = SubEntry(col, srcPos_);
c4_HandlerSeq& t2 = dst_.SubEntry(col, dstPos_); c4_HandlerSeq& t2 = dst_.SubEntry(col, dstPos_);
// adjust the tqparents // adjust the parents
t1._tqparent = this; t1._tqparent = this;
t2._tqparent = &dst_; t2._tqparent = &dst_;
@ -478,14 +478,14 @@ void c4_HandlerSeq::UnmappedAll()
// construct meta view from a pre-parsed field tree structure // construct meta view from a pre-parsed field tree structure
// this will one day be converted to directly parse the description string // this will one day be converted to directly parse the description string
void c4_HandlerSeq::BuildMeta(int tqparent_, int colnum_, c4_View& meta_, void c4_HandlerSeq::BuildMeta(int parent_, int colnum_, c4_View& meta_,
const c4_Field& field_) const c4_Field& field_)
{ {
c4_IntProp pP ("P"), pC ("C"); c4_IntProp pP ("P"), pC ("C");
c4_ViewProp pF ("F"); c4_ViewProp pF ("F");
c4_StringProp pN ("N"), pT ("T"); c4_StringProp pN ("N"), pT ("T");
int n = meta_.Add(pP [tqparent_] + pC [colnum_]); int n = meta_.Add(pP [parent_] + pC [colnum_]);
c4_View fields = pF (meta_[n]); c4_View fields = pF (meta_[n]);
for (int i = 0; i < field_.NumSubFields(); ++i) { for (int i = 0; i < field_.NumSubFields(); ++i) {

@ -219,9 +219,9 @@ void FailExpr(const char* expr)
Fail(buffer); Fail(buffer);
} }
int StartTest(int tqmask_, const char* name_, const char* desc_) int StartTest(int mask_, const char* name_, const char* desc_)
{ {
if (tqmask_) if (mask_)
{ {
#if q4_MFC && defined(_DEBUG) #if q4_MFC && defined(_DEBUG)
TRACE("%s - %-40s *** DISABLED ***\n", name_, desc_); TRACE("%s - %-40s *** DISABLED ***\n", name_, desc_);

@ -169,7 +169,7 @@
<slot>&lt;No)</slot> <slot>&lt;No)</slot>
</connection> </connection>
</connections> </connections>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
<includehints> <includehints>
<includehint>kurlrequester.h</includehint> <includehint>kurlrequester.h</includehint>
<includehint>klineedit.h</includehint> <includehint>klineedit.h</includehint>

@ -456,7 +456,7 @@
<slot access="protected" specifier="pure virtual">slotUpdateComboBoxActivated( int )</slot> <slot access="protected" specifier="pure virtual">slotUpdateComboBoxActivated( int )</slot>
<slot access="protected" specifier="pure virtual">slotUpdateCheckBoxToggled( bool )</slot> <slot access="protected" specifier="pure virtual">slotUpdateCheckBoxToggled( bool )</slot>
</Q_SLOTS> </Q_SLOTS>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
<includehints> <includehints>
<includehint>klineedit.h</includehint> <includehint>klineedit.h</includehint>
<includehint>klineedit.h</includehint> <includehint>klineedit.h</includehint>

@ -150,7 +150,7 @@
<slot>setEnabled(bool)</slot> <slot>setEnabled(bool)</slot>
</connection> </connection>
</connections> </connections>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
<includehints> <includehints>
<includehint>kcombobox.h</includehint> <includehint>kcombobox.h</includehint>
</includehints> </includehints>

@ -234,7 +234,7 @@
<slot>setValue(int)</slot> <slot>setValue(int)</slot>
</connection> </connection>
</connections> </connections>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
<includehints> <includehints>
<includehint>knuminput.h</includehint> <includehint>knuminput.h</includehint>
<includehint>knuminput.h</includehint> <includehint>knuminput.h</includehint>

@ -168,7 +168,7 @@
<slot>setEnabled(bool)</slot> <slot>setEnabled(bool)</slot>
</connection> </connection>
</connections> </connections>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
<includehints> <includehints>
<includehint>knuminput.h</includehint> <includehint>knuminput.h</includehint>
<includehint>knuminput.h</includehint> <includehint>knuminput.h</includehint>

@ -202,5 +202,5 @@
<slot>setEnabled(bool)</slot> <slot>setEnabled(bool)</slot>
</connection> </connection>
</connections> </connections>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
</UI> </UI>

@ -183,5 +183,5 @@
<slot>setEnabled(bool)</slot> <slot>setEnabled(bool)</slot>
</connection> </connection>
</connections> </connections>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
</UI> </UI>

@ -128,7 +128,7 @@
</widget> </widget>
</grid> </grid>
</widget> </widget>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
<includehints> <includehints>
<includehint>kicondialog.h</includehint> <includehint>kicondialog.h</includehint>
</includehints> </includehints>

@ -211,5 +211,5 @@
</widget> </widget>
</grid> </grid>
</widget> </widget>
<tqlayoutdefaults spacing="6" margin="0"/> <layoutdefaults spacing="6" margin="0"/>
</UI> </UI>

@ -550,7 +550,7 @@ If you want to change anything, press Back and make your changes; otherwise, pre
<slot access="protected">slotEmailAddressChanged(const TQString&amp;)</slot> <slot access="protected">slotEmailAddressChanged(const TQString&amp;)</slot>
<slot access="protected">slotGenerateCertificate()</slot> <slot access="protected">slotGenerateCertificate()</slot>
</Q_SLOTS> </Q_SLOTS>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
<includehints> <includehints>
<includehint>klineedit.h</includehint> <includehint>klineedit.h</includehint>
<includehint>kpushbutton.h</includehint> <includehint>kpushbutton.h</includehint>

@ -211,5 +211,5 @@
<slot access="protected">slotBoldClicked()</slot> <slot access="protected">slotBoldClicked()</slot>
<slot access="protected">slotStrikeoutClicked()</slot> <slot access="protected">slotStrikeoutClicked()</slot>
</Q_SLOTS> </Q_SLOTS>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
</UI> </UI>

@ -49,7 +49,7 @@
#include <kdepimmacros.h> #include <kdepimmacros.h>
#if 0 // disabled, since it is aptqparently confusing #if 0 // disabled, since it is apparently confusing
// For sync'ing kabldaprc // For sync'ing kabldaprc
class KABSynchronizer class KABSynchronizer
{ {

@ -54,7 +54,7 @@ void HierarchyAnalyser::slotNextKey( const GpgME::Key & key ) {
return; return;
if ( key.isRoot() || !key.chainID() || !*key.chainID() ) if ( key.isRoot() || !key.chainID() || !*key.chainID() )
// root keys have themselves as issuer - we don't want them to // root keys have themselves as issuer - we don't want them to
// have tqparents, though: // have parents, though:
mSubjectsByIssuer[0].push_back( key ); mSubjectsByIssuer[0].push_back( key );
else else
mSubjectsByIssuer[key.chainID()].push_back( key ); mSubjectsByIssuer[key.chainID()].push_back( key );

@ -203,5 +203,5 @@
<tabstop>PushButton3</tabstop> <tabstop>PushButton3</tabstop>
<tabstop>PushButton4</tabstop> <tabstop>PushButton4</tabstop>
</tabstops> </tabstops>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
</UI> </UI>

@ -88,7 +88,7 @@ public:
/// deselect all except one for a given protocol type (radiobutton-like exclusivity) /// deselect all except one for a given protocol type (radiobutton-like exclusivity)
void deselectAll( const char * protocol, TQCheckListItem* except ); void deselectAll( const char * protocol, TQCheckListItem* except );
void emitChanged() { static_cast<BackendConfigWidget *>( tqparentWidget() )->emitChanged( true ); } void emitChanged() { static_cast<BackendConfigWidget *>( parentWidget() )->emitChanged( true ); }
}; };
// Toplevel listviewitem for a given backend (e.g. "GpgME", "Kgpg/gpg v2") // Toplevel listviewitem for a given backend (e.g. "GpgME", "Kgpg/gpg v2")

@ -633,7 +633,7 @@ void Kleo::CryptoConfigEntryLDAPURL::slotOpenDialog()
{ {
// I'm a bad boy and I do it all on the stack. Enough classes already :) // I'm a bad boy and I do it all on the stack. Enough classes already :)
// This is just a simple dialog around the directory-services-widget // This is just a simple dialog around the directory-services-widget
KDialogBase dialog( mPushButton->tqparentWidget(), 0, true /*modal*/, KDialogBase dialog( mPushButton->parentWidget(), 0, true /*modal*/,
i18n( "Configure LDAP Servers" ), i18n( "Configure LDAP Servers" ),
KDialogBase::Default|KDialogBase::Cancel|KDialogBase::Ok, KDialogBase::Default|KDialogBase::Cancel|KDialogBase::Ok,
KDialogBase::Ok, true /*separator*/ ); KDialogBase::Ok, true /*separator*/ );

@ -338,5 +338,5 @@ By clicking this button, you can remove the currently selected directory service
<slot access="protected">slotMoveUp()</slot> <slot access="protected">slotMoveUp()</slot>
<slot access="protected">slotMoveDown()</slot> <slot access="protected">slotMoveDown()</slot>
</Q_SLOTS> </Q_SLOTS>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
</UI> </UI>

@ -445,7 +445,7 @@ template<class E, class T, class Y> std::basic_ostream<E, T> & operator<< (std::
#if (defined(__GNUC__) && (__GNUC__ < 3)) || (defined(__EDG_VERSION__) && (__EDG_VERSION__ <= 238)) #if (defined(__GNUC__) && (__GNUC__ < 3)) || (defined(__EDG_VERSION__) && (__EDG_VERSION__ <= 238))
// g++ 2.9x doesn't allow static_cast<X const *>(void *) // g++ 2.9x doesn't allow static_cast<X const *>(void *)
// aptqparently EDG 2.38 also doesn't accept it // apparently EDG 2.38 also doesn't accept it
template<class D, class T> D * get_deleter(shared_ptr<T> const & p) template<class D, class T> D * get_deleter(shared_ptr<T> const & p)
{ {

@ -51,11 +51,11 @@ public:
// //
// has a serious problem. // has a serious problem.
// //
// r.px may already have been tqinvalidated. The px(r.px) // r.px may already have been invalidated. The px(r.px)
// conversion may require access to *r.px (virtual inheritance). // conversion may require access to *r.px (virtual inheritance).
// //
// It is not possible to avoid spurious access violations since // It is not possible to avoid spurious access violations since
// in multithreaded programs r.px may be tqinvalidated at any point. // in multithreaded programs r.px may be invalidated at any point.
// //
template<class Y> template<class Y>
@ -106,7 +106,7 @@ public:
catch(bad_weak_ptr const &) catch(bad_weak_ptr const &)
{ {
// Q: how can we get here? // Q: how can we get here?
// A: another thread may have tqinvalidated r after the use_count test above. // A: another thread may have invalidated r after the use_count test above.
return shared_ptr<element_type>(); return shared_ptr<element_type>();
} }

@ -51,7 +51,7 @@ class memory_manager {
/** Returns the size of the block */ /** Returns the size of the block */
virtual unsigned size() const = 0; virtual unsigned size() const = 0;
/** Resizes the block. /** Resizes the block.
* This tqinvalidates all previously returned pointers * This invalidates all previously returned pointers
*/ */
virtual void resize( unsigned ) = 0; virtual void resize( unsigned ) = 0;
}; };

@ -47,17 +47,17 @@ namespace {
} }
indexlib::Match::Match( std::string str, unsigned flags ): indexlib::Match::Match( std::string str, unsigned flags ):
tqmasks_( 256 ), masks_( 256 ),
caseinsensitive_( flags & caseinsensitive ), caseinsensitive_( flags & caseinsensitive ),
pattern_rest_( str, kMin( str.size(), sizeof( unsigned ) * 8 - 1 ) ) pattern_rest_( str, kMin( str.size(), sizeof( unsigned ) * 8 - 1 ) )
{ {
hot_bit_ = kMin( str.size(), sizeof( unsigned ) * 8 - 1 ); hot_bit_ = kMin( str.size(), sizeof( unsigned ) * 8 - 1 );
for ( unsigned i = 0; i != hot_bit_; ++i ) { for ( unsigned i = 0; i != hot_bit_; ++i ) {
if ( caseinsensitive_ ) { if ( caseinsensitive_ ) {
setbit( tqmasks_[ ( unsigned char )std::toupper( str[ i ] ) ], i ); setbit( masks_[ ( unsigned char )std::toupper( str[ i ] ) ], i );
setbit( tqmasks_[ ( unsigned char )std::tolower( str[ i ] ) ], i ); setbit( masks_[ ( unsigned char )std::tolower( str[ i ] ) ], i );
} else { } else {
setbit( tqmasks_[ ( unsigned char )str[ i ] ], i ); setbit( masks_[ ( unsigned char )str[ i ] ], i );
} }
} }
} }
@ -69,7 +69,7 @@ bool indexlib::Match::process( const char* string ) const {
unsigned state = 0; unsigned state = 0;
while ( *string ) { while ( *string ) {
state |= 1; state |= 1;
state &= tqmasks_[ ( unsigned char )*string ]; state &= masks_[ ( unsigned char )*string ];
state <<= 1; state <<= 1;
++string; ++string;
if ( getbit( state, hot_bit_ ) && ( pattern_rest_ == std::string( string, pattern_rest_.size() ) ) ) return true; if ( getbit( state, hot_bit_ ) && ( pattern_rest_ == std::string( string, pattern_rest_.size() ) ) ) return true;

@ -64,8 +64,8 @@ class Match {
bool process( const char* string ) const; bool process( const char* string ) const;
bool process( std::string str ) const { return process( str.c_str() ); } bool process( std::string str ) const { return process( str.c_str() ); }
private: private:
typedef std::vector<unsigned> tqmasks_type; typedef std::vector<unsigned> masks_type;
tqmasks_type tqmasks_; masks_type masks_;
unsigned hot_bit_; unsigned hot_bit_;
bool caseinsensitive_; bool caseinsensitive_;
std::string pattern_rest_; std::string pattern_rest_;

@ -114,20 +114,20 @@ struct mempool /* : boost::noncopyable */ {
friend struct list_node_manager; friend struct list_node_manager;
struct list_node_manager { struct list_node_manager {
protected: protected:
const mempool* tqparent_; const mempool* parent_;
public: public:
explicit list_node_manager( const mempool* p = 0 ):tqparent_( p ) {} explicit list_node_manager( const mempool* p = 0 ):parent_( p ) {}
void* rw_base( unsigned idx ) const { void* rw_base( unsigned idx ) const {
return tqparent_->manager_->rw_base( idx ); return parent_->manager_->rw_base( idx );
} }
const void* ronly_base( unsigned idx ) const { const void* ronly_base( unsigned idx ) const {
return tqparent_->manager_->ronly_base( idx ); return parent_->manager_->ronly_base( idx );
} }
}; };
START_THING( list_node, thing<list_node_manager> ) START_THING( list_node, thing<list_node_manager> )
void set_tqparent( const mempool* p ) { this->tqparent_ = p; } void set_tqparent( const mempool* p ) { this->parent_ = p; }
MEMBER( uint16_t, order, 0 ) MEMBER( uint16_t, order, 0 )
MEMBER( uint32_t, next, 2 ) MEMBER( uint32_t, next, 2 )
MEMBER( uint32_t, prev, 6 ) MEMBER( uint32_t, prev, 6 )

@ -1405,5 +1405,5 @@
<slot>addressBookUnlocked()</slot> <slot>addressBookUnlocked()</slot>
<slot>fileOpenStd()</slot> <slot>fileOpenStd()</slot>
</Q_SLOTS> </Q_SLOTS>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
</UI> </UI>

@ -85,5 +85,5 @@
<slot>slotProtocolChanged( const TQString &amp; )</slot> <slot>slotProtocolChanged( const TQString &amp; )</slot>
<slot>slotProtocolChanged()</slot> <slot>slotProtocolChanged()</slot>
</Q_SLOTS> </Q_SLOTS>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
</UI> </UI>

@ -152,8 +152,8 @@
</widget> </widget>
<customwidgets> <customwidgets>
</customwidgets> </customwidgets>
<tqlayoutdefaults spacing="6" margin="0"/> <layoutdefaults spacing="6" margin="0"/>
<tqlayoutfunctions spacing="KDialog::spacingHint"/> <layoutfunctions spacing="KDialog::spacingHint"/>
<includehints> <includehints>
<includehint>kpushbutton.h</includehint> <includehint>kpushbutton.h</includehint>
<includehint>kpushbutton.h</includehint> <includehint>kpushbutton.h</includehint>

@ -466,12 +466,12 @@ ResourceItem* ResourceSelection::selectedItem() const
ResourceItem* ResourceSelection::findSubResourceItem( KPIM::ResourceABC *resource, ResourceItem* ResourceSelection::findSubResourceItem( KPIM::ResourceABC *resource,
const TQString &subResource ) const TQString &subResource )
{ {
TQListViewItemIterator tqparentIt( mListView ); TQListViewItemIterator parentIt( mListView );
for ( ; *tqparentIt; ++tqparentIt ) { for ( ; *parentIt; ++parentIt ) {
if ( static_cast<ResourceItem*>(*tqparentIt)->resource() != resource ) if ( static_cast<ResourceItem*>(*parentIt)->resource() != resource )
continue; continue;
TQListViewItemIterator childIt( *tqparentIt ); TQListViewItemIterator childIt( *parentIt );
for ( ; *childIt; ++childIt ) { for ( ; *childIt; ++childIt ) {
ResourceItem *item = static_cast<ResourceItem*>(*childIt); ResourceItem *item = static_cast<ResourceItem*>(*childIt);
if ( item->resourceIdentifier() == subResource ) if ( item->resourceIdentifier() == subResource )

@ -99,7 +99,7 @@ KABC::AddressBook *XXPort::addressBook() const
return mAddressBook; return mAddressBook;
} }
TQWidget *XXPort::tqparentWidget() const TQWidget *XXPort::parentWidget() const
{ {
return mParentWidget; return mParentWidget;
} }

@ -146,7 +146,7 @@ class KDE_EXPORT XXPort : public TQObject, virtual public KXMLGUIClient
Returns a pointer to the tqparent widget. It can be used as tqparent for Returns a pointer to the tqparent widget. It can be used as tqparent for
message boxes. message boxes.
*/ */
TQWidget *tqparentWidget() const; TQWidget *parentWidget() const;
private slots: private slots:
void slotImportActivated( const TQString& ); void slotImportActivated( const TQString& );

@ -42,7 +42,7 @@
typedef KParts::GenericFactory< KAddressbookPart > KAddressbookFactory; typedef KParts::GenericFactory< KAddressbookPart > KAddressbookFactory;
K_EXPORT_COMPONENT_FACTORY( libkaddressbookpart, KAddressbookFactory ) K_EXPORT_COMPONENT_FACTORY( libkaddressbookpart, KAddressbookFactory )
KAddressbookPart::KAddressbookPart( TQWidget *tqparentWidget, const char *widgetName, KAddressbookPart::KAddressbookPart( TQWidget *parentWidget, const char *widgetName,
TQObject *tqparent, const char *name, TQObject *tqparent, const char *name,
const TQStringList & ) const TQStringList & )
: DCOPObject( "KAddressBookIface" ), KParts::ReadOnlyPart( tqparent, name ) : DCOPObject( "KAddressBookIface" ), KParts::ReadOnlyPart( tqparent, name )
@ -50,7 +50,7 @@ KAddressbookPart::KAddressbookPart( TQWidget *tqparentWidget, const char *widget
setInstance( KAddressbookFactory::instance() ); setInstance( KAddressbookFactory::instance() );
// create a canvas to insert our widget // create a canvas to insert our widget
TQWidget *canvas = new TQWidget( tqparentWidget, widgetName ); TQWidget *canvas = new TQWidget( parentWidget, widgetName );
canvas->setFocusPolicy( TQ_ClickFocus ); canvas->setFocusPolicy( TQ_ClickFocus );
setWidget( canvas ); setWidget( canvas );

@ -40,7 +40,7 @@ class KAddressbookPart: public KParts::ReadOnlyPart, virtual public KAddressBook
TQ_OBJECT TQ_OBJECT
public: public:
KAddressbookPart( TQWidget *tqparentWidget, const char *widgetName, KAddressbookPart( TQWidget *parentWidget, const char *widgetName,
TQObject *tqparent, const char *name, const TQStringList& ); TQObject *tqparent, const char *name, const TQStringList& );
virtual ~KAddressbookPart(); virtual ~KAddressbookPart();

@ -475,5 +475,5 @@
<slot>setDisabled(bool)</slot> <slot>setDisabled(bool)</slot>
</connection> </connection>
</connections> </connections>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
</UI> </UI>

@ -196,7 +196,7 @@ void CardViewLookNFeelPage::initGUI()
TQTabWidget *tabs = new TQTabWidget( this ); TQTabWidget *tabs = new TQTabWidget( this );
// Layout // Layout
TQVBox *loTab = new TQVBox( this, "tqlayouttab" ); TQVBox *loTab = new TQVBox( this, "layouttab" );
loTab->setSpacing( spacing ); loTab->setSpacing( spacing );
loTab->setMargin( margin ); loTab->setMargin( margin );

@ -54,10 +54,10 @@ DynamicTip::DynamicTip( ContactListView *tqparent)
void DynamicTip::maybeTip( const TQPoint &pos ) void DynamicTip::maybeTip( const TQPoint &pos )
{ {
if (!tqparentWidget()->inherits( "ContactListView" )) if (!parentWidget()->inherits( "ContactListView" ))
return; return;
ContactListView *plv = (ContactListView*)tqparentWidget(); ContactListView *plv = (ContactListView*)parentWidget();
if (!plv->tooltips()) if (!plv->tooltips())
return; return;
@ -109,7 +109,7 @@ void DynamicTip::maybeTip( const TQPoint &pos )
linew += fm.width( notes[i] ); linew += fm.width( notes[i] );
if ( lastSpace >= a && notes[i] != '\n' ) if ( lastSpace >= a && notes[i] != '\n' )
if (linew >= tqparentWidget()->width()) { if (linew >= parentWidget()->width()) {
doBreak = true; doBreak = true;
if ( lastSpace > a ) { if ( lastSpace > a ) {
i = lastSpace; i = lastSpace;
@ -152,7 +152,7 @@ ContactListViewItem::ContactListViewItem(const KABC::Addressee &a,
const KABC::Field::List &fields, const KABC::Field::List &fields,
KIMProxy *proxy ) KIMProxy *proxy )
: KListViewItem(tqparent), mAddressee(a), mFields( fields ), : KListViewItem(tqparent), mAddressee(a), mFields( fields ),
tqparentListView( tqparent ), mDocument(doc), mIMProxy( proxy ) parentListView( tqparent ), mDocument(doc), mIMProxy( proxy )
{ {
if ( mIMProxy ) if ( mIMProxy )
mHasIM = mIMProxy->isPresent( mAddressee.uid() ); mHasIM = mIMProxy->isPresent( mAddressee.uid() );
@ -164,15 +164,15 @@ ContactListViewItem::ContactListViewItem(const KABC::Addressee &a,
TQString ContactListViewItem::key(int column, bool ascending) const TQString ContactListViewItem::key(int column, bool ascending) const
{ {
// Preserve behaviour of TQListViewItem::key(), otherwise we cause a crash if the column does not exist // Preserve behaviour of TQListViewItem::key(), otherwise we cause a crash if the column does not exist
if ( column >= tqparentListView->columns() ) if ( column >= parentListView->columns() )
return TQString(); return TQString();
#if KDE_VERSION >= 319 #if KDE_VERSION >= 319
Q_UNUSED( ascending ) Q_UNUSED( ascending )
if ( tqparentListView->showIM() ) { if ( parentListView->showIM() ) {
// in this case, one column is reserved for IM presence // in this case, one column is reserved for IM presence
// so we have to process it differently // so we have to process it differently
if ( column == tqparentListView->imColumn() ) { if ( column == parentListView->imColumn() ) {
// increment by one before converting to string so that -1 is not greater than 1 // increment by one before converting to string so that -1 is not greater than 1
// create the sort key by taking the numeric status 0 low, 5 high, and subtracting it from 5 // create the sort key by taking the numeric status 0 low, 5 high, and subtracting it from 5
// so that the default ascending gives online before offline, etc. // so that the default ascending gives online before offline, etc.
@ -201,8 +201,8 @@ void ContactListViewItem::paintCell(TQPainter * p,
if ( !p ) if ( !p )
return; return;
if (tqparentListView->singleLine()) { if (parentListView->singleLine()) {
p->setPen( tqparentListView->alternateColor() ); p->setPen( parentListView->alternateColor() );
p->drawLine( 0, height() - 1, width, height() - 1 ); p->drawLine( 0, height() - 1, width, height() - 1 );
} }
} }
@ -210,7 +210,7 @@ void ContactListViewItem::paintCell(TQPainter * p,
ContactListView *ContactListViewItem::tqparent() ContactListView *ContactListViewItem::tqparent()
{ {
return tqparentListView; return parentListView;
} }
@ -230,9 +230,9 @@ void ContactListViewItem::refresh()
// don't show unknown presence, it's not interesting // don't show unknown presence, it's not interesting
if ( mHasIM ) { if ( mHasIM ) {
if ( mIMProxy->presenceNumeric( mAddressee.uid() ) > 0 ) if ( mIMProxy->presenceNumeric( mAddressee.uid() ) > 0 )
setPixmap( tqparentListView->imColumn(), mIMProxy->presenceIcon( mAddressee.uid() ) ); setPixmap( parentListView->imColumn(), mIMProxy->presenceIcon( mAddressee.uid() ) );
else else
setPixmap( tqparentListView->imColumn(), TQPixmap() ); setPixmap( parentListView->imColumn(), TQPixmap() );
} }
KABC::Field::List::ConstIterator it; KABC::Field::List::ConstIterator it;

@ -72,7 +72,7 @@ public:
private: private:
KABC::Addressee mAddressee; KABC::Addressee mAddressee;
KABC::Field::List mFields; KABC::Field::List mFields;
ContactListView *tqparentListView; ContactListView *parentListView;
KABC::AddressBook *mDocument; KABC::AddressBook *mDocument;
KIMProxy *mIMProxy; KIMProxy *mIMProxy;
bool mHasIM; bool mHasIM;

@ -50,7 +50,7 @@ bool CSVXXPort::exportContacts( const KABC::AddresseeList &list, const TQString&
return true; return true;
if( TQFileInfo(url.path()).exists() ) { if( TQFileInfo(url.path()).exists() ) {
if(KMessageBox::questionYesNo( tqparentWidget(), i18n("Do you want to overwrite file \"%1\"").tqarg( url.path()) ) == KMessageBox::No) if(KMessageBox::questionYesNo( parentWidget(), i18n("Do you want to overwrite file \"%1\"").tqarg( url.path()) ) == KMessageBox::No)
return false; return false;
} }
@ -58,7 +58,7 @@ bool CSVXXPort::exportContacts( const KABC::AddresseeList &list, const TQString&
KTempFile tmpFile; KTempFile tmpFile;
if ( tmpFile.status() != 0 ) { if ( tmpFile.status() != 0 ) {
TQString txt = i18n( "<qt>Unable to open file <b>%1</b>.%2.</qt>" ); TQString txt = i18n( "<qt>Unable to open file <b>%1</b>.%2.</qt>" );
KMessageBox::error( tqparentWidget(), txt.tqarg( url.url() ) KMessageBox::error( parentWidget(), txt.tqarg( url.url() )
.tqarg( strerror( tmpFile.status() ) ) ); .tqarg( strerror( tmpFile.status() ) ) );
return false; return false;
} }
@ -66,19 +66,19 @@ bool CSVXXPort::exportContacts( const KABC::AddresseeList &list, const TQString&
doExport( tmpFile.file(), list ); doExport( tmpFile.file(), list );
tmpFile.close(); tmpFile.close();
return KIO::NetAccess::upload( tmpFile.name(), url, tqparentWidget() ); return KIO::NetAccess::upload( tmpFile.name(), url, parentWidget() );
} else { } else {
TQFile file( url.path() ); TQFile file( url.path() );
if ( !file.open( IO_WriteOnly ) ) { if ( !file.open( IO_WriteOnly ) ) {
TQString txt = i18n( "<qt>Unable to open file <b>%1</b>.</qt>" ); TQString txt = i18n( "<qt>Unable to open file <b>%1</b>.</qt>" );
KMessageBox::error( tqparentWidget(), txt.tqarg( url.path() ) ); KMessageBox::error( parentWidget(), txt.tqarg( url.path() ) );
return false; return false;
} }
doExport( &file, list ); doExport( &file, list );
file.close(); file.close();
KMessageBox::information( tqparentWidget(), i18n( "The contacts have been exported successfully." ) ); KMessageBox::information( parentWidget(), i18n( "The contacts have been exported successfully." ) );
return true; return true;
} }
@ -86,7 +86,7 @@ bool CSVXXPort::exportContacts( const KABC::AddresseeList &list, const TQString&
KABC::AddresseeList CSVXXPort::importContacts( const TQString& ) const KABC::AddresseeList CSVXXPort::importContacts( const TQString& ) const
{ {
CSVImportDialog dlg( addressBook(), tqparentWidget() ); CSVImportDialog dlg( addressBook(), parentWidget() );
if ( dlg.exec() ) if ( dlg.exec() )
return dlg.contacts(); return dlg.contacts();
else else

@ -528,7 +528,7 @@ KABC::AddresseeList GNOKIIXXPort::importContacts( const TQString& ) const
{ {
KABC::AddresseeList addrList; KABC::AddresseeList addrList;
if (KMessageBox::Continue != KMessageBox::warningContinueCancel(tqparentWidget(), if (KMessageBox::Continue != KMessageBox::warningContinueCancel(parentWidget(),
i18n("<qt>Please connect your Mobile Phone to your computer and press " i18n("<qt>Please connect your Mobile Phone to your computer and press "
"<b>Continue</b> to start importing the personal contacts.<br><br>" "<b>Continue</b> to start importing the personal contacts.<br><br>"
"Please note that if your Mobile Phone is not properly connected " "Please note that if your Mobile Phone is not properly connected "
@ -536,7 +536,7 @@ KABC::AddresseeList GNOKIIXXPort::importContacts( const TQString& ) const
"KAddressbook will behave unresponsively.</qt>") )) "KAddressbook will behave unresponsively.</qt>") ))
return addrList; return addrList;
m_progressDlg = new KProgressDialog( tqparentWidget(), "importwidget", m_progressDlg = new KProgressDialog( parentWidget(), "importwidget",
i18n("Mobile Phone Import"), i18n("Mobile Phone Import"),
i18n("<qt><center>Establishing connection to the Mobile Phone.<br><br>" i18n("<qt><center>Establishing connection to the Mobile Phone.<br><br>"
"Please wait...</center></qt>") ); "Please wait...</center></qt>") );
@ -553,7 +553,7 @@ KABC::AddresseeList GNOKIIXXPort::importContacts( const TQString& ) const
m_progressDlg->unsetCursor(); m_progressDlg->unsetCursor();
if (!errStr.isEmpty()) { if (!errStr.isEmpty()) {
KMessageBox::error(tqparentWidget(), errStr); KMessageBox::error(parentWidget(), errStr);
delete m_progressDlg; delete m_progressDlg;
return addrList; return addrList;
} }
@ -575,7 +575,7 @@ KABC::AddresseeList GNOKIIXXPort::importContacts( const TQString& ) const
bool GNOKIIXXPort::exportContacts( const KABC::AddresseeList &list, const TQString & ) bool GNOKIIXXPort::exportContacts( const KABC::AddresseeList &list, const TQString & )
{ {
if (KMessageBox::Continue != KMessageBox::warningContinueCancel(tqparentWidget(), if (KMessageBox::Continue != KMessageBox::warningContinueCancel(parentWidget(),
i18n("<qt>Please connect your Mobile Phone to your computer and press " i18n("<qt>Please connect your Mobile Phone to your computer and press "
"<b>Continue</b> to start exporting the selected personal contacts.<br><br>" "<b>Continue</b> to start exporting the selected personal contacts.<br><br>"
"Please note that if your Mobile Phone is not properly connected " "Please note that if your Mobile Phone is not properly connected "
@ -583,7 +583,7 @@ bool GNOKIIXXPort::exportContacts( const KABC::AddresseeList &list, const TQStri
"KAddressbook will behave unresponsively.</qt>") )) "KAddressbook will behave unresponsively.</qt>") ))
return false; return false;
m_progressDlg = new KProgressDialog( tqparentWidget(), "importwidget", m_progressDlg = new KProgressDialog( parentWidget(), "importwidget",
i18n("Mobile Phone Export"), i18n("Mobile Phone Export"),
i18n("<qt><center>Establishing connection to the Mobile Phone.<br><br>" i18n("<qt><center>Establishing connection to the Mobile Phone.<br><br>"
"Please wait...</center></qt>") ); "Please wait...</center></qt>") );
@ -608,7 +608,7 @@ bool GNOKIIXXPort::exportContacts( const KABC::AddresseeList &list, const TQStri
m_progressDlg->unsetCursor(); m_progressDlg->unsetCursor();
if (!errStr.isEmpty()) { if (!errStr.isEmpty()) {
KMessageBox::error(tqparentWidget(), errStr); KMessageBox::error(parentWidget(), errStr);
delete m_progressDlg; delete m_progressDlg;
return false; return false;
} }
@ -637,7 +637,7 @@ bool GNOKIIXXPort::exportContacts( const KABC::AddresseeList &list, const TQStri
phone_count = memstat.used; phone_count = memstat.used;
if (memstat.free >= (int) list.count()) { if (memstat.free >= (int) list.count()) {
if (KMessageBox::No == KMessageBox::questionYesNo(tqparentWidget(), if (KMessageBox::No == KMessageBox::questionYesNo(parentWidget(),
i18n("<qt>Do you want the selected contacts to be <b>appended</b> to " i18n("<qt>Do you want the selected contacts to be <b>appended</b> to "
"the current mobile phonebook or should they <b>tqreplace</b> all " "the current mobile phonebook or should they <b>tqreplace</b> all "
"currently existing phonebook entries ?<br><br>" "currently existing phonebook entries ?<br><br>"
@ -756,7 +756,7 @@ finish:
if (!failedList.isEmpty()) { if (!failedList.isEmpty()) {
GNOKII_DEBUG(TQString("Failed to export: %1\n").tqarg(failedList.join(", "))); GNOKII_DEBUG(TQString("Failed to export: %1\n").tqarg(failedList.join(", ")));
KMessageBox::informationList(tqparentWidget(), KMessageBox::informationList(parentWidget(),
i18n("<qt>The following contacts could not be exported to the Mobile Phone. " i18n("<qt>The following contacts could not be exported to the Mobile Phone. "
"Possible Reasons for this problem could be:<br><ul>" "Possible Reasons for this problem could be:<br><ul>"
"<li>The contacts contain more information per entry than the phone can store.</li>" "<li>The contacts contain more information per entry than the phone can store.</li>"
@ -1319,7 +1319,7 @@ KABC::AddresseeList GNOKIIXXPort::importContacts( const TQString& ) const
{ {
KABC::AddresseeList addrList; KABC::AddresseeList addrList;
if (KMessageBox::Continue != KMessageBox::warningContinueCancel(tqparentWidget(), if (KMessageBox::Continue != KMessageBox::warningContinueCancel(parentWidget(),
i18n("<qt>Please connect your Mobile Phone to your computer and press " i18n("<qt>Please connect your Mobile Phone to your computer and press "
"<b>Continue</b> to start importing the personal contacts.<br><br>" "<b>Continue</b> to start importing the personal contacts.<br><br>"
"Please note that if your Mobile Phone is not properly connected " "Please note that if your Mobile Phone is not properly connected "
@ -1327,7 +1327,7 @@ KABC::AddresseeList GNOKIIXXPort::importContacts( const TQString& ) const
"KAddressbook will behave unresponsively.</qt>") )) "KAddressbook will behave unresponsively.</qt>") ))
return addrList; return addrList;
m_progressDlg = new KProgressDialog( tqparentWidget(), "importwidget", m_progressDlg = new KProgressDialog( parentWidget(), "importwidget",
i18n("Mobile Phone Import"), i18n("Mobile Phone Import"),
i18n("<qt><center>Establishing connection to the Mobile Phone.<br><br>" i18n("<qt><center>Establishing connection to the Mobile Phone.<br><br>"
"Please wait...</center></qt>") ); "Please wait...</center></qt>") );
@ -1344,7 +1344,7 @@ KABC::AddresseeList GNOKIIXXPort::importContacts( const TQString& ) const
m_progressDlg->unsetCursor(); m_progressDlg->unsetCursor();
if (!errStr.isEmpty()) { if (!errStr.isEmpty()) {
KMessageBox::error(tqparentWidget(), errStr); KMessageBox::error(parentWidget(), errStr);
delete m_progressDlg; delete m_progressDlg;
return addrList; return addrList;
} }
@ -1366,7 +1366,7 @@ KABC::AddresseeList GNOKIIXXPort::importContacts( const TQString& ) const
bool GNOKIIXXPort::exportContacts( const KABC::AddresseeList &list, const TQString & ) bool GNOKIIXXPort::exportContacts( const KABC::AddresseeList &list, const TQString & )
{ {
if (KMessageBox::Continue != KMessageBox::warningContinueCancel(tqparentWidget(), if (KMessageBox::Continue != KMessageBox::warningContinueCancel(parentWidget(),
i18n("<qt>Please connect your Mobile Phone to your computer and press " i18n("<qt>Please connect your Mobile Phone to your computer and press "
"<b>Continue</b> to start exporting the selected personal contacts.<br><br>" "<b>Continue</b> to start exporting the selected personal contacts.<br><br>"
"Please note that if your Mobile Phone is not properly connected " "Please note that if your Mobile Phone is not properly connected "
@ -1374,7 +1374,7 @@ bool GNOKIIXXPort::exportContacts( const KABC::AddresseeList &list, const TQStri
"KAddressbook will behave unresponsively.</qt>") )) "KAddressbook will behave unresponsively.</qt>") ))
return false; return false;
m_progressDlg = new KProgressDialog( tqparentWidget(), "importwidget", m_progressDlg = new KProgressDialog( parentWidget(), "importwidget",
i18n("Mobile Phone Export"), i18n("Mobile Phone Export"),
i18n("<qt><center>Establishing connection to the Mobile Phone.<br><br>" i18n("<qt><center>Establishing connection to the Mobile Phone.<br><br>"
"Please wait...</center></qt>") ); "Please wait...</center></qt>") );
@ -1399,7 +1399,7 @@ bool GNOKIIXXPort::exportContacts( const KABC::AddresseeList &list, const TQStri
m_progressDlg->unsetCursor(); m_progressDlg->unsetCursor();
if (!errStr.isEmpty()) { if (!errStr.isEmpty()) {
KMessageBox::error(tqparentWidget(), errStr); KMessageBox::error(parentWidget(), errStr);
delete m_progressDlg; delete m_progressDlg;
return false; return false;
} }
@ -1428,7 +1428,7 @@ bool GNOKIIXXPort::exportContacts( const KABC::AddresseeList &list, const TQStri
phone_count = memstat.used; phone_count = memstat.used;
if (memstat.free >= (int) list.count()) { if (memstat.free >= (int) list.count()) {
if (KMessageBox::No == KMessageBox::questionYesNo(tqparentWidget(), if (KMessageBox::No == KMessageBox::questionYesNo(parentWidget(),
i18n("<qt>Do you want the selected contacts to be <b>appended</b> to " i18n("<qt>Do you want the selected contacts to be <b>appended</b> to "
"the current mobile phonebook or should they <b>tqreplace</b> all " "the current mobile phonebook or should they <b>tqreplace</b> all "
"currently existing phonebook entries ?<br><br>" "currently existing phonebook entries ?<br><br>"
@ -1547,7 +1547,7 @@ finish:
if (!failedList.isEmpty()) { if (!failedList.isEmpty()) {
GNOKII_DEBUG(TQString("Failed to export: %1\n").tqarg(failedList.join(", "))); GNOKII_DEBUG(TQString("Failed to export: %1\n").tqarg(failedList.join(", ")));
KMessageBox::informationList(tqparentWidget(), KMessageBox::informationList(parentWidget(),
i18n("<qt>The following contacts could not be exported to the Mobile Phone. " i18n("<qt>The following contacts could not be exported to the Mobile Phone. "
"Possible Reasons for this problem could be:<br><ul>" "Possible Reasons for this problem could be:<br><ul>"
"<li>The contacts contain more information per entry than the phone can store.</li>" "<li>The contacts contain more information per entry than the phone can store.</li>"
@ -1575,7 +1575,7 @@ finish:
KABC::AddresseeList GNOKIIXXPort::importContacts( const TQString& ) const KABC::AddresseeList GNOKIIXXPort::importContacts( const TQString& ) const
{ {
KABC::AddresseeList addrList; KABC::AddresseeList addrList;
KMessageBox::error(tqparentWidget(), i18n("Gnokii interface is not available.\n" KMessageBox::error(parentWidget(), i18n("Gnokii interface is not available.\n"
"Please ask your distributor to add gnokii at compile time.")); "Please ask your distributor to add gnokii at compile time."));
return addrList; return addrList;
} }
@ -1583,7 +1583,7 @@ KABC::AddresseeList GNOKIIXXPort::importContacts( const TQString& ) const
bool GNOKIIXXPort::exportContacts( const KABC::AddresseeList &list, const TQString & ) bool GNOKIIXXPort::exportContacts( const KABC::AddresseeList &list, const TQString & )
{ {
Q_UNUSED(list); Q_UNUSED(list);
KMessageBox::error(tqparentWidget(), i18n("Gnokii interface is not available.\n" KMessageBox::error(parentWidget(), i18n("Gnokii interface is not available.\n"
"Please ask your distributor to add gnokii at compile time.")); "Please ask your distributor to add gnokii at compile time."));
return true; return true;
} }

@ -49,11 +49,11 @@ KABC::AddresseeList KDE2XXPort::importContacts( const TQString& ) const
{ {
TQString fileName = locateLocal( "data", "kabc/std.vcf" ); TQString fileName = locateLocal( "data", "kabc/std.vcf" );
if ( !TQFile::exists( fileName ) ) { if ( !TQFile::exists( fileName ) ) {
KMessageBox::sorry( tqparentWidget(), i18n( "<qt>Could not find a KDE 2 address book <b>%1</b>.</qt>" ).tqarg( fileName ) ); KMessageBox::sorry( parentWidget(), i18n( "<qt>Could not find a KDE 2 address book <b>%1</b>.</qt>" ).tqarg( fileName ) );
return KABC::AddresseeList(); return KABC::AddresseeList();
} }
int result = KMessageBox::questionYesNoCancel( tqparentWidget(), int result = KMessageBox::questionYesNoCancel( parentWidget(),
i18n( "Override previously imported entries?" ), i18n( "Override previously imported entries?" ),
i18n( "Import KDE 2 Addressbook" ), i18n("Import"), i18n("Do Not Import") ); i18n( "Import KDE 2 Addressbook" ), i18n("Import"), i18n("Do Not Import") );

@ -71,7 +71,7 @@ KABC::AddresseeList LDIFXXPort::importContacts( const TQString& ) const
TQFile file( fileName ); TQFile file( fileName );
if ( !file.open( IO_ReadOnly ) ) { if ( !file.open( IO_ReadOnly ) ) {
TQString msg = i18n( "<qt>Unable to open <b>%1</b> for reading.</qt>" ); TQString msg = i18n( "<qt>Unable to open <b>%1</b> for reading.</qt>" );
KMessageBox::error( tqparentWidget(), msg.tqarg( fileName ) ); KMessageBox::error( parentWidget(), msg.tqarg( fileName ) );
return addrList; return addrList;
} }
@ -97,7 +97,7 @@ bool LDIFXXPort::exportContacts( const KABC::AddresseeList &list, const TQString
return true; return true;
if( TQFileInfo(url.path()).exists() ) { if( TQFileInfo(url.path()).exists() ) {
if(KMessageBox::questionYesNo( tqparentWidget(), i18n("Do you want to overwrite file \"%1\"").tqarg( url.path()) ) == KMessageBox::No) if(KMessageBox::questionYesNo( parentWidget(), i18n("Do you want to overwrite file \"%1\"").tqarg( url.path()) ) == KMessageBox::No)
return false; return false;
} }
@ -106,7 +106,7 @@ bool LDIFXXPort::exportContacts( const KABC::AddresseeList &list, const TQString
KTempFile tmpFile; KTempFile tmpFile;
if ( tmpFile.status() != 0 ) { if ( tmpFile.status() != 0 ) {
TQString txt = i18n( "<qt>Unable to open file <b>%1</b>.%2.</qt>" ); TQString txt = i18n( "<qt>Unable to open file <b>%1</b>.%2.</qt>" );
KMessageBox::error( tqparentWidget(), txt.tqarg( url.url() ) KMessageBox::error( parentWidget(), txt.tqarg( url.url() )
.tqarg( strerror( tmpFile.status() ) ) ); .tqarg( strerror( tmpFile.status() ) ) );
return false; return false;
} }
@ -114,14 +114,14 @@ bool LDIFXXPort::exportContacts( const KABC::AddresseeList &list, const TQString
doExport( tmpFile.file(), list ); doExport( tmpFile.file(), list );
tmpFile.close(); tmpFile.close();
return KIO::NetAccess::upload( tmpFile.name(), url, tqparentWidget() ); return KIO::NetAccess::upload( tmpFile.name(), url, parentWidget() );
} else { } else {
TQString filename = url.path(); TQString filename = url.path();
TQFile file( filename ); TQFile file( filename );
if ( !file.open( IO_WriteOnly ) ) { if ( !file.open( IO_WriteOnly ) ) {
TQString txt = i18n( "<qt>Unable to open file <b>%1</b>.</qt>" ); TQString txt = i18n( "<qt>Unable to open file <b>%1</b>.</qt>" );
KMessageBox::error( tqparentWidget(), txt.tqarg( filename ) ); KMessageBox::error( parentWidget(), txt.tqarg( filename ) );
return false; return false;
} }

@ -55,7 +55,7 @@ KABC::AddresseeList OperaXXPort::importContacts( const TQString& ) const
TQFile file( fileName ); TQFile file( fileName );
if ( !file.open( IO_ReadOnly ) ) { if ( !file.open( IO_ReadOnly ) ) {
TQString msg = i18n( "<qt>Unable to open <b>%1</b> for reading.</qt>" ); TQString msg = i18n( "<qt>Unable to open <b>%1</b> for reading.</qt>" );
KMessageBox::error( tqparentWidget(), msg.tqarg( fileName ) ); KMessageBox::error( parentWidget(), msg.tqarg( fileName ) );
return addrList; return addrList;
} }

@ -55,7 +55,7 @@ KABC::AddresseeList PABXXPort::importContacts( const TQString& ) const
if ( fileName.isEmpty() ) if ( fileName.isEmpty() )
return addrList; return addrList;
if ( !TQFile::exists( fileName ) ) { if ( !TQFile::exists( fileName ) ) {
KMessageBox::sorry( tqparentWidget(), i18n( "<qt>Could not find a MS Exchange Personal Address Book <b>%1</b>.</qt>" ).tqarg( fileName ) ); KMessageBox::sorry( parentWidget(), i18n( "<qt>Could not find a MS Exchange Personal Address Book <b>%1</b>.</qt>" ).tqarg( fileName ) );
return addrList; return addrList;
} }

@ -131,7 +131,7 @@ bool VCardXXPort::exportContacts( const KABC::AddresseeList &addrList, const TQS
TQString msg = i18n( "You have selected a list of contacts, shall they be " TQString msg = i18n( "You have selected a list of contacts, shall they be "
"exported to several files?" ); "exported to several files?" );
switch ( KMessageBox::questionYesNo( tqparentWidget(), msg, TQString(), i18n("Export to Several Files"), i18n("Export to One File") ) ) { switch ( KMessageBox::questionYesNo( parentWidget(), msg, TQString(), i18n("Export to Several Files"), i18n("Export to One File") ) ) {
case KMessageBox::Yes: { case KMessageBox::Yes: {
KURL baseUrl = KFileDialog::getExistingURL(); KURL baseUrl = KFileDialog::getExistingURL();
if ( baseUrl.isEmpty() ) if ( baseUrl.isEmpty() )
@ -146,7 +146,7 @@ bool VCardXXPort::exportContacts( const KABC::AddresseeList &addrList, const TQS
else else
testUrl = baseUrl.url() + "/" + (*it).givenName() + "_" + (*it).familyName(); testUrl = baseUrl.url() + "/" + (*it).givenName() + "_" + (*it).familyName();
if ( KIO::NetAccess::exists( testUrl + (counter == 0 ? "" : TQString::number( counter )) + ".vcf", false, tqparentWidget() ) ) { if ( KIO::NetAccess::exists( testUrl + (counter == 0 ? "" : TQString::number( counter )) + ".vcf", false, parentWidget() ) ) {
counter++; counter++;
url = testUrl + TQString::number( counter ) + ".vcf"; url = testUrl + TQString::number( counter ) + ".vcf";
} else } else
@ -208,7 +208,7 @@ KABC::AddresseeList VCardXXPort::importContacts( const TQString& ) const
#endif #endif
} else { } else {
if ( XXPortManager::importURL.isEmpty() ) if ( XXPortManager::importURL.isEmpty() )
urls = KFileDialog::getOpenURLs( TQString(), "*.vcf|vCards", tqparentWidget(), urls = KFileDialog::getOpenURLs( TQString(), "*.vcf|vCards", parentWidget(),
i18n( "Select vCard to Import" ) ); i18n( "Select vCard to Import" ) );
else else
urls.append( XXPortManager::importURL ); urls.append( XXPortManager::importURL );
@ -220,7 +220,7 @@ KABC::AddresseeList VCardXXPort::importContacts( const TQString& ) const
bool anyFailures = false; bool anyFailures = false;
KURL::List::Iterator it; KURL::List::Iterator it;
for ( it = urls.begin(); it != urls.end(); ++it ) { for ( it = urls.begin(); it != urls.end(); ++it ) {
if ( KIO::NetAccess::download( *it, fileName, tqparentWidget() ) ) { if ( KIO::NetAccess::download( *it, fileName, parentWidget() ) ) {
TQFile file( fileName ); TQFile file( fileName );
@ -253,13 +253,13 @@ KABC::AddresseeList VCardXXPort::importContacts( const TQString& ) const
text = text.tqarg( (*it).url() ); text = text.tqarg( (*it).url() );
text = text.tqarg( kapp->translate( "TQFile", text = text.tqarg( kapp->translate( "TQFile",
TQString(file.errorString()).latin1() ) ); TQString(file.errorString()).latin1() ) );
KMessageBox::error( tqparentWidget(), text, caption ); KMessageBox::error( parentWidget(), text, caption );
anyFailures = true; anyFailures = true;
} }
} else { } else {
TQString text = i18n( "<qt>Unable to access vCard: %1</qt>" ); TQString text = i18n( "<qt>Unable to access vCard: %1</qt>" );
text = text.tqarg( KIO::NetAccess::lastErrorString() ); text = text.tqarg( KIO::NetAccess::lastErrorString() );
KMessageBox::error( tqparentWidget(), text, caption ); KMessageBox::error( parentWidget(), text, caption );
anyFailures = true; anyFailures = true;
} }
} }
@ -267,12 +267,12 @@ KABC::AddresseeList VCardXXPort::importContacts( const TQString& ) const
if ( !XXPortManager::importURL.isEmpty() ) { // a vcard was passed via cmd if ( !XXPortManager::importURL.isEmpty() ) { // a vcard was passed via cmd
if ( addrList.isEmpty() ) { if ( addrList.isEmpty() ) {
if ( anyFailures && urls.count() > 1 ) if ( anyFailures && urls.count() > 1 )
KMessageBox::information( tqparentWidget(), KMessageBox::information( parentWidget(),
i18n( "No contacts were imported, due to errors with the vCards." ) ); i18n( "No contacts were imported, due to errors with the vCards." ) );
else if ( !anyFailures ) else if ( !anyFailures )
KMessageBox::information( tqparentWidget(), i18n( "The vCard does not contain any contacts." ) ); KMessageBox::information( parentWidget(), i18n( "The vCard does not contain any contacts." ) );
} else { } else {
VCardViewerDialog dlg( addrList, tqparentWidget() ); VCardViewerDialog dlg( addrList, parentWidget() );
dlg.exec(); dlg.exec();
addrList = dlg.contacts(); addrList = dlg.contacts();
} }
@ -293,7 +293,7 @@ KABC::AddresseeList VCardXXPort::parseVCard( const TQByteArray &data ) const
bool VCardXXPort::doExport( const KURL &url, const TQByteArray &data ) bool VCardXXPort::doExport( const KURL &url, const TQByteArray &data )
{ {
if( TQFileInfo(url.path()).exists() ) { if( TQFileInfo(url.path()).exists() ) {
if(KMessageBox::questionYesNo( tqparentWidget(), i18n("Do you want to overwrite file \"%1\"").tqarg( url.path()) ) == KMessageBox::No) if(KMessageBox::questionYesNo( parentWidget(), i18n("Do you want to overwrite file \"%1\"").tqarg( url.path()) ) == KMessageBox::No)
return false; return false;
} }
KTempFile tmpFile; KTempFile tmpFile;
@ -302,7 +302,7 @@ bool VCardXXPort::doExport( const KURL &url, const TQByteArray &data )
tmpFile.file()->writeBlock( data.data(), data.size() ); tmpFile.file()->writeBlock( data.data(), data.size() );
tmpFile.close(); tmpFile.close();
return KIO::NetAccess::upload( tmpFile.name(), url, tqparentWidget() ); return KIO::NetAccess::upload( tmpFile.name(), url, parentWidget() );
} }
#else #else
KABC::AddresseeList VCardXXPort::parseVCard( const TQString &data ) const KABC::AddresseeList VCardXXPort::parseVCard( const TQString &data ) const
@ -315,7 +315,7 @@ KABC::AddresseeList VCardXXPort::parseVCard( const TQString &data ) const
bool VCardXXPort::doExport( const KURL &url, const TQString &data ) bool VCardXXPort::doExport( const KURL &url, const TQString &data )
{ {
if( TQFileInfo(url.path()).exists() ) { if( TQFileInfo(url.path()).exists() ) {
if(KMessageBox::questionYesNo( tqparentWidget(), i18n("Do you want to overwrite file \"%1\"").tqarg( url.path()) ) == KMessageBox::No) if(KMessageBox::questionYesNo( parentWidget(), i18n("Do you want to overwrite file \"%1\"").tqarg( url.path()) ) == KMessageBox::No)
return false; return false;
} }
KTempFile tmpFile; KTempFile tmpFile;
@ -327,7 +327,7 @@ bool VCardXXPort::doExport( const KURL &url, const TQString &data )
stream << data; stream << data;
tmpFile.close(); tmpFile.close();
return KIO::NetAccess::upload( tmpFile.name(), url, tqparentWidget() ); return KIO::NetAccess::upload( tmpFile.name(), url, parentWidget() );
} }
#endif #endif
@ -338,7 +338,7 @@ KABC::AddresseeList VCardXXPort::filterContacts( const KABC::AddresseeList &addr
if ( addrList.isEmpty() ) if ( addrList.isEmpty() )
return addrList; return addrList;
VCardExportSelectionDialog dlg( tqparentWidget() ); VCardExportSelectionDialog dlg( parentWidget() );
if ( !dlg.exec() ) if ( !dlg.exec() )
return list; return list;

@ -260,7 +260,7 @@ KAlarm Change Log
- Align times in alarm list. - Align times in alarm list.
- Fix crash when the last recurrence of an alarm is reached. - Fix crash when the last recurrence of an alarm is reached.
- Fix random limit on expired alarm discard time if stepping with spinbox buttons. - Fix random limit on expired alarm discard time if stepping with spinbox buttons.
- Fix dialog tqlayouts for right-to-left languages. - Fix dialog layouts for right-to-left languages.
- Fix time spin box tqlayout for right-to-left languages. - Fix time spin box tqlayout for right-to-left languages.
=== Version 1.2.2 --- 27 November 2004 === === Version 1.2.2 --- 27 November 2004 ===

@ -684,7 +684,7 @@ TQString AlarmListViewItem::key(int column, bool) const
*/ */
void AlarmListTooltip::maybeTip(const TQPoint& pt) void AlarmListTooltip::maybeTip(const TQPoint& pt)
{ {
AlarmListView* listView = (AlarmListView*)tqparentWidget()->tqparentWidget(); AlarmListView* listView = (AlarmListView*)parentWidget()->parentWidget();
int column = listView->column(AlarmListView::MESSAGE_COLUMN); int column = listView->column(AlarmListView::MESSAGE_COLUMN);
int xOffset = listView->contentsX(); int xOffset = listView->contentsX();
if (listView->header()->sectionAt(pt.x() + xOffset) == column) if (listView->header()->sectionAt(pt.x() + xOffset) == column)

@ -102,7 +102,7 @@ class PickAlarmFileRadio : public PickFileRadio
virtual TQString pickFile() // called when browse button is pressed to select a file to display virtual TQString pickFile() // called when browse button is pressed to select a file to display
{ {
return KAlarm::browseFile(i18n("Choose Text or Image File to Display"), mDefaultDir, fileEdit()->text(), return KAlarm::browseFile(i18n("Choose Text or Image File to Display"), mDefaultDir, fileEdit()->text(),
TQString(), KFile::ExistingOnly, tqparentWidget(), "pickAlarmFile"); TQString(), KFile::ExistingOnly, parentWidget(), "pickAlarmFile");
} }
private: private:
TQString mDefaultDir; // default directory for file browse button TQString mDefaultDir; // default directory for file browse button
@ -119,7 +119,7 @@ class PickLogFileRadio : public PickFileRadio
virtual TQString pickFile() // called when browse button is pressed to select a log file virtual TQString pickFile() // called when browse button is pressed to select a log file
{ {
return KAlarm::browseFile(i18n("Choose Log File"), mDefaultDir, fileEdit()->text(), TQString(), return KAlarm::browseFile(i18n("Choose Log File"), mDefaultDir, fileEdit()->text(), TQString(),
KFile::LocalOnly, tqparentWidget(), "pickLogFile"); KFile::LocalOnly, parentWidget(), "pickLogFile");
} }
private: private:
TQString mDefaultDir; // default directory for log file browse button TQString mDefaultDir; // default directory for log file browse button

@ -112,7 +112,7 @@ LabelFocusWidget::LabelFocusWidget(TQWidget* tqparent, const char* name)
void LabelFocusWidget::focusInEvent(TQFocusEvent*) void LabelFocusWidget::focusInEvent(TQFocusEvent*)
{ {
Label* tqparent = (Label*)tqparentWidget(); Label* tqparent = (Label*)parentWidget();
tqparent->activated(); tqparent->activated();
} }

@ -125,7 +125,7 @@ class MWMimeSourceFactory : public TQMimeSourceFactory
// Basic flags for the window // Basic flags for the window
static const TQt::WFlags WFLAGS = TQt::WStyle_StaysOnTop | TQt::WDestructiveClose; static const TQt::WFlags WFLAGS = TQt::WStyle_StaysOnTop | TQt::WDestructiveClose;
// Error message bit tqmasks // Error message bit masks
enum { enum {
ErrMsg_Speak = 0x01, ErrMsg_Speak = 0x01,
ErrMsg_AudioFile = 0x02, ErrMsg_AudioFile = 0x02,

@ -169,7 +169,7 @@ void KAlarmPrefDlg::slotApply()
TQString errmsg = mEmailPage->validate(); TQString errmsg = mEmailPage->validate();
if (!errmsg.isEmpty()) if (!errmsg.isEmpty())
{ {
showPage(pageIndex(mEmailPage->tqparentWidget())); showPage(pageIndex(mEmailPage->parentWidget()));
if (KMessageBox::warningYesNo(this, errmsg) != KMessageBox::Yes) if (KMessageBox::warningYesNo(this, errmsg) != KMessageBox::Yes)
{ {
mValid = false; mValid = false;
@ -179,7 +179,7 @@ void KAlarmPrefDlg::slotApply()
errmsg = mEditPage->validate(); errmsg = mEditPage->validate();
if (!errmsg.isEmpty()) if (!errmsg.isEmpty())
{ {
showPage(pageIndex(mEditPage->tqparentWidget())); showPage(pageIndex(mEditPage->parentWidget()));
KMessageBox::sorry(this, errmsg); KMessageBox::sorry(this, errmsg);
mValid = false; mValid = false;
return; return;
@ -825,12 +825,12 @@ FontColourPrefTab::FontColourPrefTab(TQVBox* frame)
mFontChooser = new FontColourChooser(mPage, 0, false, TQStringList(), i18n("Message Font && Color"), true, false); mFontChooser = new FontColourChooser(mPage, 0, false, TQStringList(), i18n("Message Font && Color"), true, false);
mPage->setStretchFactor(mFontChooser, 1); mPage->setStretchFactor(mFontChooser, 1);
TQFrame* tqlayoutBox = new TQFrame(mPage); TQFrame* layoutBox = new TQFrame(mPage);
TQHBoxLayout* htqlayout = new TQHBoxLayout(tqlayoutBox); TQHBoxLayout* htqlayout = new TQHBoxLayout(layoutBox);
TQVBoxLayout* colourLayout = new TQVBoxLayout(htqlayout, KDialog::spacingHint()); TQVBoxLayout* colourLayout = new TQVBoxLayout(htqlayout, KDialog::spacingHint());
htqlayout->addStretch(); htqlayout->addStretch();
TQHBox* box = new TQHBox(tqlayoutBox); // to group widgets for TQWhatsThis text TQHBox* box = new TQHBox(layoutBox); // to group widgets for TQWhatsThis text
box->setSpacing(KDialog::spacingHint()/2); box->setSpacing(KDialog::spacingHint()/2);
colourLayout->addWidget(box); colourLayout->addWidget(box);
TQLabel* label1 = new TQLabel(i18n("Di&sabled alarm color:"), box); TQLabel* label1 = new TQLabel(i18n("Di&sabled alarm color:"), box);
@ -840,7 +840,7 @@ FontColourPrefTab::FontColourPrefTab(TQVBox* frame)
TQWhatsThis::add(box, TQWhatsThis::add(box,
i18n("Choose the text color in the alarm list for disabled alarms.")); i18n("Choose the text color in the alarm list for disabled alarms."));
box = new TQHBox(tqlayoutBox); // to group widgets for TQWhatsThis text box = new TQHBox(layoutBox); // to group widgets for TQWhatsThis text
box->setSpacing(KDialog::spacingHint()/2); box->setSpacing(KDialog::spacingHint()/2);
colourLayout->addWidget(box); colourLayout->addWidget(box);
TQLabel* label2 = new TQLabel(i18n("E&xpired alarm color:"), box); TQLabel* label2 = new TQLabel(i18n("E&xpired alarm color:"), box);

@ -348,7 +348,7 @@ bool TrayWindow::inSystemTray() const
*/ */
void TrayTooltip::maybeTip(const TQPoint&) void TrayTooltip::maybeTip(const TQPoint&)
{ {
TrayWindow* tqparent = (TrayWindow*)tqparentWidget(); TrayWindow* tqparent = (TrayWindow*)parentWidget();
TQString text; TQString text;
if (Daemon::monitoringAlarms()) if (Daemon::monitoringAlarms())
text = kapp->aboutData()->programName(); text = kapp->aboutData()->programName();

@ -168,5 +168,5 @@
<slot>editParameterName(TQListViewItem *)</slot> <slot>editParameterName(TQListViewItem *)</slot>
<slot access="protected">slotAccept()</slot> <slot access="protected">slotAccept()</slot>
</Q_SLOTS> </Q_SLOTS>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
</UI> </UI>

@ -579,5 +579,5 @@
<slot>toggleConnection()</slot> <slot>toggleConnection()</slot>
<slot>deleteMobPhonebook()</slot> <slot>deleteMobPhonebook()</slot>
</Q_SLOTS> </Q_SLOTS>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
</UI> </UI>

@ -405,7 +405,7 @@
<Q_SLOTS> <Q_SLOTS>
<slot>enableExportButton()</slot> <slot>enableExportButton()</slot>
</Q_SLOTS> </Q_SLOTS>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
<includehints> <includehints>
<includehint>kdateedit.h</includehint> <includehint>kdateedit.h</includehint>
<includehint>kdateedit.h</includehint> <includehint>kdateedit.h</includehint>

@ -21,17 +21,17 @@
#include <tqpopupmenu.h> #include <tqpopupmenu.h>
#include "mainwindow.h" #include "mainwindow.h"
karmPart::karmPart( TQWidget *tqparentWidget, const char *widgetName, karmPart::karmPart( TQWidget *parentWidget, const char *widgetName,
TQObject *tqparent, const char *name ) TQObject *tqparent, const char *name )
: DCOPObject ( "KarmDCOPIface" ), KParts::ReadWritePart(tqparent, name), : DCOPObject ( "KarmDCOPIface" ), KParts::ReadWritePart(tqparent, name),
_accel ( new KAccel( tqparentWidget ) ), _accel ( new KAccel( parentWidget ) ),
_watcher ( new KAccelMenuWatch( _accel, TQT_TQOBJECT(tqparentWidget) ) ) _watcher ( new KAccelMenuWatch( _accel, TQT_TQOBJECT(parentWidget) ) )
{ {
// we need an instance // we need an instance
setInstance( karmPartFactory::instance() ); setInstance( karmPartFactory::instance() );
// this should be your custom internal widget // this should be your custom internal widget
_taskView = new TaskView( tqparentWidget, widgetName ); _taskView = new TaskView( parentWidget, widgetName );
// setup PreferenceDialog. // setup PreferenceDialog.
_preferences = Preferences::instance(); _preferences = Preferences::instance();
@ -387,12 +387,12 @@ karmPartFactory::~karmPartFactory()
s_instance = 0L; s_instance = 0L;
} }
KParts::Part* karmPartFactory::createPartObject( TQWidget *tqparentWidget, const char *widgetName, KParts::Part* karmPartFactory::createPartObject( TQWidget *parentWidget, const char *widgetName,
TQObject *tqparent, const char *name, TQObject *tqparent, const char *name,
const char *classname, const TQStringList &args ) const char *classname, const TQStringList &args )
{ {
// Create an instance of our Part // Create an instance of our Part
karmPart* obj = new karmPart( tqparentWidget, widgetName, tqparent, name ); karmPart* obj = new karmPart( parentWidget, widgetName, tqparent, name );
// See if we are to be read-write or not // See if we are to be read-write or not
if (TQCString(classname) == "KParts::ReadOnlyPart") if (TQCString(classname) == "KParts::ReadOnlyPart")

@ -59,7 +59,7 @@ class karmPart : public KParts::ReadWritePart, virtual public KarmDCOPIface
friend class KarmTray; friend class KarmTray;
public: public:
karmPart(TQWidget *tqparentWidget, const char *widgetName, karmPart(TQWidget *parentWidget, const char *widgetName,
TQObject *tqparent, const char *name); TQObject *tqparent, const char *name);
// DCOP // DCOP
void quit(); void quit();
@ -126,7 +126,7 @@ class karmPartFactory : public KParts::Factory
public: public:
karmPartFactory(); karmPartFactory();
virtual ~karmPartFactory(); virtual ~karmPartFactory();
virtual KParts::Part* createPartObject( TQWidget *tqparentWidget, const char *widgetName, virtual KParts::Part* createPartObject( TQWidget *parentWidget, const char *widgetName,
TQObject *tqparent, const char *name, TQObject *tqparent, const char *name,
const char *classname, const TQStringList &args ); const char *classname, const TQStringList &args );
static KInstance* instance(); static KInstance* instance();

@ -102,7 +102,7 @@ TQString KarmStorage::load (TaskView* view, const Preferences* preferences, TQSt
// If file doesn't exist, create a blank one to avoid ResourceLocal load // If file doesn't exist, create a blank one to avoid ResourceLocal load
// error. We make it user and group read/write, others read. This is // error. We make it user and group read/write, others read. This is
// tqmasked by the users umask. (See man creat) // masked by the users umask. (See man creat)
if ( ! remoteResource( _icalfile ) ) if ( ! remoteResource( _icalfile ) )
{ {
int handle; int handle;
@ -310,11 +310,11 @@ TQString KarmStorage::save(TaskView* taskview)
kdDebug(5970) << "entering KarmStorage::save" << endl; kdDebug(5970) << "entering KarmStorage::save" << endl;
TQString err=TQString(); TQString err=TQString();
TQPtrStack< KCal::Todo > tqparents; TQPtrStack< KCal::Todo > parents;
for (Task* task=taskview->first_child(); task; task = task->nextSibling()) for (Task* task=taskview->first_child(); task; task = task->nextSibling())
{ {
err=writeTaskAsTodo(task, 1, tqparents ); err=writeTaskAsTodo(task, 1, parents );
} }
if ( !saveCalendar() ) if ( !saveCalendar() )
@ -337,7 +337,7 @@ TQString KarmStorage::save(TaskView* taskview)
} }
TQString KarmStorage::writeTaskAsTodo(Task* task, const int level, TQString KarmStorage::writeTaskAsTodo(Task* task, const int level,
TQPtrStack< KCal::Todo >& tqparents ) TQPtrStack< KCal::Todo >& parents )
{ {
TQString err; TQString err;
KCal::Todo* todo; KCal::Todo* todo;
@ -349,16 +349,16 @@ TQString KarmStorage::writeTaskAsTodo(Task* task, const int level,
return "Could not get todo from calendar"; return "Could not get todo from calendar";
} }
task->asTodo(todo); task->asTodo(todo);
if ( !tqparents.isEmpty() ) todo->setRelatedTo( tqparents.top() ); if ( !parents.isEmpty() ) todo->setRelatedTo( parents.top() );
tqparents.push( todo ); parents.push( todo );
for ( Task* nextTask = task->firstChild(); nextTask; for ( Task* nextTask = task->firstChild(); nextTask;
nextTask = nextTask->nextSibling() ) nextTask = nextTask->nextSibling() )
{ {
err = writeTaskAsTodo(nextTask, level+1, tqparents ); err = writeTaskAsTodo(nextTask, level+1, parents );
} }
tqparents.pop(); parents.pop();
return err; return err;
} }

@ -308,7 +308,7 @@ class KarmStorage
bool parseLine(TQString line, long *time, TQString *name, int *level, bool parseLine(TQString line, long *time, TQString *name, int *level,
DesktopList* desktopList); DesktopList* desktopList);
TQString writeTaskAsTodo TQString writeTaskAsTodo
(Task* task, const int level, TQPtrStack< KCal::Todo >& tqparents); (Task* task, const int level, TQPtrStack< KCal::Todo >& parents);
bool saveCalendar(); bool saveCalendar();
KCal::Event* baseEvent(const Task*); KCal::Event* baseEvent(const Task*);

@ -67,13 +67,13 @@ test cases:
} }
// at the moment, task is still the old task or the old father task (if an endElement occurred) or not existing (if the // at the moment, task is still the old task or the old father task (if an endElement occurred) or not existing (if the
// new task is a top-level-task). Make task the tqparenttask, if existing. // new task is a top-level-task). Make task the parenttask, if existing.
DesktopList dl; DesktopList dl;
if (level++>0) if (level++>0)
{ {
tqparentTask=task; parentTask=task;
task = new Task(taskName, 0, 0, dl, tqparentTask); task = new Task(taskName, 0, 0, dl, parentTask);
task->setUid(_taskView->storage()->addTask(task, tqparentTask)); task->setUid(_taskView->storage()->addTask(task, parentTask));
} }
else else
{ {

@ -54,7 +54,7 @@ private:
bool withInTasks; // within <tasks> ? bool withInTasks; // within <tasks> ?
TaskView *_taskView; TaskView *_taskView;
Task *task; Task *task;
Task *tqparentTask; Task *parentTask;
int level; // level=1: task is top-level-task int level; // level=1: task is top-level-task
}; };

@ -90,7 +90,7 @@ void KDGanttSplitterHandle::mouseMoveEvent( TQMouseEvent *e )
if ( _activeButton != 0) if ( _activeButton != 0)
return; return;
TQCOORD pos = s->pick(tqparentWidget()->mapFromGlobal(e->globalPos())) TQCOORD pos = s->pick(parentWidget()->mapFromGlobal(e->globalPos()))
- mouseOffset; - mouseOffset;
if ( opaque() ) { if ( opaque() ) {
s->moveSplitter( pos, id() ); s->moveSplitter( pos, id() );
@ -159,7 +159,7 @@ void KDGanttSplitterHandle::mouseReleaseEvent( TQMouseEvent *e )
} }
else { else {
if ( !opaque() && e->button() == Qt::LeftButton ) { if ( !opaque() && e->button() == Qt::LeftButton ) {
TQCOORD pos = s->pick(tqparentWidget()->mapFromGlobal(e->globalPos())) TQCOORD pos = s->pick(parentWidget()->mapFromGlobal(e->globalPos()))
- mouseOffset; - mouseOffset;
s->setRubberband( -1 ); s->setRubberband( -1 );
s->moveSplitter( pos, id() ); s->moveSplitter( pos, id() );
@ -241,8 +241,8 @@ void KDGanttSplitterHandle::paintEvent( TQPaintEvent * )
p.setBrush( tqcolorGroup().background() ); p.setBrush( tqcolorGroup().background() );
p.setPen( tqcolorGroup().foreground() ); p.setPen( tqcolorGroup().foreground() );
p.drawRect( rect() ); p.drawRect( rect() );
tqparentWidget()->tqstyle().tqdrawPrimitive( TQStyle::PE_Panel, &p, rect(), parentWidget()->tqstyle().tqdrawPrimitive( TQStyle::PE_Panel, &p, rect(),
tqparentWidget()->tqcolorGroup()); parentWidget()->tqcolorGroup());
int sw = 8; // Hardcoded, given I didn't use styles anymore, I didn't like to use their size int sw = 8; // Hardcoded, given I didn't use styles anymore, I didn't like to use their size
@ -256,8 +256,8 @@ void KDGanttSplitterHandle::paintEvent( TQPaintEvent * )
for ( TQValueList<TQPointArray>::Iterator it = list.begin(); it != list.end(); ++it ) { for ( TQValueList<TQPointArray>::Iterator it = list.begin(); it != list.end(); ++it ) {
if ( index == _activeButton ) { if ( index == _activeButton ) {
p.save(); p.save();
p.translate( tqparentWidget()->tqstyle().tqpixelMetric( TQStyle::PM_ButtonShiftHorizontal ), p.translate( parentWidget()->tqstyle().tqpixelMetric( TQStyle::PM_ButtonShiftHorizontal ),
tqparentWidget()->tqstyle().tqpixelMetric( TQStyle::PM_ButtonShiftVertical ) ); parentWidget()->tqstyle().tqpixelMetric( TQStyle::PM_ButtonShiftVertical ) );
p.tqdrawPolygon( *it, true ); p.tqdrawPolygon( *it, true );
p.restore(); p.restore();
} }
@ -962,7 +962,7 @@ void KDGanttMinimizeSplitter::recalc( bool update )
} }
} }
if ( empty ) { if ( empty ) {
if ( tqparentWidget() != 0 && tqparentWidget()->inherits("KDGanttMinimizeSplitter") ) { if ( parentWidget() != 0 && parentWidget()->inherits("KDGanttMinimizeSplitter") ) {
// nested splitters; be nice // nested splitters; be nice
maxl = maxt = 0; maxl = maxt = 0;
} else { } else {
@ -1341,7 +1341,7 @@ KDGanttMinimizeSplitter::Direction KDGanttMinimizeSplitter::minimizeDirection()
} }
/* /*
This is a copy of qGeomCalc() in qtqlayoutengine.cpp which This is a copy of qGeomCalc() in qlayoutengine.cpp which
unfortunately isn't exported. unfortunately isn't exported.
*/ */
static inline int toFixed( int i ) { return i * 256; } static inline int toFixed( int i ) { return i * 256; }

@ -691,9 +691,9 @@ void KDGanttView::setShowListView( bool show )
if(listViewIsVisible == show) return; if(listViewIsVisible == show) return;
listViewIsVisible = show; listViewIsVisible = show;
if (listViewIsVisible) if (listViewIsVisible)
myListView->tqparentWidget()->show(); myListView->parentWidget()->show();
else else
myListView->tqparentWidget()->hide(); myListView->parentWidget()->hide();
} }

@ -209,7 +209,7 @@ void KDGanttViewEventItem::hideMe()
void KDGanttViewEventItem::showItem(bool show, int coordY) void KDGanttViewEventItem::showItem(bool show, int coordY)
{ {
isVisibleInGanttView = show; isVisibleInGanttView = show;
tqinvalidateHeight () ; invalidateHeight () ;
if (!show) { if (!show) {
hideMe(); hideMe();
return; return;

@ -133,7 +133,7 @@
overlapping tqchildren, call \a setPriority() for the childs. overlapping tqchildren, call \a setPriority() for the childs.
Blocking of user interaction to open item: Blocking of user interaction to open item:
If you want to block users to open items used as tqparents of calendar items, If you want to block users to open items used as parents of calendar items,
call \a KDGanttView::setCalendarMode( true ); call \a KDGanttView::setCalendarMode( true );
Example 1, Color: Example 1, Color:
@ -182,16 +182,16 @@ KDGanttViewItem::KDGanttViewItem( Type type, KDGanttView* view,
Constructs an empty Gantt item. Constructs an empty Gantt item.
\param type the type of the item to insert \param type the type of the item to insert
\param tqparentItem a tqparent item under which this one goes \param parentItem a tqparent item under which this one goes
\param lvtext the text to show in the list view \param lvtext the text to show in the list view
\param name the name by which the item can be identified. If no name \param name the name by which the item can be identified. If no name
is specified, a unique name will be generated is specified, a unique name will be generated
*/ */
KDGanttViewItem::KDGanttViewItem( Type type, KDGanttViewItem* tqparentItem, KDGanttViewItem::KDGanttViewItem( Type type, KDGanttViewItem* parentItem,
const TQString& lvtext, const TQString& lvtext,
const TQString& name ) : const TQString& name ) :
TQListViewItem(tqparentItem,lvtext) TQListViewItem(parentItem,lvtext)
{ {
initColorAndShapes(type); initColorAndShapes(type);
generateAndInsertName( name ); generateAndInsertName( name );
@ -224,18 +224,18 @@ KDGanttViewItem::KDGanttViewItem( Type type, KDGanttView* view,
Constructs an empty Gantt item. Constructs an empty Gantt item.
\param type the type of the item to insert \param type the type of the item to insert
\param tqparentItem a tqparent item under which this one goes \param parentItem a tqparent item under which this one goes
\param after another item at the same level behind which this one should go \param after another item at the same level behind which this one should go
\param lvtext the text to show in the list view \param lvtext the text to show in the list view
\param name the name by which the item can be identified. If no name \param name the name by which the item can be identified. If no name
is specified, a unique name will be generated is specified, a unique name will be generated
*/ */
KDGanttViewItem::KDGanttViewItem( Type type, KDGanttViewItem* tqparentItem, KDGanttViewItem::KDGanttViewItem( Type type, KDGanttViewItem* parentItem,
KDGanttViewItem* after, KDGanttViewItem* after,
const TQString& lvtext, const TQString& lvtext,
const TQString& name ) : const TQString& name ) :
TQListViewItem( tqparentItem, after, lvtext ) TQListViewItem( parentItem, after, lvtext )
{ {
initColorAndShapes(type); initColorAndShapes(type);
generateAndInsertName( name ); generateAndInsertName( name );
@ -1547,13 +1547,13 @@ KDGanttViewItem::Shape KDGanttViewItem::stringToShape( const TQString& string )
Creates a DOM node that describes this item. Creates a DOM node that describes this item.
\param doc the DOM document to which the node belongs \param doc the DOM document to which the node belongs
\param tqparentElement the element into which to insert this node \param parentElement the element into which to insert this node
*/ */
void KDGanttViewItem::createNode( TQDomDocument& doc, void KDGanttViewItem::createNode( TQDomDocument& doc,
TQDomElement& tqparentElement ) TQDomElement& parentElement )
{ {
TQDomElement itemElement = doc.createElement( "Item" ); TQDomElement itemElement = doc.createElement( "Item" );
tqparentElement.appendChild( itemElement ); parentElement.appendChild( itemElement );
itemElement.setAttribute( "Type", typeToString( type() ) ); itemElement.setAttribute( "Type", typeToString( type() ) );
KDGanttXML::createDateTimeNode( doc, itemElement, "StartTime", startTime() ); KDGanttXML::createDateTimeNode( doc, itemElement, "StartTime", startTime() );

@ -174,7 +174,7 @@ public:
static KDGanttViewItem* tqfind( const TQString& name ); static KDGanttViewItem* tqfind( const TQString& name );
void createNode( TQDomDocument& doc, void createNode( TQDomDocument& doc,
TQDomElement& tqparentElement ); TQDomElement& parentElement );
static KDGanttViewItem* createFromDomElement( KDGanttView* view, static KDGanttViewItem* createFromDomElement( KDGanttView* view,
TQDomElement& element ); TQDomElement& element );
static KDGanttViewItem* createFromDomElement( KDGanttView* view, static KDGanttViewItem* createFromDomElement( KDGanttView* view,

@ -140,13 +140,13 @@ void KDTimeTableWidget::removeItemFromTasklinks( KDGanttViewItem* item)
void KDTimeTableWidget::expandItem( TQListViewItem * item) void KDTimeTableWidget::expandItem( TQListViewItem * item)
{ {
item->tqinvalidateHeight () ; item->invalidateHeight () ;
//tqApp->processEvents(); //tqApp->processEvents();
updateMyContent(); updateMyContent();
} }
void KDTimeTableWidget::collapseItem( TQListViewItem * item) void KDTimeTableWidget::collapseItem( TQListViewItem * item)
{ {
item->tqinvalidateHeight () ; item->invalidateHeight () ;
//tqApp->processEvents(); //tqApp->processEvents();
updateMyContent(); updateMyContent();
} }
@ -160,7 +160,7 @@ void KDTimeTableWidget::highlightItem( TQListViewItem * item )
highlightedItem = ( KDGanttViewItem*)item; highlightedItem = ( KDGanttViewItem*)item;
itemwashighlighted = highlightedItem->highlight(); itemwashighlighted = highlightedItem->highlight();
highlightedItem->setHighlight(true); highlightedItem->setHighlight(true);
item->tqinvalidateHeight () ; item->invalidateHeight () ;
myGanttView->myListView->contentsY(); myGanttView->myListView->contentsY();
updateMyContent(); updateMyContent();
} }
@ -2517,19 +2517,19 @@ void KDTimeHeaderWidget::mouseMoveEvent ( TQMouseEvent * e )
val = 0; val = 0;
} }
} }
if (endMouseDown > -x() +tqparentWidget()->width() ) { if (endMouseDown > -x() +parentWidget()->width() ) {
val = myGanttView->myCanvasView->horizontalScrollBar()->value() + val = myGanttView->myCanvasView->horizontalScrollBar()->value() +
myGanttView->myCanvasView->horizontalScrollBar()->lineStep(); myGanttView->myCanvasView->horizontalScrollBar()->lineStep();
} }
repaintMe(-x(),tqparentWidget()->width()); repaintMe(-x(),parentWidget()->width());
if ( val > -1 ) { if ( val > -1 ) {
if ( val > myGanttView->myCanvasView->horizontalScrollBar()->maxValue() ) { if ( val > myGanttView->myCanvasView->horizontalScrollBar()->maxValue() ) {
val = myGanttView->myCanvasView->horizontalScrollBar()->maxValue(); val = myGanttView->myCanvasView->horizontalScrollBar()->maxValue();
} }
myGanttView->myCanvasView->horizontalScrollBar()->setValue( val ); myGanttView->myCanvasView->horizontalScrollBar()->setValue( val );
} }
//qDebug("mousemove %d %d %d %d",endMouseDown, -x(),tqparentWidget()->width() , e->pos().y()); //qDebug("mousemove %d %d %d %d",endMouseDown, -x(),parentWidget()->width() , e->pos().y());
} }
} }
@ -3091,62 +3091,62 @@ void KDListView::startDrag ()
} }
KDCanvasText::KDCanvasText( KDTimeTableWidget* canvas, KDCanvasText::KDCanvasText( KDTimeTableWidget* canvas,
void* tqparentItem, void* parentItem,
int type ) : int type ) :
TQCanvasText(canvas) TQCanvasText(canvas)
{ {
myParentType = type; myParentType = type;
myParentItem = tqparentItem; myParentItem = parentItem;
} }
KDCanvasLine::KDCanvasLine( KDTimeTableWidget* canvas, KDCanvasLine::KDCanvasLine( KDTimeTableWidget* canvas,
void* tqparentItem, void* parentItem,
int type ) : int type ) :
TQCanvasLine(canvas) TQCanvasLine(canvas)
{ {
myParentType = type; myParentType = type;
myParentItem = tqparentItem; myParentItem = parentItem;
} }
KDCanvasPolygonItem::KDCanvasPolygonItem( KDTimeTableWidget* canvas, KDCanvasPolygonItem::KDCanvasPolygonItem( KDTimeTableWidget* canvas,
void* tqparentItem, void* parentItem,
int type ) : int type ) :
TQCanvasPolygonalItem( canvas ) TQCanvasPolygonalItem( canvas )
{ {
myParentType = type; myParentType = type;
myParentItem = tqparentItem; myParentItem = parentItem;
} }
KDCanvasPolygon::KDCanvasPolygon( KDTimeTableWidget* canvas, KDCanvasPolygon::KDCanvasPolygon( KDTimeTableWidget* canvas,
void* tqparentItem, void* parentItem,
int type ) : int type ) :
TQCanvasPolygon( canvas ) TQCanvasPolygon( canvas )
{ {
myParentType = type; myParentType = type;
myParentItem = tqparentItem; myParentItem = parentItem;
} }
KDCanvasEllipse::KDCanvasEllipse( KDTimeTableWidget* canvas, KDCanvasEllipse::KDCanvasEllipse( KDTimeTableWidget* canvas,
void* tqparentItem, void* parentItem,
int type ) : int type ) :
TQCanvasEllipse( canvas ) TQCanvasEllipse( canvas )
{ {
myParentType = type; myParentType = type;
myParentItem = tqparentItem; myParentItem = parentItem;
} }
KDCanvasRectangle::KDCanvasRectangle( KDTimeTableWidget* canvas, KDCanvasRectangle::KDCanvasRectangle( KDTimeTableWidget* canvas,
void* tqparentItem, void* parentItem,
int type ) : int type ) :
TQCanvasRectangle( canvas ) TQCanvasRectangle( canvas )
{ {
myParentType = type; myParentType = type;
myParentItem = tqparentItem; myParentItem = parentItem;
} }

@ -403,7 +403,7 @@ private slots:
class KDCanvasText : public TQCanvasText class KDCanvasText : public TQCanvasText
{ {
public: public:
KDCanvasText( KDTimeTableWidget* canvas, void* tqparentItem, int type ); KDCanvasText( KDTimeTableWidget* canvas, void* parentItem, int type );
int myParentType; int myParentType;
void* myParentItem; void* myParentItem;
}; };
@ -412,7 +412,7 @@ public:
class KDCanvasLine : public TQCanvasLine class KDCanvasLine : public TQCanvasLine
{ {
public: public:
KDCanvasLine( KDTimeTableWidget* canvas, void* tqparentItem, int type ); KDCanvasLine( KDTimeTableWidget* canvas, void* parentItem, int type );
int myParentType; int myParentType;
void* myParentItem; void* myParentItem;
}; };
@ -421,7 +421,7 @@ public:
class KDCanvasPolygonItem: public TQCanvasPolygonalItem class KDCanvasPolygonItem: public TQCanvasPolygonalItem
{ {
public: public:
KDCanvasPolygonItem( KDTimeTableWidget* canvas, void* tqparentItem, KDCanvasPolygonItem( KDTimeTableWidget* canvas, void* parentItem,
int type ); int type );
int myParentType; int myParentType;
void* myParentItem; void* myParentItem;
@ -431,7 +431,7 @@ public:
class KDCanvasPolygon: public TQCanvasPolygon class KDCanvasPolygon: public TQCanvasPolygon
{ {
public: public:
KDCanvasPolygon( KDTimeTableWidget* canvas, void* tqparentItem, int type ); KDCanvasPolygon( KDTimeTableWidget* canvas, void* parentItem, int type );
int myParentType; int myParentType;
void* myParentItem; void* myParentItem;
}; };
@ -440,7 +440,7 @@ public:
class KDCanvasEllipse: public TQCanvasEllipse class KDCanvasEllipse: public TQCanvasEllipse
{ {
public: public:
KDCanvasEllipse( KDTimeTableWidget* canvas, void* tqparentItem, int type ); KDCanvasEllipse( KDTimeTableWidget* canvas, void* parentItem, int type );
int myParentType; int myParentType;
void* myParentItem; void* myParentItem;
}; };
@ -449,7 +449,7 @@ public:
class KDCanvasRectangle: public TQCanvasRectangle class KDCanvasRectangle: public TQCanvasRectangle
{ {
public: public:
KDCanvasRectangle( KDTimeTableWidget* canvas, void* tqparentItem, int type ); KDCanvasRectangle( KDTimeTableWidget* canvas, void* parentItem, int type );
int myParentType; int myParentType;
void* myParentItem; void* myParentItem;
}; };

@ -267,7 +267,7 @@ void KDGanttViewSummaryItem::hideMe()
void KDGanttViewSummaryItem::showItem( bool show, int coordY ) void KDGanttViewSummaryItem::showItem( bool show, int coordY )
{ {
isVisibleInGanttView = show; isVisibleInGanttView = show;
tqinvalidateHeight () ; invalidateHeight () ;
if (!show) { if (!show) {
hideMe(); hideMe();
return; return;

@ -201,7 +201,7 @@ void KDGanttViewTaskItem::showItem(bool show, int coordY)
//qDebug("KDGanttViewTaskItem::showItem() %d %s ", (int) show, listViewText().latin1()); //qDebug("KDGanttViewTaskItem::showItem() %d %s ", (int) show, listViewText().latin1());
isVisibleInGanttView = show; isVisibleInGanttView = show;
tqinvalidateHeight () ; invalidateHeight () ;
if (!show) { if (!show) {
hideMe(); hideMe();
return; return;

@ -732,13 +732,13 @@ TQPtrList<KDGanttViewItem> KDGanttViewTaskLink::to() const
Creates a DOM node that describes this task link. Creates a DOM node that describes this task link.
\param doc the DOM document to which the node belongs \param doc the DOM document to which the node belongs
\param tqparentElement the element into which to insert this node \param parentElement the element into which to insert this node
*/ */
void KDGanttViewTaskLink::createNode( TQDomDocument& doc, void KDGanttViewTaskLink::createNode( TQDomDocument& doc,
TQDomElement& tqparentElement ) TQDomElement& parentElement )
{ {
TQDomElement taskLinkElement = doc.createElement( "TaskLink" ); TQDomElement taskLinkElement = doc.createElement( "TaskLink" );
tqparentElement.appendChild( taskLinkElement ); parentElement.appendChild( taskLinkElement );
TQDomElement fromItemsElement = doc.createElement( "FromItems" ); TQDomElement fromItemsElement = doc.createElement( "FromItems" );
taskLinkElement.appendChild( fromItemsElement ); taskLinkElement.appendChild( fromItemsElement );

@ -89,7 +89,7 @@ public:
TQString whatsThisText() const; TQString whatsThisText() const;
void createNode( TQDomDocument& doc, void createNode( TQDomDocument& doc,
TQDomElement& tqparentElement ); TQDomElement& parentElement );
static KDGanttViewTaskLink* createFromDomElement( TQDomElement& ); static KDGanttViewTaskLink* createFromDomElement( TQDomElement& );
int linkType(); int linkType();

@ -280,13 +280,13 @@ KDGanttViewTaskLinkGroup* KDGanttViewTaskLinkGroup::tqfind( const TQString& name
Creates a DOM node that describes this task link group. Creates a DOM node that describes this task link group.
\param doc the DOM document to which the node belongs \param doc the DOM document to which the node belongs
\param tqparentElement the element into which to insert this node \param parentElement the element into which to insert this node
*/ */
void KDGanttViewTaskLinkGroup::createNode( TQDomDocument& doc, void KDGanttViewTaskLinkGroup::createNode( TQDomDocument& doc,
TQDomElement& tqparentElement ) TQDomElement& parentElement )
{ {
TQDomElement taskLinkGroupElement = doc.createElement( "TaskLink" ); TQDomElement taskLinkGroupElement = doc.createElement( "TaskLink" );
tqparentElement.appendChild( taskLinkGroupElement ); parentElement.appendChild( taskLinkGroupElement );
KDGanttXML::createBoolNode( doc, taskLinkGroupElement, "Highlight", KDGanttXML::createBoolNode( doc, taskLinkGroupElement, "Highlight",
highlight() ); highlight() );

@ -65,7 +65,7 @@ public:
static KDGanttViewTaskLinkGroup* tqfind( const TQString& name ); static KDGanttViewTaskLinkGroup* tqfind( const TQString& name );
void createNode( TQDomDocument& doc, void createNode( TQDomDocument& doc,
TQDomElement& tqparentElement ); TQDomElement& parentElement );
static KDGanttViewTaskLinkGroup* createFromDomElement( TQDomElement& ); static KDGanttViewTaskLinkGroup* createFromDomElement( TQDomElement& );
void generateAndInsertName( const TQString& name ); void generateAndInsertName( const TQString& name );

@ -33,7 +33,7 @@ noinst_HEADERS = \
KDGanttViewTaskLink.h \ KDGanttViewTaskLink.h \
KDGanttXMLTools.h \ KDGanttXMLTools.h \
itemAttributeDialog.ui.h \ itemAttributeDialog.ui.h \
qlayoutengine_p.h qtqlayoutengine_p.h
METASOURCES = AUTO METASOURCES = AUTO

@ -733,5 +733,5 @@
<slot>PrioSlider_valueChanged( int val )</slot> <slot>PrioSlider_valueChanged( int val )</slot>
<slot returnType="KDGanttViewItem *">getItem()</slot> <slot returnType="KDGanttViewItem *">getItem()</slot>
</Q_SLOTS> </Q_SLOTS>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
</UI> </UI>

@ -46,7 +46,7 @@
// ------------- // -------------
// //
// This file is not part of the TQt API. It exists for the convenience // This file is not part of the TQt API. It exists for the convenience
// of qtqlayout.cpp, qtqlayoutengine.cpp, qmainwindow.cpp and qsplitter.cpp. // of qtqlayout.cpp, qlayoutengine.cpp, qmainwindow.cpp and qsplitter.cpp.
// This header file may change from version to version without notice, // This header file may change from version to version without notice,
// or even be removed. // or even be removed.
// //

@ -12,28 +12,28 @@
TQBrush KGanttItem::_selectBrush(TQColor(255,0,0)); TQBrush KGanttItem::_selectBrush(TQColor(255,0,0));
KGanttItem::KGanttItem(KGanttItem* tqparentItem, const TQString& text, KGanttItem::KGanttItem(KGanttItem* parentItem, const TQString& text,
const TQDateTime& start, const TQDateTime& end) const TQDateTime& start, const TQDateTime& end)
: TQObject() : TQObject()
//////////////////////////////////////////////////////// ////////////////////////////////////////////////////////
{ {
init(tqparentItem,text, start,end); init(parentItem,text, start,end);
} }
KGanttItem::KGanttItem(KGanttItem* tqparentItem, const TQString& text, KGanttItem::KGanttItem(KGanttItem* parentItem, const TQString& text,
const TQDateTime& start, long durationMin) const TQDateTime& start, long durationMin)
: TQObject() : TQObject()
//////////////////////////////////////////////////////// ////////////////////////////////////////////////////////
{ {
init(tqparentItem, text, start, start.addSecs( durationMin * 60)); init(parentItem, text, start, start.addSecs( durationMin * 60));
} }
void void
KGanttItem::init(KGanttItem* tqparentItem, const TQString& text, KGanttItem::init(KGanttItem* parentItem, const TQString& text,
const TQDateTime& start, const TQDateTime& end) const TQDateTime& start, const TQDateTime& end)
/////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////
{ {
@ -55,10 +55,10 @@ KGanttItem::init(KGanttItem* tqparentItem, const TQString& text,
_start = start; _minDateTime = start; _start = start; _minDateTime = start;
_end = end; _maxDateTime = end; _end = end; _maxDateTime = end;
_tqparentItem = tqparentItem; _parentItem = parentItem;
if(_tqparentItem) if(_parentItem)
_tqparentItem->registerItem(this); _parentItem->registerItem(this);
} }
@ -71,8 +71,8 @@ KGanttItem::~KGanttItem()
printf("-> delete %s \n", getText().latin1() ); printf("-> delete %s \n", getText().latin1() );
#endif #endif
if(_tqparentItem) if(_parentItem)
_tqparentItem->unregisterItem(this); _parentItem->unregisterItem(this);
_subitems.setAutoDelete(true); _subitems.setAutoDelete(true);
_subitems.clear(); _subitems.clear();

@ -139,7 +139,7 @@ public:
/*! /*!
* *
*/ */
KGanttItem(KGanttItem* tqparentItem, const TQString& text, KGanttItem(KGanttItem* parentItem, const TQString& text,
const TQDateTime& start, const TQDateTime& end); const TQDateTime& start, const TQDateTime& end);
@ -148,7 +148,7 @@ public:
/*! /*!
* *
*/ */
KGanttItem(KGanttItem* tqparentItem, const TQString& text, KGanttItem(KGanttItem* parentItem, const TQString& text,
const TQDateTime& start, long durationMin); const TQDateTime& start, long durationMin);
@ -502,7 +502,7 @@ private:
void registerItem(KGanttItem* item); void registerItem(KGanttItem* item);
void unregisterItem(KGanttItem* item); void unregisterItem(KGanttItem* item);
void init(KGanttItem* tqparentItem, const TQString& text, void init(KGanttItem* parentItem, const TQString& text,
const TQDateTime& start, const TQDateTime& end); const TQDateTime& start, const TQDateTime& end);
@ -526,7 +526,7 @@ private:
int _height, _style, _mode; int _height, _style, _mode;
KGanttItem* _tqparentItem; KGanttItem* _parentItem;
TQPtrList<KGanttItem> _subitems; TQPtrList<KGanttItem> _subitems;
TQPtrList<KGanttRelation> _relations; TQPtrList<KGanttRelation> _relations;

@ -12,9 +12,9 @@
<height>431</height> <height>431</height>
</rect> </rect>
</property> </property>
<property name="tqlayoutMargin" stdset="0"> <property name="layoutMargin" stdset="0">
</property> </property>
<property name="tqlayoutSpacing" stdset="0"> <property name="layoutSpacing" stdset="0">
</property> </property>
<grid> <grid>
<property name="name"> <property name="name">
@ -605,7 +605,7 @@
</widget> </widget>
</grid> </grid>
</widget> </widget>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
<includehints> <includehints>
<includehint>knuminput.h</includehint> <includehint>knuminput.h</includehint>
</includehints> </includehints>

@ -12,9 +12,9 @@
<height>345</height> <height>345</height>
</rect> </rect>
</property> </property>
<property name="tqlayoutMargin" stdset="0"> <property name="layoutMargin" stdset="0">
</property> </property>
<property name="tqlayoutSpacing" stdset="0"> <property name="layoutSpacing" stdset="0">
</property> </property>
<grid> <grid>
<property name="name"> <property name="name">
@ -322,7 +322,7 @@
</widget> </widget>
</grid> </grid>
</widget> </widget>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
<includehints> <includehints>
<includehint>knuminput.h</includehint> <includehint>knuminput.h</includehint>
</includehints> </includehints>

@ -1114,7 +1114,7 @@ mimeHeader * imapParser::parseSimplePart (parseString & inWords,
localPart->setType (typeStr + "/" + subtype); localPart->setType (typeStr + "/" + subtype);
//body parameter tqparenthesized list //body parameter parenthesized list
parameters = parseParameters (inWords); parameters = parseParameters (inWords);
{ {
TQAsciiDictIterator < TQString > it (parameters); TQAsciiDictIterator < TQString > it (parameters);
@ -1628,7 +1628,7 @@ void imapParser::parseSentence (parseString & inWords)
bool first = true; bool first = true;
int stack = 0; int stack = 0;
//find the first nesting tqparentheses //find the first nesting parentheses
while (!inWords.isEmpty () && (stack != 0 || first)) while (!inWords.isEmpty () && (stack != 0 || first))
{ {

@ -356,7 +356,7 @@ public:
// generic parser routines // generic parser routines
/** parse a tqparenthesized list */ /** parse a parenthesized list */
void parseSentence (parseString & inWords); void parseSentence (parseString & inWords);
/** parse a literal or word, may require more data */ /** parse a literal or word, may require more data */

@ -36,14 +36,14 @@
typedef KParts::GenericFactory< KitchenSyncPart > KitchenSyncFactory; typedef KParts::GenericFactory< KitchenSyncPart > KitchenSyncFactory;
K_EXPORT_COMPONENT_FACTORY( libkitchensyncpart, KitchenSyncFactory ) K_EXPORT_COMPONENT_FACTORY( libkitchensyncpart, KitchenSyncFactory )
KitchenSyncPart::KitchenSyncPart( TQWidget *tqparentWidget, const char *widgetName, KitchenSyncPart::KitchenSyncPart( TQWidget *parentWidget, const char *widgetName,
TQObject *tqparent, const char *name, TQObject *tqparent, const char *name,
const TQStringList& ) const TQStringList& )
: KParts::ReadOnlyPart( tqparent, name ) : KParts::ReadOnlyPart( tqparent, name )
{ {
setInstance( KitchenSyncFactory::instance() ); setInstance( KitchenSyncFactory::instance() );
TQVBox *canvas = new TQVBox( tqparentWidget, widgetName ); TQVBox *canvas = new TQVBox( parentWidget, widgetName );
setWidget( canvas ); setWidget( canvas );
new MainWidget( this, canvas ); new MainWidget( this, canvas );

@ -33,7 +33,7 @@ class KitchenSyncPart: public KParts::ReadOnlyPart
TQ_OBJECT TQ_OBJECT
public: public:
KitchenSyncPart( TQWidget *tqparentWidget, const char *widgetName, KitchenSyncPart( TQWidget *parentWidget, const char *widgetName,
TQObject *tqparent, const char *name, const TQStringList& ); TQObject *tqparent, const char *name, const TQStringList& );
virtual ~KitchenSyncPart(); virtual ~KitchenSyncPart();

@ -87,14 +87,14 @@ void XmlDiffAlgo::appendConflictNodes(TQDomElement &leftElement, TQDomElement &r
TQString id = leftChild.tagName(); TQString id = leftChild.tagName();
if (id == "Content") if (id == "Content")
id = left.tqparentNode().nodeName(); id = left.parentNode().nodeName();
conflictField( id, leftChild.text(), rightChild.text() ); conflictField( id, leftChild.text(), rightChild.text() );
left.tqparentNode().removeChild( left ); left.parentNode().removeChild( left );
left = leftElement.firstChild(); left = leftElement.firstChild();
right.tqparentNode().removeChild( right ); right.parentNode().removeChild( right );
right = rightElement.firstChild(); right = rightElement.firstChild();
} }
@ -121,8 +121,8 @@ top:;
compareNode( leftChild, rightChild ); compareNode( leftChild, rightChild );
if ( !left.hasChildNodes() && !right.hasChildNodes() ) { if ( !left.hasChildNodes() && !right.hasChildNodes() ) {
left.tqparentNode().removeChild( left ); left.parentNode().removeChild( left );
right.tqparentNode().removeChild( right ); right.parentNode().removeChild( right );
goto top; goto top;
} }
@ -133,13 +133,13 @@ top:;
TQString id = leftChild.tagName(); TQString id = leftChild.tagName();
if ( id == "Content" ) if ( id == "Content" )
id = left.tqparentNode().nodeName(); id = left.parentNode().nodeName();
if ( id != "Type" ) if ( id != "Type" )
//matchingField( id, leftChild.text(), rightChild.text() ); //matchingField( id, leftChild.text(), rightChild.text() );
left.tqparentNode().removeChild( left ); left.parentNode().removeChild( left );
right.tqparentNode().removeChild( right ); right.parentNode().removeChild( right );
goto top; goto top;
} }
} }

@ -451,9 +451,9 @@ Currently defined tags are:
MDNLink SerialNumber SerNum of MDN received for this message MDNLink SerialNumber SerNum of MDN received for this message
DNSLink SerialNumber SerNUm of DSN received for this message DNSLink SerialNumber SerNUm of DSN received for this message
ThreadHeads SerialNumberList MD5Hash's of all (so far discovered) ThreadHeads SerialNumberList MD5Hash's of all (so far discovered)
_top-level thread tqparents_ _top-level thread parents_
ThreadParents SerialNumberList MD5Hash's of all (so far discovered) ThreadParents SerialNumberList MD5Hash's of all (so far discovered)
thread tqparents thread parents
"String" is either Utf8String or (Utf16String or Latin1String), "String" is either Utf8String or (Utf16String or Latin1String),
@ -589,16 +589,16 @@ Strategy:
case. These are messages that have neither an In-Reply-To header nor case. These are messages that have neither an In-Reply-To header nor
a References header and have a subject that is not prefixed. a References header and have a subject that is not prefixed.
In case there is a perfect tqparent, the current sort cache item is In case there is a perfect tqparent, the current sort cache item is
appended to the tqparents list of unsorted tqchildren, or to that of appended to the parents list of unsorted tqchildren, or to that of
root, if there is not. A sort cache item is created in the mSortCache root, if there is not. A sort cache item is created in the mSortCache
for the tqparent, if it is not already there. Messages with a tqparent of for the tqparent, if it is not already there. Messages with a tqparent of
-1 are appended to the "untqparented" list, which is later traversed and -1 are appended to the "unparented" list, which is later traversed and
its elements threaded. Messages with -2 as the tqparent are tqchildren of its elements threaded. Messages with -2 as the tqparent are tqchildren of
root as well, as noted above, and will remain so. root as well, as noted above, and will remain so.
Once the end of the file is reached, we should have a nicely filled Once the end of the file is reached, we should have a nicely filled
mSortCache, containing a sort cache item for each message that was in the mSortCache, containing a sort cache item for each message that was in the
sorted file. Messages with perfect tqparents know about them, top level sorted file. Messages with perfect parents know about them, top level
messages know about that as well, all others are on a list and will be messages know about that as well, all others are on a list and will be
threaded later. threaded later.
@ -608,16 +608,16 @@ Strategy:
to mFolder->count() are looked at and a SortCacheItem is created for the to mFolder->count() are looked at and a SortCacheItem is created for the
ones that do not have one yet. This is where all sort cache items are created ones that do not have one yet. This is where all sort cache items are created
if there was no sorted file. The items created here are by definition un- if there was no sorted file. The items created here are by definition un-
sorted as well as untqparented. On creation their sort key is figured out as sorted as well as unparented. On creation their sort key is figured out as
well. well.
The next step is finding tqparents for those messages that are either new, or The next step is finding parents for those messages that are either new, or
had a tqparent of -1 in the .sorted file. To that end, a dict of all sort had a tqparent of -1 in the .sorted file. To that end, a dict of all sort
cache items indexed by the md5 hash of their messsage id headers is created, cache items indexed by the md5 hash of their messsage id headers is created,
that will be used for looking up sort cache items by message id. The list of that will be used for looking up sort cache items by message id. The list of
yet untqparented messages is then traversed and findParent() called for each yet unparented messages is then traversed and findParent() called for each
element wihch checks In-Reply-To and References headers and looks up the element wihch checks In-Reply-To and References headers and looks up the
sort cache item of those tqparents in the above mentioned dict. Should none be sort cache item of those parents in the above mentioned dict. Should none be
found, the item is added to a second list the items of which will be subject found, the item is added to a second list the items of which will be subject
threaded. threaded.
@ -646,7 +646,7 @@ Strategy:
the messages that are now top-level, the current thread heads, so to speak, the messages that are now top-level, the current thread heads, so to speak,
are collected into a second dict ( QDict< QPtrList< SortCacheItem > > ) are collected into a second dict ( QDict< QPtrList< SortCacheItem > > )
that contains for each different subject an entry holding a list of (so far that contains for each different subject an entry holding a list of (so far
top level) messages with that subject, that are potential tqparents for top level) messages with that subject, that are potential parents for
threading by subjects. These lists are sorted by date, so the tqparent closest threading by subjects. These lists are sorted by date, so the tqparent closest
by date can be chosen. Sorting of these lists happens via insertion sort by date can be chosen. Sorting of these lists happens via insertion sort
while they are built because not only are they expected to be short (apart while they are built because not only are they expected to be short (apart
@ -709,13 +709,13 @@ What happens when a message arrives in the folder?
thread, those status bits are inherited from the tqparent. The message is also thread, those status bits are inherited from the tqparent. The message is also
added to the dict of header items, the index of messages by message id and, added to the dict of header items, the index of messages by message id and,
if applicable and if the message is threaded at top level, to the list of if applicable and if the message is threaded at top level, to the list of
potential tqparents for subject threading. potential parents for subject threading.
After those house keeping tasks are performed, the list of as of yet imper- After those house keeping tasks are performed, the list of as of yet imper-
fectly threaded messages is traversed and our newly arrived message is fectly threaded messages is traversed and our newly arrived message is
considered as a new tqparent for each item on it. This is especially important considered as a new tqparent for each item on it. This is especially important
to ensure that tqparents arriving out of order after their tqchildren still end to ensure that parents arriving out of order after their tqchildren still end
up as tqparents. If necessary, the entries in the .sorted file of rethreaded up as parents. If necessary, the entries in the .sorted file of rethreaded
messages are updated. An entry for the new message itself is appended to the messages are updated. An entry for the new message itself is appended to the
.sorted file as well. .sorted file as well.

@ -358,11 +358,11 @@ void AccountManager::checkMail( bool _interactive )
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
void AccountManager::singleInvalidateIMAPFolders(KMAccount *account) { void AccountManager::singleInvalidateIMAPFolders(KMAccount *account) {
account->tqinvalidateIMAPFolders(); account->invalidateIMAPFolders();
} }
void AccountManager::tqinvalidateIMAPFolders() void AccountManager::invalidateIMAPFolders()
{ {
for ( AccountList::ConstIterator it( mAcctList.begin() ), end( mAcctList.end() ); it != end; ++it ) for ( AccountList::ConstIterator it( mAcctList.begin() ), end( mAcctList.end() ); it != end; ++it )
singleInvalidateIMAPFolders( *it ); singleInvalidateIMAPFolders( *it );

@ -83,7 +83,7 @@ public:
void checkMail( bool interactive = true ); void checkMail( bool interactive = true );
/** Delete all IMAP folders and resync them */ /** Delete all IMAP folders and resync them */
void tqinvalidateIMAPFolders(); void invalidateIMAPFolders();
TQStringList getAccounts() const; TQStringList getAccounts() const;

@ -116,7 +116,7 @@ namespace KMail {
// check whether to load this part or not: // check whether to load this part or not:
// look at the basic list, ask the subclass and check the tqparent // look at the basic list, ask the subclass and check the tqparent
if ( mBasicList.tqcontains( part->originalContentTypeStr() ) || if ( mBasicList.tqcontains( part->originalContentTypeStr() ) ||
tqparentNeedsLoading( part ) || parentNeedsLoading( part ) ||
addPartToList( part ) ) addPartToList( part ) )
{ {
if ( part->typeStr() != "MULTIPART" || if ( part->typeStr() != "MULTIPART" ||
@ -137,7 +137,7 @@ namespace KMail {
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
bool BodyVisitor::tqparentNeedsLoading( KMMessagePart *msgPart ) bool BodyVisitor::parentNeedsLoading( KMMessagePart *msgPart )
{ {
KMMessagePart *part = msgPart; KMMessagePart *part = msgPart;
while ( part ) while ( part )

@ -60,10 +60,10 @@ namespace KMail {
protected: protected:
/** /**
* Checks if one of the tqparents needs loaded tqchildren * Checks if one of the parents needs loaded tqchildren
* This is e.g. needed for multipart/signed where all parts have to be loaded * This is e.g. needed for multipart/signed where all parts have to be loaded
*/ */
static bool tqparentNeedsLoading( KMMessagePart * part ); static bool parentNeedsLoading( KMMessagePart * part );
protected: protected:
TQPtrList<KMMessagePart> mParts; TQPtrList<KMMessagePart> mParts;

@ -549,11 +549,11 @@ void CachedImapJob::slotAddNextSubfolder( KIO::Job * job )
return; return;
} else { } else {
KMFolderCachedImap* storage = static_cast<KMFolderCachedImap*>( (*it).current->storage() ); KMFolderCachedImap* storage = static_cast<KMFolderCachedImap*>( (*it).current->storage() );
KMFolderCachedImap* tqparentStorage = static_cast<KMFolderCachedImap*>( (*it).tqparent->storage() ); KMFolderCachedImap* parentStorage = static_cast<KMFolderCachedImap*>( (*it).tqparent->storage() );
Q_ASSERT( storage ); Q_ASSERT( storage );
Q_ASSERT( tqparentStorage ); Q_ASSERT( parentStorage );
if ( storage->imapPath().isEmpty() ) { if ( storage->imapPath().isEmpty() ) {
TQString path = mAccount->createImapPath( tqparentStorage->imapPath(), storage->folder()->name() ); TQString path = mAccount->createImapPath( parentStorage->imapPath(), storage->folder()->name() );
if ( !storage->imapPathForCreation().isEmpty() ) if ( !storage->imapPathForCreation().isEmpty() )
path = storage->imapPathForCreation(); path = storage->imapPathForCreation();
storage->setImapPath( path ); storage->setImapPath( path );

@ -154,5 +154,5 @@ However, there may be local rules that require you to turn this option on. When
<tabstop>mAutoEncrypt</tabstop> <tabstop>mAutoEncrypt</tabstop>
<tabstop>mNeverEncryptWhenSavingInDrafts</tabstop> <tabstop>mNeverEncryptWhenSavingInDrafts</tabstop>
</tabstops> </tabstops>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
</UI> </UI>

@ -3020,7 +3020,7 @@ void ComposerPage::PhrasesTab::saveActiveLanguageItem() {
void ComposerPage::PhrasesTab::slotNewLanguage() void ComposerPage::PhrasesTab::slotNewLanguage()
{ {
NewLanguageDialog dialog( mLanguageList, tqparentWidget(), "New", true ); NewLanguageDialog dialog( mLanguageList, parentWidget(), "New", true );
if ( dialog.exec() == TQDialog::Accepted ) slotAddNewLanguage( dialog.language() ); if ( dialog.exec() == TQDialog::Accepted ) slotAddNewLanguage( dialog.language() );
} }

@ -269,10 +269,10 @@ TQString LanguageComboBox::language() const
void LanguageComboBox::setLanguage( const TQString & language ) void LanguageComboBox::setLanguage( const TQString & language )
{ {
TQString tqparenthizedLanguage = TQString::tqfromLatin1("(%1)").tqarg( language ); TQString parenthizedLanguage = TQString::tqfromLatin1("(%1)").tqarg( language );
for (int i = 0; i < count(); i++) for (int i = 0; i < count(); i++)
// ### FIXME: use .endWith(): // ### FIXME: use .endWith():
if ( text(i).tqfind( tqparenthizedLanguage ) >= 0 ) { if ( text(i).tqfind( parenthizedLanguage ) >= 0 ) {
setCurrentItem(i); setCurrentItem(i);
return; return;
} }

@ -355,7 +355,7 @@
<slot>mAdd_clicked()</slot> <slot>mAdd_clicked()</slot>
<slot>mRemove_clicked()</slot> <slot>mRemove_clicked()</slot>
</Q_SLOTS> </Q_SLOTS>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
<includehints> <includehints>
<includehint>klineedit.h</includehint> <includehint>klineedit.h</includehint>
<includehint>kpushbutton.h</includehint> <includehint>kpushbutton.h</includehint>

@ -49,13 +49,13 @@
using namespace KMail; using namespace KMail;
EditorWatcher::EditorWatcher(const KURL & url, const TQString &mimeType, bool openWith, EditorWatcher::EditorWatcher(const KURL & url, const TQString &mimeType, bool openWith,
TQObject * tqparent, TQWidget *tqparentWidget) : TQObject * tqparent, TQWidget *parentWidget) :
TQObject( tqparent ), TQObject( tqparent ),
mUrl( url ), mUrl( url ),
mMimeType( mimeType ), mMimeType( mimeType ),
mOpenWith( openWith ), mOpenWith( openWith ),
mEditor( 0 ), mEditor( 0 ),
mParentWidget( tqparentWidget ), mParentWidget( parentWidget ),
mHaveInotify( false ), mHaveInotify( false ),
mFileOpen( false ), mFileOpen( false ),
mEditorRunning( false ), mEditorRunning( false ),

@ -44,11 +44,11 @@ class EditorWatcher : public TQObject
* Constructs an EditorWatcher. * Constructs an EditorWatcher.
* @param tqparent the tqparent object of this EditorWatcher, which will take care of deleting * @param tqparent the tqparent object of this EditorWatcher, which will take care of deleting
* this EditorWatcher if the tqparent is deleted. * this EditorWatcher if the tqparent is deleted.
* @param tqparentWidget the tqparent widget of this EditorWatcher, which will be used as the tqparent * @param parentWidget the tqparent widget of this EditorWatcher, which will be used as the tqparent
* widget for message dialogs. * widget for message dialogs.
*/ */
EditorWatcher( const KURL &url, const TQString &mimeType, bool openWith, EditorWatcher( const KURL &url, const TQString &mimeType, bool openWith,
TQObject *tqparent, TQWidget *tqparentWidget ); TQObject *tqparent, TQWidget *parentWidget );
bool start(); bool start();
bool fileChanged() const { return mFileModified; } bool fileChanged() const { return mFileModified; }
signals: signals:

@ -363,7 +363,7 @@ KMail::FolderDiaACLTab::FolderDiaACLTab( KMFolderDialog* dlg, TQWidget* tqparent
connect( this, TQT_SIGNAL( changed(bool) ), TQT_SLOT( slotChanged(bool) ) ); connect( this, TQT_SIGNAL( changed(bool) ), TQT_SLOT( slotChanged(bool) ) );
} }
// Warning before save() this will return the url of the _tqparent_ folder, when creating a new one // Warning before save() this will return the url of the _parent_ folder, when creating a new one
KURL KMail::FolderDiaACLTab::imapURL() const KURL KMail::FolderDiaACLTab::imapURL() const
{ {
KURL url = mImapAccount->getUrl(); KURL url = mImapAccount->getUrl();
@ -398,9 +398,9 @@ void KMail::FolderDiaACLTab::load()
if ( mDlg->folder() ) { if ( mDlg->folder() ) {
// existing folder // existing folder
initializeWithValuesFromFolder( mDlg->folder() ); initializeWithValuesFromFolder( mDlg->folder() );
} else if ( mDlg->tqparentFolder() ) { } else if ( mDlg->parentFolder() ) {
// new folder // new folder
initializeWithValuesFromFolder( mDlg->tqparentFolder() ); initializeWithValuesFromFolder( mDlg->parentFolder() );
mChanged = true; // ensure that saving happens mChanged = true; // ensure that saving happens
} }
@ -421,7 +421,7 @@ void KMail::FolderDiaACLTab::load()
mUserIdFormat = UserName; mUserIdFormat = UserName;
if ( mFolderType == KMFolderTypeCachedImap ) { if ( mFolderType == KMFolderTypeCachedImap ) {
KMFolder* folder = mDlg->folder() ? mDlg->folder() : mDlg->tqparentFolder(); KMFolder* folder = mDlg->folder() ? mDlg->folder() : mDlg->parentFolder();
KMFolderCachedImap* folderImap = static_cast<KMFolderCachedImap*>( folder->storage() ); KMFolderCachedImap* folderImap = static_cast<KMFolderCachedImap*>( folder->storage() );
if ( mUserRightsState == KMail::ACLJobs::FetchFailed || if ( mUserRightsState == KMail::ACLJobs::FetchFailed ||
folderImap->aclListState() == KMail::ACLJobs::FetchFailed ) { folderImap->aclListState() == KMail::ACLJobs::FetchFailed ) {
@ -450,7 +450,7 @@ void KMail::FolderDiaACLTab::load()
mLabel->setText( i18n( "Error: no IMAP account defined for this folder" ) ); mLabel->setText( i18n( "Error: no IMAP account defined for this folder" ) );
return; return;
} }
KMFolder* folder = mDlg->folder() ? mDlg->folder() : mDlg->tqparentFolder(); KMFolder* folder = mDlg->folder() ? mDlg->folder() : mDlg->parentFolder();
if ( folder && folder->storage() == mImapAccount->rootFolder() ) if ( folder && folder->storage() == mImapAccount->rootFolder() )
return; // nothing to be done for the (virtual) account folder return; // nothing to be done for the (virtual) account folder
mLabel->setText( i18n( "Connecting to server %1, please wait..." ).tqarg( mImapAccount->host() ) ); mLabel->setText( i18n( "Connecting to server %1, please wait..." ).tqarg( mImapAccount->host() ) );
@ -481,7 +481,7 @@ void KMail::FolderDiaACLTab::slotConnectionResult( int errorCode, const TQString
if ( mUserRightsState != KMail::ACLJobs::Ok ) { if ( mUserRightsState != KMail::ACLJobs::Ok ) {
connect( mImapAccount, TQT_SIGNAL( receivedUserRights( KMFolder* ) ), connect( mImapAccount, TQT_SIGNAL( receivedUserRights( KMFolder* ) ),
this, TQT_SLOT( slotReceivedUserRights( KMFolder* ) ) ); this, TQT_SLOT( slotReceivedUserRights( KMFolder* ) ) );
KMFolder* folder = mDlg->folder() ? mDlg->folder() : mDlg->tqparentFolder(); KMFolder* folder = mDlg->folder() ? mDlg->folder() : mDlg->parentFolder();
mImapAccount->getUserRights( folder, mImapPath ); mImapAccount->getUserRights( folder, mImapPath );
} }
else else
@ -495,7 +495,7 @@ void KMail::FolderDiaACLTab::slotReceivedUserRights( KMFolder* folder )
return; return;
} }
if ( folder == mDlg->folder() ? mDlg->folder() : mDlg->tqparentFolder() ) { if ( folder == mDlg->folder() ? mDlg->folder() : mDlg->parentFolder() ) {
KMFolderImap* folderImap = static_cast<KMFolderImap*>( folder->storage() ); KMFolderImap* folderImap = static_cast<KMFolderImap*>( folder->storage() );
mUserRights = folderImap->userRights(); mUserRights = folderImap->userRights();
mUserRightsState = folderImap->userRightsState(); mUserRightsState = folderImap->userRightsState();
@ -506,14 +506,14 @@ void KMail::FolderDiaACLTab::slotReceivedUserRights( KMFolder* folder )
void KMail::FolderDiaACLTab::startListing() void KMail::FolderDiaACLTab::startListing()
{ {
// List ACLs of folder - or its tqparent, if creating a new folder // List ACLs of folder - or its tqparent, if creating a new folder
mImapAccount->getACL( mDlg->folder() ? mDlg->folder() : mDlg->tqparentFolder(), mImapPath ); mImapAccount->getACL( mDlg->folder() ? mDlg->folder() : mDlg->parentFolder(), mImapPath );
connect( mImapAccount, TQT_SIGNAL(receivedACL( KMFolder*, KIO::Job*, const KMail::ACLList& )), connect( mImapAccount, TQT_SIGNAL(receivedACL( KMFolder*, KIO::Job*, const KMail::ACLList& )),
this, TQT_SLOT(slotReceivedACL( KMFolder*, KIO::Job*, const KMail::ACLList& )) ); this, TQT_SLOT(slotReceivedACL( KMFolder*, KIO::Job*, const KMail::ACLList& )) );
} }
void KMail::FolderDiaACLTab::slotReceivedACL( KMFolder* folder, KIO::Job* job, const KMail::ACLList& aclList ) void KMail::FolderDiaACLTab::slotReceivedACL( KMFolder* folder, KIO::Job* job, const KMail::ACLList& aclList )
{ {
if ( folder == ( mDlg->folder() ? mDlg->folder() : mDlg->tqparentFolder() ) ) { if ( folder == ( mDlg->folder() ? mDlg->folder() : mDlg->parentFolder() ) ) {
disconnect( mImapAccount, TQT_SIGNAL(receivedACL( KMFolder*, KIO::Job*, const KMail::ACLList& )), disconnect( mImapAccount, TQT_SIGNAL(receivedACL( KMFolder*, KIO::Job*, const KMail::ACLList& )),
this, TQT_SLOT(slotReceivedACL( KMFolder*, KIO::Job*, const KMail::ACLList& )) ); this, TQT_SLOT(slotReceivedACL( KMFolder*, KIO::Job*, const KMail::ACLList& )) );
@ -723,15 +723,15 @@ bool KMail::FolderDiaACLTab::save()
mACLList = aclList; mACLList = aclList;
KMFolderImap* tqparentImap = mDlg->tqparentFolder() ? static_cast<KMFolderImap*>( mDlg->tqparentFolder()->storage() ) : 0; KMFolderImap* parentImap = mDlg->parentFolder() ? static_cast<KMFolderImap*>( mDlg->parentFolder()->storage() ) : 0;
if ( mDlg->isNewFolder() ) { if ( mDlg->isNewFolder() ) {
// The folder isn't created yet, wait for it // The folder isn't created yet, wait for it
// It's a two-step process (mkdir+listDir) so we wait for the dir listing to be complete // It's a two-step process (mkdir+listDir) so we wait for the dir listing to be complete
connect( tqparentImap, TQT_SIGNAL( directoryListingFinished(KMFolderImap*) ), connect( parentImap, TQT_SIGNAL( directoryListingFinished(KMFolderImap*) ),
this, TQT_SLOT( slotDirectoryListingFinished(KMFolderImap*) ) ); this, TQT_SLOT( slotDirectoryListingFinished(KMFolderImap*) ) );
} else { } else {
slotDirectoryListingFinished( tqparentImap ); slotDirectoryListingFinished( parentImap );
} }
return true; return true;
} }
@ -739,7 +739,7 @@ bool KMail::FolderDiaACLTab::save()
void KMail::FolderDiaACLTab::slotDirectoryListingFinished(KMFolderImap* f) void KMail::FolderDiaACLTab::slotDirectoryListingFinished(KMFolderImap* f)
{ {
if ( !f || if ( !f ||
f != static_cast<KMFolderImap*>( mDlg->tqparentFolder()->storage() ) || f != static_cast<KMFolderImap*>( mDlg->parentFolder()->storage() ) ||
!mDlg->folder() || !mDlg->folder() ||
!mDlg->folder()->storage() ) { !mDlg->folder()->storage() ) {
emit readyForAccept(); emit readyForAccept();

@ -92,9 +92,9 @@ void KMail::FolderDiaQuotaTab::load()
if ( mDlg->folder() ) { if ( mDlg->folder() ) {
// existing folder // existing folder
initializeWithValuesFromFolder( mDlg->folder() ); initializeWithValuesFromFolder( mDlg->folder() );
} else if ( mDlg->tqparentFolder() ) { } else if ( mDlg->parentFolder() ) {
// new folder // new folder
initializeWithValuesFromFolder( mDlg->tqparentFolder() ); initializeWithValuesFromFolder( mDlg->parentFolder() );
} }
if ( mFolderType == KMFolderTypeCachedImap ) { if ( mFolderType == KMFolderTypeCachedImap ) {
@ -114,7 +114,7 @@ void KMail::FolderDiaQuotaTab::load()
mLabel->setText( i18n( "Error: no IMAP account defined for this folder" ) ); mLabel->setText( i18n( "Error: no IMAP account defined for this folder" ) );
return; return;
} }
KMFolder* folder = mDlg->folder() ? mDlg->folder() : mDlg->tqparentFolder(); KMFolder* folder = mDlg->folder() ? mDlg->folder() : mDlg->parentFolder();
if ( folder && folder->storage() == mImapAccount->rootFolder() ) if ( folder && folder->storage() == mImapAccount->rootFolder() )
return; // nothing to be done for the (virtual) account folder return; // nothing to be done for the (virtual) account folder
mLabel->setText( i18n( "Connecting to server %1, please wait..." ).tqarg( mImapAccount->host() ) ); mLabel->setText( i18n( "Connecting to server %1, please wait..." ).tqarg( mImapAccount->host() ) );
@ -144,7 +144,7 @@ void KMail::FolderDiaQuotaTab::slotConnectionResult( int errorCode, const TQStri
} }
connect( mImapAccount, TQT_SIGNAL( receivedStorageQuotaInfo( KMFolder*, KIO::Job*, const KMail::QuotaInfo& ) ), connect( mImapAccount, TQT_SIGNAL( receivedStorageQuotaInfo( KMFolder*, KIO::Job*, const KMail::QuotaInfo& ) ),
this, TQT_SLOT( slotReceivedQuotaInfo( KMFolder*, KIO::Job*, const KMail::QuotaInfo& ) ) ); this, TQT_SLOT( slotReceivedQuotaInfo( KMFolder*, KIO::Job*, const KMail::QuotaInfo& ) ) );
KMFolder* folder = mDlg->folder() ? mDlg->folder() : mDlg->tqparentFolder(); KMFolder* folder = mDlg->folder() ? mDlg->folder() : mDlg->parentFolder();
mImapAccount->getStorageQuotaInfo( folder, mImapPath ); mImapAccount->getStorageQuotaInfo( folder, mImapPath );
} }
@ -152,7 +152,7 @@ void KMail::FolderDiaQuotaTab::slotReceivedQuotaInfo( KMFolder* folder,
KIO::Job* job, KIO::Job* job,
const KMail::QuotaInfo& info ) const KMail::QuotaInfo& info )
{ {
if ( folder == mDlg->folder() ? mDlg->folder() : mDlg->tqparentFolder() ) { if ( folder == mDlg->folder() ? mDlg->folder() : mDlg->parentFolder() ) {
//KMFolderImap* folderImap = static_cast<KMFolderImap*>( folder->storage() ); //KMFolderImap* folderImap = static_cast<KMFolderImap*>( folder->storage() );
disconnect( mImapAccount, TQT_SIGNAL(receivedStorageQuotaInfo( KMFolder*, KIO::Job*, const KMail::QuotaInfo& )), disconnect( mImapAccount, TQT_SIGNAL(receivedStorageQuotaInfo( KMFolder*, KIO::Job*, const KMail::QuotaInfo& )),

@ -633,6 +633,6 @@
<Q_SLOTS> <Q_SLOTS>
<slot access="protected">slotChangeIcon( TQString )</slot> <slot access="protected">slotChangeIcon( TQString )</slot>
</Q_SLOTS> </Q_SLOTS>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
<tqlayoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/> <layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
</UI> </UI>

@ -977,21 +977,21 @@ void FolderStorage::readFolderIdsFile()
{ {
if ( !mExportsSernums ) return; if ( !mExportsSernums ) return;
if ( KMMsgDict::mutableInstance()->readFolderIds( *this ) == -1 ) { if ( KMMsgDict::mutableInstance()->readFolderIds( *this ) == -1 ) {
tqinvalidateFolder(); invalidateFolder();
} }
if ( !KMMsgDict::mutableInstance()->hasFolderIds( *this ) ) { if ( !KMMsgDict::mutableInstance()->hasFolderIds( *this ) ) {
tqinvalidateFolder(); invalidateFolder();
} }
} }
void FolderStorage::tqinvalidateFolder() void FolderStorage::invalidateFolder()
{ {
if ( !mExportsSernums ) return; if ( !mExportsSernums ) return;
unlink(TQFile::encodeName( indexLocation()) + ".sorted"); unlink(TQFile::encodeName( indexLocation()) + ".sorted");
unlink(TQFile::encodeName( indexLocation()) + ".ids"); unlink(TQFile::encodeName( indexLocation()) + ".ids");
fillMessageDict(); fillMessageDict();
KMMsgDict::mutableInstance()->writeFolderIds( *this ); KMMsgDict::mutableInstance()->writeFolderIds( *this );
emit tqinvalidated( folder() ); emit invalidated( folder() );
} }

@ -438,8 +438,8 @@ signals:
/** Emitted when the folder was closed and ticket owners have to reopen */ /** Emitted when the folder was closed and ticket owners have to reopen */
void closed( KMFolder* ); void closed( KMFolder* );
/** Emitted when the serial numbers of this folder were tqinvalidated. */ /** Emitted when the serial numbers of this folder were invalidated. */
void tqinvalidated( KMFolder * ); void invalidated( KMFolder * );
/** Emitted when the name of the folder changes. */ /** Emitted when the name of the folder changes. */
void nameChanged(); void nameChanged();
@ -554,7 +554,7 @@ protected:
friend class KMMsgDict; friend class KMMsgDict;
/** Inserts messages into the message dictionary. The messages will get /** Inserts messages into the message dictionary. The messages will get
* new serial numbers. This is only used on newly appeared folders, where * new serial numbers. This is only used on newly appeared folders, where
* there is no .ids file yet, or when that has been tqinvalidated. */ * there is no .ids file yet, or when that has been invalidated. */
virtual void fillMessageDict() {} virtual void fillMessageDict() {}
/** Read the on-disk cache of serial numbers of messages in this store /** Read the on-disk cache of serial numbers of messages in this store
@ -584,10 +584,10 @@ friend class KMMsgDict;
* @p sernum */ * @p sernum */
void replaceMsgSerNum( unsigned long sernum, KMMsgBase* msg, int idx ); void replaceMsgSerNum( unsigned long sernum, KMMsgBase* msg, int idx );
/** Called when serial numbers for a folder are tqinvalidated, /** Called when serial numbers for a folder are invalidated,
tqinvalidates/recreates data structures dependent on the invalidates/recreates data structures dependent on the
serial numbers for this folder */ serial numbers for this folder */
void tqinvalidateFolder(); void invalidateFolder();
/** Called by KMFolder::remove() to delete the actual contents. /** Called by KMFolder::remove() to delete the actual contents.
At the time of the call the folder has already been closed, and At the time of the call the folder has already been closed, and

@ -28,18 +28,18 @@
using namespace KMail; using namespace KMail;
using namespace FolderUtil; using namespace FolderUtil;
KMFolder *KMail::FolderUtil::createSubFolder( KMFolder *tqparentFolder, KMFolderDir *tqparentDir, KMFolder *KMail::FolderUtil::createSubFolder( KMFolder *parentFolder, KMFolderDir *parentDir,
const TQString &folderName, const TQString &namespaceName, const TQString &folderName, const TQString &namespaceName,
KMFolderType localFolderType ) KMFolderType localFolderType )
{ {
KMFolder *newFolder = 0; KMFolder *newFolder = 0;
if ( tqparentFolder && tqparentFolder->folderType() == KMFolderTypeImap ) { if ( parentFolder && parentFolder->folderType() == KMFolderTypeImap ) {
KMFolderImap* selectedStorage = static_cast<KMFolderImap*>( tqparentFolder->storage() ); KMFolderImap* selectedStorage = static_cast<KMFolderImap*>( parentFolder->storage() );
KMAcctImap *anAccount = selectedStorage->account(); KMAcctImap *anAccount = selectedStorage->account();
// check if a connection is available BEFORE creating the folder // check if a connection is available BEFORE creating the folder
if (anAccount->makeConnection() == ImapAccountBase::Connected) { if (anAccount->makeConnection() == ImapAccountBase::Connected) {
newFolder = kmkernel->imapFolderMgr()->createFolder( folderName, false, KMFolderTypeImap, tqparentDir ); newFolder = kmkernel->imapFolderMgr()->createFolder( folderName, false, KMFolderTypeImap, parentDir );
if ( newFolder ) { if ( newFolder ) {
TQString imapPath, tqparent; TQString imapPath, tqparent;
if ( !namespaceName.isEmpty() ) { if ( !namespaceName.isEmpty() ) {
@ -52,15 +52,15 @@ KMFolder *KMail::FolderUtil::createSubFolder( KMFolder *tqparentFolder, KMFolder
KMFolderImap* newStorage = static_cast<KMFolderImap*>( newFolder->storage() ); KMFolderImap* newStorage = static_cast<KMFolderImap*>( newFolder->storage() );
selectedStorage->createFolder(folderName, tqparent); // create it on the server selectedStorage->createFolder(folderName, tqparent); // create it on the server
newStorage->initializeFrom( selectedStorage, imapPath, TQString() ); newStorage->initializeFrom( selectedStorage, imapPath, TQString() );
static_cast<KMFolderImap*>(tqparentFolder->storage())->setAccount( selectedStorage->account() ); static_cast<KMFolderImap*>(parentFolder->storage())->setAccount( selectedStorage->account() );
return newFolder; return newFolder;
} }
} }
} else if ( tqparentFolder && tqparentFolder->folderType() == KMFolderTypeCachedImap ) { } else if ( parentFolder && parentFolder->folderType() == KMFolderTypeCachedImap ) {
newFolder = kmkernel->dimapFolderMgr()->createFolder( folderName, false, KMFolderTypeCachedImap, newFolder = kmkernel->dimapFolderMgr()->createFolder( folderName, false, KMFolderTypeCachedImap,
tqparentDir ); parentDir );
if ( newFolder ) { if ( newFolder ) {
KMFolderCachedImap* selectedStorage = static_cast<KMFolderCachedImap*>( tqparentFolder->storage() ); KMFolderCachedImap* selectedStorage = static_cast<KMFolderCachedImap*>( parentFolder->storage() );
KMFolderCachedImap* newStorage = static_cast<KMFolderCachedImap*>( newFolder->storage() ); KMFolderCachedImap* newStorage = static_cast<KMFolderCachedImap*>( newFolder->storage() );
newStorage->initializeFrom( selectedStorage ); newStorage->initializeFrom( selectedStorage );
if ( !namespaceName.isEmpty() ) { if ( !namespaceName.isEmpty() ) {
@ -75,7 +75,7 @@ KMFolder *KMail::FolderUtil::createSubFolder( KMFolder *tqparentFolder, KMFolder
// local folder // local folder
Q_ASSERT( localFolderType == KMFolderTypeMaildir || localFolderType == KMFolderTypeMbox ); Q_ASSERT( localFolderType == KMFolderTypeMaildir || localFolderType == KMFolderTypeMbox );
newFolder = kmkernel->folderMgr()->createFolder( folderName, false, localFolderType, newFolder = kmkernel->folderMgr()->createFolder( folderName, false, localFolderType,
tqparentDir ); parentDir );
return newFolder; return newFolder;
} }

@ -35,16 +35,16 @@ namespace FolderUtil
/** /**
* Low-level function to create a subfolder for a folder of any kind. * Low-level function to create a subfolder for a folder of any kind.
* *
* @param tqparentFolder tqparent folder of the folder that should be created. Can be 0 in case of * @param parentFolder tqparent folder of the folder that should be created. Can be 0 in case of
* local folders * local folders
* @param tqparentDir tqparent folder directory, which should be the folder directory of tqparentFolder * @param parentDir tqparent folder directory, which should be the folder directory of parentFolder
* @param folderName the name the newly created folder should have * @param folderName the name the newly created folder should have
* @param namespaceName for (d)IMAP folders, the namespace the new folder should be in. Can be empty. * @param namespaceName for (d)IMAP folders, the namespace the new folder should be in. Can be empty.
* @param localFolderType for local folders, this determines if the folder should be MBOX or maildir * @param localFolderType for local folders, this determines if the folder should be MBOX or maildir
* *
* @return the newly created folder or 0 in case an error occured * @return the newly created folder or 0 in case an error occured
*/ */
KMFolder *createSubFolder( KMFolder *tqparentFolder, KMFolderDir *tqparentDir, KMFolder *createSubFolder( KMFolder *parentFolder, KMFolderDir *parentDir,
const TQString &folderName, const TQString &namespaceName, const TQString &folderName, const TQString &namespaceName,
KMFolderType localFolderType ); KMFolderType localFolderType );

@ -64,7 +64,7 @@ public:
~SortCacheItem() { if(mUnsortedChildren) free(mUnsortedChildren); } ~SortCacheItem() { if(mUnsortedChildren) free(mUnsortedChildren); }
/** The tqparent node of the item in the threading hierarchy. 0 if the item /** The tqparent node of the item in the threading hierarchy. 0 if the item
* is at top level, which is the default. Can only be set by tqparents. */ * is at top level, which is the default. Can only be set by parents. */
SortCacheItem *tqparent() const { return mParent; } SortCacheItem *tqparent() const { return mParent; }
/** /**
* Returs whether the item is so far imperfectly threaded. * Returs whether the item is so far imperfectly threaded.

@ -115,8 +115,8 @@ bool HeaderListQuickSearch::eventFilter( TQObject *watched, TQEvent *event )
if ( TQT_BASE_OBJECT(watched) == TQT_BASE_OBJECT(mStatusCombo) ) { if ( TQT_BASE_OBJECT(watched) == TQT_BASE_OBJECT(mStatusCombo) ) {
KMMainWidget *mainWidget = 0; KMMainWidget *mainWidget = 0;
// Travel up the tqparents list until we find the main widget // Travel up the parents list until we find the main widget
for ( TQWidget *curWidget = tqparentWidget(); curWidget; curWidget = curWidget->tqparentWidget() ) { for ( TQWidget *curWidget = parentWidget(); curWidget; curWidget = curWidget->parentWidget() ) {
mainWidget = ::tqqt_cast<KMMainWidget *>( curWidget ); mainWidget = ::tqqt_cast<KMMainWidget *>( curWidget );
if ( mainWidget ) if ( mainWidget )
break; break;

@ -417,7 +417,7 @@ namespace KMail {
{ {
// There isn't much point in asking the server about a user's rights on his own inbox, // There isn't much point in asking the server about a user's rights on his own inbox,
// it might not be the effective permissions (at least with Cyrus, one can admin his own inbox, // it might not be the effective permissions (at least with Cyrus, one can admin his own inbox,
// even after a SETACL that removes the admin permissions. Other imap servers aptqparently // even after a SETACL that removes the admin permissions. Other imap servers apparently
// don't even allow removing one's own admin permission, so this code won't hurt either). // don't even allow removing one's own admin permission, so this code won't hurt either).
if ( imapPath == "/INBOX/" ) { if ( imapPath == "/INBOX/" ) {
if ( tqparent->folderType() == KMFolderTypeImap ) if ( tqparent->folderType() == KMFolderTypeImap )
@ -1138,7 +1138,7 @@ namespace KMail {
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
void ImapAccountBase::constructParts( TQDataStream & stream, int count, KMMessagePart* tqparentKMPart, void ImapAccountBase::constructParts( TQDataStream & stream, int count, KMMessagePart* parentKMPart,
DwBodyPart * tqparent, const DwMessage * dwmsg ) DwBodyPart * tqparent, const DwMessage * dwmsg )
{ {
int tqchildren; int tqchildren;
@ -1146,7 +1146,7 @@ namespace KMail {
{ {
stream >> tqchildren; stream >> tqchildren;
KMMessagePart* part = new KMMessagePart( stream ); KMMessagePart* part = new KMMessagePart( stream );
part->setParent( tqparentKMPart ); part->setParent( parentKMPart );
mBodyPartList.append( part ); mBodyPartList.append( part );
kdDebug(5006) << "ImapAccountBase::constructParts - created id " << part->partSpecifier() kdDebug(5006) << "ImapAccountBase::constructParts - created id " << part->partSpecifier()
<< " of type " << part->originalContentTypeStr() << endl; << " of type " << part->originalContentTypeStr() << endl;
@ -1170,8 +1170,8 @@ namespace KMail {
} else } else
dwpart = 0; dwpart = 0;
if ( !tqparentKMPart ) if ( !parentKMPart )
tqparentKMPart = part; parentKMPart = part;
if (tqchildren > 0) if (tqchildren > 0)
{ {
@ -1186,7 +1186,7 @@ namespace KMail {
} }
KMMessagePart* newParentKMPart = part; KMMessagePart* newParentKMPart = part;
if ( part->partSpecifier().endsWith(".HEADER") ) // we don't want headers as tqparent if ( part->partSpecifier().endsWith(".HEADER") ) // we don't want headers as tqparent
newParentKMPart = tqparentKMPart; newParentKMPart = parentKMPart;
constructParts( stream, tqchildren, newParentKMPart, newtqparent, newmsg ); constructParts( stream, tqchildren, newParentKMPart, newtqparent, newmsg );
} }

@ -510,7 +510,7 @@ namespace KMail {
/** /**
* Build KMMessageParts and DwBodyParts from the bodystructure-stream * Build KMMessageParts and DwBodyParts from the bodystructure-stream
*/ */
void constructParts( TQDataStream & stream, int count, KMMessagePart* tqparentKMPart, void constructParts( TQDataStream & stream, int count, KMMessagePart* parentKMPart,
DwBodyPart * tqparent, const DwMessage * dwmsg ); DwBodyPart * tqparent, const DwMessage * dwmsg );
/** Migrate the prefix */ /** Migrate the prefix */

@ -65,7 +65,7 @@ public:
virtual ~ImapJob(); virtual ~ImapJob();
void setParentFolder( const KMFolderImap* tqparent ); void setParentFolder( const KMFolderImap* tqparent );
KPIM::ProgressItem* tqparentProgressItem() const { return mParentProgressItem; } KPIM::ProgressItem* parentProgressItem() const { return mParentProgressItem; }
void setParentProgressItem( KPIM::ProgressItem *p ) { mParentProgressItem = p; } void setParentProgressItem( KPIM::ProgressItem *p ) { mParentProgressItem = p; }
private slots: private slots:

@ -39,11 +39,11 @@
using namespace KMail; using namespace KMail;
KMail::ImportJob::ImportJob( TQWidget *tqparentWidget ) KMail::ImportJob::ImportJob( TQWidget *parentWidget )
: TQObject( tqparentWidget ), : TQObject( parentWidget ),
mArchive( 0 ), mArchive( 0 ),
mRootFolder( 0 ), mRootFolder( 0 ),
mParentWidget( tqparentWidget ), mParentWidget( parentWidget ),
mNumberOfImportedMessages( 0 ), mNumberOfImportedMessages( 0 ),
mCurrentFolder( 0 ), mCurrentFolder( 0 ),
mCurrentMessage( 0 ), mCurrentMessage( 0 ),
@ -280,19 +280,19 @@ static TQString folderNameForDirectoryName( const TQString &dirName )
return returnName; return returnName;
} }
KMFolder* KMail::ImportJob::getOrCreateSubFolder( KMFolder *tqparentFolder, const TQString &subFolderName, KMFolder* KMail::ImportJob::getOrCreateSubFolder( KMFolder *parentFolder, const TQString &subFolderName,
mode_t subFolderPermissions ) mode_t subFolderPermissions )
{ {
if ( !tqparentFolder->createChildFolder() ) { if ( !parentFolder->createChildFolder() ) {
abort( i18n( "Unable to create subfolder for folder '%1'." ).tqarg( tqparentFolder->name() ) ); abort( i18n( "Unable to create subfolder for folder '%1'." ).tqarg( parentFolder->name() ) );
return 0; return 0;
} }
KMFolder *subFolder = 0; KMFolder *subFolder = 0;
subFolder = dynamic_cast<KMFolder*>( tqparentFolder->child()->hasNamedFolder( subFolderName ) ); subFolder = dynamic_cast<KMFolder*>( parentFolder->child()->hasNamedFolder( subFolderName ) );
if ( !subFolder ) { if ( !subFolder ) {
subFolder = createSubFolder( tqparentFolder, subFolderName, subFolderPermissions ); subFolder = createSubFolder( parentFolder, subFolderName, subFolderPermissions );
} }
return subFolder; return subFolder;
} }

@ -56,7 +56,7 @@ class ImportJob : public TQObject
public: public:
explicit ImportJob( TQWidget *tqparentWidget = 0 ); explicit ImportJob( TQWidget *parentWidget = 0 );
~ImportJob(); ~ImportJob();
void start(); void start();
void setFile( const KURL &archiveFile ); void setFile( const KURL &archiveFile );
@ -87,7 +87,7 @@ class ImportJob : public TQObject
void queueFolders(); void queueFolders();
void importNextDirectory(); void importNextDirectory();
KMFolder* createSubFolder( KMFolder *tqparent, const TQString &folderName, mode_t permissions ); KMFolder* createSubFolder( KMFolder *tqparent, const TQString &folderName, mode_t permissions );
KMFolder* getOrCreateSubFolder( KMFolder *tqparentFolder, const TQString &subFolderName, KMFolder* getOrCreateSubFolder( KMFolder *parentFolder, const TQString &subFolderName,
mode_t subFolderPermissions ); mode_t subFolderPermissions );
void enqueueMessages( const KArchiveDirectory *dir, KMFolder *folder ); void enqueueMessages( const KArchiveDirectory *dir, KMFolder *folder );
void messageAdded(); void messageAdded();

@ -101,14 +101,14 @@ namespace Kleo {
\section Step 4: Get signing keys. \section Step 4: Get signing keys.
If, after key resolving, signing is still requested and If, after key resolving, signing is still requested and
aptqparently possible, you can get the result of all this by apparently possible, you can get the result of all this by
iterating over the available message formats and retrieving the iterating over the available message formats and retrieving the
set of signing keys to use with a call to \c signingKeys(). set of signing keys to use with a call to \c signingKeys().
\section Step 5: Get encrytion key sets. \section Step 5: Get encrytion key sets.
If after key resolving, encryption is still requested and If after key resolving, encryption is still requested and
aptqparently possible, you can get the result of all this by apparently possible, you can get the result of all this by
calling \c encryptionItems() with the current message format at calling \c encryptionItems() with the current message format at
hand as its argument. hand as its argument.

@ -451,7 +451,7 @@ TQString KMAccount::importPassword(const TQString &aStr)
return encryptStr(result); return encryptStr(result);
} }
void KMAccount::tqinvalidateIMAPFolders() void KMAccount::invalidateIMAPFolders()
{ {
// Default: Don't do anything. The IMAP account will handle it // Default: Don't do anything. The IMAP account will handle it
} }

@ -210,7 +210,7 @@ public:
/** /**
* If this account is a disconnected IMAP account, tqinvalidate it. * If this account is a disconnected IMAP account, tqinvalidate it.
*/ */
virtual void tqinvalidateIMAPFolders(); virtual void invalidateIMAPFolders();
/** /**
* Determines whether the account can be checked, currently. * Determines whether the account can be checked, currently.

@ -310,7 +310,7 @@ void KMAcctCachedImap::addLastUnreadMsgCount( const KMFolderCachedImap *folder,
void KMAcctCachedImap::readConfig( /*const*/ KConfig/*Base*/ & config ) { void KMAcctCachedImap::readConfig( /*const*/ KConfig/*Base*/ & config ) {
ImapAccountBase::readConfig( config ); ImapAccountBase::readConfig( config );
// Aptqparently this method is only ever called once (from KMKernel::init) so this is ok // Apparently this method is only ever called once (from KMKernel::init) so this is ok
mPreviouslyDeletedFolders = config.readListEntry( "deleted-folders" ); mPreviouslyDeletedFolders = config.readListEntry( "deleted-folders" );
mDeletedFolders.clear(); // but just in case... mDeletedFolders.clear(); // but just in case...
const TQStringList oldPaths = config.readListEntry( "renamed-folders-paths" ); const TQStringList oldPaths = config.readListEntry( "renamed-folders-paths" );
@ -336,12 +336,12 @@ void KMAcctCachedImap::writeConfig( KConfig/*Base*/ & config ) /*const*/ {
config.writeEntry( "groupwareType", mGroupwareType ); config.writeEntry( "groupwareType", mGroupwareType );
} }
void KMAcctCachedImap::tqinvalidateIMAPFolders() void KMAcctCachedImap::invalidateIMAPFolders()
{ {
tqinvalidateIMAPFolders( mFolder ); invalidateIMAPFolders( mFolder );
} }
void KMAcctCachedImap::tqinvalidateIMAPFolders( KMFolderCachedImap* folder ) void KMAcctCachedImap::invalidateIMAPFolders( KMFolderCachedImap* folder )
{ {
if( !folder || !folder->folder() ) if( !folder || !folder->folder() )
return; return;
@ -361,7 +361,7 @@ void KMAcctCachedImap::tqinvalidateIMAPFolders( KMFolderCachedImap* folder )
KMFolder *f = *it; KMFolder *f = *it;
if( f && f->folderType() == KMFolderTypeCachedImap ) { if( f && f->folderType() == KMFolderTypeCachedImap ) {
KMFolderCachedImap *cfolder = static_cast<KMFolderCachedImap*>(f->storage()); KMFolderCachedImap *cfolder = static_cast<KMFolderCachedImap*>(f->storage());
// This tqinvalidates the folder completely // This invalidates the folder completely
cfolder->setUidValidity("INVALID"); cfolder->setUidValidity("INVALID");
cfolder->writeUidCache(); cfolder->writeUidCache();
} }

@ -98,8 +98,8 @@ public:
/** /**
* Invalidate the local cache. * Invalidate the local cache.
*/ */
virtual void tqinvalidateIMAPFolders(); virtual void invalidateIMAPFolders();
virtual void tqinvalidateIMAPFolders( KMFolderCachedImap* ); virtual void invalidateIMAPFolders( KMFolderCachedImap* );
/** /**
* Remember that a folder got explicitely deleted - including all child folders * Remember that a folder got explicitely deleted - including all child folders

@ -60,10 +60,10 @@ using KRecentAddress::RecentAddresses;
typedef KParts::GenericFactory< KMailPart > KMailFactory; typedef KParts::GenericFactory< KMailPart > KMailFactory;
K_EXPORT_COMPONENT_FACTORY( libkmailpart, KMailFactory ) K_EXPORT_COMPONENT_FACTORY( libkmailpart, KMailFactory )
KMailPart::KMailPart(TQWidget *tqparentWidget, const char *widgetName, KMailPart::KMailPart(TQWidget *parentWidget, const char *widgetName,
TQObject *tqparent, const char *name, const TQStringList &) : TQObject *tqparent, const char *name, const TQStringList &) :
DCOPObject("KMailIface"), KParts::ReadOnlyPart(tqparent, name), DCOPObject("KMailIface"), KParts::ReadOnlyPart(tqparent, name),
mParentWidget( tqparentWidget ) mParentWidget( parentWidget )
{ {
kdDebug(5006) << "KMailPart()" << endl; kdDebug(5006) << "KMailPart()" << endl;
kdDebug(5006) << " InstanceName: " << kapp->instanceName() << endl; kdDebug(5006) << " InstanceName: " << kapp->instanceName() << endl;
@ -99,7 +99,7 @@ KMailPart::KMailPart(TQWidget *tqparentWidget, const char *widgetName,
kapp->dcopClient()->resume(); // Ok. We are ready for DCOP requests. kapp->dcopClient()->resume(); // Ok. We are ready for DCOP requests.
// create a canvas to insert our widget // create a canvas to insert our widget
TQWidget *canvas = new TQWidget(tqparentWidget, widgetName); TQWidget *canvas = new TQWidget(parentWidget, widgetName);
canvas->setFocusPolicy(TQ_ClickFocus); canvas->setFocusPolicy(TQ_ClickFocus);
setWidget(canvas); setWidget(canvas);
KGlobal::iconLoader()->addAppDir("kmail"); KGlobal::iconLoader()->addAppDir("kmail");
@ -231,7 +231,7 @@ void KMailPart::exit()
delete this; delete this;
} }
TQWidget* KMailPart::tqparentWidget() const TQWidget* KMailPart::parentWidget() const
{ {
return mParentWidget; return mParentWidget;
} }
@ -244,7 +244,7 @@ KMailStatusBarExtension::KMailStatusBarExtension( KMailPart *tqparent )
KMainWindow * KMailStatusBarExtension::mainWindow() const KMainWindow * KMailStatusBarExtension::mainWindow() const
{ {
return static_cast<KMainWindow*>( mParent->tqparentWidget() ); return static_cast<KMainWindow*>( mParent->parentWidget() );
} }
#include "kmail_part.moc" #include "kmail_part.moc"

@ -54,11 +54,11 @@ class KDE_EXPORT KMailPart: public KParts::ReadOnlyPart, virtual public KMailPar
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KMailPart(TQWidget *tqparentWidget, const char *widgetName, KMailPart(TQWidget *parentWidget, const char *widgetName,
TQObject *tqparent, const char *name, const TQStringList &); TQObject *tqparent, const char *name, const TQStringList &);
virtual ~KMailPart(); virtual ~KMailPart();
TQWidget* tqparentWidget() const; TQWidget* parentWidget() const;
static KAboutData *createAboutData(); static KAboutData *createAboutData();

@ -22,7 +22,7 @@
<Action name="file_print" /> <Action name="file_print" />
<Separator/> <Separator/>
<Action name="expire_all_folders" /> <Action name="expire_all_folders" />
<Action name="file_tqinvalidate_imap_cache"/> <Action name="file_invalidate_imap_cache"/>
<Action name="empty_trash"/> <Action name="empty_trash"/>
<Separator/> <Separator/>
<Action name="online_status" /> <Action name="online_status" />

@ -1702,16 +1702,16 @@ void KMailICalIfaceImpl::readConfig()
// Read remaining options // Read remaining options
const bool hideFolders = GlobalSettings::self()->hideGroupwareFolders(); const bool hideFolders = GlobalSettings::self()->hideGroupwareFolders();
TQString tqparentName = GlobalSettings::self()->theIMAPResourceFolderParent(); TQString parentName = GlobalSettings::self()->theIMAPResourceFolderParent();
// Find the folder tqparent // Find the folder tqparent
KMFolderDir* folderParentDir; KMFolderDir* folderParentDir;
KMFolderType folderType; KMFolderType folderType;
KMFolder* folderParent = kmkernel->findFolderById( tqparentName ); KMFolder* folderParent = kmkernel->findFolderById( parentName );
if( folderParent == 0 ) { if( folderParent == 0 ) {
// Parent folder not found. It was probably deleted. The user will have to // Parent folder not found. It was probably deleted. The user will have to
// configure things again. // configure things again.
kdDebug(5006) << "Groupware folder " << tqparentName << " not found. Groupware functionality disabled" << endl; kdDebug(5006) << "Groupware folder " << parentName << " not found. Groupware functionality disabled" << endl;
// Or maybe the inbox simply wasn't created on the first startup // Or maybe the inbox simply wasn't created on the first startup
KMAccount* account = kmkernel->acctMgr()->tqfind( GlobalSettings::self()->theIMAPResourceAccount() ); KMAccount* account = kmkernel->acctMgr()->tqfind( GlobalSettings::self()->theIMAPResourceAccount() );
Q_ASSERT( account ); Q_ASSERT( account );
@ -1771,12 +1771,12 @@ void KMailICalIfaceImpl::readConfig()
if( noneFound || mustFix ) { if( noneFound || mustFix ) {
TQString msg; TQString msg;
TQString tqparentFolderName = folderParent != 0 ? folderParent->name() : folderParentDir->name(); TQString parentFolderName = folderParent != 0 ? folderParent->name() : folderParentDir->name();
if ( noneFound ) { if ( noneFound ) {
// No subfolder was found, so ask if we can make them // No subfolder was found, so ask if we can make them
msg = i18n("KMail will now create the required groupware folders" msg = i18n("KMail will now create the required groupware folders"
" as subfolders of %1; if you do not want this, cancel" " as subfolders of %1; if you do not want this, cancel"
" and the IMAP resource will be disabled").tqarg(tqparentFolderName); " and the IMAP resource will be disabled").tqarg(parentFolderName);
} else { } else {
// Some subfolders were found, be more precise // Some subfolders were found, be more precise
TQString operations = "<ul>"; TQString operations = "<ul>";
@ -1794,7 +1794,7 @@ void KMailICalIfaceImpl::readConfig()
msg = i18n("<qt>KMail found the following groupware folders in %1 and needs to perform the following operations: %2" msg = i18n("<qt>KMail found the following groupware folders in %1 and needs to perform the following operations: %2"
"<br>If you do not want this, cancel" "<br>If you do not want this, cancel"
" and the IMAP resource will be disabled").tqarg(tqparentFolderName, operations); " and the IMAP resource will be disabled").tqarg(parentFolderName, operations);
} }
@ -1959,8 +1959,8 @@ void KMailICalIfaceImpl::readConfig()
void KMailICalIfaceImpl::slotCheckDone() void KMailICalIfaceImpl::slotCheckDone()
{ {
TQString tqparentName = GlobalSettings::self()->theIMAPResourceFolderParent(); TQString parentName = GlobalSettings::self()->theIMAPResourceFolderParent();
KMFolder* folderParent = kmkernel->findFolderById( tqparentName ); KMFolder* folderParent = kmkernel->findFolderById( parentName );
//kdDebug(5006) << k_funcinfo << " folderParent=" << folderParent << endl; //kdDebug(5006) << k_funcinfo << " folderParent=" << folderParent << endl;
if ( folderParent ) // cool it exists now if ( folderParent ) // cool it exists now
{ {
@ -2003,9 +2003,9 @@ KMFolder* KMailICalIfaceImpl::initFolder( KMail::FolderContentsType contentsType
folder = folder =
mFolderParentDir->createFolder( localizedDefaultFolderName( contentsType ), false, type ); mFolderParentDir->createFolder( localizedDefaultFolderName( contentsType ), false, type );
if( mFolderType == KMFolderTypeImap ) { if( mFolderType == KMFolderTypeImap ) {
KMFolderImap* tqparentFolder = static_cast<KMFolderImap*>( mFolderParent->storage() ); KMFolderImap* parentFolder = static_cast<KMFolderImap*>( mFolderParent->storage() );
tqparentFolder->createFolder( localizedDefaultFolderName( contentsType ) ); parentFolder->createFolder( localizedDefaultFolderName( contentsType ) );
static_cast<KMFolderImap*>( folder->storage() )->setAccount( tqparentFolder->account() ); static_cast<KMFolderImap*>( folder->storage() )->setAccount( parentFolder->account() );
} }
// Groupware folder created, use the global setting for storage format // Groupware folder created, use the global setting for storage format
setStorageFormat( folder, globalStorageFormat() ); setStorageFormat( folder, globalStorageFormat() );
@ -2293,11 +2293,11 @@ bool KMailICalIfaceImpl::addSubresource( const TQString& resource,
kdDebug(5006) << "Adding subresource to tqparent: " << tqparent << " with name: " << resource << endl; kdDebug(5006) << "Adding subresource to tqparent: " << tqparent << " with name: " << resource << endl;
kdDebug(5006) << "contents type: " << contentsType << endl; kdDebug(5006) << "contents type: " << contentsType << endl;
KMFolder *folder = findResourceFolder( tqparent ); KMFolder *folder = findResourceFolder( tqparent );
KMFolderDir *tqparentFolderDir = !tqparent.isEmpty() && folder ? folder->createChildFolder(): mFolderParentDir; KMFolderDir *parentFolderDir = !tqparent.isEmpty() && folder ? folder->createChildFolder(): mFolderParentDir;
if ( !tqparentFolderDir || tqparentFolderDir->hasNamedFolder( resource ) ) return false; if ( !parentFolderDir || parentFolderDir->hasNamedFolder( resource ) ) return false;
TQString msg; TQString msg;
if ( tqparentFolderDir->owner() && !tqparentFolderDir->owner()->isValidName( resource, msg ) ) { if ( parentFolderDir->owner() && !parentFolderDir->owner()->isValidName( resource, msg ) ) {
KMessageBox::error( 0, msg ); KMessageBox::error( 0, msg );
return false; return false;
} }
@ -2305,7 +2305,7 @@ bool KMailICalIfaceImpl::addSubresource( const TQString& resource,
KMFolderType type = mFolderType; KMFolderType type = mFolderType;
if( type == KMFolderTypeUnknown ) type = KMFolderTypeMaildir; if( type == KMFolderTypeUnknown ) type = KMFolderTypeMaildir;
KMFolder* newFolder = tqparentFolderDir->createFolder( resource, false, type ); KMFolder* newFolder = parentFolderDir->createFolder( resource, false, type );
if ( !newFolder ) return false; if ( !newFolder ) return false;
if( mFolderType == KMFolderTypeImap ) if( mFolderType == KMFolderTypeImap )
static_cast<KMFolderImap*>( folder->storage() )->createFolder( resource ); static_cast<KMFolderImap*>( folder->storage() )->createFolder( resource );

@ -216,7 +216,7 @@ KMMessage *KMCommand::retrievedMessage() const
return mRetrievedMsgs.getFirst(); return mRetrievedMsgs.getFirst();
} }
TQWidget *KMCommand::tqparentWidget() const TQWidget *KMCommand::parentWidget() const
{ {
return mParent; return mParent;
} }
@ -558,7 +558,7 @@ KMMailtoAddAddrBookCommand::KMMailtoAddAddrBookCommand( const KURL &url,
KMCommand::Result KMMailtoAddAddrBookCommand::execute() KMCommand::Result KMMailtoAddAddrBookCommand::execute()
{ {
KAddrBookExternal::addEmail( KMMessage::decodeMailtoUrl( mUrl.path() ), KAddrBookExternal::addEmail( KMMessage::decodeMailtoUrl( mUrl.path() ),
tqparentWidget() ); parentWidget() );
return OK; return OK;
} }
@ -573,7 +573,7 @@ KMMailtoOpenAddrBookCommand::KMMailtoOpenAddrBookCommand( const KURL &url,
KMCommand::Result KMMailtoOpenAddrBookCommand::execute() KMCommand::Result KMMailtoOpenAddrBookCommand::execute()
{ {
KAddrBookExternal::openEmail( KMMessage::decodeMailtoUrl( mUrl.path() ), KAddrBookExternal::openEmail( KMMessage::decodeMailtoUrl( mUrl.path() ),
tqparentWidget() ); parentWidget() );
return OK; return OK;
} }
@ -633,10 +633,10 @@ KMCommand::Result KMUrlSaveCommand::execute()
if ( mUrl.isEmpty() ) if ( mUrl.isEmpty() )
return OK; return OK;
KURL saveUrl = KFileDialog::getSaveURL(mUrl.fileName(), TQString(), KURL saveUrl = KFileDialog::getSaveURL(mUrl.fileName(), TQString(),
tqparentWidget() ); parentWidget() );
if ( saveUrl.isEmpty() ) if ( saveUrl.isEmpty() )
return Canceled; return Canceled;
if ( KIO::NetAccess::exists( saveUrl, false, tqparentWidget() ) ) if ( KIO::NetAccess::exists( saveUrl, false, parentWidget() ) )
{ {
if (KMessageBox::warningContinueCancel(0, if (KMessageBox::warningContinueCancel(0,
i18n("<qt>File <b>%1</b> exists.<br>Do you want to replace it?</qt>") i18n("<qt>File <b>%1</b> exists.<br>Do you want to replace it?</qt>")
@ -1006,7 +1006,7 @@ KMCommand::Result KMOpenMsgCommand::execute()
{ {
if ( mUrl.isEmpty() ) { if ( mUrl.isEmpty() ) {
mUrl = KFileDialog::getOpenURL( ":OpenMessage", "message/rfc822 application/mbox", mUrl = KFileDialog::getOpenURL( ":OpenMessage", "message/rfc822 application/mbox",
tqparentWidget(), i18n("Open Message") ); parentWidget(), i18n("Open Message") );
} }
if ( mUrl.isEmpty() ) { if ( mUrl.isEmpty() ) {
setDeletesItself( false ); setDeletesItself( false );
@ -1043,7 +1043,7 @@ void KMOpenMsgCommand::slotResult( KIO::Job *job )
if ( mMsgString.compare( 0, 5, "From ", 5 ) == 0 ) { if ( mMsgString.compare( 0, 5, "From ", 5 ) == 0 ) {
startOfMessage = mMsgString.tqfind( '\n' ); startOfMessage = mMsgString.tqfind( '\n' );
if ( startOfMessage == -1 ) { if ( startOfMessage == -1 ) {
KMessageBox::sorry( tqparentWidget(), KMessageBox::sorry( parentWidget(),
i18n( "The file does not contain a message." ) ); i18n( "The file does not contain a message." ) );
setResult( Failed ); setResult( Failed );
emit completed( this ); emit completed( this );
@ -1071,7 +1071,7 @@ void KMOpenMsgCommand::slotResult( KIO::Job *job )
dwMsg->Parse(); dwMsg->Parse();
// check whether we have a message ( no headers => this isn't a message ) // check whether we have a message ( no headers => this isn't a message )
if ( dwMsg->Headers().NumFields() == 0 ) { if ( dwMsg->Headers().NumFields() == 0 ) {
KMessageBox::sorry( tqparentWidget(), KMessageBox::sorry( parentWidget(),
i18n( "The file does not contain a message." ) ); i18n( "The file does not contain a message." ) );
delete dwMsg; dwMsg = 0; delete dwMsg; dwMsg = 0;
setResult( Failed ); setResult( Failed );
@ -1452,7 +1452,7 @@ KMCommand::Result KMRedirectCommand::execute()
if ( !msg || !msg->codec() ) if ( !msg || !msg->codec() )
return Failed; return Failed;
RedirectDialog dlg( tqparentWidget(), "redirect", true, RedirectDialog dlg( parentWidget(), "redirect", true,
kmkernel->msgSender()->sendImmediate() ); kmkernel->msgSender()->sendImmediate() );
if (dlg.exec()==TQDialog::Rejected) return Failed; if (dlg.exec()==TQDialog::Rejected) return Failed;
@ -1650,7 +1650,7 @@ KMCommand::Result KMSeStatusCommand::execute()
TQValueListIterator<TQ_UINT32> it; TQValueListIterator<TQ_UINT32> it;
int idx = -1; int idx = -1;
KMFolder *folder = 0; KMFolder *folder = 0;
bool tqparentqStatus = false; bool parentqStatus = false;
// Toggle actions on threads toggle the whole thread // Toggle actions on threads toggle the whole thread
// depending on the state of the tqparent. // depending on the state of the tqparent.
@ -1660,9 +1660,9 @@ KMCommand::Result KMSeStatusCommand::execute()
if (folder) { if (folder) {
msg = folder->getMsgBase(idx); msg = folder->getMsgBase(idx);
if (msg && (msg->status()&mtqStatus)) if (msg && (msg->status()&mtqStatus))
tqparentqStatus = true; parentqStatus = true;
else else
tqparentqStatus = false; parentqStatus = false;
} }
} }
TQMap< KMFolder*, TQValueList<int> > folderMap; TQMap< KMFolder*, TQValueList<int> > folderMap;
@ -1678,7 +1678,7 @@ KMCommand::Result KMSeStatusCommand::execute()
mytqStatus = true; mytqStatus = true;
else else
mytqStatus = false; mytqStatus = false;
if (mytqStatus != tqparentqStatus) if (mytqStatus != parentqStatus)
continue; continue;
} }
} }
@ -1994,7 +1994,7 @@ KMCommand::Result KMCopyCommand::execute()
msg = srcFolder->getMsg(idx); msg = srcFolder->getMsg(idx);
// corrupt IMAP cache, see FolderStorage::getMsg() // corrupt IMAP cache, see FolderStorage::getMsg()
if ( msg == 0 ) { if ( msg == 0 ) {
KMessageBox::error( tqparentWidget(), i18n("Corrupt IMAP cache detected in folder %1. " KMessageBox::error( parentWidget(), i18n("Corrupt IMAP cache detected in folder %1. "
"Copying of messages aborted.").tqarg( srcFolder->prettyURL() ) ); "Copying of messages aborted.").tqarg( srcFolder->prettyURL() ) );
deleteLater(); deleteLater();
return Failed; return Failed;
@ -2534,7 +2534,7 @@ void KMSaveAttachmentsCommand::slotSaveAll()
// considered attachments // considered attachments
if ( it.key()->msgPart().fileName().stripWhiteSpace().isEmpty() && if ( it.key()->msgPart().fileName().stripWhiteSpace().isEmpty() &&
( it.key()->msgPart().name().stripWhiteSpace().isEmpty() || ( it.key()->msgPart().name().stripWhiteSpace().isEmpty() ||
!it.key()->tqparentNode() ) ) { !it.key()->parentNode() ) ) {
PartNodeMessageMap::iterator delIt = it; PartNodeMessageMap::iterator delIt = it;
++it; ++it;
mAttachmentMap.remove( delIt ); mAttachmentMap.remove( delIt );
@ -2555,7 +2555,7 @@ void KMSaveAttachmentsCommand::slotSaveAll()
if ( mAttachmentMap.count() > 1 ) { if ( mAttachmentMap.count() > 1 ) {
// get the dir // get the dir
dirUrl = KDirSelectDialog::selectDirectory( TQString(), false, dirUrl = KDirSelectDialog::selectDirectory( TQString(), false,
tqparentWidget(), parentWidget(),
i18n("Save Attachments To") ); i18n("Save Attachments To") );
if ( !dirUrl.isValid() ) { if ( !dirUrl.isValid() ) {
setResult( Canceled ); setResult( Canceled );
@ -2577,7 +2577,7 @@ void KMSaveAttachmentsCommand::slotSaveAll()
s = node->msgPart().name().stripWhiteSpace().tqreplace( ':', '_' ); s = node->msgPart().name().stripWhiteSpace().tqreplace( ':', '_' );
if ( s.isEmpty() ) if ( s.isEmpty() )
s = i18n("filename for an unnamed attachment", "attachment.1"); s = i18n("filename for an unnamed attachment", "attachment.1");
url = KFileDialog::getSaveURL( s, TQString(), tqparentWidget(), url = KFileDialog::getSaveURL( s, TQString(), parentWidget(),
TQString() ); TQString() );
if ( url.isEmpty() ) { if ( url.isEmpty() ) {
setResult( Canceled ); setResult( Canceled );
@ -2641,8 +2641,8 @@ void KMSaveAttachmentsCommand::slotSaveAll()
} }
if ( KIO::NetAccess::exists( curUrl, false, tqparentWidget() ) ) { if ( KIO::NetAccess::exists( curUrl, false, parentWidget() ) ) {
if ( KMessageBox::warningContinueCancel( tqparentWidget(), if ( KMessageBox::warningContinueCancel( parentWidget(),
i18n( "A file named %1 already exists. Do you want to overwrite it?" ) i18n( "A file named %1 already exists. Do you want to overwrite it?" )
.tqarg( curUrl.fileName() ), .tqarg( curUrl.fileName() ),
i18n( "File Already Exists" ), i18n("&Overwrite") ) == KMessageBox::Cancel) { i18n( "File Already Exists" ), i18n("&Overwrite") ) == KMessageBox::Cancel) {
@ -2666,7 +2666,7 @@ KMCommand::Result KMSaveAttachmentsCommand::saveItem( partNode *node,
bool bSaveEncrypted = false; bool bSaveEncrypted = false;
bool bEncryptedParts = node->encryptionState() != KMMsgNotEncrypted; bool bEncryptedParts = node->encryptionState() != KMMsgNotEncrypted;
if( bEncryptedParts ) if( bEncryptedParts )
if( KMessageBox::questionYesNo( tqparentWidget(), if( KMessageBox::questionYesNo( parentWidget(),
i18n( "The part %1 of the message is encrypted. Do you want to keep the encryption when saving?" ). i18n( "The part %1 of the message is encrypted. Do you want to keep the encryption when saving?" ).
arg( url.fileName() ), arg( url.fileName() ),
i18n( "KMail Question" ), i18n("Keep Encryption"), i18n("Do Not Keep") ) == i18n( "KMail Question" ), i18n("Keep Encryption"), i18n("Do Not Keep") ) ==
@ -2675,7 +2675,7 @@ KMCommand::Result KMSaveAttachmentsCommand::saveItem( partNode *node,
bool bSaveWithSig = true; bool bSaveWithSig = true;
if( node->signatureState() != KMMsgNotSigned ) if( node->signatureState() != KMMsgNotSigned )
if( KMessageBox::questionYesNo( tqparentWidget(), if( KMessageBox::questionYesNo( parentWidget(),
i18n( "The part %1 of the message is signed. Do you want to keep the signature when saving?" ). i18n( "The part %1 of the message is signed. Do you want to keep the signature when saving?" ).
arg( url.fileName() ), arg( url.fileName() ),
i18n( "KMail Question" ), i18n("Keep Signature"), i18n("Do Not Keep") ) != i18n( "KMail Question" ), i18n("Keep Signature"), i18n("Do Not Keep") ) !=
@ -2749,7 +2749,7 @@ KMCommand::Result KMSaveAttachmentsCommand::saveItem( partNode *node,
file.setName( url.path() ); file.setName( url.path() );
if ( !file.open( IO_WriteOnly ) ) if ( !file.open( IO_WriteOnly ) )
{ {
KMessageBox::error( tqparentWidget(), KMessageBox::error( parentWidget(),
i18n( "%2 is detailed error description", i18n( "%2 is detailed error description",
"Could not write the file %1:\n%2" ) "Could not write the file %1:\n%2" )
.tqarg( file.name() ) .tqarg( file.name() )
@ -2773,9 +2773,9 @@ KMCommand::Result KMSaveAttachmentsCommand::saveItem( partNode *node,
if ( !url.isLocalFile() ) if ( !url.isLocalFile() )
{ {
tf.close(); tf.close();
if ( !KIO::NetAccess::upload( tf.name(), url, tqparentWidget() ) ) if ( !KIO::NetAccess::upload( tf.name(), url, parentWidget() ) )
{ {
KMessageBox::error( tqparentWidget(), KMessageBox::error( parentWidget(),
i18n( "Could not write the file %1." ) i18n( "Could not write the file %1." )
.tqarg( url.path() ), .tqarg( url.path() ),
i18n( "KMail Error" ) ); i18n( "KMail Error" ) );
@ -3015,7 +3015,7 @@ KMCommand::Result KMIMChatCommand::execute()
apology = apology.tqarg( names ); apology = apology.tqarg( names );
} }
KMessageBox::sorry( tqparentWidget(), apology ); KMessageBox::sorry( parentWidget(), apology );
return Failed; return Failed;
} }
} }
@ -3196,13 +3196,13 @@ void KMHandleAttachmentCommand::atmSave()
parts.append( mNode ); parts.append( mNode );
// save, do not leave encoded // save, do not leave encoded
KMSaveAttachmentsCommand *command = KMSaveAttachmentsCommand *command =
new KMSaveAttachmentsCommand( tqparentWidget(), parts, mMsg, false ); new KMSaveAttachmentsCommand( parentWidget(), parts, mMsg, false );
command->start(); command->start();
} }
void KMHandleAttachmentCommand::atmProperties() void KMHandleAttachmentCommand::atmProperties()
{ {
KMMsgPartDialogCompat dlg( tqparentWidget() , 0, true ); KMMsgPartDialogCompat dlg( parentWidget() , 0, true );
KMMessagePart& msgPart = mNode->msgPart(); KMMessagePart& msgPart = mNode->msgPart();
dlg.setMsgPart( &msgPart ); dlg.setMsgPart( &msgPart );
dlg.exec(); dlg.exec();
@ -3229,12 +3229,12 @@ void KMHandleAttachmentCommand::atmEncryptWithChiasmus()
if ( !listjob.get() ) { if ( !listjob.get() ) {
const TQString msg = i18n( "Chiasmus backend does not offer the " const TQString msg = i18n( "Chiasmus backend does not offer the "
"\"x-obtain-keys\" function. Please report this bug." ); "\"x-obtain-keys\" function. Please report this bug." );
KMessageBox::error( tqparentWidget(), msg, i18n( "Chiasmus Backend Error" ) ); KMessageBox::error( parentWidget(), msg, i18n( "Chiasmus Backend Error" ) );
return; return;
} }
if ( listjob->exec() ) { if ( listjob->exec() ) {
listjob->showErrorDialog( tqparentWidget(), i18n( "Chiasmus Backend Error" ) ); listjob->showErrorDialog( parentWidget(), i18n( "Chiasmus Backend Error" ) );
return; return;
} }
@ -3243,7 +3243,7 @@ void KMHandleAttachmentCommand::atmEncryptWithChiasmus()
const TQString msg = i18n( "Unexpected return value from Chiasmus backend: " const TQString msg = i18n( "Unexpected return value from Chiasmus backend: "
"The \"x-obtain-keys\" function did not return a " "The \"x-obtain-keys\" function did not return a "
"string list. Please report this bug." ); "string list. Please report this bug." );
KMessageBox::error( tqparentWidget(), msg, i18n( "Chiasmus Backend Error" ) ); KMessageBox::error( parentWidget(), msg, i18n( "Chiasmus Backend Error" ) );
return; return;
} }
@ -3252,11 +3252,11 @@ void KMHandleAttachmentCommand::atmEncryptWithChiasmus()
const TQString msg = i18n( "No keys have been found. Please check that a " const TQString msg = i18n( "No keys have been found. Please check that a "
"valid key path has been set in the Chiasmus " "valid key path has been set in the Chiasmus "
"configuration." ); "configuration." );
KMessageBox::error( tqparentWidget(), msg, i18n( "Chiasmus Backend Error" ) ); KMessageBox::error( parentWidget(), msg, i18n( "Chiasmus Backend Error" ) );
return; return;
} }
ChiasmusKeySelector selectorDlg( tqparentWidget(), i18n( "Chiasmus Decryption Key Selection" ), ChiasmusKeySelector selectorDlg( parentWidget(), i18n( "Chiasmus Decryption Key Selection" ),
keys, GlobalSettings::chiasmusDecryptionKey(), keys, GlobalSettings::chiasmusDecryptionKey(),
GlobalSettings::chiasmusDecryptionOptions() ); GlobalSettings::chiasmusDecryptionOptions() );
if ( selectorDlg.exec() != TQDialog::Accepted ) if ( selectorDlg.exec() != TQDialog::Accepted )
@ -3270,7 +3270,7 @@ void KMHandleAttachmentCommand::atmEncryptWithChiasmus()
if ( !job ) { if ( !job ) {
const TQString msg = i18n( "Chiasmus backend does not offer the " const TQString msg = i18n( "Chiasmus backend does not offer the "
"\"x-decrypt\" function. Please report this bug." ); "\"x-decrypt\" function. Please report this bug." );
KMessageBox::error( tqparentWidget(), msg, i18n( "Chiasmus Backend Error" ) ); KMessageBox::error( parentWidget(), msg, i18n( "Chiasmus Backend Error" ) );
return; return;
} }
@ -3281,13 +3281,13 @@ void KMHandleAttachmentCommand::atmEncryptWithChiasmus()
!job->setProperty( "input", input ) ) { !job->setProperty( "input", input ) ) {
const TQString msg = i18n( "The \"x-decrypt\" function does not accept " const TQString msg = i18n( "The \"x-decrypt\" function does not accept "
"the expected parameters. Please report this bug." ); "the expected parameters. Please report this bug." );
KMessageBox::error( tqparentWidget(), msg, i18n( "Chiasmus Backend Error" ) ); KMessageBox::error( parentWidget(), msg, i18n( "Chiasmus Backend Error" ) );
return; return;
} }
setDeletesItself( true ); // the job below is async, we have to cleanup ourselves setDeletesItself( true ); // the job below is async, we have to cleanup ourselves
if ( job->start() ) { if ( job->start() ) {
job->showErrorDialog( tqparentWidget(), i18n( "Chiasmus Decryption Error" ) ); job->showErrorDialog( parentWidget(), i18n( "Chiasmus Decryption Error" ) );
return; return;
} }
@ -3313,7 +3313,7 @@ void KMHandleAttachmentCommand::slotAtmDecryptWithChiasmusResult( const GpgME::E
if ( err.isCanceled() ) if ( err.isCanceled() )
return; return;
if ( err ) { if ( err ) {
job->showErrorDialog( tqparentWidget(), i18n( "Chiasmus Decryption Error" ) ); job->showErrorDialog( parentWidget(), i18n( "Chiasmus Decryption Error" ) );
return; return;
} }
@ -3321,21 +3321,21 @@ void KMHandleAttachmentCommand::slotAtmDecryptWithChiasmusResult( const GpgME::E
const TQString msg = i18n( "Unexpected return value from Chiasmus backend: " const TQString msg = i18n( "Unexpected return value from Chiasmus backend: "
"The \"x-decrypt\" function did not return a " "The \"x-decrypt\" function did not return a "
"byte array. Please report this bug." ); "byte array. Please report this bug." );
KMessageBox::error( tqparentWidget(), msg, i18n( "Chiasmus Backend Error" ) ); KMessageBox::error( parentWidget(), msg, i18n( "Chiasmus Backend Error" ) );
return; return;
} }
const KURL url = KFileDialog::getSaveURL( chomp( mAtmName, ".xia", false ), TQString(), tqparentWidget() ); const KURL url = KFileDialog::getSaveURL( chomp( mAtmName, ".xia", false ), TQString(), parentWidget() );
if ( url.isEmpty() ) if ( url.isEmpty() )
return; return;
bool overwrite = KMail::Util::checkOverwrite( url, tqparentWidget() ); bool overwrite = KMail::Util::checkOverwrite( url, parentWidget() );
if ( !overwrite ) if ( !overwrite )
return; return;
d.setDisabled( true ); // we got this far, don't delete yet d.setDisabled( true ); // we got this far, don't delete yet
KIO::Job * uploadJob = KIO::storedPut( result.toByteArray(), url, -1, overwrite, false /*resume*/ ); KIO::Job * uploadJob = KIO::storedPut( result.toByteArray(), url, -1, overwrite, false /*resume*/ );
uploadJob->setWindow( tqparentWidget() ); uploadJob->setWindow( parentWidget() );
connect( uploadJob, TQT_SIGNAL(result(KIO::Job*)), connect( uploadJob, TQT_SIGNAL(result(KIO::Job*)),
this, TQT_SLOT(slotAtmDecryptWithChiasmusUploadResult(KIO::Job*)) ); this, TQT_SLOT(slotAtmDecryptWithChiasmusUploadResult(KIO::Job*)) );
} }
@ -3500,7 +3500,7 @@ KMCommand::Result KMEditAttachmentCommand::doAttachmentModify()
KMail::EditorWatcher *watcher = KMail::EditorWatcher *watcher =
new KMail::EditorWatcher( KURL( mTempFile.file()->name() ), new KMail::EditorWatcher( KURL( mTempFile.file()->name() ),
part.typeStr() + "/" + part.subtypeStr(), part.typeStr() + "/" + part.subtypeStr(),
false, this, tqparentWidget() ); false, this, parentWidget() );
connect( watcher, TQT_SIGNAL(editDone(KMail::EditorWatcher*)), TQT_SLOT(editDone(KMail::EditorWatcher*)) ); connect( watcher, TQT_SIGNAL(editDone(KMail::EditorWatcher*)), TQT_SLOT(editDone(KMail::EditorWatcher*)) );
if ( !watcher->start() ) if ( !watcher->start() )
return Failed; return Failed;
@ -3529,16 +3529,16 @@ void KMEditAttachmentCommand::editDone(KMail::EditorWatcher * watcher)
DwBodyPart *dwpart = msg->findPart( mPartIndex ); DwBodyPart *dwpart = msg->findPart( mPartIndex );
KMMessage::bodyPart( dwpart, &part, true ); KMMessage::bodyPart( dwpart, &part, true );
DwBody *tqparentNode = dynamic_cast<DwBody*>( dwpart->Parent() ); DwBody *parentNode = dynamic_cast<DwBody*>( dwpart->Parent() );
assert( tqparentNode ); assert( parentNode );
tqparentNode->RemoveBodyPart( dwpart ); parentNode->RemoveBodyPart( dwpart );
KMMessagePart att; KMMessagePart att;
att.duplicate( part ); att.duplicate( part );
att.setBodyEncodedBinary( data ); att.setBodyEncodedBinary( data );
DwBodyPart* newDwPart = msg->createDWBodyPart( &att ); DwBodyPart* newDwPart = msg->createDWBodyPart( &att );
tqparentNode->AddBodyPart( newDwPart ); parentNode->AddBodyPart( newDwPart );
msg->getTopLevelPart()->Assemble(); msg->getTopLevelPart()->Assemble();
KMMessage *newMsg = new KMMessage(); KMMessage *newMsg = new KMMessage();

@ -99,7 +99,7 @@ protected:
// Returns the single message retrieved // Returns the single message retrieved
KMMessage *retrievedMessage() const; KMMessage *retrievedMessage() const;
// Returns the tqparent widget // Returns the tqparent widget
TQWidget *tqparentWidget() const; TQWidget *parentWidget() const;
bool deletesItself() { return mDeletesItself; } bool deletesItself() { return mDeletesItself; }
/** Specify whether the subclass takes care of the deletion of the object. /** Specify whether the subclass takes care of the deletion of the object.

@ -1685,7 +1685,7 @@ void KMComposeWin::setupEditor(void)
connect( mEditor, TQT_SIGNAL( currentFontChanged( const TQFont & ) ), connect( mEditor, TQT_SIGNAL( currentFontChanged( const TQFont & ) ),
TQT_TQOBJECT(this), TQT_SLOT( fontChanged( const TQFont & ) ) ); TQT_TQOBJECT(this), TQT_SLOT( fontChanged( const TQFont & ) ) );
connect( mEditor, TQT_SIGNAL( currentAlignmentChanged( int ) ), connect( mEditor, TQT_SIGNAL( currentAlignmentChanged( int ) ),
TQT_TQOBJECT(this), TQT_SLOT( tqalignmentChanged( int ) ) ); TQT_TQOBJECT(this), TQT_SLOT( alignmentChanged( int ) ) );
} }
@ -2010,7 +2010,7 @@ void KMComposeWin::setMsg(KMMessage* newMsg, bool mayAutoSign,
mEditor->setText( otp.textualContent() ); mEditor->setText( otp.textualContent() );
mCharset = otp.textualContentCharset(); mCharset = otp.textualContentCharset();
if ( partNode * n = root->findType( DwMime::kTypeText, DwMime::kSubtypeHtml ) ) if ( partNode * n = root->findType( DwMime::kTypeText, DwMime::kSubtypeHtml ) )
if ( partNode * p = n->tqparentNode() ) if ( partNode * p = n->parentNode() )
if ( p->hasType( DwMime::kTypeMultipart ) && if ( p->hasType( DwMime::kTypeMultipart ) &&
p->hasSubType( DwMime::kSubtypeAlternative ) ) p->hasSubType( DwMime::kSubtypeAlternative ) )
if ( mMsg->headerField( "X-KMail-Markup" ) == "true" ) { if ( mMsg->headerField( "X-KMail-Markup" ) == "true" ) {
@ -2068,9 +2068,9 @@ void KMComposeWin::setMsg(KMMessage* newMsg, bool mayAutoSign,
partNode *root = partNode::fromMessage( mMsg ); partNode *root = partNode::fromMessage( mMsg );
partNode *node = root->findType( DwMime::kTypeText, partNode *node = root->findType( DwMime::kTypeText,
DwMime::kSubtypeHtml ); DwMime::kSubtypeHtml );
if ( node && node->tqparentNode() && if ( node && node->parentNode() &&
node->tqparentNode()->hasType( DwMime::kTypeMultipart ) && node->parentNode()->hasType( DwMime::kTypeMultipart ) &&
node->tqparentNode()->hasSubType( DwMime::kSubtypeAlternative ) ) { node->parentNode()->hasSubType( DwMime::kSubtypeAlternative ) ) {
// we have a mp/al body part with a text and an html body // we have a mp/al body part with a text and an html body
kdDebug(5006) << "KMComposeWin::setMsg() : text/html found" << endl; kdDebug(5006) << "KMComposeWin::setMsg() : text/html found" << endl;
firstAttachment = 2; firstAttachment = 2;
@ -5252,7 +5252,7 @@ void KMComposeWin::fontChanged( const TQFont &f )
fontSizeAction->setFontSize( f.pointSize() ); fontSizeAction->setFontSize( f.pointSize() );
} }
void KMComposeWin::tqalignmentChanged( int a ) void KMComposeWin::alignmentChanged( int a )
{ {
//toggleMarkup(); //toggleMarkup();
alignLeftAction->setChecked( ( a == AlignAuto ) || ( a & AlignLeft ) ); alignLeftAction->setChecked( ( a == AlignAuto ) || ( a & AlignLeft ) );

@ -503,7 +503,7 @@ private slots:
void slotFormatReset(); void slotFormatReset();
void slotTextColor(); void slotTextColor();
void fontChanged( const TQFont & ); void fontChanged( const TQFont & );
void tqalignmentChanged( int ); void alignmentChanged( int );
public: // kmkernel, attachmentlistview public: // kmkernel, attachmentlistview
bool addAttach(const KURL url); bool addAttach(const KURL url);

@ -524,7 +524,7 @@ KMFilterAction::ReturnCode KMFilterActionWithCommand::genericProcess(KMMessage*
if ( commandLine.isEmpty() ) if ( commandLine.isEmpty() )
return ErrorButGoOn; return ErrorButGoOn;
// The tqparentheses force the creation of a subshell // The parentheses force the creation of a subshell
// in which the user-specified command is executed. // in which the user-specified command is executed.
// This is to really catch all output of the command as well // This is to really catch all output of the command as well
// as to avoid clashes of our redirection with the ones // as to avoid clashes of our redirection with the ones
@ -1800,7 +1800,7 @@ void KMFilterActionExtFilter::processAsync(KMMessage* aMsg) const
if ( commandLine.isEmpty() ) if ( commandLine.isEmpty() )
handler->actionMessage( ErrorButGoOn ); handler->actionMessage( ErrorButGoOn );
// The tqparentheses force the creation of a subshell // The parentheses force the creation of a subshell
// in which the user-specified command is executed. // in which the user-specified command is executed.
// This is to really catch all output of the command as well // This is to really catch all output of the command as well
// as to avoid clashes of our redirection with the ones // as to avoid clashes of our redirection with the ones

@ -95,7 +95,7 @@ KMFolder::KMFolder( KMFolderDir* aParent, const TQString& aFolderName,
tqparent()->manager(), TQT_SIGNAL( msgChanged( KMFolder*, TQ_UINT32, int ) ) ); tqparent()->manager(), TQT_SIGNAL( msgChanged( KMFolder*, TQ_UINT32, int ) ) );
connect( this, TQT_SIGNAL( msgHeaderChanged( KMFolder*, int ) ), connect( this, TQT_SIGNAL( msgHeaderChanged( KMFolder*, int ) ),
tqparent()->manager(), TQT_SIGNAL( msgHeaderChanged( KMFolder*, int ) ) ); tqparent()->manager(), TQT_SIGNAL( msgHeaderChanged( KMFolder*, int ) ) );
connect( mStorage, TQT_SIGNAL( tqinvalidated( KMFolder* ) ), connect( mStorage, TQT_SIGNAL( invalidated( KMFolder* ) ),
tqparent()->manager(), TQT_SIGNAL( folderInvalidated( KMFolder* ) ) ); tqparent()->manager(), TQT_SIGNAL( folderInvalidated( KMFolder* ) ) );
} }
@ -592,11 +592,11 @@ TQString KMFolder::label() const
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
TQString KMFolder::prettyURL() const TQString KMFolder::prettyURL() const
{ {
TQString tqparentUrl; TQString parentUrl;
if ( tqparent() ) if ( tqparent() )
tqparentUrl = tqparent()->prettyURL(); parentUrl = tqparent()->prettyURL();
if ( !tqparentUrl.isEmpty() ) if ( !parentUrl.isEmpty() )
return tqparentUrl + '/' + label(); return parentUrl + '/' + label();
else else
return label(); return label();
} }
@ -890,7 +890,7 @@ void KMFolder::slotContentsTypeChanged( KMail::FolderContentsType type )
void KMFolder::slotFolderSizeChanged() void KMFolder::slotFolderSizeChanged()
{ {
emit folderSizeChanged( this ); emit folderSizeChanged( this );
KMFolder* papa = tqparent()->manager()->tqparentFolder( this ); KMFolder* papa = tqparent()->manager()->parentFolder( this );
if ( papa && papa != this ) { if ( papa && papa != this ) {
papa->slotFolderSizeChanged(); papa->slotFolderSizeChanged();
} }

@ -744,7 +744,7 @@ void KMFolderCachedImap::slotTroubleshoot()
TQString s2 = i18n("&Refresh"); TQString s2 = i18n("&Refresh");
if( KMessageBox::warningContinueCancel( 0, str, s1, s2 ) == if( KMessageBox::warningContinueCancel( 0, str, s1, s2 ) ==
KMessageBox::Continue ) KMessageBox::Continue )
account()->tqinvalidateIMAPFolders( this ); account()->invalidateIMAPFolders( this );
} else { } else {
// Rebuild index file // Rebuild index file
switch ( rc ) { switch ( rc ) {
@ -2746,7 +2746,7 @@ void KMFolderCachedImap::slotAnnotationResult(const TQString& entry, const TQStr
&& GlobalSettings::self()->theIMAPResourceEnabled() && GlobalSettings::self()->theIMAPResourceEnabled()
&& subtype == "default" ) { && subtype == "default" ) {
// Truncate subtype if this folder can't be a default resource folder for us, // Truncate subtype if this folder can't be a default resource folder for us,
// although it aptqparently is for someone else. // although it apparently is for someone else.
mAnnotationFolderType = type; mAnnotationFolderType = type;
kdDebug(5006) << mImapPath << ": slotGetAnnotationResult: tqparent folder is " << folder()->tqparent()->owner()->idString() << " => truncating annotation to " << value << endl; kdDebug(5006) << mImapPath << ": slotGetAnnotationResult: tqparent folder is " << folder()->tqparent()->owner()->idString() << " => truncating annotation to " << value << endl;
} }

@ -272,8 +272,8 @@ KMail::FolderDiaGeneralTab::FolderDiaGeneralTab( KMFolderDialog* dlg,
// Determine if we are allowed to rename this folder. Only possible if the folder supports // Determine if we are allowed to rename this folder. Only possible if the folder supports
// ACLs. // ACLs.
bool nameChangeAllowed = true; bool nameChangeAllowed = true;
if ( mDlg->folder() && mDlg->tqparentFolder() && if ( mDlg->folder() && mDlg->parentFolder() &&
mDlg->folder()->storage() && mDlg->tqparentFolder()->storage() && mDlg->folder()->storage() && mDlg->parentFolder()->storage() &&
( mDlg->folder()->folderType() == KMFolderTypeCachedImap || ( mDlg->folder()->folderType() == KMFolderTypeCachedImap ||
mDlg->folder()->folderType() == KMFolderTypeImap ) ) { mDlg->folder()->folderType() == KMFolderTypeImap ) ) {
ImapAccountBase *account = 0; ImapAccountBase *account = 0;
@ -289,31 +289,31 @@ KMail::FolderDiaGeneralTab::FolderDiaGeneralTab( KMFolderDialog* dlg,
} }
if ( account && account->hasACLSupport() ) { if ( account && account->hasACLSupport() ) {
int tqparentRights = -1; int parentRights = -1;
int folderRights = -1; int folderRights = -1;
bool tqparentRightsOk = false; bool parentRightsOk = false;
bool folderRightsOk = false; bool folderRightsOk = false;
if ( imap ) { if ( imap ) {
KMFolderImap * const tqparent = dynamic_cast<KMFolderImap*>( mDlg->tqparentFolder()->storage() ); KMFolderImap * const tqparent = dynamic_cast<KMFolderImap*>( mDlg->parentFolder()->storage() );
folderRights = imap->userRights(); folderRights = imap->userRights();
folderRightsOk = imap->userRightsState() == KMail::ACLJobs::Ok; folderRightsOk = imap->userRightsState() == KMail::ACLJobs::Ok;
if ( tqparent ) { if ( tqparent ) {
tqparentRights = tqparent->userRights(); parentRights = tqparent->userRights();
tqparentRightsOk = tqparent->userRightsState() == KMail::ACLJobs::Ok; parentRightsOk = tqparent->userRightsState() == KMail::ACLJobs::Ok;
} }
} else if ( dimap ) { } else if ( dimap ) {
KMFolderCachedImap * const tqparent = dynamic_cast<KMFolderCachedImap*>( mDlg->tqparentFolder()->storage() ); KMFolderCachedImap * const tqparent = dynamic_cast<KMFolderCachedImap*>( mDlg->parentFolder()->storage() );
folderRights = dimap->userRights(); folderRights = dimap->userRights();
folderRightsOk = dimap->userRightsState() == KMail::ACLJobs::Ok; folderRightsOk = dimap->userRightsState() == KMail::ACLJobs::Ok;
if ( tqparent ) { if ( tqparent ) {
tqparentRights = tqparent->userRights(); parentRights = tqparent->userRights();
tqparentRightsOk = tqparent->userRightsState() == KMail::ACLJobs::Ok; parentRightsOk = tqparent->userRightsState() == KMail::ACLJobs::Ok;
} }
} }
// For renaming, we need support for deleting the mailbox and then re-creating it. // For renaming, we need support for deleting the mailbox and then re-creating it.
if ( tqparentRightsOk && folderRightsOk && if ( parentRightsOk && folderRightsOk &&
( !( tqparentRights & KMail::ACLJobs::Create ) || !( folderRights & KMail::ACLJobs::Delete ) ) ) { ( !( parentRights & KMail::ACLJobs::Create ) || !( folderRights & KMail::ACLJobs::Delete ) ) ) {
nameChangeAllowed = false; nameChangeAllowed = false;
} }
} }
@ -702,9 +702,9 @@ bool FolderDiaGeneralTab::save()
else else
fldName = oldFldName; fldName = oldFldName;
if ( mDlg->tqparentFolder() && if ( mDlg->parentFolder() &&
mDlg->tqparentFolder()->folderType() != KMFolderTypeImap && mDlg->parentFolder()->folderType() != KMFolderTypeImap &&
mDlg->tqparentFolder()->folderType() != KMFolderTypeCachedImap ) mDlg->parentFolder()->folderType() != KMFolderTypeCachedImap )
fldName.remove('/'); fldName.remove('/');
fldName.remove(TQRegExp("^\\.*")); fldName.remove(TQRegExp("^\\.*"));
if (fldName.isEmpty()) fldName = i18n("unnamed"); if (fldName.isEmpty()) fldName = i18n("unnamed");

@ -215,7 +215,7 @@ public:
KMFolderDir* folderDir() const { return mFolderDir; } KMFolderDir* folderDir() const { return mFolderDir; }
typedef TQValueList<TQGuardedPtr<KMFolder> > FolderList; typedef TQValueList<TQGuardedPtr<KMFolder> > FolderList;
KMFolder* tqparentFolder() const { return mParentFolder; } KMFolder* parentFolder() const { return mParentFolder; }
KMFolderTree* folderTree() const { return mFolderTree; } KMFolderTree* folderTree() const { return mFolderTree; }

@ -154,22 +154,22 @@ TQString KMFolderDir::label() const
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
TQString KMFolderDir::prettyURL() const TQString KMFolderDir::prettyURL() const
{ {
TQString tqparentUrl; TQString parentUrl;
if ( tqparent() ) if ( tqparent() )
tqparentUrl = tqparent()->prettyURL(); parentUrl = tqparent()->prettyURL();
if ( !tqparentUrl.isEmpty() ) if ( !parentUrl.isEmpty() )
return tqparentUrl + '/' + label(); return parentUrl + '/' + label();
else else
return label(); return label();
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
void KMFolderDir::addDirToParent( const TQString &dirName, KMFolder *tqparentFolder ) void KMFolderDir::addDirToParent( const TQString &dirName, KMFolder *parentFolder )
{ {
KMFolderDir* folderDir = new KMFolderDir( tqparentFolder, this, dirName, mDirType); KMFolderDir* folderDir = new KMFolderDir( parentFolder, this, dirName, mDirType);
folderDir->reload(); folderDir->reload();
append( folderDir ); append( folderDir );
tqparentFolder->setChild( folderDir ); parentFolder->setChild( folderDir );
} }
// Get the default folder type of the given dir type. This function should only be used when // Get the default folder type of the given dir type. This function should only be used when

@ -28,7 +28,7 @@ public:
/** /**
* Adds the given subdirectory of this directory to the associated folder. * Adds the given subdirectory of this directory to the associated folder.
*/ */
void addDirToParent( const TQString &dirName, KMFolder *tqparentFolder ); void addDirToParent( const TQString &dirName, KMFolder *parentFolder );
/** Read contents of directory. */ /** Read contents of directory. */
virtual bool reload(); virtual bool reload();

@ -153,19 +153,19 @@ KMMessage* KMFolderImap::getMsg(int idx)
KMAcctImap* KMFolderImap::account() const KMAcctImap* KMFolderImap::account() const
{ {
if ( !mAccount ) { if ( !mAccount ) {
KMFolderDir *tqparentFolderDir = dynamic_cast<KMFolderDir*>( folder()->tqparent() ); KMFolderDir *parentFolderDir = dynamic_cast<KMFolderDir*>( folder()->tqparent() );
if ( !tqparentFolderDir ) { if ( !parentFolderDir ) {
kdWarning() << k_funcinfo << "No tqparent folder dir found for " << name() << endl; kdWarning() << k_funcinfo << "No tqparent folder dir found for " << name() << endl;
return 0; return 0;
} }
KMFolder *tqparentFolder = tqparentFolderDir->owner(); KMFolder *parentFolder = parentFolderDir->owner();
if ( !tqparentFolder ) { if ( !parentFolder ) {
kdWarning() << k_funcinfo << "No tqparent folder found for " << name() << endl; kdWarning() << k_funcinfo << "No tqparent folder found for " << name() << endl;
return 0; return 0;
} }
KMFolderImap *tqparentStorage = dynamic_cast<KMFolderImap*>( tqparentFolder->storage() ); KMFolderImap *parentStorage = dynamic_cast<KMFolderImap*>( parentFolder->storage() );
if ( tqparentStorage ) if ( parentStorage )
mAccount = tqparentStorage->account(); mAccount = parentStorage->account();
} }
return mAccount; return mAccount;
} }
@ -1718,17 +1718,17 @@ void KMFolderImap::slotGetMessagesResult(KIO::Job * job)
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
void KMFolderImap::createFolder(const TQString &name, const TQString& tqparentPath, void KMFolderImap::createFolder(const TQString &name, const TQString& parentPath,
bool askUser) bool askUser)
{ {
kdDebug(5006) << "KMFolderImap::createFolder - name=" << name << ",tqparent=" << kdDebug(5006) << "KMFolderImap::createFolder - name=" << name << ",tqparent=" <<
tqparentPath << ",askUser=" << askUser << endl; parentPath << ",askUser=" << askUser << endl;
if ( account()->makeConnection() != ImapAccountBase::Connected ) { if ( account()->makeConnection() != ImapAccountBase::Connected ) {
kdWarning(5006) << "KMFolderImap::createFolder - got no connection" << endl; kdWarning(5006) << "KMFolderImap::createFolder - got no connection" << endl;
return; return;
} }
KURL url = account()->getUrl(); KURL url = account()->getUrl();
TQString tqparent = ( tqparentPath.isEmpty() ? imapPath() : tqparentPath ); TQString tqparent = ( parentPath.isEmpty() ? imapPath() : parentPath );
TQString path = account()->createImapPath( tqparent, name ); TQString path = account()->createImapPath( tqparent, name );
if ( askUser ) { if ( askUser ) {
path += "/;INFO=ASKUSER"; path += "/;INFO=ASKUSER";

@ -113,7 +113,7 @@ protected:
/** Inserts messages into the message dictionary by iterating over the /** Inserts messages into the message dictionary by iterating over the
* message list. The messages will get new serial numbers. This is only * message list. The messages will get new serial numbers. This is only
* used on newly appeared folders, where there is no .ids file yet, or * used on newly appeared folders, where there is no .ids file yet, or
* when that has been tqinvalidated. */ * when that has been invalidated. */
virtual void fillMessageDict(); virtual void fillMessageDict();
/** table of contents file */ /** table of contents file */

@ -899,7 +899,7 @@ int KMFolderMaildir::createIndexFromContents()
needsCompact = true; needsCompact = true;
tqinvalidateFolder(); invalidateFolder();
return 0; return 0;
} }

@ -809,7 +809,7 @@ int KMFolderMbox::createIndexFromContents()
"most-likely not created by KMail;\nplease remove them from there if you " "most-likely not created by KMail;\nplease remove them from there if you "
"do not want KMail to send them.")); "do not want KMail to send them."));
tqinvalidateFolder(); invalidateFolder();
return 0; return 0;
} }

@ -366,20 +366,20 @@ void KMFolderMgr::removeFolder(KMFolder* aFolder)
aFolder->remove(); aFolder->remove();
} }
KMFolder* KMFolderMgr::tqparentFolder( KMFolder* folder ) KMFolder* KMFolderMgr::parentFolder( KMFolder* folder )
{ {
// find the tqparent folder by stripping "." and ".directory" from the name // find the tqparent folder by stripping "." and ".directory" from the name
KMFolderDir* fdir = folder->tqparent(); KMFolderDir* fdir = folder->tqparent();
TQString tqparentName = fdir->name(); TQString parentName = fdir->name();
tqparentName = tqparentName.mid( 1, tqparentName.length()-11 ); parentName = parentName.mid( 1, parentName.length()-11 );
KMFolderNode* tqparent = fdir->hasNamedFolder( tqparentName ); KMFolderNode* tqparent = fdir->hasNamedFolder( parentName );
if ( !tqparent && fdir->tqparent() ) // dimap obviously has a different structure if ( !tqparent && fdir->tqparent() ) // dimap obviously has a different structure
tqparent = fdir->tqparent()->hasNamedFolder( tqparentName ); tqparent = fdir->tqparent()->hasNamedFolder( parentName );
KMFolder* tqparentF = 0; KMFolder* parentF = 0;
if ( tqparent ) if ( tqparent )
tqparentF = dynamic_cast<KMFolder*>( tqparent ); parentF = dynamic_cast<KMFolder*>( tqparent );
return tqparentF; return parentF;
} }
void KMFolderMgr::removeFolderAux(KMFolder* aFolder, bool success) void KMFolderMgr::removeFolderAux(KMFolder* aFolder, bool success)
@ -397,17 +397,17 @@ void KMFolderMgr::removeFolderAux(KMFolder* aFolder, bool success)
break; break;
} }
} }
KMFolder* tqparentF = tqparentFolder( aFolder ); KMFolder* parentF = parentFolder( aFolder );
// aFolder will be deleted by the next call! // aFolder will be deleted by the next call!
aFolder->tqparent()->remove(aFolder); aFolder->tqparent()->remove(aFolder);
// update the tqchildren state // update the tqchildren state
if ( tqparentF ) if ( parentF )
{ {
if ( tqparentF != aFolder ) if ( parentF != aFolder )
{ {
tqparentF->storage()->updateChildrenState(); parentF->storage()->updateChildrenState();
} }
} }
else else

@ -123,7 +123,7 @@ public:
void copyFolder( KMFolder* folder, KMFolderDir* newParent ); void copyFolder( KMFolder* folder, KMFolderDir* newParent );
/** Returns the tqparent Folder for the given folder or 0 on failure. */ /** Returns the tqparent Folder for the given folder or 0 on failure. */
KMFolder* tqparentFolder( KMFolder* folder ); KMFolder* parentFolder( KMFolder* folder );
public slots: public slots:
/** GUI action: compact all folders that need to be compacted */ /** GUI action: compact all folders that need to be compacted */
@ -151,7 +151,7 @@ signals:
/** Emitted, when a folder has been added. */ /** Emitted, when a folder has been added. */
void folderAdded(KMFolder*); void folderAdded(KMFolder*);
/** Emitted, when serial numbers for a folder have been tqinvalidated. */ /** Emitted, when serial numbers for a folder have been invalidated. */
void folderInvalidated(KMFolder*); void folderInvalidated(KMFolder*);
/** Emitted, when a message has been appended to a folder */ /** Emitted, when a message has been appended to a folder */

@ -423,7 +423,7 @@ void KMFolderSearch::executeSearch()
if (mSearch) if (mSearch)
mSearch->stop(); mSearch->stop();
setSearch(mSearch); setSearch(mSearch);
tqinvalidateFolder(); invalidateFolder();
} }
const KMSearch* KMFolderSearch::search() const const KMSearch* KMFolderSearch::search() const

@ -147,7 +147,7 @@ protected slots:
void examineRemovedMessage(KMFolder *folder, TQ_UINT32 serNum); void examineRemovedMessage(KMFolder *folder, TQ_UINT32 serNum);
// Look at a message whose status has changed // Look at a message whose status has changed
void examineChangedMessage(KMFolder *folder, TQ_UINT32 serNum, int delta); void examineChangedMessage(KMFolder *folder, TQ_UINT32 serNum, int delta);
// The serial numbers for a folder have been tqinvalidated, deal with it // The serial numbers for a folder have been invalidated, deal with it
void examineInvalidatedFolder(KMFolder *folder); void examineInvalidatedFolder(KMFolder *folder);
// A folder has been deleted, deal with it // A folder has been deleted, deal with it
void examineRemovedFolder(KMFolder *folder); void examineRemovedFolder(KMFolder *folder);

@ -1587,7 +1587,7 @@ void KMFolderTree::slotFolderExpanded( TQListViewItem * item )
return; return;
if ( folder->getSubfolderState() == KMFolderImap::imapNoInformation ) if ( folder->getSubfolderState() == KMFolderImap::imapNoInformation )
{ {
// check if all tqparents are expanded // check if all parents are expanded
TQListViewItem *tqparent = item->tqparent(); TQListViewItem *tqparent = item->tqparent();
while ( tqparent ) while ( tqparent )
{ {
@ -2043,15 +2043,15 @@ void KMFolderTree::moveOrCopyFolder( TQValueList<TQGuardedPtr<KMFolder> > source
// check if the source folders are independent of each other // check if the source folders are independent of each other
for ( TQValueList<TQGuardedPtr<KMFolder> >::ConstIterator it = sources.constBegin(); move && it != sources.constEnd(); ++it ) { for ( TQValueList<TQGuardedPtr<KMFolder> >::ConstIterator it = sources.constBegin(); move && it != sources.constEnd(); ++it ) {
KMFolderDir *tqparentDir = (*it)->child(); KMFolderDir *parentDir = (*it)->child();
if ( !tqparentDir ) if ( !parentDir )
continue; continue;
for ( TQValueList<TQGuardedPtr<KMFolder> >::ConstIterator it2 = sources.constBegin(); it2 != sources.constEnd(); ++it2 ) { for ( TQValueList<TQGuardedPtr<KMFolder> >::ConstIterator it2 = sources.constBegin(); it2 != sources.constEnd(); ++it2 ) {
if ( *it == *it2 ) if ( *it == *it2 )
continue; continue;
KMFolderDir *childDir = (*it2)->tqparent(); KMFolderDir *childDir = (*it2)->tqparent();
do { do {
if ( tqparentDir == childDir || tqparentDir->tqfindRef( childDir->owner() ) != -1 ) { if ( parentDir == childDir || parentDir->tqfindRef( childDir->owner() ) != -1 ) {
KMessageBox::error( this, i18n("Moving the selected folders is not possible") ); KMessageBox::error( this, i18n("Moving the selected folders is not possible") );
setDragEnabled( true ); setDragEnabled( true );
return; return;

@ -953,7 +953,7 @@ void KMHeaders::msgAdded(int id)
if ( !msgId.isEmpty() ) if ( !msgId.isEmpty() )
mSortCacheItems.tqreplace(msgId, sci); mSortCacheItems.tqreplace(msgId, sci);
/* Add to the list of potential tqparents for subject threading. But only if /* Add to the list of potential parents for subject threading. But only if
* we are top level. */ * we are top level. */
if (mSubjThreading && tqparent) { if (mSubjThreading && tqparent) {
TQString subjMD5 = mFolder->getMsgBase(id)->strippedSubjectMD5(); TQString subjMD5 = mFolder->getMsgBase(id)->strippedSubjectMD5();
@ -1110,7 +1110,7 @@ void KMHeaders::msgRemoved(int id, TQString msgId )
if (mSortCacheItems[msgId] == removedItem->sortCacheItem()) if (mSortCacheItems[msgId] == removedItem->sortCacheItem())
mSortCacheItems.remove(msgId); mSortCacheItems.remove(msgId);
} }
// Remove the message from the list of potential tqparents for threading by // Remove the message from the list of potential parents for threading by
// subject. // subject.
if ( mSubjThreading && removedItem->sortCacheItem()->subjectThreadingList() ) if ( mSubjThreading && removedItem->sortCacheItem()->subjectThreadingList() )
removedItem->sortCacheItem()->subjectThreadingList()->removeRef( removedItem->sortCacheItem() ); removedItem->sortCacheItem()->subjectThreadingList()->removeRef( removedItem->sortCacheItem() );
@ -2660,19 +2660,19 @@ void KMHeaders::setSorting( int column, bool ascending )
//Flatten the list and write it to disk //Flatten the list and write it to disk
static void internalWriteItem(FILE *sortStream, KMFolder *folder, int msgid, static void internalWriteItem(FILE *sortStream, KMFolder *folder, int msgid,
int tqparent_id, TQString key, int parent_id, TQString key,
bool update_discover=true) bool update_discover=true)
{ {
unsigned long msgSerNum; unsigned long msgSerNum;
unsigned long tqparentSerNum; unsigned long parentSerNum;
msgSerNum = KMMsgDict::instance()->getMsgSerNum( folder, msgid ); msgSerNum = KMMsgDict::instance()->getMsgSerNum( folder, msgid );
if (tqparent_id >= 0) if (parent_id >= 0)
tqparentSerNum = KMMsgDict::instance()->getMsgSerNum( folder, tqparent_id ) + KMAIL_RESERVED; parentSerNum = KMMsgDict::instance()->getMsgSerNum( folder, parent_id ) + KMAIL_RESERVED;
else else
tqparentSerNum = (unsigned long)(tqparent_id + KMAIL_RESERVED); parentSerNum = (unsigned long)(parent_id + KMAIL_RESERVED);
fwrite(&msgSerNum, sizeof(msgSerNum), 1, sortStream); fwrite(&msgSerNum, sizeof(msgSerNum), 1, sortStream);
fwrite(&tqparentSerNum, sizeof(tqparentSerNum), 1, sortStream); fwrite(&parentSerNum, sizeof(parentSerNum), 1, sortStream);
TQ_INT32 len = key.length() * sizeof(TQChar); TQ_INT32 len = key.length() * sizeof(TQChar);
fwrite(&len, sizeof(len), 1, sortStream); fwrite(&len, sizeof(len), 1, sortStream);
if (len) if (len)
@ -2768,7 +2768,7 @@ bool KMHeaders::writeSortOrder()
KMMsgBase *kmb; KMMsgBase *kmb;
while(HeaderItem *i = items.pop()) { while(HeaderItem *i = items.pop()) {
int tqparent_id = -1; //no tqparent, top level int parent_id = -1; //no tqparent, top level
if (threaded) { if (threaded) {
kmb = mFolder->getMsgBase( i->msgId() ); kmb = mFolder->getMsgBase( i->msgId() );
assert(kmb); // I have seen 0L come out of this, called from assert(kmb); // I have seen 0L come out of this, called from
@ -2781,7 +2781,7 @@ bool KMHeaders::writeSortOrder()
p = mSortCacheItems[replymd5]; p = mSortCacheItems[replymd5];
if (p) if (p)
tqparent_id = p->id(); parent_id = p->id();
// We now have either found a tqparent, or set it to -1, which means that // We now have either found a tqparent, or set it to -1, which means that
// it will be reevaluated when a message is added, for example. If there // it will be reevaluated when a message is added, for example. If there
// is no replyToId and no replyToAuxId and the message is not prefixed, // is no replyToId and no replyToAuxId and the message is not prefixed,
@ -2790,12 +2790,12 @@ bool KMHeaders::writeSortOrder()
if (replymd5.isEmpty() if (replymd5.isEmpty()
&& replyToAuxId.isEmpty() && replyToAuxId.isEmpty()
&& !kmb->subjectIsPrefixed() ) && !kmb->subjectIsPrefixed() )
tqparent_id = -2; parent_id = -2;
// FIXME also mark messages with -1 as -2 a certain amount of time after // FIXME also mark messages with -1 as -2 a certain amount of time after
// their arrival, since it becomes very unlikely that a new tqparent for // their arrival, since it becomes very unlikely that a new tqparent for
// them will show up. (Ingo suggests a month.) -till // them will show up. (Ingo suggests a month.) -till
} }
internalWriteItem(sortStream, mFolder, i->msgId(), tqparent_id, internalWriteItem(sortStream, mFolder, i->msgId(), parent_id,
i->key(mSortCol, !mSortDescending), false); i->key(mSortCol, !mSortDescending), false);
//double check for magic headers //double check for magic headers
sorted_count++; sorted_count++;
@ -2828,20 +2828,20 @@ void KMHeaders::appendItemToSortFile(HeaderItem *khi)
{ {
TQString sortFile = KMAIL_SORT_FILE(mFolder); TQString sortFile = KMAIL_SORT_FILE(mFolder);
if(FILE *sortStream = fopen(TQFile::encodeName(sortFile), "r+")) { if(FILE *sortStream = fopen(TQFile::encodeName(sortFile), "r+")) {
int tqparent_id = -1; //no tqparent, top level int parent_id = -1; //no tqparent, top level
if (isThreaded()) { if (isThreaded()) {
SortCacheItem *sci = khi->sortCacheItem(); SortCacheItem *sci = khi->sortCacheItem();
KMMsgBase *kmb = mFolder->getMsgBase( khi->msgId() ); KMMsgBase *kmb = mFolder->getMsgBase( khi->msgId() );
if(sci->tqparent() && !sci->isImperfectlyThreaded()) if(sci->tqparent() && !sci->isImperfectlyThreaded())
tqparent_id = sci->tqparent()->id(); parent_id = sci->tqparent()->id();
else if(kmb->replyToIdMD5().isEmpty() else if(kmb->replyToIdMD5().isEmpty()
&& kmb->replyToAuxIdMD5().isEmpty() && kmb->replyToAuxIdMD5().isEmpty()
&& !kmb->subjectIsPrefixed()) && !kmb->subjectIsPrefixed())
tqparent_id = -2; parent_id = -2;
} }
internalWriteItem(sortStream, mFolder, khi->msgId(), tqparent_id, internalWriteItem(sortStream, mFolder, khi->msgId(), parent_id,
khi->key(mSortCol, !mSortDescending), false); khi->key(mSortCol, !mSortDescending), false);
//update the appended flag FIXME obsolete? //update the appended flag FIXME obsolete?
@ -2881,12 +2881,12 @@ void SortCacheItem::updateSortFile( FILE *sortStream, KMFolder *folder,
fseek(sortStream, mSortOffset, SEEK_SET); fseek(sortStream, mSortOffset, SEEK_SET);
} }
int tqparent_id = -1; int parent_id = -1;
if(!waiting_for_tqparent) { if(!waiting_for_tqparent) {
if(mParent && !isImperfectlyThreaded()) if(mParent && !isImperfectlyThreaded())
tqparent_id = mParent->id(); parent_id = mParent->id();
} }
internalWriteItem(sortStream, folder, mId, tqparent_id, mKey, update_discover); internalWriteItem(sortStream, folder, mId, parent_id, mKey, update_discover);
} }
static bool compare_ascending = false; static bool compare_ascending = false;
@ -2931,8 +2931,8 @@ void KMHeaders::printThreadingTree()
} }
for (int i = 0; i < (int)mItems.size(); ++i) { for (int i = 0; i < (int)mItems.size(); ++i) {
HeaderItem *item = mItems[i]; HeaderItem *item = mItems[i];
int tqparentCacheId = item->sortCacheItem()->tqparent()?item->sortCacheItem()->tqparent()->id():0; int parentCacheId = item->sortCacheItem()->tqparent()?item->sortCacheItem()->tqparent()->id():0;
kdDebug( 5006 ) << "SortCacheItem: " << item->sortCacheItem()->id() << " tqparent: " << tqparentCacheId << endl; kdDebug( 5006 ) << "SortCacheItem: " << item->sortCacheItem()->id() << " tqparent: " << parentCacheId << endl;
kdDebug( 5006 ) << "Item: " << item << " sortCache: " << item->sortCacheItem() << " tqparent: " << item->sortCacheItem()->tqparent() << endl; kdDebug( 5006 ) << "Item: " << item << " sortCache: " << item->sortCacheItem() << " tqparent: " << item->sortCacheItem()->tqparent() << endl;
} }
kdDebug(5006) << endl; kdDebug(5006) << endl;
@ -3038,7 +3038,7 @@ SortCacheItem* KMHeaders::findParentBySubject(SortCacheItem *item)
TQString replyToIdMD5 = msg->replyToIdMD5(); TQString replyToIdMD5 = msg->replyToIdMD5();
TQString subjMD5 = msg->strippedSubjectMD5(); TQString subjMD5 = msg->strippedSubjectMD5();
if (!subjMD5.isEmpty() && mSubjectLists[subjMD5]) { if (!subjMD5.isEmpty() && mSubjectLists[subjMD5]) {
/* Iterate over the list of potential tqparents with the same /* Iterate over the list of potential parents with the same
* subject, and take the closest one by date. */ * subject, and take the closest one by date. */
for (TQPtrListIterator<SortCacheItem> it2(*mSubjectLists[subjMD5]); for (TQPtrListIterator<SortCacheItem> it2(*mSubjectLists[subjMD5]);
it2.current(); ++it2) { it2.current(); ++it2) {
@ -3050,7 +3050,7 @@ SortCacheItem* KMHeaders::findParentBySubject(SortCacheItem *item)
// delta == 0 is not allowed, to avoid circular threading // delta == 0 is not allowed, to avoid circular threading
// with duplicates. // with duplicates.
if (delta > 0 ) { if (delta > 0 ) {
// Don't use tqparents more than 6 weeks older than us. // Don't use parents more than 6 weeks older than us.
if (delta < 3628899) if (delta < 3628899)
tqparent = (*it2); tqparent = (*it2);
break; break;
@ -3077,7 +3077,7 @@ bool KMHeaders::readSortOrder( bool set_selection, bool forceJumpToUnread )
bool error = false; bool error = false;
//threaded cases //threaded cases
TQPtrList<SortCacheItem> untqparented; TQPtrList<SortCacheItem> unparented;
mImperfectlyThreadedList.clear(); mImperfectlyThreadedList.clear();
//cleanup //cleanup
@ -3117,7 +3117,7 @@ bool KMHeaders::readSortOrder( bool set_selection, bool forceJumpToUnread )
mSortInfo.ascending = (compare_ascending = ascending); mSortInfo.ascending = (compare_ascending = ascending);
SortCacheItem *item; SortCacheItem *item;
unsigned long serNum, tqparentSerNum; unsigned long serNum, parentSerNum;
int id, len, tqparent, x; int id, len, tqparent, x;
TQChar *tmp_qchar = 0; TQChar *tmp_qchar = 0;
int tmp_qchar_len = 0; int tmp_qchar_len = 0;
@ -3131,7 +3131,7 @@ bool KMHeaders::readSortOrder( bool set_selection, bool forceJumpToUnread )
KMFolder *folder; KMFolder *folder;
//parse //parse
if(!fread(&serNum, sizeof(serNum), 1, sortStream) || //short read means to end if(!fread(&serNum, sizeof(serNum), 1, sortStream) || //short read means to end
!fread(&tqparentSerNum, sizeof(tqparentSerNum), 1, sortStream) || !fread(&parentSerNum, sizeof(parentSerNum), 1, sortStream) ||
!fread(&len, sizeof(len), 1, sortStream)) { !fread(&len, sizeof(len), 1, sortStream)) {
break; break;
} }
@ -3157,10 +3157,10 @@ bool KMHeaders::readSortOrder( bool set_selection, bool forceJumpToUnread )
++deleted_count; ++deleted_count;
continue; continue;
} }
if (tqparentSerNum < KMAIL_RESERVED) { if (parentSerNum < KMAIL_RESERVED) {
tqparent = (int)tqparentSerNum - KMAIL_RESERVED; tqparent = (int)parentSerNum - KMAIL_RESERVED;
} else { } else {
KMMsgDict::instance()->getLocation(tqparentSerNum - KMAIL_RESERVED, &folder, &tqparent); KMMsgDict::instance()->getLocation(parentSerNum - KMAIL_RESERVED, &folder, &tqparent);
if (folder != mFolder) if (folder != mFolder)
tqparent = -1; tqparent = -1;
} }
@ -3185,7 +3185,7 @@ bool KMHeaders::readSortOrder( bool set_selection, bool forceJumpToUnread )
} }
if (threaded && tqparent != -2) { if (threaded && tqparent != -2) {
if(tqparent == -1) { if(tqparent == -1) {
untqparented.append(item); unparented.append(item);
mRoot->addUnsortedChild(item); mRoot->addUnsortedChild(item);
} else { } else {
if( ! sortCache[tqparent] ) { if( ! sortCache[tqparent] ) {
@ -3245,7 +3245,7 @@ bool KMHeaders::readSortOrder( bool set_selection, bool forceJumpToUnread )
sortCache[x] = new SortCacheItem( sortCache[x] = new SortCacheItem(
x, HeaderItem::generate_key( this, msg, &mPaintInfo, sortOrder )); x, HeaderItem::generate_key( this, msg, &mPaintInfo, sortOrder ));
if(threaded) if(threaded)
untqparented.append(sortCache[x]); unparented.append(sortCache[x]);
else else
mRoot->addUnsortedChild(sortCache[x]); mRoot->addUnsortedChild(sortCache[x]);
if(sortStream) if(sortStream)
@ -3263,11 +3263,11 @@ bool KMHeaders::readSortOrder( bool set_selection, bool forceJumpToUnread )
if (threaded) buildThreadingTree( sortCache ); if (threaded) buildThreadingTree( sortCache );
TQPtrList<SortCacheItem> toBeSubjThreaded; TQPtrList<SortCacheItem> toBeSubjThreaded;
if (threaded && !untqparented.isEmpty()) { if (threaded && !unparented.isEmpty()) {
CREATE_TIMER(reparent); CREATE_TIMER(reparent);
START_TIMER(reparent); START_TIMER(reparent);
for(TQPtrListIterator<SortCacheItem> it(untqparented); it.current(); ++it) { for(TQPtrListIterator<SortCacheItem> it(unparented); it.current(); ++it) {
SortCacheItem *item = (*it); SortCacheItem *item = (*it);
SortCacheItem *tqparent = findParent( item ); SortCacheItem *tqparent = findParent( item );
// If we have a tqparent, make sure it's not ourselves // If we have a tqparent, make sure it's not ourselves
@ -3515,7 +3515,7 @@ void KMHeaders::setCurrentItemBySerialNum( unsigned long serialNum )
{ {
// Linear search == slow. Don't overuse this method. // Linear search == slow. Don't overuse this method.
// It's currently only used for finding the current item again // It's currently only used for finding the current item again
// after expiry deleted mails (so the index got tqinvalidated). // after expiry deleted mails (so the index got invalidated).
for (int i = 0; i < (int)mItems.size() - 1; ++i) { for (int i = 0; i < (int)mItems.size() - 1; ++i) {
KMMsgBase *mMsgBase = mFolder->getMsgBase( i ); KMMsgBase *mMsgBase = mFolder->getMsgBase( i );
if ( mMsgBase->getMsgSerNum() == serialNum ) { if ( mMsgBase->getMsgSerNum() == serialNum ) {

@ -214,7 +214,7 @@ bool KMKernel::handleCommandLine( bool noArgsOpensReader )
// that the user wants to send a message with subject "ession" but // that the user wants to send a message with subject "ession" but
// (most likely) that the user clicked on KMail's system tray applet // (most likely) that the user clicked on KMail's system tray applet
// which results in KMKernel::raise() calling "kmail kmail newInstance" // which results in KMKernel::raise() calling "kmail kmail newInstance"
// via dcop which aptqparently executes the application with the original // via dcop which apparently executes the application with the original
// command line arguments and those include "-session ..." if // command line arguments and those include "-session ..." if
// kmail/kontact was restored by session management // kmail/kontact was restored by session management
if ( subj == "ession" ) { if ( subj == "ession" ) {

@ -119,7 +119,7 @@ void KMLineEdit::dropEvent( TQDropEvent *event )
else { else {
KABC::VCardConverter converter; KABC::VCardConverter converter;
TQString fileName; TQString fileName;
if ( KIO::NetAccess::download( (*it), fileName, tqparentWidget() ) ) { if ( KIO::NetAccess::download( (*it), fileName, parentWidget() ) ) {
TQFile file( fileName ); TQFile file( fileName );
file.open( IO_ReadOnly ); file.open( IO_ReadOnly );
const TQByteArray data = file.readAll(); const TQByteArray data = file.readAll();
@ -133,7 +133,7 @@ void KMLineEdit::dropEvent( TQDropEvent *event )
} else { } else {
TQString caption( i18n( "vCard Import Failed" ) ); TQString caption( i18n( "vCard Import Failed" ) );
TQString text = i18n( "<qt>Unable to access <b>%1</b>.</qt>" ).tqarg( (*it).url() ); TQString text = i18n( "<qt>Unable to access <b>%1</b>.</qt>" ).tqarg( (*it).url() );
KMessageBox::error( tqparentWidget(), text, caption ); KMessageBox::error( parentWidget(), text, caption );
} }
} }
// Now, let the user choose which addressee to add. // Now, let the user choose which addressee to add.

@ -351,13 +351,13 @@ void KMMainWidget::readConfig(void)
readPreConfig(); readPreConfig();
mHeaders->refreshNestedState(); mHeaders->refreshNestedState();
bool tqlayoutChanged = ( oldLongFolderList != mLongFolderList ) bool layoutChanged = ( oldLongFolderList != mLongFolderList )
|| ( oldReaderWindowActive != mReaderWindowActive ) || ( oldReaderWindowActive != mReaderWindowActive )
|| ( oldReaderWindowBelow != mReaderWindowBelow ) || ( oldReaderWindowBelow != mReaderWindowBelow )
|| ( oldFavoriteFolderView != mEnableFavoriteFolderView ); || ( oldFavoriteFolderView != mEnableFavoriteFolderView );
if( tqlayoutChanged ) { if( layoutChanged ) {
hide(); hide();
// delete all panners // delete all panners
delete mPanner1; // will always delete the others delete mPanner1; // will always delete the others
@ -389,11 +389,11 @@ void KMMainWidget::readConfig(void)
widths << folderW << headerW; widths << folderW << headerW;
heights << headerH << readerH; heights << headerH << readerH;
bool tqlayoutChanged = ( oldLongFolderList != mLongFolderList ) bool layoutChanged = ( oldLongFolderList != mLongFolderList )
|| ( oldReaderWindowActive != mReaderWindowActive ) || ( oldReaderWindowActive != mReaderWindowActive )
|| ( oldReaderWindowBelow != mReaderWindowBelow ); || ( oldReaderWindowBelow != mReaderWindowBelow );
if (!mStartupDone || tqlayoutChanged ) if (!mStartupDone || layoutChanged )
{ {
/** unread / total columns /** unread / total columns
* as we have some dependencies in this widget * as we have some dependencies in this widget
@ -482,11 +482,11 @@ void KMMainWidget::readConfig(void)
// Update systray // Update systray
toggleSystemTray(); toggleSystemTray();
bool tqlayoutChanged = ( oldLongFolderList != mLongFolderList ) bool layoutChanged = ( oldLongFolderList != mLongFolderList )
|| ( oldReaderWindowActive != mReaderWindowActive ) || ( oldReaderWindowActive != mReaderWindowActive )
|| ( oldReaderWindowBelow != mReaderWindowBelow ) || ( oldReaderWindowBelow != mReaderWindowBelow )
|| ( oldFavoriteFolderView != mEnableFavoriteFolderView ); || ( oldFavoriteFolderView != mEnableFavoriteFolderView );
if ( tqlayoutChanged ) { if ( layoutChanged ) {
activatePanners(); activatePanners();
} }
@ -1314,7 +1314,7 @@ void KMMainWidget::slotInvalidateIMAPFolders() {
"This will remove all changes that you have done " "This will remove all changes that you have done "
"locally to your IMAP folders."), "locally to your IMAP folders."),
i18n("Refresh IMAP Cache"), i18n("&Refresh") ) == KMessageBox::Continue ) i18n("Refresh IMAP Cache"), i18n("&Refresh") ) == KMessageBox::Continue )
kmkernel->acctMgr()->tqinvalidateIMAPFolders(); kmkernel->acctMgr()->invalidateIMAPFolders();
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
@ -2659,7 +2659,7 @@ void KMMainWidget::setupActions()
(void) new KAction( i18n("&Refresh Local IMAP Cache"), "refresh", (void) new KAction( i18n("&Refresh Local IMAP Cache"), "refresh",
TQT_TQOBJECT(this), TQT_SLOT(slotInvalidateIMAPFolders()), TQT_TQOBJECT(this), TQT_SLOT(slotInvalidateIMAPFolders()),
actionCollection(), "file_tqinvalidate_imap_cache" ); actionCollection(), "file_invalidate_imap_cache" );
(void) new KAction( i18n("Empty All &Trash Folders"), 0, (void) new KAction( i18n("Empty All &Trash Folders"), 0,
KMKernel::self(), TQT_SLOT(slotEmptyTrash()), KMKernel::self(), TQT_SLOT(slotEmptyTrash()),
@ -3339,8 +3339,8 @@ void KMMainWidget::updateMessageActions()
} }
TQListViewItem *curItemParent = mHeaders->currentItem(); TQListViewItem *curItemParent = mHeaders->currentItem();
bool tqparent_thread = 0; bool parent_thread = 0;
if ( curItemParent && curItemParent->firstChild() != 0 ) tqparent_thread = 1; if ( curItemParent && curItemParent->firstChild() != 0 ) parent_thread = 1;
bool mass_actions = count >= 1; bool mass_actions = count >= 1;
bool thread_actions = mass_actions && allSelectedInCommonThread && bool thread_actions = mass_actions && allSelectedInCommonThread &&
@ -3376,7 +3376,7 @@ void KMMainWidget::updateMessageActions()
mFindInMessageAction->setEnabled( mass_actions && !kmkernel->folderIsTemplates( mFolder ) ); mFindInMessageAction->setEnabled( mass_actions && !kmkernel->folderIsTemplates( mFolder ) );
mForwardInlineAction->setEnabled( mass_actions && !kmkernel->folderIsTemplates( mFolder )); mForwardInlineAction->setEnabled( mass_actions && !kmkernel->folderIsTemplates( mFolder ));
mForwardAttachedAction->setEnabled( mass_actions && !kmkernel->folderIsTemplates( mFolder ) ); mForwardAttachedAction->setEnabled( mass_actions && !kmkernel->folderIsTemplates( mFolder ) );
mForwardDigestAction->setEnabled( ( count > 1 || tqparent_thread ) && !kmkernel->folderIsTemplates( mFolder ) ); mForwardDigestAction->setEnabled( ( count > 1 || parent_thread ) && !kmkernel->folderIsTemplates( mFolder ) );
forwardMenu()->setEnabled( mass_actions && !kmkernel->folderIsTemplates( mFolder )); forwardMenu()->setEnabled( mass_actions && !kmkernel->folderIsTemplates( mFolder ));

@ -25,7 +25,7 @@
<Action name="file_print" /> <Action name="file_print" />
<Separator/> <Separator/>
<Action name="expire_all_folders" /> <Action name="expire_all_folders" />
<Action name="file_tqinvalidate_imap_cache"/> <Action name="file_invalidate_imap_cache"/>
<Action name="empty_trash"/> <Action name="empty_trash"/>
<Separator/> <Separator/>
<Action name="online_status" /> <Action name="online_status" />

@ -3183,10 +3183,10 @@ bool KMMessage::deleteBodyPart( int partIndex )
if ( !part.isComplete() ) if ( !part.isComplete() )
return false; return false;
DwBody *tqparentNode = dynamic_cast<DwBody*>( dwpart->Parent() ); DwBody *parentNode = dynamic_cast<DwBody*>( dwpart->Parent() );
if ( !tqparentNode ) if ( !parentNode )
return false; return false;
tqparentNode->RemoveBodyPart( dwpart ); parentNode->RemoveBodyPart( dwpart );
// add dummy part to show that a attachment has been deleted // add dummy part to show that a attachment has been deleted
KMMessagePart dummyPart; KMMessagePart dummyPart;
@ -3204,7 +3204,7 @@ bool KMMessage::deleteBodyPart( int partIndex )
dummyPart.setContentDisposition( "attachment" ); dummyPart.setContentDisposition( "attachment" );
} }
DwBodyPart* newDwPart = createDWBodyPart( &dummyPart ); DwBodyPart* newDwPart = createDWBodyPart( &dummyPart );
tqparentNode->AddBodyPart( newDwPart ); parentNode->AddBodyPart( newDwPart );
getTopLevelPart()->Assemble(); getTopLevelPart()->Assemble();
return true; return true;
} }
@ -4306,10 +4306,10 @@ void KMMessage::updateBodyPart(const TQString partSpecifier, const TQByteArray &
} else { } else {
// update body // update body
mLastUpdated->Body().FromString( content ); mLastUpdated->Body().FromString( content );
TQString tqparentSpec = partSpecifier.section( '.', 0, -2 ); TQString parentSpec = partSpecifier.section( '.', 0, -2 );
if ( !tqparentSpec.isEmpty() ) if ( !parentSpec.isEmpty() )
{ {
DwBodyPart* tqparent = findDwBodyPart( getFirstDwBodyPart(), tqparentSpec ); DwBodyPart* tqparent = findDwBodyPart( getFirstDwBodyPart(), parentSpec );
if ( tqparent && tqparent->hasHeaders() && tqparent->Headers().HasContentType() ) if ( tqparent && tqparent->hasHeaders() && tqparent->Headers().HasContentType() )
{ {
const DwMediaType& contentType = tqparent->Headers().ContentType(); const DwMediaType& contentType = tqparent->Headers().ContentType();

@ -274,7 +274,7 @@ void KMReaderWin::objectTreeToDecryptedMsg( partNode* node,
DwHeaders * headers( DwHeaders * headers(
(part && part->hasHeaders()) (part && part->hasHeaders())
? &part->Headers() ? &part->Headers()
: ( (weAreReplacingTheRootNode || !dataNode->tqparentNode()) : ( (weAreReplacingTheRootNode || !dataNode->parentNode())
? &rootHeaders ? &rootHeaders
: 0 ) ); : 0 ) );
if( dataNode == curNode ) { if( dataNode == curNode ) {
@ -284,7 +284,7 @@ kdDebug(5006) << "dataNode == curNode: Save curNode without replacing it." << e
// AND we are not replacing a node that already *has* replaced // AND we are not replacing a node that already *has* replaced
// the root node in previous recursion steps of this function... // the root node in previous recursion steps of this function...
if( headers ) { if( headers ) {
if( dataNode->tqparentNode() && !weAreReplacingTheRootNode ) { if( dataNode->parentNode() && !weAreReplacingTheRootNode ) {
kdDebug(5006) << "dataNode is NOT replacing the root node: Store the headers." << endl; kdDebug(5006) << "dataNode is NOT replacing the root node: Store the headers." << endl;
resultingData += headers->AsString().c_str(); resultingData += headers->AsString().c_str();
} else if( weAreReplacingTheRootNode && part && part->hasHeaders() ){ } else if( weAreReplacingTheRootNode && part && part->hasHeaders() ){
@ -345,7 +345,7 @@ kdDebug(5006) << "is Simple part or invalid Multipart, storing body data .. DONE
} }
} else { } else {
kdDebug(5006) << "dataNode != curNode: Replace curNode by dataNode." << endl; kdDebug(5006) << "dataNode != curNode: Replace curNode by dataNode." << endl;
bool rootNodeReplaceFlag = weAreReplacingTheRootNode || !curNode->tqparentNode(); bool rootNodeReplaceFlag = weAreReplacingTheRootNode || !curNode->parentNode();
if( rootNodeReplaceFlag ) { if( rootNodeReplaceFlag ) {
kdDebug(5006) << " Root node will be replaced." << endl; kdDebug(5006) << " Root node will be replaced." << endl;
} else { } else {

@ -211,7 +211,7 @@ void KMSystemTray::updateCount()
// and which has a transparent background. // and which has a transparent background.
// Unfortunately this required the following twisted code because for some // Unfortunately this required the following twisted code because for some
// reason text that is drawn on a transparent pixmap is invisible // reason text that is drawn on a transparent pixmap is invisible
// (aptqparently the alpha channel isn't changed when the text is drawn). // (apparently the alpha channel isn't changed when the text is drawn).
// Therefore I have to draw the text on a solid background and then remove // Therefore I have to draw the text on a solid background and then remove
// the background by making it transparent with TQPixmap::setMask. This // the background by making it transparent with TQPixmap::setMask. This
// involves the slow createHeuristicMask() function (from the API docs: // involves the slow createHeuristicMask() function (from the API docs:

@ -208,20 +208,20 @@ namespace KMail {
myBody->Headers().Parse(); myBody->Headers().Parse();
} }
partNode* tqparentNode = &startNode; partNode* parentNode = &startNode;
partNode* newNode = new partNode(false, myBody); partNode* newNode = new partNode(false, myBody);
// Build the object tree of the new node before setting the tqparent, as otherwise // Build the object tree of the new node before setting the tqparent, as otherwise
// buildObjectTree() would erronously modify the tqparents as well // buildObjectTree() would erronously modify the parents as well
newNode->buildObjectTree( false ); newNode->buildObjectTree( false );
if ( append && tqparentNode->firstChild() ) { if ( append && parentNode->firstChild() ) {
tqparentNode = tqparentNode->firstChild(); parentNode = parentNode->firstChild();
while( tqparentNode->nextSibling() ) while( parentNode->nextSibling() )
tqparentNode = tqparentNode->nextSibling(); parentNode = parentNode->nextSibling();
tqparentNode->setNext( newNode ); parentNode->setNext( newNode );
} else } else
tqparentNode->setFirstChild( newNode ); parentNode->setFirstChild( newNode );
if ( startNode.mimePartTreeItem() ) { if ( startNode.mimePartTreeItem() ) {
newNode->fillMimePartTree( startNode.mimePartTreeItem(), 0, newNode->fillMimePartTree( startNode.mimePartTreeItem(), 0,
@ -260,7 +260,7 @@ namespace KMail {
node->setProcessed( false, false ); node->setProcessed( false, false );
if ( partNode * child = node->firstChild() ) if ( partNode * child = node->firstChild() )
child->setProcessed( false, true ); child->setProcessed( false, true );
} else if ( mReader && !node->tqparentNode() ) { } else if ( mReader && !node->parentNode() ) {
// ...this node and all it's siblings and descendants // ...this node and all it's siblings and descendants
node->setProcessed( false, true ); node->setProcessed( false, true );
} }
@ -338,7 +338,7 @@ namespace KMail {
const AttachmentStrategy * as = attachmentStrategy(); const AttachmentStrategy * as = attachmentStrategy();
if ( as && as->defaultDisplay( node ) == AttachmentStrategy::None && if ( as && as->defaultDisplay( node ) == AttachmentStrategy::None &&
!showOnlyOneMimePart() && !showOnlyOneMimePart() &&
node->tqparentNode() /* message is not an attachment */ ) { node->parentNode() /* message is not an attachment */ ) {
node->setDisplayedHidden( true ); node->setDisplayedHidden( true );
return; return;
} }
@ -1544,9 +1544,9 @@ namespace KMail {
} }
const Kleo::CryptoBackend::Protocol* oldUseThisCryptPlug = cryptoProtocol(); const Kleo::CryptoBackend::Protocol* oldUseThisCryptPlug = cryptoProtocol();
if ( node->tqparentNode() if ( node->parentNode()
&& DwMime::kTypeMultipart == node->tqparentNode()->type() && DwMime::kTypeMultipart == node->parentNode()->type()
&& DwMime::kSubtypeEncrypted == node->tqparentNode()->subType() ) { && DwMime::kSubtypeEncrypted == node->parentNode()->subType() ) {
//kdDebug(5006) << "\n-----> Initially processing encrypted data\n" << endl; //kdDebug(5006) << "\n-----> Initially processing encrypted data\n" << endl;
node->setEncryptionState( KMMsgFullyEncrypted ); node->setEncryptionState( KMMsgFullyEncrypted );
if ( keepEncryptions() ) { if ( keepEncryptions() ) {

@ -236,8 +236,8 @@ TQCString partNode::subTypeString() const {
const partNode* partNode::topLevelParent() const { const partNode* partNode::topLevelParent() const {
const partNode *ret = this; const partNode *ret = this;
while ( ret->tqparentNode() ) while ( ret->parentNode() )
ret = ret->tqparentNode(); ret = ret->parentNode();
return ret; return ret;
} }
@ -358,9 +358,9 @@ KMMsgSignatureState partNode::overallSignatureState() const
TQCString partNode::path() const TQCString partNode::path() const
{ {
if ( !tqparentNode() ) if ( !parentNode() )
return ':'; return ':';
const partNode * p = tqparentNode(); const partNode * p = parentNode();
// count number of siblings with the same type as us: // count number of siblings with the same type as us:
int nth = 0; int nth = 0;
@ -463,7 +463,7 @@ partNode* partNode::findTypeNot( int type, int subType, bool deep, bool wide )
return 0; return 0;
} }
void partNode::fillMimePartTree( KMMimePartTreeItem* tqparentItem, void partNode::fillMimePartTree( KMMimePartTreeItem* parentItem,
KMMimePartTree* mimePartTree, KMMimePartTree* mimePartTree,
TQString labelDescr, TQString labelDescr,
TQString labelCntType, TQString labelCntType,
@ -471,10 +471,10 @@ void partNode::fillMimePartTree( KMMimePartTreeItem* tqparentItem,
KIO::filesize_t size, KIO::filesize_t size,
bool revertOrder ) bool revertOrder )
{ {
if( tqparentItem || mimePartTree ) { if( parentItem || mimePartTree ) {
if( mNext ) if( mNext )
mNext->fillMimePartTree( tqparentItem, mimePartTree, mNext->fillMimePartTree( parentItem, mimePartTree,
TQString(), TQString(), TQString(), 0, TQString(), TQString(), TQString(), 0,
revertOrder ); revertOrder );
@ -518,8 +518,8 @@ void partNode::fillMimePartTree( KMMimePartTreeItem* tqparentItem,
// remove linebreak+whitespace from folded Content-Description // remove linebreak+whitespace from folded Content-Description
cntDesc.tqreplace( TQRegExp("\\n\\s*"), " " ); cntDesc.tqreplace( TQRegExp("\\n\\s*"), " " );
if( tqparentItem ) if( parentItem )
mMimePartTreeItem = new KMMimePartTreeItem( tqparentItem, mMimePartTreeItem = new KMMimePartTreeItem( parentItem,
this, this,
cntDesc, cntDesc,
cntType, cntType,
@ -595,7 +595,7 @@ partNode * partNode::next( bool allowChildren ) const {
return c; return c;
if ( partNode * s = nextSibling() ) if ( partNode * s = nextSibling() )
return s; return s;
for ( partNode * p = tqparentNode() ; p ; p = p->tqparentNode() ) for ( partNode * p = parentNode() ; p ; p = p->parentNode() )
if ( partNode * s = p->nextSibling() ) if ( partNode * s = p->nextSibling() )
return s; return s;
return 0; return 0;
@ -607,7 +607,7 @@ bool partNode::isFirstTextPart() const {
const partNode * root = this; const partNode * root = this;
// go up until we reach the root node of a message (of the actual message or // go up until we reach the root node of a message (of the actual message or
// of an attached message) // of an attached message)
while ( const partNode * p = root->tqparentNode() ) { while ( const partNode * p = root->parentNode() ) {
if ( p->type() == DwMime::kTypeMessage ) if ( p->type() == DwMime::kTypeMessage )
break; break;
else else
@ -652,11 +652,11 @@ bool partNode::isInEncapsulatedMessage() const
const partNode * const topLevel = topLevelParent(); const partNode * const topLevel = topLevelParent();
const partNode *cur = this; const partNode *cur = this;
while ( cur && cur != topLevel ) { while ( cur && cur != topLevel ) {
const bool tqparentIsMessage = cur->tqparentNode() && const bool parentIsMessage = cur->parentNode() &&
cur->tqparentNode()->msgPart().typeStr().lower() == "message"; cur->parentNode()->msgPart().typeStr().lower() == "message";
if ( tqparentIsMessage && cur->tqparentNode() != topLevel ) if ( parentIsMessage && cur->parentNode() != topLevel )
return true; return true;
cur = cur->tqparentNode(); cur = cur->parentNode();
} }
return false; return false;
} }
@ -768,8 +768,8 @@ partNode::AttachmentDisplayInfo partNode::attachmentDisplayInfo() const
typeBlacklisted = typeBlacklisted || this == topLevelParent(); typeBlacklisted = typeBlacklisted || this == topLevelParent();
bool firstTextChildOfEncapsulatedMsg = msgPart().typeStr().lower() == "text" && bool firstTextChildOfEncapsulatedMsg = msgPart().typeStr().lower() == "text" &&
msgPart().subtypeStr().lower() == "plain" && msgPart().subtypeStr().lower() == "plain" &&
tqparentNode() && parentNode() &&
tqparentNode()->msgPart().typeStr().lower() == "message"; parentNode()->msgPart().typeStr().lower() == "message";
typeBlacklisted = typeBlacklisted || firstTextChildOfEncapsulatedMsg; typeBlacklisted = typeBlacklisted || firstTextChildOfEncapsulatedMsg;
info.displayInHeader = !info.label.isEmpty() && !info.icon.isEmpty() && !typeBlacklisted; info.displayInHeader = !info.label.isEmpty() && !info.icon.isEmpty() && !typeBlacklisted;
return info; return info;

@ -179,7 +179,7 @@ public:
partNode* findNodeForDwPart( DwBodyPart* part ); partNode* findNodeForDwPart( DwBodyPart* part );
void fillMimePartTree( KMMimePartTreeItem* tqparentItem, void fillMimePartTree( KMMimePartTreeItem* parentItem,
KMMimePartTree* mimePartTree, KMMimePartTree* mimePartTree,
TQString labelDescr = TQString(), TQString labelDescr = TQString(),
TQString labelCntType = TQString(), TQString labelCntType = TQString(),
@ -248,7 +248,7 @@ public:
const TQString& trueFromAddress() const; const TQString& trueFromAddress() const;
const partNode * topLevelParent() const; const partNode * topLevelParent() const;
partNode * tqparentNode() const { return mRoot; } partNode * parentNode() const { return mRoot; }
partNode * nextSibling() const { return mNext; } partNode * nextSibling() const { return mNext; }
partNode * firstChild() const { return mChild; } partNode * firstChild() const { return mChild; }
partNode * next( bool allowChildren=true ) const; partNode * next( bool allowChildren=true ) const;

@ -291,7 +291,7 @@ int RecipientLine::setComboWidth( int w )
w = TQMAX( w, mCombo->tqsizeHint().width() ); w = TQMAX( w, mCombo->tqsizeHint().width() );
mCombo->setFixedWidth( w ); mCombo->setFixedWidth( w );
mCombo->updateGeometry(); mCombo->updateGeometry();
tqparentWidget()->updateGeometry(); parentWidget()->updateGeometry();
return w; return w;
} }
@ -536,7 +536,7 @@ void RecipientsView::resizeView()
// setFixedHeight( mLineHeight * mLines.count() ); // setFixedHeight( mLineHeight * mLines.count() );
} }
tqparentWidget()->tqlayout()->activate(); parentWidget()->tqlayout()->activate();
emit tqsizeHintChanged(); emit tqsizeHintChanged();
TQTimer::singleShot( 0, this, TQT_SLOT(moveCompletionPopup()) ); TQTimer::singleShot( 0, this, TQT_SLOT(moveCompletionPopup()) );
} }

@ -409,5 +409,5 @@ The syntax is "HOST" or "HOST:PORT". If PORT is omitted, port 389 (standard LDAP
<slot>setDisabled(bool)</slot> <slot>setDisabled(bool)</slot>
</connection> </connection>
</connections> </connections>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
</UI> </UI>

@ -169,7 +169,7 @@
<tabstop>btnAdd</tabstop> <tabstop>btnAdd</tabstop>
<tabstop>btnCancel</tabstop> <tabstop>btnCancel</tabstop>
</tabstops> </tabstops>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
<includehints> <includehints>
<includehint>kpushbutton.h</includehint> <includehint>kpushbutton.h</includehint>
<includehint>kpushbutton.h</includehint> <includehint>kpushbutton.h</includehint>

@ -177,7 +177,7 @@
</widget> </widget>
</grid> </grid>
</widget> </widget>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
<includehints> <includehints>
<includehint>klineedit.h</includehint> <includehint>klineedit.h</includehint>
</includehints> </includehints>

@ -661,9 +661,9 @@ bool SnippetWidget::showMultiVarDialog(TQMap<TQString, TQString> * map, TQMap<TQ
dlg.setCaption(i18n("Enter Values for Variables")); dlg.setCaption(i18n("Enter Values for Variables"));
TQGridLayout * tqlayout = new TQGridLayout( &dlg, 1, 1, 11, 6, "tqlayout"); TQGridLayout * tqlayout = new TQGridLayout( &dlg, 1, 1, 11, 6, "tqlayout");
TQGridLayout * tqlayoutTop = new TQGridLayout( 0, 1, 1, 0, 6, "tqlayoutTop"); TQGridLayout * layoutTop = new TQGridLayout( 0, 1, 1, 0, 6, "layoutTop");
TQGridLayout * tqlayoutVar = new TQGridLayout( 0, 1, 1, 0, 6, "tqlayoutVar"); TQGridLayout * layoutVar = new TQGridLayout( 0, 1, 1, 0, 6, "layoutVar");
TQGridLayout * tqlayoutBtn = new TQGridLayout( 0, 1, 1, 0, 6, "tqlayoutBtn"); TQGridLayout * layoutBtn = new TQGridLayout( 0, 1, 1, 0, 6, "layoutBtn");
KTextEdit *te = NULL; KTextEdit *te = NULL;
TQLabel * labTop = NULL; TQLabel * labTop = NULL;
@ -673,8 +673,8 @@ bool SnippetWidget::showMultiVarDialog(TQMap<TQString, TQString> * map, TQMap<TQ
labTop->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, labTop->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0,
labTop->sizePolicy().hasHeightForWidth() ) ); labTop->sizePolicy().hasHeightForWidth() ) );
labTop->setText(i18n("Enter the replacement values for these variables:")); labTop->setText(i18n("Enter the replacement values for these variables:"));
tqlayoutTop->addWidget(labTop, 0, 0); layoutTop->addWidget(labTop, 0, 0);
tqlayout->addMultiCellLayout( tqlayoutTop, 0, 0, 0, 1 ); tqlayout->addMultiCellLayout( layoutTop, 0, 0, 0, 1 );
int i = 0; //walk through the variable map and add int i = 0; //walk through the variable map and add
@ -685,10 +685,10 @@ bool SnippetWidget::showMultiVarDialog(TQMap<TQString, TQString> * map, TQMap<TQ
cb = new TQCheckBox( &dlg, "cbVar" ); cb = new TQCheckBox( &dlg, "cbVar" );
cb->setChecked( FALSE ); cb->setChecked( FALSE );
cb->setText(it.key()); cb->setText(it.key());
tqlayoutVar->addWidget( cb, i ,0, TQt::AlignTop ); layoutVar->addWidget( cb, i ,0, TQt::AlignTop );
te = new KTextEdit( &dlg, "teVar" ); te = new KTextEdit( &dlg, "teVar" );
tqlayoutVar->addWidget( te, i, 1, TQt::AlignTop ); layoutVar->addWidget( te, i, 1, TQt::AlignTop );
if ((*mapSave)[it.key()].length() > 0) { if ((*mapSave)[it.key()].length() > 0) {
cb->setChecked( TRUE ); cb->setChecked( TRUE );
@ -705,20 +705,20 @@ bool SnippetWidget::showMultiVarDialog(TQMap<TQString, TQString> * map, TQMap<TQ
i++; i++;
} }
tqlayout->addMultiCellLayout( tqlayoutVar, 1, 1, 0, 1 ); tqlayout->addMultiCellLayout( layoutVar, 1, 1, 0, 1 );
KPushButton * btn1 = new KPushButton( KStdGuiItem::cancel(), &dlg, "pushButton1" ); KPushButton * btn1 = new KPushButton( KStdGuiItem::cancel(), &dlg, "pushButton1" );
btn1->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, btn1->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0,
btn1->sizePolicy().hasHeightForWidth() ) ); btn1->sizePolicy().hasHeightForWidth() ) );
tqlayoutBtn->addWidget( btn1, 0, 0 ); layoutBtn->addWidget( btn1, 0, 0 );
KPushButton * btn2 = new KPushButton( KStdGuiItem::apply(), &dlg, "pushButton2" ); KPushButton * btn2 = new KPushButton( KStdGuiItem::apply(), &dlg, "pushButton2" );
btn2->setDefault( TRUE ); btn2->setDefault( TRUE );
btn2->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, btn2->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0,
btn2->sizePolicy().hasHeightForWidth() ) ); btn2->sizePolicy().hasHeightForWidth() ) );
tqlayoutBtn->addWidget( btn2, 0, 1 ); layoutBtn->addWidget( btn2, 0, 1 );
tqlayout->addMultiCellLayout( tqlayoutBtn, 2, 2, 0, 1 ); tqlayout->addMultiCellLayout( layoutBtn, 2, 2, 0, 1 );
// --END-- building a dynamic dialog // --END-- building a dynamic dialog
//connect the buttons to the TQDialog default slots //connect the buttons to the TQDialog default slots
@ -750,8 +750,8 @@ bool SnippetWidget::showMultiVarDialog(TQMap<TQString, TQString> * map, TQMap<TQ
} }
bReturn = true; bReturn = true;
iBasicHeight = dlg.tqgeometry().height() - tqlayoutVar->tqgeometry().height(); iBasicHeight = dlg.tqgeometry().height() - layoutVar->tqgeometry().height();
iOneHeight = tqlayoutVar->tqgeometry().height() / mapVar2Te.count(); iOneHeight = layoutVar->tqgeometry().height() / mapVar2Te.count();
iWidth = dlg.tqgeometry().width(); iWidth = dlg.tqgeometry().width();
} }
@ -764,9 +764,9 @@ bool SnippetWidget::showMultiVarDialog(TQMap<TQString, TQString> * map, TQMap<TQ
for (it2 = mapVar2Cb.begin(); it2 != mapVar2Cb.end(); ++it2) for (it2 = mapVar2Cb.begin(); it2 != mapVar2Cb.end(); ++it2)
delete it2.data(); delete it2.data();
mapVar2Cb.clear(); mapVar2Cb.clear();
delete tqlayoutTop; delete layoutTop;
delete tqlayoutVar; delete layoutVar;
delete tqlayoutBtn; delete layoutBtn;
delete tqlayout; delete tqlayout;
if (i==0) //if nothing happened this means, that there are no variables to translate if (i==0) //if nothing happened this means, that there are no variables to translate
@ -789,18 +789,18 @@ TQString SnippetWidget::showSingleVarDialog(TQString var, TQMap<TQString, TQStri
dlg.setCaption(i18n("Enter Values for Variables")); dlg.setCaption(i18n("Enter Values for Variables"));
TQGridLayout * tqlayout = new TQGridLayout( &dlg, 1, 1, 11, 6, "tqlayout"); TQGridLayout * tqlayout = new TQGridLayout( &dlg, 1, 1, 11, 6, "tqlayout");
TQGridLayout * tqlayoutTop = new TQGridLayout( 0, 1, 1, 0, 6, "tqlayoutTop"); TQGridLayout * layoutTop = new TQGridLayout( 0, 1, 1, 0, 6, "layoutTop");
TQGridLayout * tqlayoutVar = new TQGridLayout( 0, 1, 1, 0, 6, "tqlayoutVar"); TQGridLayout * layoutVar = new TQGridLayout( 0, 1, 1, 0, 6, "layoutVar");
TQGridLayout * tqlayoutBtn = new TQGridLayout( 0, 2, 1, 0, 6, "tqlayoutBtn"); TQGridLayout * layoutBtn = new TQGridLayout( 0, 2, 1, 0, 6, "layoutBtn");
KTextEdit *te = NULL; KTextEdit *te = NULL;
TQLabel * labTop = NULL; TQLabel * labTop = NULL;
TQCheckBox * cb = NULL; TQCheckBox * cb = NULL;
labTop = new TQLabel( &dlg, "label" ); labTop = new TQLabel( &dlg, "label" );
tqlayoutTop->addWidget(labTop, 0, 0); layoutTop->addWidget(labTop, 0, 0);
labTop->setText(i18n("Enter the replacement values for %1:").tqarg( var )); labTop->setText(i18n("Enter the replacement values for %1:").tqarg( var ));
tqlayout->addMultiCellLayout( tqlayoutTop, 0, 0, 0, 1 ); tqlayout->addMultiCellLayout( layoutTop, 0, 0, 0, 1 );
cb = new TQCheckBox( &dlg, "cbVar" ); cb = new TQCheckBox( &dlg, "cbVar" );
@ -808,8 +808,8 @@ TQString SnippetWidget::showSingleVarDialog(TQString var, TQMap<TQString, TQStri
cb->setText(i18n( "Make value &default" )); cb->setText(i18n( "Make value &default" ));
te = new KTextEdit( &dlg, "teVar" ); te = new KTextEdit( &dlg, "teVar" );
tqlayoutVar->addWidget( te, 0, 1, TQt::AlignTop); layoutVar->addWidget( te, 0, 1, TQt::AlignTop);
tqlayoutVar->addWidget( cb, 1, 1, TQt::AlignTop); layoutVar->addWidget( cb, 1, 1, TQt::AlignTop);
if ((*mapSave)[var].length() > 0) { if ((*mapSave)[var].length() > 0) {
cb->setChecked( TRUE ); cb->setChecked( TRUE );
te->setText((*mapSave)[var]); te->setText((*mapSave)[var]);
@ -820,16 +820,16 @@ TQString SnippetWidget::showSingleVarDialog(TQString var, TQMap<TQString, TQStri
"If you use the same variable later, even in another snippet, the value entered to the right " "If you use the same variable later, even in another snippet, the value entered to the right "
"will be the default value for that variable.") ); "will be the default value for that variable.") );
tqlayout->addMultiCellLayout( tqlayoutVar, 1, 1, 0, 1 ); tqlayout->addMultiCellLayout( layoutVar, 1, 1, 0, 1 );
KPushButton * btn1 = new KPushButton( KStdGuiItem::cancel(), &dlg, "pushButton1" ); KPushButton * btn1 = new KPushButton( KStdGuiItem::cancel(), &dlg, "pushButton1" );
tqlayoutBtn->addWidget( btn1, 0, 0 ); layoutBtn->addWidget( btn1, 0, 0 );
KPushButton * btn2 = new KPushButton( KStdGuiItem::apply(), &dlg, "pushButton2" ); KPushButton * btn2 = new KPushButton( KStdGuiItem::apply(), &dlg, "pushButton2" );
btn2->setDefault( TRUE ); btn2->setDefault( TRUE );
tqlayoutBtn->addWidget( btn2, 0, 1 ); layoutBtn->addWidget( btn2, 0, 1 );
tqlayout->addMultiCellLayout( tqlayoutBtn, 2, 2, 0, 1 ); tqlayout->addMultiCellLayout( layoutBtn, 2, 2, 0, 1 );
te->setFocus(); te->setFocus();
// --END-- building a dynamic dialog // --END-- building a dynamic dialog
@ -858,9 +858,9 @@ TQString SnippetWidget::showSingleVarDialog(TQString var, TQMap<TQString, TQStri
delete labTop; delete labTop;
delete btn1; delete btn1;
delete btn2; delete btn2;
delete tqlayoutTop; delete layoutTop;
delete tqlayoutVar; delete layoutVar;
delete tqlayoutBtn; delete layoutBtn;
delete tqlayout; delete tqlayout;
return strReturn; return strReturn;

@ -100,7 +100,7 @@ void SubscriptionDialogBase::moveChildrenToNewParent( GroupItem *oldItem, GroupI
{ {
oldItem->takeItem(cur); oldItem->takeItem(cur);
item->insertItem(cur); item->insertItem(cur);
if ( cur->isSelected() ) // we have new tqparents so open them if ( cur->isSelected() ) // we have new parents so open them
folderTree()->ensureItemVisible( cur ); folderTree()->ensureItemVisible( cur );
++it; ++it;
} }
@ -115,15 +115,15 @@ void SubscriptionDialogBase::createListViewItem( int i )
// get the tqparent // get the tqparent
GroupItem *oldItem = 0; GroupItem *oldItem = 0;
TQString tqparentPath; TQString parentPath;
findParentItem( mFolderNames[i], mFolderPaths[i], tqparentPath, &tqparent, &oldItem ); findParentItem( mFolderNames[i], mFolderPaths[i], parentPath, &tqparent, &oldItem );
if (!tqparent && tqparentPath != "/") if (!tqparent && parentPath != "/")
{ {
// the tqparent is not available and it's no root-item // the tqparent is not available and it's no root-item
// this happens when the folders do not arrive in hierarchical order // this happens when the folders do not arrive in hierarchical order
// so we create each tqparent in advance // so we create each tqparent in advance
TQStringList folders = TQStringList::split(mDelimiter, tqparentPath); TQStringList folders = TQStringList::split(mDelimiter, parentPath);
uint i = 0; uint i = 0;
for ( TQStringList::Iterator it = folders.begin(); it != folders.end(); ++it ) for ( TQStringList::Iterator it = folders.begin(); it != folders.end(); ++it )
{ {
@ -198,18 +198,18 @@ void SubscriptionDialogBase::createListViewItem( int i )
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
void SubscriptionDialogBase::findParentItem( TQString &name, TQString &path, TQString &tqparentPath, void SubscriptionDialogBase::findParentItem( TQString &name, TQString &path, TQString &parentPath,
GroupItem **tqparent, GroupItem **oldItem ) GroupItem **tqparent, GroupItem **oldItem )
{ {
// remove the name (and the separator) from the path to get the tqparent path // remove the name (and the separator) from the path to get the tqparent path
int start = path.length() - (name.length()+2); int start = path.length() - (name.length()+2);
int length = name.length()+1; int length = name.length()+1;
if (start < 0) start = 0; if (start < 0) start = 0;
tqparentPath = path; parentPath = path;
tqparentPath.remove(start, length); parentPath.remove(start, length);
// find the tqparent by it's path // find the tqparent by it's path
*tqparent = mItemDict[tqparentPath]; *tqparent = mItemDict[parentPath];
// check if the item already exists // check if the item already exists
*oldItem = mItemDict[path]; *oldItem = mItemDict[path];

@ -324,7 +324,7 @@
<data format="PNG" length="807">89504e470d0a1a0a0000000d49484452000000100000001008060000001ff3ff61000002ee49444154388d7d93cd6b5c6514c67fe7bdef9d8f24d349c66412a203b1b4282d21140918824816418a0b454d75e1a28ab8c8dfe1c25d70e34e0812ea4644d13610c43a1121b5d84cab6943486227499d869ae6633e32f7de79ef71d58644f0593dabdf39cf7938a2aa4c4f4f9b300c0b954ae56ca55249876128aa2a9c90738eadadada0542afd954ea7cb636363a19d9f9f4755cff6f4a53e4d67ed78f7b37ebb8b05e3810818017d0a68f1dcc36463a7ea8a4b8bdb9fcccdcdddf6eaf5bae4f3f9f7bb7a773faee94fed81b983a6d6d9ab6eb2f5f73affec6de1a536c9e4d7497696c9f63cf237d66b85b5e570cf3977c7aeaeae9a42a130d03d506bdbaddda3d1805faec6dc5a68e2a208e30124187a39c9ebefa6c8f544f84949a9ea69e75cd60641c0e1e1a1b8b849142ac51f226ece1f32fc4a86f31732f86db076178ad70e20765cfae8142207009eaafac639270022c2fd15a1b470c8f81b59defed0637024c44596c269cb3b1fe4585c68f2c76f0e23064000639e5c5804caab2d8c24187ed5c3265adc5bf4b9f2f91e377eae73fe254b6fbfc7ea7283588f9a314756089b31ed5925dd61b87b2bc5d75fd4a91d843c7fa68d5caf23fb4c8246fdc9f01300e3412e9f60f7313c285b6edf0c696bf338f3620773df3de2ea15d8de0ce92f2448f8472bd8a700515e18146e5c3714afd5197f3343ae3b463ce1cbcf94efbf7a48b6cb303462595c3801505514280c182ebed5ce37333bec3f8e387721859f80da7e8c114714097b3be65804eb799e562a95e641358e4d47cb8cbc66c9f5f6f1eb8f55967eafa140bedfe7e27b7dac2c4588a7ec6cb7622004629b4c2629954a7fda6c6b3f5f08baac1f61bd2683c3867a358931865339c8e69a9c1b323cb87fc0fa72d81091351189646262426667677b620e2fabea25942e504144fef34d80735a752daeab9a6f7ddf5f9162b1c8e4e4a45f2e974f0541d0a3aa19c03f16f4b862a061adddc96432bba2aaccccccc8d4d494b7b1b1910c8220a1aae6ff00d6da56676767303a3a1afd0b29d2596f22d0b7b20000000049454e44ae426082</data> <data format="PNG" length="807">89504e470d0a1a0a0000000d49484452000000100000001008060000001ff3ff61000002ee49444154388d7d93cd6b5c6514c67fe7bdef9d8f24d349c66412a203b1b4282d21140918824816418a0b454d75e1a28ab8c8dfe1c25d70e34e0812ea4644d13610c43a1121b5d84cab6943486227499d869ae6633e32f7de79ef71d58644f0593dabdf39cf7938a2aa4c4f4f9b300c0b954ae56ca55249876128aa2a9c90738eadadada0542afd954ea7cb636363a19d9f9f4755cff6f4a53e4d67ed78f7b37ebb8b05e3810818017d0a68f1dcc36463a7ea8a4b8bdb9fcccdcdddf6eaf5bae4f3f9f7bb7a773faee94fed81b983a6d6d9ab6eb2f5f73affec6de1a536c9e4d7497696c9f63cf237d66b85b5e570cf3977c7aeaeae9a42a130d03d506bdbaddda3d1805faec6dc5a68e2a208e30124187a39c9ebefa6c8f544f84949a9ea69e75cd60641c0e1e1a1b8b849142ac51f226ece1f32fc4a86f31732f86db076178ad70e20765cfae8142207009eaafac639270022c2fd15a1b470c8f81b59defed0637024c44596c269cb3b1fe4585c68f2c76f0e23064000639e5c5804caab2d8c24187ed5c3265adc5bf4b9f2f91e377eae73fe254b6fbfc7ea7283588f9a314756089b31ed5925dd61b87b2bc5d75fd4a91d843c7fa68d5caf23fb4c8246fdc9f01300e3412e9f60f7313c285b6edf0c696bf338f3620773df3de2ea15d8de0ce92f2448f8472bd8a700515e18146e5c3714afd5197f3343ae3b463ce1cbcf94efbf7a48b6cb303462595c3801505514280c182ebed5ce37333bec3f8e387721859f80da7e8c114714097b3be65804eb799e562a95e641358e4d47cb8cbc66c9f5f6f1eb8f55967eafa140bedfe7e27b7dac2c4588a7ec6cb7622004629b4c2629954a7fda6c6b3f5f08baac1f61bd2683c3867a358931865339c8e69a9c1b323cb87fc0fa72d81091351189646262426667677b620e2fabea25942e504144fef34d80735a752daeab9a6f7ddf5f9162b1c8e4e4a45f2e974f0541d0a3aa19c03f16f4b862a061adddc96432bba2aaccccccc8d4d494b7b1b1910c8220a1aae6ff00d6da56676767303a3a1afd0b29d2596f22d0b7b20000000049454e44ae426082</data>
</image> </image>
</images> </images>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
<includehints> <includehints>
<includehint>kactivelabel.h</includehint> <includehint>kactivelabel.h</includehint>
<includehint>templatesinsertcommand.h</includehint> <includehint>templatesinsertcommand.h</includehint>

@ -73,7 +73,7 @@ void TreeBase::addChildFolder()
const KMFolder *fld = folder(); const KMFolder *fld = folder();
if ( fld ) { if ( fld ) {
mFolderTree->addChildFolder( (KMFolder *) fld, tqparentWidget() ); mFolderTree->addChildFolder( (KMFolder *) fld, parentWidget() );
reload( mLastMustBeReadWrite, mLastShowOutbox, mLastShowImapFolders ); reload( mLastMustBeReadWrite, mLastShowOutbox, mLastShowImapFolders );
setFolder( (KMFolder *) fld ); setFolder( (KMFolder *) fld );
} }

@ -404,5 +404,5 @@ The recommended SPHINX setting is 14 days.
<tabstop>mWarnEncrRootCertExpiresSB</tabstop> <tabstop>mWarnEncrRootCertExpiresSB</tabstop>
<tabstop>enableAllWarningsPB</tabstop> <tabstop>enableAllWarningsPB</tabstop>
</tabstops> </tabstops>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
</UI> </UI>

@ -410,9 +410,9 @@ TQString FilterOE::getFolderName(TQString filename)
} }
} else { } else {
TQString _currentID = tmp[2]; TQString _currentID = tmp[2];
TQString _tqparentID = tmp[3]; TQString _parentID = tmp[3];
if(_currentID == search) { if(_currentID == search) {
if(_tqparentID.isEmpty()) { // this is the root of the folder if(_parentID.isEmpty()) { // this is the root of the folder
found = true; found = true;
break; break;
} else { } else {

@ -203,5 +203,5 @@
</widget> </widget>
</hbox> </hbox>
</widget> </widget>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
</UI> </UI>

@ -140,5 +140,5 @@ This program will help you import your email from your previous email program in
</widget> </widget>
</hbox> </hbox>
</widget> </widget>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
</UI> </UI>

@ -269,5 +269,5 @@
<slot>reject()</slot> <slot>reject()</slot>
</connection> </connection>
</connections> </connections>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
</UI> </UI>

@ -105,7 +105,7 @@
</widget> </widget>
</grid> </grid>
</widget> </widget>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
<includehints> <includehints>
<includehint>kdialog.h</includehint> <includehint>kdialog.h</includehint>
<includehint>kpushbutton.h</includehint> <includehint>kpushbutton.h</includehint>

@ -28,11 +28,11 @@ Name[kk]=KDE-нің қалта құрылғы жабдықтың төмен де
Name[km]=កម្មវិធី​បញ្ជា​ផ្នែករឹង​កម្រិត​ទាប​របស់​ឧបករណ៍​ចល័ត KDE Name[km]=កម្មវិធី​បញ្ជា​ផ្នែករឹង​កម្រិត​ទាប​របស់​ឧបករណ៍​ចល័ត KDE
Name[lt]=KDE mobiliųjų įrenginių žemo lygmens aparatinės įrangos tvarkyklė Name[lt]=KDE mobiliųjų įrenginių žemo lygmens aparatinės įrangos tvarkyklė
Name[ms]=Pemacu Perkakasan Tahap Rendah Peranti Mudah Alih KDE Name[ms]=Pemacu Perkakasan Tahap Rendah Peranti Mudah Alih KDE
Name[nb]=KDE lavnivå tqmaskinvaredriver for mobile enheter Name[nb]=KDE lavnivå maskinvaredriver for mobile enheter
Name[nds]=Sietstoop-Driever för Mobilreedschappen Name[nds]=Sietstoop-Driever för Mobilreedschappen
Name[ne]=केडीई मोबाइल यन्त्रको न्यूनस्तर हार्डवेयर ड्राइभर Name[ne]=केडीई मोबाइल यन्त्रको न्यूनस्तर हार्डवेयर ड्राइभर
Name[nl]=Hardware-stuurprogramma voor mobiele apparaten Name[nl]=Hardware-stuurprogramma voor mobiele apparaten
Name[nn]=Lågnivå tqmaskinvaredrivar for mobileiningar i KDE Name[nn]=Lågnivå maskinvaredrivar for mobileiningar i KDE
Name[pl]=Niskopoziomowy sterownik sprzętu urządzenia przenośnego dla KDE Name[pl]=Niskopoziomowy sterownik sprzętu urządzenia przenośnego dla KDE
Name[pt]=Controlador de Baixo-Nível de Dispositivos Móveis do KDE Name[pt]=Controlador de Baixo-Nível de Dispositivos Móveis do KDE
Name[pt_BR]=Driver de Hardware de Baixo Nível de Dispositivos Móveis do KDE Name[pt_BR]=Driver de Hardware de Baixo Nível de Dispositivos Móveis do KDE

@ -115,7 +115,7 @@ bool KNFolder::readInfo(const TQString &infoPath)
if (!isRootFolder() && !isStandardFolder()) { if (!isRootFolder() && !isStandardFolder()) {
n_ame=info.readEntry("name"); n_ame=info.readEntry("name");
i_d=info.readNumEntry("id", -1); i_d=info.readNumEntry("id", -1);
p_arentId=info.readNumEntry("tqparentId", -1); p_arentId=info.readNumEntry("parentId", -1);
} }
w_asOpen=info.readBoolEntry("wasOpen", true); w_asOpen=info.readBoolEntry("wasOpen", true);
@ -147,7 +147,7 @@ void KNFolder::saveInfo()
if (!isRootFolder() && !isStandardFolder()) { if (!isRootFolder() && !isStandardFolder()) {
info.writeEntry("name", n_ame); info.writeEntry("name", n_ame);
info.writeEntry("id", i_d); info.writeEntry("id", i_d);
info.writeEntry("tqparentId", p_arentId); info.writeEntry("parentId", p_arentId);
} }
if(l_istItem) if(l_istItem)
info.writeEntry("wasOpen", l_istItem->isOpen()); info.writeEntry("wasOpen", l_istItem->isOpen());

@ -38,7 +38,7 @@ class KNFolder : public KNArticleCollection {
//id //id
int id() const { return i_d; } int id() const { return i_d; }
void setId(int i) { i_d=i; } void setId(int i) { i_d=i; }
int tqparentId() const { return p_arentId; } int parentId() const { return p_arentId; }
bool isStandardFolder() { return (i_d > 0) && (i_d <=3); } bool isStandardFolder() { return (i_d > 0) && (i_d <=3); }
bool isRootFolder() { return i_d==0; } bool isRootFolder() { return i_d==0; }

@ -463,11 +463,11 @@ int KNFolderManager::loadCustomFolders()
delete f; delete f;
} }
// set tqparents // set parents
if(cnt>0) { if(cnt>0) {
for ( TQValueList<KNFolder*>::Iterator it = mFolderList.begin(); it != mFolderList.end(); ++it ) { for ( TQValueList<KNFolder*>::Iterator it = mFolderList.begin(); it != mFolderList.end(); ++it ) {
if ( !(*it)->isRootFolder() ) { // the root folder has no tqparent if ( !(*it)->isRootFolder() ) { // the root folder has no tqparent
KNFolder *par = folder( (*it)->tqparentId() ); KNFolder *par = folder( (*it)->parentId() );
if ( !par ) if ( !par )
par = root(); par = root();
(*it)->setParent( par ); (*it)->setParent( par );

@ -104,7 +104,7 @@ TQString KNGroupSelectDialog::selectedGroups()const
} }
if (moderated && (count>=2)) // warn the user if (moderated && (count>=2)) // warn the user
KMessageBox::information(tqparentWidget(),i18n("You are crossposting to a moderated newsgroup.\nPlease be aware that your article will not appear in any group\nuntil it has been approved by the moderators of the moderated group."), KMessageBox::information(parentWidget(),i18n("You are crossposting to a moderated newsgroup.\nPlease be aware that your article will not appear in any group\nuntil it has been approved by the moderators of the moderated group."),
TQString(),"crosspostModeratedWarning"); TQString(),"crosspostModeratedWarning");
return ret; return ret;

@ -47,7 +47,7 @@ class KNMainWindow : public KMainWindow
TQ_OBJECT TQ_OBJECT
public: public:
KNMainWindow( TQWidget* tqparentWidget=0 ); KNMainWindow( TQWidget* parentWidget=0 );
~KNMainWindow(); ~KNMainWindow();
void openURL( const KURL& ); void openURL( const KURL& );
KNMainWidget *mainWidget() { return m_mainWidget; } KNMainWidget *mainWidget() { return m_mainWidget; }

@ -47,10 +47,10 @@
typedef KParts::GenericFactory< KNodePart > KNodeFactory; typedef KParts::GenericFactory< KNodePart > KNodeFactory;
K_EXPORT_COMPONENT_FACTORY( libknodepart, KNodeFactory ) K_EXPORT_COMPONENT_FACTORY( libknodepart, KNodeFactory )
KNodePart::KNodePart(TQWidget *tqparentWidget, const char *widgetName, KNodePart::KNodePart(TQWidget *parentWidget, const char *widgetName,
TQObject *tqparent, const char *name, const TQStringList &) TQObject *tqparent, const char *name, const TQStringList &)
: KParts::ReadOnlyPart(tqparent, name), : KParts::ReadOnlyPart(tqparent, name),
mParentWidget( tqparentWidget ) mParentWidget( parentWidget )
{ {
kdDebug(5003) << "KNodePart()" << endl; kdDebug(5003) << "KNodePart()" << endl;
kdDebug(5003) << " InstanceName: " << kapp->instanceName() << endl; kdDebug(5003) << " InstanceName: " << kapp->instanceName() << endl;
@ -67,7 +67,7 @@ KNodePart::KNodePart(TQWidget *tqparentWidget, const char *widgetName,
knGlobals.instance = KNodeFactory::instance(); knGlobals.instance = KNodeFactory::instance();
// create a canvas to insert our widget // create a canvas to insert our widget
TQWidget *canvas = new TQWidget(tqparentWidget, widgetName); TQWidget *canvas = new TQWidget(parentWidget, widgetName);
canvas->setFocusPolicy(TQ_ClickFocus); canvas->setFocusPolicy(TQ_ClickFocus);
setWidget(canvas); setWidget(canvas);
@ -114,7 +114,7 @@ void KNodePart::guiActivateEvent(KParts::GUIActivateEvent *e)
} }
TQWidget* KNodePart::tqparentWidget() const TQWidget* KNodePart::parentWidget() const
{ {
return mParentWidget; return mParentWidget;
} }

@ -44,11 +44,11 @@ class KNodePart: public KParts::ReadOnlyPart
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KNodePart(TQWidget *tqparentWidget, const char *widgetName, KNodePart(TQWidget *parentWidget, const char *widgetName,
TQObject *tqparent, const char *name, const TQStringList &); TQObject *tqparent, const char *name, const TQStringList &);
virtual ~KNodePart(); virtual ~KNodePart();
TQWidget* tqparentWidget() const; TQWidget* parentWidget() const;
static KAboutData *createAboutData(); static KAboutData *createAboutData();

@ -223,7 +223,7 @@
<slot access="protected">useExternalMailerToggled(bool)</slot> <slot access="protected">useExternalMailerToggled(bool)</slot>
<slot access="protected">loginToggled(bool)</slot> <slot access="protected">loginToggled(bool)</slot>
</Q_SLOTS> </Q_SLOTS>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
<includes> <includes>
<include location="global" impldecl="in declaration">kcmodule.h</include> <include location="global" impldecl="in declaration">kcmodule.h</include>
</includes> </includes>

@ -149,7 +149,7 @@ KNoteEdit::KNoteEdit( KActionCollection *actions, TQWidget *tqparent, const char
connect( this, TQT_SIGNAL(currentColorChanged( const TQColor & )), connect( this, TQT_SIGNAL(currentColorChanged( const TQColor & )),
TQT_TQOBJECT(this), TQT_SLOT(colorChanged( const TQColor & )) ); TQT_TQOBJECT(this), TQT_SLOT(colorChanged( const TQColor & )) );
connect( this, TQT_SIGNAL(currentAlignmentChanged( int )), connect( this, TQT_SIGNAL(currentAlignmentChanged( int )),
TQT_TQOBJECT(this), TQT_SLOT(tqalignmentChanged( int )) ); TQT_TQOBJECT(this), TQT_SLOT(alignmentChanged( int )) );
connect( this, TQT_SIGNAL(currentVerticalAlignmentChanged( VerticalAlignment )), connect( this, TQT_SIGNAL(currentVerticalAlignmentChanged( VerticalAlignment )),
TQT_TQOBJECT(this), TQT_SLOT(verticalAlignmentChanged( VerticalAlignment )) ); TQT_TQOBJECT(this), TQT_SLOT(verticalAlignmentChanged( VerticalAlignment )) );
} }
@ -409,7 +409,7 @@ void KNoteEdit::colorChanged( const TQColor &c )
m_textColor->setIconSet( pix ); m_textColor->setIconSet( pix );
} }
void KNoteEdit::tqalignmentChanged( int a ) void KNoteEdit::alignmentChanged( int a )
{ {
// TODO: AlignAuto // TODO: AlignAuto
if ( ( a == AlignAuto ) || ( a & AlignLeft ) ) if ( ( a == AlignAuto ) || ( a & AlignLeft ) )

@ -82,7 +82,7 @@ private slots:
void fontChanged( const TQFont &f ); void fontChanged( const TQFont &f );
void colorChanged( const TQColor &c ); void colorChanged( const TQColor &c );
void tqalignmentChanged( int a ); void alignmentChanged( int a );
void verticalAlignmentChanged( VerticalAlignment a ); void verticalAlignmentChanged( VerticalAlignment a );
void slotAllowTab(); void slotAllowTab();

@ -87,9 +87,9 @@ TQWidget *ListInputField::createWidget( TQWidget *tqparent )
} }
ListWidget::ListWidget( InputField *tqparentField, const TQString &name, const TQString &type, TQWidget *tqparent ) ListWidget::ListWidget( InputField *parentField, const TQString &name, const TQString &type, TQWidget *tqparent )
: TQWidget( tqparent ), : TQWidget( tqparent ),
mParentField( tqparentField ), mName( name ), mType( type ) mParentField( parentField ), mName( name ), mType( type )
{ {
TQGridLayout *tqlayout = new TQGridLayout( this, 4, 2, 11, 6 ); TQGridLayout *tqlayout = new TQGridLayout( this, 4, 2, 11, 6 );

@ -57,7 +57,7 @@ class ListWidget : public TQWidget
TQ_OBJECT TQ_OBJECT
public: public:
ListWidget( InputField *tqparentField, const TQString &name, const TQString &type, TQWidget *tqparent ); ListWidget( InputField *parentField, const TQString &name, const TQString &type, TQWidget *tqparent );
void update(); void update();

@ -80,7 +80,7 @@ class KDE_EXPORT Core : public KParts::MainWindow
void dayChanged( const TQDate& ); void dayChanged( const TQDate& );
protected: protected:
Core( TQWidget *tqparentWidget = 0, const char *name = 0 ); Core( TQWidget *parentWidget = 0, const char *name = 0 );
TQString lastErrorMessage() const; TQString lastErrorMessage() const;

@ -114,9 +114,9 @@ void KCMKMailSummary::initFolders()
displayName ) ); displayName ) );
} else { } else {
const int pos = (*it).tqfindRev( '/' ); const int pos = (*it).tqfindRev( '/' );
const TQString tqparentFolder = (*it).left( pos ); const TQString parentFolder = (*it).left( pos );
mFolderMap.insert( *it, mFolderMap.insert( *it,
new TQCheckListItem( mFolderMap[ tqparentFolder ], new TQCheckListItem( mFolderMap[ parentFolder ],
displayName, displayName,
TQCheckListItem::CheckBox ) ); TQCheckListItem::CheckBox ) );
} }

@ -59,9 +59,9 @@ KParts::ReadOnlyPart* KNotesPlugin::createPart()
return new KNotesPart( this, "notes" ); return new KNotesPart( this, "notes" );
} }
Kontact::Summary *KNotesPlugin::createSummaryWidget( TQWidget *tqparentWidget ) Kontact::Summary *KNotesPlugin::createSummaryWidget( TQWidget *parentWidget )
{ {
return new KNotesSummaryWidget( this, tqparentWidget ); return new KNotesSummaryWidget( this, parentWidget );
} }
const KAboutData *KNotesPlugin::aboutData() const KAboutData *KNotesPlugin::aboutData()

@ -38,7 +38,7 @@ class KNotesPlugin : public Kontact::Plugin
KNotesPlugin( Kontact::Core *core, const char *name, const TQStringList& ); KNotesPlugin( Kontact::Core *core, const char *name, const TQStringList& );
~KNotesPlugin(); ~KNotesPlugin();
virtual Kontact::Summary *createSummaryWidget( TQWidget *tqparentWidget ); virtual Kontact::Summary *createSummaryWidget( TQWidget *parentWidget );
int weight() const { return 600; } int weight() const { return 600; }

@ -43,9 +43,9 @@ KPilotPlugin::KPilotPlugin( Kontact::Core *core, const char *name, const TQStrin
} }
Kontact::Summary *KPilotPlugin::createSummaryWidget( TQWidget *tqparentWidget ) Kontact::Summary *KPilotPlugin::createSummaryWidget( TQWidget *parentWidget )
{ {
return new SummaryWidget( tqparentWidget ); return new SummaryWidget( parentWidget );
} }
const KAboutData *KPilotPlugin::aboutData() const KAboutData *KPilotPlugin::aboutData()

@ -33,7 +33,7 @@ class KPilotPlugin : public Kontact::Plugin
KPilotPlugin( Kontact::Core *core, const char *name, const TQStringList& ); KPilotPlugin( Kontact::Core *core, const char *name, const TQStringList& );
KPilotPlugin(); KPilotPlugin();
virtual Kontact::Summary *createSummaryWidget( TQWidget *tqparentWidget ); virtual Kontact::Summary *createSummaryWidget( TQWidget *parentWidget );
virtual bool showInSideBar() const { return false; } virtual bool showInSideBar() const { return false; }
// virtual TQStringList configModules() const; // virtual TQStringList configModules() const;

@ -153,22 +153,22 @@ KCMKontactKNT::KCMKontactKNT( TQWidget *tqparent, const char *name )
void KCMKontactKNT::loadNews() void KCMKontactKNT::loadNews()
{ {
TQValueVector<TQListViewItem*> tqparents; TQValueVector<TQListViewItem*> parents;
TQValueVector<TQListViewItem*>::Iterator it; TQValueVector<TQListViewItem*>::Iterator it;
tqparents.append( new TQListViewItem( mAllNews, i18n( "Arts" ) ) ); parents.append( new TQListViewItem( mAllNews, i18n( "Arts" ) ) );
tqparents.append( new TQListViewItem( mAllNews, i18n( "Business" ) ) ); parents.append( new TQListViewItem( mAllNews, i18n( "Business" ) ) );
tqparents.append( new TQListViewItem( mAllNews, i18n( "Computers" ) ) ); parents.append( new TQListViewItem( mAllNews, i18n( "Computers" ) ) );
tqparents.append( new TQListViewItem( mAllNews, i18n( "Misc" ) ) ); parents.append( new TQListViewItem( mAllNews, i18n( "Misc" ) ) );
tqparents.append( new TQListViewItem( mAllNews, i18n( "Recreation" ) ) ); parents.append( new TQListViewItem( mAllNews, i18n( "Recreation" ) ) );
tqparents.append( new TQListViewItem( mAllNews, i18n( "Society" ) ) ); parents.append( new TQListViewItem( mAllNews, i18n( "Society" ) ) );
for ( it = tqparents.begin(); it != tqparents.end(); ++it ) for ( it = parents.begin(); it != parents.end(); ++it )
(*it)->setSelectable( false ); (*it)->setSelectable( false );
for ( int i = 0; i < DEFAULT_NEWSSOURCES; ++i ) { for ( int i = 0; i < DEFAULT_NEWSSOURCES; ++i ) {
NewsSourceData data = NewsSourceDefault[ i ]; NewsSourceData data = NewsSourceDefault[ i ];
new NewsItem( tqparents[ data.category() ], data.name(), data.url(), false ); new NewsItem( parents[ data.category() ], data.name(), data.url(), false );
mFeedMap.insert( data.url(), data.name() ); mFeedMap.insert( data.url(), data.name() );
} }
} }

@ -37,7 +37,7 @@ NewsTickerPlugin::NewsTickerPlugin( Kontact::Core *core, const char *name, const
setInstance( NewsTickerPluginFactory::instance() ); setInstance( NewsTickerPluginFactory::instance() );
} }
Kontact::Summary *NewsTickerPlugin::createSummaryWidget( TQWidget* tqparentWidget ) Kontact::Summary *NewsTickerPlugin::createSummaryWidget( TQWidget* parentWidget )
{ {
return new SummaryWidget( tqparentWidget ); return new SummaryWidget( parentWidget );
} }

@ -31,7 +31,7 @@ class NewsTickerPlugin : public Kontact::Plugin
NewsTickerPlugin( Kontact::Core *core, const char *name, const TQStringList& ); NewsTickerPlugin( Kontact::Core *core, const char *name, const TQStringList& );
NewsTickerPlugin(); NewsTickerPlugin();
virtual Kontact::Summary *createSummaryWidget( TQWidget* tqparentWidget ); virtual Kontact::Summary *createSummaryWidget( TQWidget* parentWidget );
protected: protected:
virtual KParts::ReadOnlyPart* createPart() { return 0L; } virtual KParts::ReadOnlyPart* createPart() { return 0L; }

@ -49,9 +49,9 @@ SpecialdatesPlugin::~SpecialdatesPlugin()
{ {
} }
Kontact::Summary *SpecialdatesPlugin::createSummaryWidget( TQWidget *tqparentWidget ) Kontact::Summary *SpecialdatesPlugin::createSummaryWidget( TQWidget *parentWidget )
{ {
return new SDSummaryWidget( this, tqparentWidget ); return new SDSummaryWidget( this, parentWidget );
} }
const KAboutData *SpecialdatesPlugin::aboutData() const KAboutData *SpecialdatesPlugin::aboutData()

@ -39,7 +39,7 @@ class SpecialdatesPlugin : public Kontact::Plugin
const KAboutData *aboutData(); const KAboutData *aboutData();
virtual Kontact::Summary *createSummaryWidget( TQWidget *tqparentWidget ); virtual Kontact::Summary *createSummaryWidget( TQWidget *parentWidget );
protected: protected:
virtual KParts::ReadOnlyPart *createPart() { return false; } virtual KParts::ReadOnlyPart *createPart() { return false; }

@ -41,7 +41,7 @@
#include <kservice.h> #include <kservice.h>
TestPart::TestPart(TQObject *tqparent, const char *name) // ## tqparentWidget TestPart::TestPart(TQObject *tqparent, const char *name) // ## parentWidget
: KParts::ReadOnlyPart(tqparent, name) : KParts::ReadOnlyPart(tqparent, name)
{ {
setInstance( new KInstance("testpart") ); // ## memleak setInstance( new KInstance("testpart") ); // ## memleak

@ -37,9 +37,9 @@ WeatherPlugin::WeatherPlugin( Kontact::Core *core, const char *name, const TQStr
setInstance( WeatherPluginFactory::instance() ); setInstance( WeatherPluginFactory::instance() );
} }
Kontact::Summary *WeatherPlugin::createSummaryWidget( TQWidget *tqparentWidget ) Kontact::Summary *WeatherPlugin::createSummaryWidget( TQWidget *parentWidget )
{ {
return new SummaryWidget( tqparentWidget ); return new SummaryWidget( parentWidget );
} }
const KAboutData *WeatherPlugin::aboutData() const KAboutData *WeatherPlugin::aboutData()

@ -31,7 +31,7 @@ class WeatherPlugin : public Kontact::Plugin
WeatherPlugin( Kontact::Core *core, const char *name, const TQStringList& ); WeatherPlugin( Kontact::Core *core, const char *name, const TQStringList& );
WeatherPlugin(); WeatherPlugin();
virtual Kontact::Summary *createSummaryWidget( TQWidget *tqparentWidget ); virtual Kontact::Summary *createSummaryWidget( TQWidget *parentWidget );
const KAboutData *aboutData(); const KAboutData *aboutData();

@ -344,7 +344,7 @@ void Navigator::updatePlugins( TQValueList<Kontact::Plugin*> plugins_ )
minWidth = item->width( this ); minWidth = item->width( this );
} }
tqparentWidget()->setFixedWidth( minWidth ); parentWidget()->setFixedWidth( minWidth );
} }
void Navigator::dragEnterEvent( TQDragEnterEvent *event ) void Navigator::dragEnterEvent( TQDragEnterEvent *event )
@ -491,7 +491,7 @@ void Navigator::slotShowRMBMenu( TQListBoxItem *, const TQPoint &pos )
if (width > maxWidth) if (width > maxWidth)
maxWidth = width; maxWidth = width;
} }
tqparentWidget()->setFixedWidth( maxWidth ); parentWidget()->setFixedWidth( maxWidth );
triggerUpdate( true ); triggerUpdate( true );
} }

@ -805,12 +805,12 @@ void MainWindow::selectPlugin( Kontact::Plugin *plugin )
TQWidget *tqfocusWidget = kapp->tqfocusWidget(); TQWidget *tqfocusWidget = kapp->tqfocusWidget();
if ( mCurrentPlugin && tqfocusWidget ) { if ( mCurrentPlugin && tqfocusWidget ) {
// save the focus widget only when it belongs to the activated part // save the focus widget only when it belongs to the activated part
TQWidget *tqparent = tqfocusWidget->tqparentWidget(); TQWidget *tqparent = tqfocusWidget->parentWidget();
while ( tqparent ) { while ( tqparent ) {
if ( tqparent == mCurrentPlugin->part()->widget() ) if ( tqparent == mCurrentPlugin->part()->widget() )
mFocusWidgets.insert( mCurrentPlugin->identifier(), TQGuardedPtr<TQWidget>( tqfocusWidget ) ); mFocusWidgets.insert( mCurrentPlugin->identifier(), TQGuardedPtr<TQWidget>( tqfocusWidget ) );
tqparent = tqparent->tqparentWidget(); tqparent = tqparent->parentWidget();
} }
} }

@ -1314,12 +1314,12 @@ void CalendarView::newSubTodo()
if ( todo ) newSubTodo( todo ); if ( todo ) newSubTodo( todo );
} }
void CalendarView::newSubTodo(Todo *tqparentEvent) void CalendarView::newSubTodo(Todo *parentEvent)
{ {
KOTodoEditor *todoEditor = mDialogManager->getTodoEditor(); KOTodoEditor *todoEditor = mDialogManager->getTodoEditor();
connectIncidenceEditor( todoEditor ); connectIncidenceEditor( todoEditor );
todoEditor->newTodo(); todoEditor->newTodo();
todoEditor->setDates( TQDateTime(), false, tqparentEvent ); todoEditor->setDates( TQDateTime(), false, parentEvent );
todoEditor->show(); todoEditor->show();
} }

@ -312,7 +312,7 @@ Only to-dos which have least one attendee will be checked. If you are not in th
<Q_SLOTS> <Q_SLOTS>
<slot>updateFilter()</slot> <slot>updateFilter()</slot>
</Q_SLOTS> </Q_SLOTS>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
<includehints> <includehints>
<includehint>knuminput.h</includehint> <includehint>knuminput.h</includehint>
<includehint>knuminput.h</includehint> <includehint>knuminput.h</includehint>

@ -75,7 +75,7 @@ sub process_appointment
{ {
undef(%curappt); undef(%curappt);
# this is a count of the total # of tqparentheses. # this is a count of the total # of parentheses.
while ($pcount) { while ($pcount) {
$line = &getLine; $line = &getLine;

@ -1276,7 +1276,7 @@ void KOAgenda::placeAgendaItem( KOAgendaItem *item, double subCellWidth )
// kdDebug(5850) << "KOAgenda::placeAgendaItem(): " << item->incidence()->summary() // kdDebug(5850) << "KOAgenda::placeAgendaItem(): " << item->incidence()->summary()
// << " subCellWidth: " << subCellWidth << endl; // << " subCellWidth: " << subCellWidth << endl;
// "left" upper corner, no subcells yet, RTL tqlayouts have right/left switched, widths are negative then // "left" upper corner, no subcells yet, RTL layouts have right/left switched, widths are negative then
TQPoint pt = gridToContents( TQPoint( item->cellXLeft(), item->cellYTop() ) ); TQPoint pt = gridToContents( TQPoint( item->cellXLeft(), item->cellYTop() ) );
// right lower corner // right lower corner
TQPoint pt1 = gridToContents( TQPoint( item->cellXLeft() + item->cellWidth(), TQPoint pt1 = gridToContents( TQPoint( item->cellXLeft() + item->cellWidth(),
@ -1393,7 +1393,7 @@ void KOAgenda::drawContents(TQPainter* p, int cx, int cy, int cw, int ch)
if ( pt2.x() >= pt1.x() /*&& pt2.y() >= pt1.y()*/) { if ( pt2.x() >= pt1.x() /*&& pt2.y() >= pt1.y()*/) {
int gxStart = contentsToGrid( pt1 ).x(); int gxStart = contentsToGrid( pt1 ).x();
int gxEnd = contentsToGrid( pt2 ).x(); int gxEnd = contentsToGrid( pt2 ).x();
// correct start/end for rtl tqlayouts // correct start/end for rtl layouts
if ( gxStart > gxEnd ) { if ( gxStart > gxEnd ) {
int tmp = gxStart; int tmp = gxStart;
gxStart = gxEnd; gxStart = gxEnd;

@ -222,7 +222,7 @@ class KOAgendaView : public KOrg::AgendaView, public KCal::Calendar::Observer
void createDayLabels( bool force ); void createDayLabels( bool force );
/** /**
Set the tqmasks on the agenda widgets indicating, which days are holidays. Set the masks on the agenda widgets indicating, which days are holidays.
*/ */
void setHolidayMasks(); void setHolidayMasks();

@ -91,7 +91,7 @@ KODialogManager::KODialogManager( CalendarView *mainView ) :
mCategoryEditDialog = new KPIM::CategoryEditDialog( KOPrefs::instance(), mMainView ); mCategoryEditDialog = new KPIM::CategoryEditDialog( KOPrefs::instance(), mMainView );
// don't set any specific tqparent for the dialog, as its kept around and reused // don't set any specific tqparent for the dialog, as its kept around and reused
// in different cases where it should have different tqparents // in different cases where it should have different parents
KWin::setMainWindow( mCategoryEditDialog, 0 ); KWin::setMainWindow( mCategoryEditDialog, 0 );
connect( mainView, TQT_SIGNAL( categoriesChanged() ), connect( mainView, TQT_SIGNAL( categoriesChanged() ),
mCategoryEditDialog, TQT_SLOT( reload() ) ); mCategoryEditDialog, TQT_SLOT( reload() ) );

@ -662,7 +662,7 @@
<includes> <includes>
<include location="global" impldecl="in declaration">addresseelineedit.h</include> <include location="global" impldecl="in declaration">addresseelineedit.h</include>
</includes> </includes>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
<includehints> <includehints>
<includehint>kurlrequester.h</includehint> <includehint>kurlrequester.h</includehint>
<includehint>klineedit.h</includehint> <includehint>klineedit.h</includehint>

@ -104,36 +104,36 @@ void KOEditorGeneralEvent::initTime(TQWidget *tqparent,TQBoxLayout *topLayout)
TQFrame *timeBoxFrame = new TQFrame(timeGroupBox); TQFrame *timeBoxFrame = new TQFrame(timeGroupBox);
TQGridLayout *tqlayoutTimeBox = new TQGridLayout( timeBoxFrame ); TQGridLayout *layoutTimeBox = new TQGridLayout( timeBoxFrame );
tqlayoutTimeBox->setSpacing(topLayout->spacing()); layoutTimeBox->setSpacing(topLayout->spacing());
tqlayoutTimeBox->setColStretch( 3, 1 ); layoutTimeBox->setColStretch( 3, 1 );
mStartDateLabel = new TQLabel(i18n("&Start:"),timeBoxFrame); mStartDateLabel = new TQLabel(i18n("&Start:"),timeBoxFrame);
tqlayoutTimeBox->addWidget(mStartDateLabel,0,0); layoutTimeBox->addWidget(mStartDateLabel,0,0);
mStartDateEdit = new KDateEdit(timeBoxFrame); mStartDateEdit = new KDateEdit(timeBoxFrame);
tqlayoutTimeBox->addWidget(mStartDateEdit,0,1); layoutTimeBox->addWidget(mStartDateEdit,0,1);
mStartDateLabel->setBuddy( mStartDateEdit ); mStartDateLabel->setBuddy( mStartDateEdit );
mStartTimeEdit = new KTimeEdit(timeBoxFrame); mStartTimeEdit = new KTimeEdit(timeBoxFrame);
tqlayoutTimeBox->addWidget(mStartTimeEdit,0,2); layoutTimeBox->addWidget(mStartTimeEdit,0,2);
mEndDateLabel = new TQLabel(i18n("&End:"),timeBoxFrame); mEndDateLabel = new TQLabel(i18n("&End:"),timeBoxFrame);
tqlayoutTimeBox->addWidget(mEndDateLabel,1,0); layoutTimeBox->addWidget(mEndDateLabel,1,0);
mEndDateEdit = new KDateEdit(timeBoxFrame); mEndDateEdit = new KDateEdit(timeBoxFrame);
tqlayoutTimeBox->addWidget(mEndDateEdit,1,1); layoutTimeBox->addWidget(mEndDateEdit,1,1);
mEndDateLabel->setBuddy( mEndDateEdit ); mEndDateLabel->setBuddy( mEndDateEdit );
mEndTimeEdit = new KTimeEdit(timeBoxFrame); mEndTimeEdit = new KTimeEdit(timeBoxFrame);
tqlayoutTimeBox->addWidget(mEndTimeEdit,1,2); layoutTimeBox->addWidget(mEndTimeEdit,1,2);
mAlldayEventCheckbox = new TQCheckBox(i18n("All-&day"),timeBoxFrame); mAlldayEventCheckbox = new TQCheckBox(i18n("All-&day"),timeBoxFrame);
tqlayoutTimeBox->addWidget( mAlldayEventCheckbox, 0, 3 ); layoutTimeBox->addWidget( mAlldayEventCheckbox, 0, 3 );
connect(mAlldayEventCheckbox, TQT_SIGNAL(toggled(bool)),TQT_SLOT(associateTime(bool))); connect(mAlldayEventCheckbox, TQT_SIGNAL(toggled(bool)),TQT_SLOT(associateTime(bool)));
mDurationLabel = new TQLabel( timeBoxFrame ); mDurationLabel = new TQLabel( timeBoxFrame );
tqlayoutTimeBox->addWidget( mDurationLabel, 1, 3 ); layoutTimeBox->addWidget( mDurationLabel, 1, 3 );
// time widgets are checked if they contain a valid time // time widgets are checked if they contain a valid time
connect(mStartTimeEdit, TQT_SIGNAL(timeChanged(TQTime)), connect(mStartTimeEdit, TQT_SIGNAL(timeChanged(TQTime)),
@ -148,9 +148,9 @@ void KOEditorGeneralEvent::initTime(TQWidget *tqparent,TQBoxLayout *topLayout)
this, TQT_SLOT(endDateChanged(const TQDate&))); this, TQT_SLOT(endDateChanged(const TQDate&)));
TQLabel *label = new TQLabel( i18n( "Recurrence:" ), timeBoxFrame ); TQLabel *label = new TQLabel( i18n( "Recurrence:" ), timeBoxFrame );
tqlayoutTimeBox->addWidget( label, 2, 0 ); layoutTimeBox->addWidget( label, 2, 0 );
TQBoxLayout *recLayout = new TQHBoxLayout(); TQBoxLayout *recLayout = new TQHBoxLayout();
tqlayoutTimeBox->addMultiCellLayout( recLayout, 2, 2, 1, 4 ); layoutTimeBox->addMultiCellLayout( recLayout, 2, 2, 1, 4 );
mRecEditButton = new TQPushButton( timeBoxFrame ); mRecEditButton = new TQPushButton( timeBoxFrame );
mRecEditButton->setIconSet( KOGlobals::self()->smallIconSet( "recur", 16 ) ); mRecEditButton->setIconSet( KOGlobals::self()->smallIconSet( "recur", 16 ) );
recLayout->addWidget( mRecEditButton ); recLayout->addWidget( mRecEditButton );
@ -160,18 +160,18 @@ void KOEditorGeneralEvent::initTime(TQWidget *tqparent,TQBoxLayout *topLayout)
recLayout->addStretch( 1 ); recLayout->addStretch( 1 );
label = new TQLabel( i18n("Reminder:"), timeBoxFrame ); label = new TQLabel( i18n("Reminder:"), timeBoxFrame );
tqlayoutTimeBox->addWidget( label, 3, 0 ); layoutTimeBox->addWidget( label, 3, 0 );
TQBoxLayout *alarmLineLayout = new TQHBoxLayout(); TQBoxLayout *alarmLineLayout = new TQHBoxLayout();
tqlayoutTimeBox->addMultiCellLayout( alarmLineLayout, 3, 3, 1, 4 ); layoutTimeBox->addMultiCellLayout( alarmLineLayout, 3, 3, 1, 4 );
initAlarm( timeBoxFrame, alarmLineLayout ); initAlarm( timeBoxFrame, alarmLineLayout );
alarmLineLayout->addStretch( 1 ); alarmLineLayout->addStretch( 1 );
TQBoxLayout *secLayout = new TQHBoxLayout(); TQBoxLayout *secLayout = new TQHBoxLayout();
tqlayoutTimeBox->addLayout( secLayout, 0, 4 ); layoutTimeBox->addLayout( secLayout, 0, 4 );
initSecrecy( timeBoxFrame, secLayout ); initSecrecy( timeBoxFrame, secLayout );
TQBoxLayout *classLayout = new TQHBoxLayout(); TQBoxLayout *classLayout = new TQHBoxLayout();
tqlayoutTimeBox->addLayout( classLayout, 1, 4 ); layoutTimeBox->addLayout( classLayout, 1, 4 );
initClass( timeBoxFrame, classLayout ); initClass( timeBoxFrame, classLayout );
} }

@ -105,59 +105,59 @@ void KOEditorGeneralTodo::initTime(TQWidget *tqparent,TQBoxLayout *topLayout)
i18n("Sets options for due and start dates and times " i18n("Sets options for due and start dates and times "
"for this to-do.") ); "for this to-do.") );
TQGridLayout *tqlayoutTimeBox = new TQGridLayout(timeBoxFrame,1,1); TQGridLayout *layoutTimeBox = new TQGridLayout(timeBoxFrame,1,1);
tqlayoutTimeBox->setSpacing(topLayout->spacing()); layoutTimeBox->setSpacing(topLayout->spacing());
TQString whatsThis = i18n("Sets the start date for this to-do"); TQString whatsThis = i18n("Sets the start date for this to-do");
mStartCheck = new TQCheckBox(i18n("Sta&rt:"),timeBoxFrame); mStartCheck = new TQCheckBox(i18n("Sta&rt:"),timeBoxFrame);
TQWhatsThis::add( mStartCheck, whatsThis ); TQWhatsThis::add( mStartCheck, whatsThis );
tqlayoutTimeBox->addWidget(mStartCheck,0,0); layoutTimeBox->addWidget(mStartCheck,0,0);
connect(mStartCheck,TQT_SIGNAL(toggled(bool)),TQT_SLOT(enableStartEdit(bool))); connect(mStartCheck,TQT_SIGNAL(toggled(bool)),TQT_SLOT(enableStartEdit(bool)));
connect(mStartCheck,TQT_SIGNAL(toggled(bool)),TQT_SLOT(startDateModified())); connect(mStartCheck,TQT_SIGNAL(toggled(bool)),TQT_SLOT(startDateModified()));
mStartDateEdit = new KDateEdit(timeBoxFrame); mStartDateEdit = new KDateEdit(timeBoxFrame);
TQWhatsThis::add( mStartDateEdit, whatsThis ); TQWhatsThis::add( mStartDateEdit, whatsThis );
tqlayoutTimeBox->addWidget(mStartDateEdit,0,1); layoutTimeBox->addWidget(mStartDateEdit,0,1);
connect(mStartDateEdit,TQT_SIGNAL(dateChanged(const TQDate&)),TQT_SLOT(startDateModified())); connect(mStartDateEdit,TQT_SIGNAL(dateChanged(const TQDate&)),TQT_SLOT(startDateModified()));
mStartTimeEdit = new KTimeEdit(timeBoxFrame); mStartTimeEdit = new KTimeEdit(timeBoxFrame);
TQWhatsThis::add( mStartTimeEdit, TQWhatsThis::add( mStartTimeEdit,
i18n("Sets the start time for this to-do.") ); i18n("Sets the start time for this to-do.") );
tqlayoutTimeBox->addWidget(mStartTimeEdit,0,2); layoutTimeBox->addWidget(mStartTimeEdit,0,2);
connect(mStartTimeEdit,TQT_SIGNAL(timeChanged(TQTime)),TQT_SLOT(startDateModified())); connect(mStartTimeEdit,TQT_SIGNAL(timeChanged(TQTime)),TQT_SLOT(startDateModified()));
whatsThis = i18n("Sets the due date for this to-do."); whatsThis = i18n("Sets the due date for this to-do.");
mDueCheck = new TQCheckBox(i18n("&Due:"),timeBoxFrame); mDueCheck = new TQCheckBox(i18n("&Due:"),timeBoxFrame);
TQWhatsThis::add( mDueCheck, whatsThis ); TQWhatsThis::add( mDueCheck, whatsThis );
tqlayoutTimeBox->addWidget(mDueCheck,1,0); layoutTimeBox->addWidget(mDueCheck,1,0);
connect(mDueCheck,TQT_SIGNAL(toggled(bool)),TQT_SLOT(enableDueEdit(bool))); connect(mDueCheck,TQT_SIGNAL(toggled(bool)),TQT_SLOT(enableDueEdit(bool)));
connect(mDueCheck,TQT_SIGNAL(toggled(bool)),TQT_SIGNAL(dueDateEditToggle(bool))); connect(mDueCheck,TQT_SIGNAL(toggled(bool)),TQT_SIGNAL(dueDateEditToggle(bool)));
connect(mDueCheck,TQT_SIGNAL(toggled(bool)),TQT_SLOT(dateChanged())); connect(mDueCheck,TQT_SIGNAL(toggled(bool)),TQT_SLOT(dateChanged()));
mDueDateEdit = new KDateEdit(timeBoxFrame); mDueDateEdit = new KDateEdit(timeBoxFrame);
TQWhatsThis::add( mDueDateEdit, whatsThis ); TQWhatsThis::add( mDueDateEdit, whatsThis );
tqlayoutTimeBox->addWidget(mDueDateEdit,1,1); layoutTimeBox->addWidget(mDueDateEdit,1,1);
connect(mDueDateEdit,TQT_SIGNAL(dateChanged(const TQDate&)),TQT_SLOT(dateChanged())); connect(mDueDateEdit,TQT_SIGNAL(dateChanged(const TQDate&)),TQT_SLOT(dateChanged()));
mDueTimeEdit = new KTimeEdit(timeBoxFrame); mDueTimeEdit = new KTimeEdit(timeBoxFrame);
TQWhatsThis::add( mDueTimeEdit, TQWhatsThis::add( mDueTimeEdit,
i18n("Sets the due time for this to-do.") ); i18n("Sets the due time for this to-do.") );
tqlayoutTimeBox->addWidget(mDueTimeEdit,1,2); layoutTimeBox->addWidget(mDueTimeEdit,1,2);
connect(mDueTimeEdit,TQT_SIGNAL(timeChanged( TQTime )),TQT_SLOT(dateChanged())); connect(mDueTimeEdit,TQT_SIGNAL(timeChanged( TQTime )),TQT_SLOT(dateChanged()));
mTimeButton = new TQCheckBox(i18n("Ti&me associated"),timeBoxFrame); mTimeButton = new TQCheckBox(i18n("Ti&me associated"),timeBoxFrame);
TQWhatsThis::add( mTimeButton, TQWhatsThis::add( mTimeButton,
i18n("Sets whether or not this to-do's start and due dates " i18n("Sets whether or not this to-do's start and due dates "
"have times associated with them.") ); "have times associated with them.") );
tqlayoutTimeBox->addWidget( mTimeButton, 0, 3 ); layoutTimeBox->addWidget( mTimeButton, 0, 3 );
connect(mTimeButton,TQT_SIGNAL(toggled(bool)),TQT_SLOT(enableTimeEdits(bool))); connect(mTimeButton,TQT_SIGNAL(toggled(bool)),TQT_SLOT(enableTimeEdits(bool)));
connect(mTimeButton,TQT_SIGNAL(toggled(bool)),TQT_SLOT(dateChanged())); connect(mTimeButton,TQT_SIGNAL(toggled(bool)),TQT_SLOT(dateChanged()));
TQLabel *label = new TQLabel( i18n( "Recurrence:" ), timeBoxFrame ); TQLabel *label = new TQLabel( i18n( "Recurrence:" ), timeBoxFrame );
tqlayoutTimeBox->addWidget( label, 3, 0 ); layoutTimeBox->addWidget( label, 3, 0 );
TQBoxLayout *recLayout = new TQHBoxLayout(); TQBoxLayout *recLayout = new TQHBoxLayout();
tqlayoutTimeBox->addMultiCellLayout( recLayout, 3, 3, 1, 4 ); layoutTimeBox->addMultiCellLayout( recLayout, 3, 3, 1, 4 );
mRecEditButton = new TQPushButton( timeBoxFrame ); mRecEditButton = new TQPushButton( timeBoxFrame );
mRecEditButton->setIconSet( KOGlobals::self()->smallIconSet( "recur", 16 ) ); mRecEditButton->setIconSet( KOGlobals::self()->smallIconSet( "recur", 16 ) );
recLayout->addWidget( mRecEditButton ); recLayout->addWidget( mRecEditButton );
@ -167,17 +167,17 @@ void KOEditorGeneralTodo::initTime(TQWidget *tqparent,TQBoxLayout *topLayout)
recLayout->addStretch( 1 ); recLayout->addStretch( 1 );
label = new TQLabel( i18n("Reminder:"), timeBoxFrame ); label = new TQLabel( i18n("Reminder:"), timeBoxFrame );
tqlayoutTimeBox->addWidget( label, 4, 0 ); layoutTimeBox->addWidget( label, 4, 0 );
TQBoxLayout *alarmLineLayout = new TQHBoxLayout(); TQBoxLayout *alarmLineLayout = new TQHBoxLayout();
tqlayoutTimeBox->addMultiCellLayout( alarmLineLayout, 4, 4, 1, 4 ); layoutTimeBox->addMultiCellLayout( alarmLineLayout, 4, 4, 1, 4 );
initAlarm( timeBoxFrame, alarmLineLayout ); initAlarm( timeBoxFrame, alarmLineLayout );
alarmLineLayout->addStretch( 1 ); alarmLineLayout->addStretch( 1 );
// some more tqlayouting // some more layouting
tqlayoutTimeBox->setColStretch( 3, 1 ); layoutTimeBox->setColStretch( 3, 1 );
TQBoxLayout *secLayout = new TQHBoxLayout(); TQBoxLayout *secLayout = new TQHBoxLayout();
tqlayoutTimeBox->addLayout( secLayout, 0, 4 ); layoutTimeBox->addLayout( secLayout, 0, 4 );
initSecrecy( timeBoxFrame, secLayout ); initSecrecy( timeBoxFrame, secLayout );
} }

@ -991,12 +991,12 @@ KOEditorRecurrence::KOEditorRecurrence( TQWidget* tqparent, const char *name ) :
} }
// TQFrame *timeFrame = new TQFrame( mTimeGroupBox ); // TQFrame *timeFrame = new TQFrame( mTimeGroupBox );
// TQBoxLayout *tqlayoutTimeFrame = new TQHBoxLayout( timeFrame ); // TQBoxLayout *layoutTimeFrame = new TQHBoxLayout( timeFrame );
// tqlayoutTimeFrame->setSpacing( KDialog::spacingHint() ); // layoutTimeFrame->setSpacing( KDialog::spacingHint() );
mDateTimeLabel = new TQLabel( mTimeGroupBox ); mDateTimeLabel = new TQLabel( mTimeGroupBox );
// mDateTimeLabel = new TQLabel( timeFrame ); // mDateTimeLabel = new TQLabel( timeFrame );
// tqlayoutTimeFrame->addWidget( mDateTimeLabel ); // layoutTimeFrame->addWidget( mDateTimeLabel );
Qt::Orientation orientation; Qt::Orientation orientation;
if ( KOPrefs::instance()->mCompactDialogs ) orientation = Qt::Horizontal; if ( KOPrefs::instance()->mCompactDialogs ) orientation = Qt::Horizontal;

@ -105,7 +105,7 @@ void KOEventViewer::writeSettings( KConfig * config )
void KOEventViewer::setSource( const TQString &n ) void KOEventViewer::setSource( const TQString &n )
{ {
UriHandler::process( tqparentWidget(), n ); UriHandler::process( parentWidget(), n );
} }
bool KOEventViewer::appendIncidence( Incidence *incidence, const TQDate &date ) bool KOEventViewer::appendIncidence( Incidence *incidence, const TQDate &date )
@ -177,10 +177,10 @@ void KOEventViewer::contentsContextMenuEvent( TQContextMenuEvent *e )
switch( menu->exec( TQCursor::pos(), 0 ) ) { switch( menu->exec( TQCursor::pos(), 0 ) ) {
case 0: // open case 0: // open
AttachmentHandler::view( tqparentWidget(), name, uid ); AttachmentHandler::view( parentWidget(), name, uid );
break; break;
case 1: // save as case 1: // save as
AttachmentHandler::saveAs( tqparentWidget(), name, uid ); AttachmentHandler::saveAs( parentWidget(), name, uid );
break; break;
default: default:
break; break;

@ -627,5 +627,5 @@ For security reasons, it is not recommended to store your password in the config
<slot>slotChanged()</slot> <slot>slotChanged()</slot>
</Q_SLOTS> </Q_SLOTS>
<exportmacro>KDE_EXPORT</exportmacro> <exportmacro>KDE_EXPORT</exportmacro>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
</UI> </UI>

@ -56,7 +56,7 @@ void KOIncidenceToolTip::add( KOAgendaItem *item, Calendar *calendar,
void KOIncidenceToolTip::maybeTip(const TQPoint & pos) void KOIncidenceToolTip::maybeTip(const TQPoint & pos)
{ {
Q_UNUSED( pos ); Q_UNUSED( pos );
KOAgendaItem *item = dynamic_cast<KOAgendaItem*>( tqparentWidget() ); KOAgendaItem *item = dynamic_cast<KOAgendaItem*>( parentWidget() );
if ( !item ) if ( !item )
return; return;
if ( !mText ) if ( !mText )

@ -220,8 +220,8 @@ KOListView::KOListView( Calendar *calendar,
mListView->addColumn( i18n("Categories") ); mListView->addColumn( i18n("Categories") );
TQBoxLayout *tqlayoutTop = new TQVBoxLayout( this ); TQBoxLayout *layoutTop = new TQVBoxLayout( this );
tqlayoutTop->addWidget( mListView ); layoutTop->addWidget( mListView );
mPopupMenu = eventPopup(); mPopupMenu = eventPopup();
/* /*

@ -66,10 +66,10 @@
typedef KParts::GenericFactory< KOrganizerPart > KOrganizerFactory; typedef KParts::GenericFactory< KOrganizerPart > KOrganizerFactory;
K_EXPORT_COMPONENT_FACTORY( libkorganizerpart, KOrganizerFactory ) K_EXPORT_COMPONENT_FACTORY( libkorganizerpart, KOrganizerFactory )
KOrganizerPart::KOrganizerPart( TQWidget *tqparentWidget, const char *widgetName, KOrganizerPart::KOrganizerPart( TQWidget *parentWidget, const char *widgetName,
TQObject *tqparent, const char *name, TQObject *tqparent, const char *name,
const TQStringList & ) : const TQStringList & ) :
KParts::ReadOnlyPart(tqparent, name), mTopLevelWidget( tqparentWidget->tqtopLevelWidget() ) KParts::ReadOnlyPart(tqparent, name), mTopLevelWidget( parentWidget->tqtopLevelWidget() )
{ {
KGlobal::locale()->insertCatalogue( "libkcal" ); KGlobal::locale()->insertCatalogue( "libkcal" );
KGlobal::locale()->insertCatalogue( "libkdepim" ); KGlobal::locale()->insertCatalogue( "libkdepim" );
@ -80,7 +80,7 @@ KOrganizerPart::KOrganizerPart( TQWidget *tqparentWidget, const char *widgetName
TQString pname( name ); TQString pname( name );
// create a canvas to insert our widget // create a canvas to insert our widget
TQWidget *canvas = new TQWidget( tqparentWidget, widgetName ); TQWidget *canvas = new TQWidget( parentWidget, widgetName );
canvas->setFocusPolicy( TQ_ClickFocus ); canvas->setFocusPolicy( TQ_ClickFocus );
setWidget( canvas ); setWidget( canvas );
mView = new CalendarView( canvas ); mView = new CalendarView( canvas );

@ -59,7 +59,7 @@ class KOrganizerPart: public KParts::ReadOnlyPart,
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KOrganizerPart( TQWidget *tqparentWidget, const char *widgetName, KOrganizerPart( TQWidget *parentWidget, const char *widgetName,
TQObject *tqparent, const char *name, const TQStringList & ); TQObject *tqparent, const char *name, const TQStringList & );
virtual ~KOrganizerPart(); virtual ~KOrganizerPart();

@ -704,14 +704,14 @@ void KOTodoView::changeIncidenceDisplay(Incidence *incidence, int action)
} else { } else {
// correctly update changes in relations // correctly update changes in relations
Todo*tqparent = dynamic_cast<Todo*>( todo->relatedTo() ); Todo*tqparent = dynamic_cast<Todo*>( todo->relatedTo() );
KOTodoViewItem*tqparentItem = 0; KOTodoViewItem*parentItem = 0;
if ( tqparent && mTodoMap.tqcontains(tqparent) ) { if ( tqparent && mTodoMap.tqcontains(tqparent) ) {
tqparentItem = mTodoMap[ tqparent ]; parentItem = mTodoMap[ tqparent ];
} }
if ( todoItem->tqparent() != tqparentItem ) { if ( todoItem->tqparent() != parentItem ) {
// The relations changed // The relations changed
if ( tqparentItem ) { if ( parentItem ) {
tqparentItem->insertItem( todoItem ); parentItem->insertItem( todoItem );
} else { } else {
mTodoListView->insertItem( todoItem ); mTodoListView->insertItem( todoItem );
} }

@ -193,7 +193,7 @@
<tabstop>mFromDate</tabstop> <tabstop>mFromDate</tabstop>
<tabstop>mToDate</tabstop> <tabstop>mToDate</tabstop>
</tabstops> </tabstops>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
<includehints> <includehints>
<includehint>kdateedit.h</includehint> <includehint>kdateedit.h</includehint>
<includehint>kdateedit.h</includehint> <includehint>kdateedit.h</includehint>

@ -182,5 +182,5 @@
<tabstop>mFromDate</tabstop> <tabstop>mFromDate</tabstop>
<tabstop>mToDate</tabstop> <tabstop>mToDate</tabstop>
</tabstops> </tabstops>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
</UI> </UI>

@ -168,7 +168,7 @@
<tabstop>mFromDate</tabstop> <tabstop>mFromDate</tabstop>
<tabstop>mToDate</tabstop> <tabstop>mToDate</tabstop>
</tabstops> </tabstops>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
<includehints> <includehints>
<includehint>kdateedit.h</includehint> <includehint>kdateedit.h</includehint>
<includehint>kdateedit.h</includehint> <includehint>kdateedit.h</includehint>

@ -196,5 +196,5 @@
</spacer> </spacer>
</vbox> </vbox>
</widget> </widget>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
</UI> </UI>

@ -45,11 +45,11 @@
using namespace KOrg; using namespace KOrg;
KOProjectViewItem::KOProjectViewItem(Todo *event,KGanttItem* tqparentTask, KOProjectViewItem::KOProjectViewItem(Todo *event,KGanttItem* parentTask,
const TQString& text, const TQString& text,
const TQDateTime& start, const TQDateTime& start,
const TQDateTime& end) : const TQDateTime& end) :
KGanttItem(tqparentTask,text,start,end) KGanttItem(parentTask,text,start,end)
{ {
mEvent = event; mEvent = event;
} }

@ -46,7 +46,7 @@ class TQListView;
*/ */
class KOProjectViewItem : public KGanttItem { class KOProjectViewItem : public KGanttItem {
public: public:
KOProjectViewItem(Todo *,KGanttItem* tqparentTask, const TQString& text, KOProjectViewItem(Todo *,KGanttItem* parentTask, const TQString& text,
const TQDateTime& start, const TQDateTime& end); const TQDateTime& start, const TQDateTime& end);
~KOProjectViewItem(); ~KOProjectViewItem();

@ -249,7 +249,7 @@
<includes> <includes>
<include location="global" impldecl="in declaration">kdateedit.h</include> <include location="global" impldecl="in declaration">kdateedit.h</include>
</includes> </includes>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
<includehints> <includehints>
<includehint>libkdepim/kdateedit.h</includehint> <includehint>libkdepim/kdateedit.h</includehint>
<includehint>libkdepim/kdateedit.h</includehint> <includehint>libkdepim/kdateedit.h</includehint>

@ -99,5 +99,5 @@
</spacer> </spacer>
</vbox> </vbox>
</widget> </widget>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
</UI> </UI>

@ -200,7 +200,7 @@
<includes> <includes>
<include location="global" impldecl="in declaration">kdateedit.h</include> <include location="global" impldecl="in declaration">kdateedit.h</include>
</includes> </includes>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
<includehints> <includehints>
<includehint>kcombobox.h</includehint> <includehint>kcombobox.h</includehint>
<includehint>knuminput.h</includehint> <includehint>knuminput.h</includehint>

@ -447,7 +447,7 @@
<includes> <includes>
<include location="global" impldecl="in declaration">kdateedit.h</include> <include location="global" impldecl="in declaration">kdateedit.h</include>
</includes> </includes>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
<includehints> <includehints>
<includehint>libkdepim/kdateedit.h</includehint> <includehint>libkdepim/kdateedit.h</includehint>
<includehint>libkdepim/kdateedit.h</includehint> <includehint>libkdepim/kdateedit.h</includehint>

@ -292,7 +292,7 @@
<includes> <includes>
<include location="global" impldecl="in declaration">kdateedit.h</include> <include location="global" impldecl="in declaration">kdateedit.h</include>
</includes> </includes>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
<includehints> <includehints>
<includehint>libkdepim/kdateedit.h</includehint> <includehint>libkdepim/kdateedit.h</includehint>
<includehint>libkdepim/kdateedit.h</includehint> <includehint>libkdepim/kdateedit.h</includehint>

@ -129,5 +129,5 @@
<tabstop>mRemove</tabstop> <tabstop>mRemove</tabstop>
<tabstop>mSelectAddressee</tabstop> <tabstop>mSelectAddressee</tabstop>
</tabstops> </tabstops>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
</UI> </UI>

@ -372,8 +372,8 @@ void ResourceView::addResource()
&ok, this ); &ok, this );
if ( !ok ) if ( !ok )
return; return;
const TQString tqparentId = item->isSubresource() ? item->resourceIdentifier() : TQString:: null; const TQString parentId = item->isSubresource() ? item->resourceIdentifier() : TQString:: null;
if ( !item->resource()->addSubresource( folderName, tqparentId ) ) { if ( !item->resource()->addSubresource( folderName, parentId ) ) {
KMessageBox::error( KMessageBox::error(
this, this,
i18n( "<qt>Unable to create subresource <b>%1</b>.</qt>" ).tqarg( folderName ) ); i18n( "<qt>Unable to create subresource <b>%1</b>.</qt>" ).tqarg( folderName ) );

@ -86,7 +86,7 @@
</widget> </widget>
<customwidgets> <customwidgets>
</customwidgets> </customwidgets>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
<includehints> <includehints>
<includehint>klistbox.h</includehint> <includehint>klistbox.h</includehint>
</includehints> </includehints>

@ -27,7 +27,7 @@
1999-06-23 Cristian Tibirna <ctibirna@total.net> 1999-06-23 Cristian Tibirna <ctibirna@total.net>
* temporarily take care of korn (with Taj's blessing) * temporarily take care of korn (with Taj's blessing)
* fix most of the tqlayouts (/me being too stupid to fix Taj's nice * fix most of the layouts (/me being too stupid to fix Taj's nice
custom tqlayout classes, I switched completely to pure QLayouts) custom tqlayout classes, I switched completely to pure QLayouts)
* fixed most of the i18n * fixed most of the i18n
* made FileDialogs start with the current path by default (instead no * made FileDialogs start with the current path by default (instead no

@ -39,9 +39,9 @@ class DockedItem : public BoxContainerItem
TQ_OBJECT TQ_OBJECT
public: public:
/** /**
* This contructor gives all it parameters to its tqparents. * This contructor gives all it parameters to its parents.
* @param parant The tqparent window * @param parant The tqparent window
* @param name The name of the TQObject's tqparents. * @param name The name of the TQObject's parents.
*/ */
DockedItem( TQWidget * tqparent = 0, const char * name = 0 ); DockedItem( TQWidget * tqparent = 0, const char * name = 0 );
/** /**

@ -46,7 +46,7 @@ HVItem::HVItem( TQWidget *tqparent, const char *name )
HVItem::~HVItem() HVItem::~HVItem()
{ {
//Let everything be deleted by his tqparents. //Let everything be deleted by his parents.
} }
void HVItem::showBox() void HVItem::showBox()

@ -237,7 +237,7 @@
<Q_SLOTS> <Q_SLOTS>
<slot access="protected">slotProtocolChanged( const TQString&amp; )</slot> <slot access="protected">slotProtocolChanged( const TQString&amp; )</slot>
</Q_SLOTS> </Q_SLOTS>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
<includehints> <includehints>
<includehint>kurlrequester.h</includehint> <includehint>kurlrequester.h</includehint>
<includehint>klineedit.h</includehint> <includehint>klineedit.h</includehint>

@ -1677,7 +1677,7 @@
<slot access="protected">slotNormalAnimToggled( bool )</slot> <slot access="protected">slotNormalAnimToggled( bool )</slot>
<slot access="protected">slotNewAnimToggled( bool )</slot> <slot access="protected">slotNewAnimToggled( bool )</slot>
</Q_SLOTS> </Q_SLOTS>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
<includehints> <includehints>
<includehint>kcolorbutton.h</includehint> <includehint>kcolorbutton.h</includehint>
<includehint>kcolorbutton.h</includehint> <includehint>kcolorbutton.h</includehint>

@ -172,5 +172,5 @@
<slot access="protected">slotSetDefaults( const TQString&amp;, const int, KConfig* )</slot> <slot access="protected">slotSetDefaults( const TQString&amp;, const int, KConfig* )</slot>
<slot access="protected">slotEditBox()</slot> <slot access="protected">slotEditBox()</slot>
</Q_SLOTS> </Q_SLOTS>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
</UI> </UI>

@ -116,5 +116,5 @@
<slot>setProgress( int number )</slot> <slot>setProgress( int number )</slot>
<slot access="private" specifier="non virtual">cancelbutton()</slot> <slot access="private" specifier="non virtual">cancelbutton()</slot>
</Q_SLOTS> </Q_SLOTS>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
</UI> </UI>

@ -61,7 +61,7 @@ KornSubjectsDlg::KornSubjectsDlg( TQWidget *tqparent )
setModal( true ); setModal( true );
// The dialog contains a list view and several buttons. // The dialog contains a list view and several buttons.
// Two box tqlayouts hol dthem. // Two box layouts hol dthem.
TQWidget * page = new TQWidget( this ); TQWidget * page = new TQWidget( this );
setMainWidget(page); setMainWidget(page);
invertSelButton = new KPushButton(i18n("&Invert Selection"), page); invertSelButton = new KPushButton(i18n("&Invert Selection"), page);

@ -34,9 +34,9 @@ class SystemTray : public KSystemTray
TQ_OBJECT TQ_OBJECT
public: public:
/** /**
* This contructor gives all it parameters to its tqparents. * This contructor gives all it parameters to its parents.
* @param parant The tqparent window * @param parant The tqparent window
* @param name The name of the TQObject's tqparents. * @param name The name of the TQObject's parents.
*/ */
SystemTray( TQWidget * tqparent = 0, const char * name = 0 ); SystemTray( TQWidget * tqparent = 0, const char * name = 0 );
/** /**

@ -313,7 +313,7 @@
<tabstop>mOpenCategory</tabstop> <tabstop>mOpenCategory</tabstop>
<tabstop>mCloseCategory</tabstop> <tabstop>mCloseCategory</tabstop>
</tabstops> </tabstops>
<tqlayoutdefaults spacing="5" margin="5"/> <layoutdefaults spacing="5" margin="5"/>
<includehints> <includehints>
<includehint>kcombobox.h</includehint> <includehint>kcombobox.h</includehint>
<includehint>klineedit.h</includehint> <includehint>klineedit.h</includehint>

@ -190,7 +190,7 @@ void ResourceCalDavConfig::setupUI() {
label->hide(); label->hide();
mPassword->hide(); mPassword->hide();
// combining tqlayouts // combining layouts
vertical->addLayout(mainLayout); vertical->addLayout(mainLayout);
vertical->addLayout(horizontal); vertical->addLayout(horizontal);
} }

@ -158,7 +158,7 @@ void ResourceCardDavConfig::setupUI() {
label->hide(); label->hide();
mPassword->hide(); mPassword->hide();
// combining tqlayouts // combining layouts
vertical->addLayout(mainLayout); vertical->addLayout(mainLayout);
vertical->addLayout(horizontal); vertical->addLayout(horizontal);
} }

@ -1114,8 +1114,8 @@ void ResourceXMLRPC::writeTodo( Todo* todo, TQMap<TQString, TQVariant>& args )
// SUBTODO // SUBTODO
Incidence *inc = todo->relatedTo(); Incidence *inc = todo->relatedTo();
if ( inc ) { if ( inc ) {
TQString tqparentUid = idMapper().remoteId( inc->uid() ); TQString parentUid = idMapper().remoteId( inc->uid() );
args.insert( "id_tqparent", tqparentUid ); args.insert( "id_tqparent", parentUid );
} }
// STATE // STATE
@ -1172,9 +1172,9 @@ void ResourceXMLRPC::readTodo( const TQMap<TQString, TQVariant>& args, Todo *tod
} }
// SUBTODO // SUBTODO
TQString tqparentId = args[ "id_tqparent" ].toString(); TQString parentId = args[ "id_tqparent" ].toString();
if ( tqparentId != "0" ) { // we are a sub todo if ( parentId != "0" ) { // we are a sub todo
TQString localParentUid = idMapper().localId( tqparentId ); TQString localParentUid = idMapper().localId( parentId );
if ( !localParentUid.isEmpty() ) { // found tqparent todo if ( !localParentUid.isEmpty() ) { // found tqparent todo
Todo *tqparent = mCalendar.todo( localParentUid ); Todo *tqparent = mCalendar.todo( localParentUid );
if ( tqparent ) if ( tqparent )

@ -73,7 +73,7 @@
</widget> </widget>
</grid> </grid>
</widget> </widget>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
<includehints> <includehints>
<includehint>klistview.h</includehint> <includehint>klistview.h</includehint>
</includehints> </includehints>

@ -280,8 +280,8 @@ int KSSLSocket::verifyCertificate()
} }
// Since we're the tqparent, we need to teach the child. // Since we're the tqparent, we need to teach the child.
setMetaData("ssl_tqparent_ip", ourIp ); setMetaData("ssl_parent_ip", ourIp );
setMetaData("ssl_tqparent_cert", pc.toString()); setMetaData("ssl_parent_cert", pc.toString());
// - Read from cache and see if there is a policy for this // - Read from cache and see if there is a policy for this
KSSLCertificateCache::KSSLCertificatePolicy cp = d->cc->getPolicyByCertificate(pc); KSSLCertificateCache::KSSLCertificatePolicy cp = d->cc->getPolicyByCertificate(pc);

@ -136,9 +136,9 @@ KCal::Incidence::tqStatus Task::status() const
return mtqStatus; return mtqStatus;
} }
void Task::setParent( const TQString& tqparentUid ) void Task::setParent( const TQString& parentUid )
{ {
mParent = tqparentUid; mParent = parentUid;
} }
TQString Task::tqparent() const TQString Task::tqparent() const

@ -80,7 +80,7 @@ public:
virtual void setqStatus( KCal::Incidence::tqStatus status ); virtual void setqStatus( KCal::Incidence::tqStatus status );
virtual KCal::Incidence::tqStatus status() const; virtual KCal::Incidence::tqStatus status() const;
virtual void setParent( const TQString& tqparentUid ); virtual void setParent( const TQString& parentUid );
virtual TQString tqparent() const; virtual TQString tqparent() const;
virtual void setHasStartDate( bool ); virtual void setHasStartDate( bool );

@ -21,10 +21,10 @@
#include "sloxfolder.h" #include "sloxfolder.h"
SloxFolder::SloxFolder( const TQString &id, const TQString &tqparentId, const TQString &type, const TQString &name, bool def ) : SloxFolder::SloxFolder( const TQString &id, const TQString &parentId, const TQString &type, const TQString &name, bool def ) :
item( 0 ), item( 0 ),
mId( id ), mId( id ),
mParentId( tqparentId ), mParentId( parentId ),
mName( name ), mName( name ),
mDefault( def ) mDefault( def )
{ {

@ -35,10 +35,10 @@ enum FolderType {
class KDE_EXPORT SloxFolder class KDE_EXPORT SloxFolder
{ {
public: public:
SloxFolder( const TQString &id, const TQString &tqparentId, const TQString &type, const TQString &name, bool def = false ); SloxFolder( const TQString &id, const TQString &parentId, const TQString &type, const TQString &name, bool def = false );
TQString id() const { return mId; } TQString id() const { return mId; }
TQString tqparentId() const { return mParentId; } TQString parentId() const { return mParentId; }
FolderType type() const { return mType; } FolderType type() const { return mType; }
TQString name() const; TQString name() const;
bool isDefault() const { return mDefault; } bool isDefault() const { return mDefault; }

@ -70,8 +70,8 @@ void SloxFolderDialog::createFolderViewItem( SloxFolder *folder )
return; return;
if ( folder->type() != mFolderType && folder->type() != Unbound ) if ( folder->type() != mFolderType && folder->type() != Unbound )
return; return;
if( mManager->folders().tqcontains( folder->tqparentId() ) ) { if( mManager->folders().tqcontains( folder->parentId() ) ) {
SloxFolder *tqparent = mManager->folders()[folder->tqparentId()]; SloxFolder *tqparent = mManager->folders()[folder->parentId()];
createFolderViewItem( tqparent ); createFolderViewItem( tqparent );
if ( tqparent->item ) if ( tqparent->item )
folder->item = new KListViewItem( tqparent->item ); folder->item = new KListViewItem( tqparent->item );

@ -136,7 +136,7 @@ void SloxFolderManager::readFolders()
TQDomNodeList nodes = doc.elementsByTagName( "D:prop" ); TQDomNodeList nodes = doc.elementsByTagName( "D:prop" );
for( uint i = 0; i < nodes.count(); ++i ) { for( uint i = 0; i < nodes.count(); ++i ) {
TQDomElement element = nodes.item(i).toElement(); TQDomElement element = nodes.item(i).toElement();
TQString id = "-1", tqparentId = "-1"; // OX default folder TQString id = "-1", parentId = "-1"; // OX default folder
bool def = false; bool def = false;
TQString name, type; TQString name, type;
TQDomNode n; TQDomNode n;
@ -145,13 +145,13 @@ void SloxFolderManager::readFolders()
TQString tag = e.tagName(); TQString tag = e.tagName();
TQString value = e.text(); TQString value = e.text();
if ( tag == "ox:object_id" ) id = value; if ( tag == "ox:object_id" ) id = value;
else if ( tag == "ox:folder_id" ) tqparentId = value; else if ( tag == "ox:folder_id" ) parentId = value;
else if ( tag == "ox:title" ) name = value; else if ( tag == "ox:title" ) name = value;
else if ( tag == "ox:module" ) type = value; else if ( tag == "ox:module" ) type = value;
else if ( tag == "ox:defaultfolder" ) def = (value == "true"); else if ( tag == "ox:defaultfolder" ) def = (value == "true");
} }
if ( id != "-1" && tqparentId != "-1" ) { if ( id != "-1" && parentId != "-1" ) {
SloxFolder *folder = new SloxFolder( id, tqparentId, type, name, def ); SloxFolder *folder = new SloxFolder( id, parentId, type, name, def );
mFolders[id] = folder; mFolders[id] = folder;
kdDebug() << k_funcinfo << "Found folder: " << folder->name() << endl; kdDebug() << k_funcinfo << "Found folder: " << folder->name() << endl;
} }

@ -274,7 +274,7 @@
<Q_SLOTS> <Q_SLOTS>
<slot access="protected">saveClicked()</slot> <slot access="protected">saveClicked()</slot>
</Q_SLOTS> </Q_SLOTS>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
<includehints> <includehints>
<includehint>klistview.h</includehint> <includehint>klistview.h</includehint>
</includehints> </includehints>

@ -32,7 +32,7 @@ TQStringList KPIM::splitEmailAddrList(const TQString& aStr)
{ {
// Features: // Features:
// - always ignores quoted characters // - always ignores quoted characters
// - ignores everything (including tqparentheses and commas) // - ignores everything (including parentheses and commas)
// inside quoted strings // inside quoted strings
// - supports nested comments // - supports nested comments
// - ignores everything (including double quotes and commas) // - ignores everything (including double quotes and commas)
@ -729,12 +729,12 @@ bool KPIM::getNameAndMail(const TQString& aStr, TQString& name, TQString& mail)
// and outside of quoted text behind the trailing '>'. // and outside of quoted text behind the trailing '>'.
bInComment = false; bInComment = false;
bInQuotesOutsideOfEmail = false; bInQuotesOutsideOfEmail = false;
int tqparenthesesNesting = 0; int parenthesesNesting = 0;
for( i = iAd+1; len > i; ++i ) { for( i = iAd+1; len > i; ++i ) {
c = aStr[i]; c = aStr[i];
if( bInComment ){ if( bInComment ){
if( ')' == c ){ if( ')' == c ){
if ( --tqparenthesesNesting == 0 ) { if ( --parenthesesNesting == 0 ) {
bInComment = false; bInComment = false;
if( !name.isEmpty() ) if( !name.isEmpty() )
name.append( ' ' ); name.append( ' ' );
@ -745,7 +745,7 @@ bool KPIM::getNameAndMail(const TQString& aStr, TQString& name, TQString& mail)
} else { } else {
if( '(' == c ) { if( '(' == c ) {
// nested "(" // nested "("
++tqparenthesesNesting; ++parenthesesNesting;
} }
name.append( c ); // all comment stuff is part of the name name.append( c ); // all comment stuff is part of the name
} }
@ -772,7 +772,7 @@ bool KPIM::getNameAndMail(const TQString& aStr, TQString& name, TQString& mail)
case '(': case '(':
if( !name.isEmpty() ) if( !name.isEmpty() )
name.append( ' ' ); name.append( ' ' );
if ( ++tqparenthesesNesting > 0 ) if ( ++parenthesesNesting > 0 )
bInComment = true; bInComment = true;
break; break;
default: default:

@ -183,10 +183,10 @@ int main(int argc, char *argv[])
checkGetNameAndEmail( "(David Faure) faure@kde.org", "David Faure", "faure@kde.org", true ); checkGetNameAndEmail( "(David Faure) faure@kde.org", "David Faure", "faure@kde.org", true );
checkGetNameAndEmail( "My Name (me) <me@home.net>", "My Name (me)", "me@home.net", true ); // #93513 checkGetNameAndEmail( "My Name (me) <me@home.net>", "My Name (me)", "me@home.net", true ); // #93513
// Nested tqparenthesis as per https://intevation.de/roundup/kolab/issue858 // Nested parenthesis as per https://intevation.de/roundup/kolab/issue858
checkGetNameAndEmail( "faure@kde.org (David (The Man) Faure)", "David (The Man) Faure", "faure@kde.org", true ); checkGetNameAndEmail( "faure@kde.org (David (The Man) Faure)", "David (The Man) Faure", "faure@kde.org", true );
// Double-quotes inside tqparenthesis // Double-quotes inside parenthesis
checkGetNameAndEmail( "faure@kde.org (David \"Crazy\" Faure)", "David \"Crazy\" Faure", "faure@kde.org", true ); checkGetNameAndEmail( "faure@kde.org (David \"Crazy\" Faure)", "David \"Crazy\" Faure", "faure@kde.org", true );
checkGetNameAndEmail( "(David \"Crazy\" Faure) faure@kde.org", "David \"Crazy\" Faure", "faure@kde.org", true ); checkGetNameAndEmail( "(David \"Crazy\" Faure) faure@kde.org", "David \"Crazy\" Faure", "faure@kde.org", true );

@ -250,7 +250,7 @@ linked without the Library, or if the work is itself a library. The
threshold for this to be true is not precisely defined by law. threshold for this to be true is not precisely defined by law.
If such an object file uses only numerical parameters, data If such an object file uses only numerical parameters, data
structure tqlayouts and accessors, and small macros and small inline structure layouts and accessors, and small macros and small inline
functions (ten lines or less in length), then the use of the object functions (ten lines or less in length), then the use of the object
file is unrestricted, regardless of whether it is legally a derivative file is unrestricted, regardless of whether it is legally a derivative
work. (Executables containing this object code plus portions of the work. (Executables containing this object code plus portions of the

@ -475,12 +475,12 @@ bool Calendar::deleteIncidence( Incidence *incidence )
if ( beginChange( incidence ) ) { if ( beginChange( incidence ) ) {
if (incidence->hasRecurrenceID()) { if (incidence->hasRecurrenceID()) {
// Delete this event's UID from the tqparent's list of tqchildren // Delete this event's UID from the tqparent's list of tqchildren
Incidence *tqparentIncidence; Incidence *parentIncidence;
IncidenceList il = incidence->childIncidences(); IncidenceList il = incidence->childIncidences();
IncidenceListIterator it; IncidenceListIterator it;
it = il.begin(); it = il.begin();
tqparentIncidence = this->incidence(*it); parentIncidence = this->incidence(*it);
tqparentIncidence->deleteChildIncidence(incidence->uid()); parentIncidence->deleteChildIncidence(incidence->uid());
} }
else { else {
// Delete all tqchildren as well // Delete all tqchildren as well

@ -216,7 +216,7 @@ Incidence::List DndFactory::pasteIncidences( const TQDate &newDate, const TQTime
} }
// All pasted incidences get new uids, must keep track of old uids, // All pasted incidences get new uids, must keep track of old uids,
// so we can update child's tqparents // so we can update child's parents
TQMap<TQString,Incidence*> oldUidToNewInc; TQMap<TQString,Incidence*> oldUidToNewInc;
Incidence::List::ConstIterator it; Incidence::List::ConstIterator it;
@ -233,9 +233,9 @@ Incidence::List DndFactory::pasteIncidences( const TQDate &newDate, const TQTime
for ( it = list.constBegin(); it != list.constEnd(); ++it ) { for ( it = list.constBegin(); it != list.constEnd(); ++it ) {
Incidence *inc = *it; Incidence *inc = *it;
if ( oldUidToNewInc.tqcontains( inc->relatedToUid() ) ) { if ( oldUidToNewInc.tqcontains( inc->relatedToUid() ) ) {
Incidence *tqparentInc = oldUidToNewInc[inc->relatedToUid()]; Incidence *parentInc = oldUidToNewInc[inc->relatedToUid()];
inc->setRelatedToUid( tqparentInc->uid() ); inc->setRelatedToUid( parentInc->uid() );
inc->setRelatedTo( tqparentInc ); inc->setRelatedTo( parentInc );
} else { } else {
// not related to anything in the clipboard // not related to anything in the clipboard
inc->setRelatedToUid( TQString() ); inc->setRelatedToUid( TQString() );

@ -304,9 +304,9 @@ TQString ICalFormat::toString( Incidence *incidence, Calendar *calendar )
IncidenceList il = incidence->childIncidences(); IncidenceList il = incidence->childIncidences();
IncidenceListIterator it; IncidenceListIterator it;
it = il.begin(); it = il.begin();
Incidence *tqparentIncidence; Incidence *parentIncidence;
tqparentIncidence = calendar->incidence(*it); parentIncidence = calendar->incidence(*it);
il = tqparentIncidence->childIncidences(); il = parentIncidence->childIncidences();
if (il.count() > 0) { if (il.count() > 0) {
for ( it = il.begin(); it != il.end(); ++it ) { for ( it = il.begin(); it != il.end(); ++it ) {
component = mImpl->writeIncidence( calendar->incidence(*it) ); component = mImpl->writeIncidence( calendar->incidence(*it) );
@ -314,7 +314,7 @@ TQString ICalFormat::toString( Incidence *incidence, Calendar *calendar )
icalcomponent_free( component ); icalcomponent_free( component );
} }
} }
component = mImpl->writeIncidence( tqparentIncidence ); component = mImpl->writeIncidence( parentIncidence );
text = text + TQString::fromUtf8( icalcomponent_as_ical_string( component ) ); text = text + TQString::fromUtf8( icalcomponent_as_ical_string( component ) );
icalcomponent_free( component ); icalcomponent_free( component );
} }

@ -523,10 +523,10 @@ void ResourceCached::calendarIncidenceDeleted( Incidence *i )
IncidenceList il = i->childIncidences(); IncidenceList il = i->childIncidences();
IncidenceListIterator it; IncidenceListIterator it;
it = il.begin(); it = il.begin();
Incidence *tqparentIncidence; Incidence *parentIncidence;
tqparentIncidence = this->incidence(*it); parentIncidence = this->incidence(*it);
// Remove the child // Remove the child
calendarIncidenceChanged(tqparentIncidence); calendarIncidenceChanged(parentIncidence);
} }
else { else {
TQMap<Incidence *,bool>::ConstIterator it; TQMap<Incidence *,bool>::ConstIterator it;

@ -213,7 +213,7 @@
201 GPG_ERR_SEXP_INV_LEN_SPEC Invalid length specifier in S-expression 201 GPG_ERR_SEXP_INV_LEN_SPEC Invalid length specifier in S-expression
202 GPG_ERR_SEXP_STRING_TOO_LONG String too long in S-expression 202 GPG_ERR_SEXP_STRING_TOO_LONG String too long in S-expression
203 GPG_ERR_SEXP_UNMATCHED_PAREN Unmatched tqparentheses in S-expression 203 GPG_ERR_SEXP_UNMATCHED_PAREN Unmatched parentheses in S-expression
204 GPG_ERR_SEXP_NOT_CANONICAL S-expression not canonical 204 GPG_ERR_SEXP_NOT_CANONICAL S-expression not canonical
205 GPG_ERR_SEXP_BAD_CHARACTER Bad character in S-expression 205 GPG_ERR_SEXP_BAD_CHARACTER Bad character in S-expression
206 GPG_ERR_SEXP_BAD_TQUOTATION Bad quotation in S-expression 206 GPG_ERR_SEXP_BAD_TQUOTATION Bad quotation in S-expression

@ -68,7 +68,7 @@
translation is done at a different place in the code. translation is done at a different place in the code.
The argument, String, should be a literal string. Concatenated strings The argument, String, should be a literal string. Concatenated strings
and other string expressions won't work. and other string expressions won't work.
The macro's expansion is not tqparenthesized, so that it is suitable as The macro's expansion is not parenthesized, so that it is suitable as
initializer for static 'char[]' or 'const char[]' variables. */ initializer for static 'char[]' or 'const char[]' variables. */
#define gettext_noop(String) String #define gettext_noop(String) String

@ -325,7 +325,7 @@ pipe_connect_unix (assuan_context_t *ctx,
} }
errno = 0; errno = 0;
/* We store our tqparents pid in the environment so that the /* We store our parents pid in the environment so that the
execed assuan server is able to read the actual pid of the execed assuan server is able to read the actual pid of the
client. The server can't use getppid because it might have client. The server can't use getppid because it might have
been double forked before the assuan server has been been double forked before the assuan server has been
@ -493,7 +493,7 @@ socketpair_connect (assuan_context_t *ctx,
} }
errno = 0; errno = 0;
/* We store our tqparents pid in the environment so that the /* We store our parents pid in the environment so that the
execed assuan server is able to read the actual pid of the execed assuan server is able to read the actual pid of the
client. The server can't use getppid becuase it might have client. The server can't use getppid becuase it might have
been double forked before the assuan server has been been double forked before the assuan server has been

@ -54,7 +54,7 @@ int _gpgme_io_set_nonblocking (int fd);
fds in FD_CHILD_LIST in the child. */ fds in FD_CHILD_LIST in the child. */
int _gpgme_io_spawn (const char *path, char **argv, int _gpgme_io_spawn (const char *path, char **argv,
struct spawn_fd_item_s *fd_child_list, struct spawn_fd_item_s *fd_child_list,
struct spawn_fd_item_s *fd_tqparent_list); struct spawn_fd_item_s *fd_parent_list);
int _gpgme_io_waitpid (int pid, int hang, int *r_status, int *r_signal); int _gpgme_io_waitpid (int pid, int hang, int *r_status, int *r_signal);
int _gpgme_io_kill (int pid, int hard); int _gpgme_io_kill (int pid, int hard);
int _gpgme_io_select (struct io_select_fd_s *fds, size_t nfds, int nonblock); int _gpgme_io_select (struct io_select_fd_s *fds, size_t nfds, int nonblock);

@ -212,7 +212,7 @@ _gpgme_io_waitpid (int pid, int hang, int *r_status, int *r_signal)
int int
_gpgme_io_spawn (const char *path, char **argv, _gpgme_io_spawn (const char *path, char **argv,
struct spawn_fd_item_s *fd_child_list, struct spawn_fd_item_s *fd_child_list,
struct spawn_fd_item_s *fd_tqparent_list) struct spawn_fd_item_s *fd_parent_list)
{ {
pid_t pid; pid_t pid;
int i; int i;
@ -300,8 +300,8 @@ _gpgme_io_spawn (const char *path, char **argv,
return -1; return -1;
/* .dup_to is not used in the tqparent list. */ /* .dup_to is not used in the tqparent list. */
for (i = 0; fd_tqparent_list[i].fd != -1; i++) for (i = 0; fd_parent_list[i].fd != -1; i++)
_gpgme_io_close (fd_tqparent_list[i].fd); _gpgme_io_close (fd_parent_list[i].fd);
return 0; return 0;
} }

@ -56,7 +56,7 @@ int _gpgme_io_set_nonblocking (int fd);
fds in FD_CHILD_LIST in the child. */ fds in FD_CHILD_LIST in the child. */
int _gpgme_io_spawn (const char *path, char **argv, int _gpgme_io_spawn (const char *path, char **argv,
struct spawn_fd_item_s *fd_child_list, struct spawn_fd_item_s *fd_child_list,
struct spawn_fd_item_s *fd_tqparent_list); struct spawn_fd_item_s *fd_parent_list);
int _gpgme_io_select (struct io_select_fd_s *fds, size_t nfds, int nonblock); int _gpgme_io_select (struct io_select_fd_s *fds, size_t nfds, int nonblock);
/* Write the printable version of FD to the buffer BUF of length /* Write the printable version of FD to the buffer BUF of length

@ -1211,7 +1211,7 @@ start (engine_gpg_t gpg)
int saved_errno; int saved_errno;
int i, n; int i, n;
int status; int status;
struct spawn_fd_item_s *fd_child_list, *fd_tqparent_list; struct spawn_fd_item_s *fd_child_list, *fd_parent_list;
if (!gpg) if (!gpg)
return gpg_error (GPG_ERR_INV_VALUE); return gpg_error (GPG_ERR_INV_VALUE);
@ -1247,7 +1247,7 @@ start (engine_gpg_t gpg)
fd_child_list = calloc (n + n, sizeof *fd_child_list); fd_child_list = calloc (n + n, sizeof *fd_child_list);
if (!fd_child_list) if (!fd_child_list)
return gpg_error_from_errno (errno); return gpg_error_from_errno (errno);
fd_tqparent_list = fd_child_list + n; fd_parent_list = fd_child_list + n;
/* build the fd list for the child */ /* build the fd list for the child */
n = 0; n = 0;
@ -1273,28 +1273,28 @@ start (engine_gpg_t gpg)
n = 0; n = 0;
if (gpg->status.fd[1] != -1) if (gpg->status.fd[1] != -1)
{ {
fd_tqparent_list[n].fd = gpg->status.fd[1]; fd_parent_list[n].fd = gpg->status.fd[1];
fd_tqparent_list[n].dup_to = -1; fd_parent_list[n].dup_to = -1;
n++; n++;
} }
if (gpg->colon.fd[1] != -1) if (gpg->colon.fd[1] != -1)
{ {
fd_tqparent_list[n].fd = gpg->colon.fd[1]; fd_parent_list[n].fd = gpg->colon.fd[1];
fd_tqparent_list[n].dup_to = -1; fd_parent_list[n].dup_to = -1;
n++; n++;
} }
for (i = 0; gpg->fd_data_map[i].data; i++) for (i = 0; gpg->fd_data_map[i].data; i++)
{ {
fd_tqparent_list[n].fd = gpg->fd_data_map[i].peer_fd; fd_parent_list[n].fd = gpg->fd_data_map[i].peer_fd;
fd_tqparent_list[n].dup_to = -1; fd_parent_list[n].dup_to = -1;
n++; n++;
} }
fd_tqparent_list[n].fd = -1; fd_parent_list[n].fd = -1;
fd_tqparent_list[n].dup_to = -1; fd_parent_list[n].dup_to = -1;
status = _gpgme_io_spawn (gpg->file_name ? gpg->file_name : status = _gpgme_io_spawn (gpg->file_name ? gpg->file_name :
_gpgme_get_gpg_path (), _gpgme_get_gpg_path (),
gpg->argv, fd_child_list, fd_tqparent_list); gpg->argv, fd_child_list, fd_parent_list);
saved_errno = errno; saved_errno = errno;
free (fd_child_list); free (fd_child_list);
if (status == -1) if (status == -1)

@ -857,7 +857,7 @@ build_commandline (char **argv)
int int
_gpgme_io_spawn ( const char *path, char **argv, _gpgme_io_spawn ( const char *path, char **argv,
struct spawn_fd_item_s *fd_child_list, struct spawn_fd_item_s *fd_child_list,
struct spawn_fd_item_s *fd_tqparent_list ) struct spawn_fd_item_s *fd_parent_list )
{ {
SECURITY_ATTRIBUTES sec_attr; SECURITY_ATTRIBUTES sec_attr;
PROCESS_INFORMATION pi = { PROCESS_INFORMATION pi = {
@ -966,8 +966,8 @@ _gpgme_io_spawn ( const char *path, char **argv,
} }
/* Close the other ends of the pipes. */ /* Close the other ends of the pipes. */
for (i = 0; fd_tqparent_list[i].fd != -1; i++) for (i = 0; fd_parent_list[i].fd != -1; i++)
_gpgme_io_close (fd_tqparent_list[i].fd); _gpgme_io_close (fd_parent_list[i].fd);
DEBUG4 ("CreateProcess ready\n" DEBUG4 ("CreateProcess ready\n"
"- hProcess=%p hThread=%p\n" "- hProcess=%p hThread=%p\n"

@ -315,7 +315,7 @@
</widget> </widget>
<customwidgets> <customwidgets>
</customwidgets> </customwidgets>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
<includehints> <includehints>
<includehint>klistview.h</includehint> <includehint>klistview.h</includehint>
<includehint>kpushbutton.h</includehint> <includehint>kpushbutton.h</includehint>

@ -103,5 +103,5 @@
<tabstop>mButtonAdd</tabstop> <tabstop>mButtonAdd</tabstop>
<tabstop>mButtonRemove</tabstop> <tabstop>mButtonRemove</tabstop>
</tabstops> </tabstops>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
</UI> </UI>

@ -97,5 +97,5 @@
<tabstop>mButtonClear</tabstop> <tabstop>mButtonClear</tabstop>
<tabstop>mButtonEdit</tabstop> <tabstop>mButtonEdit</tabstop>
</tabstops> </tabstops>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
</UI> </UI>

@ -42,5 +42,5 @@
</widget> </widget>
</grid> </grid>
</widget> </widget>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
</UI> </UI>

@ -42,5 +42,5 @@
</property> </property>
</widget> </widget>
</widget> </widget>
<tqlayoutdefaults spacing="6" margin="11"/> <layoutdefaults spacing="6" margin="11"/>
</UI> </UI>

@ -269,7 +269,7 @@ void KFolderTreeItem::paintCell( TQPainter * p, const TQColorGroup & cg,
// deal with the folder column if the unread column is not shown // deal with the folder column if the unread column is not shown
/* The below is exceedingly silly, but Ingo insists that the unread /* The below is exceedingly silly, but Ingo insists that the unread
* count that is shown in tqparenthesis after the folder name must * count that is shown in parenthesis after the folder name must
* be configurable in color. That means that paintCell needs to do * be configurable in color. That means that paintCell needs to do
* two painting passes which flickers. Since that flicker is not * two painting passes which flickers. Since that flicker is not
* needed when there is the unread column, special case that. */ * needed when there is the unread column, special case that. */

@ -47,7 +47,7 @@ namespace Komposer
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
Core( TQWidget *tqparentWidget = 0, const char *name = 0 ); Core( TQWidget *parentWidget = 0, const char *name = 0 );
virtual ~Core(); virtual ~Core();
public slots: public slots:

@ -26,8 +26,8 @@
#include <kapplication.h> #include <kapplication.h>
#include <kdepimmacros.h> #include <kdepimmacros.h>
KPartsGenericPart::KPartsGenericPart( TQWidget* tqparentWidget, const char* name ) KPartsGenericPart::KPartsGenericPart( TQWidget* parentWidget, const char* name )
: TQWidget( tqparentWidget, name ), m_part( 0 ) : TQWidget( parentWidget, name ), m_part( 0 )
{ {
TQVBoxLayout* tqlayout = new TQVBoxLayout( this ); TQVBoxLayout* tqlayout = new TQVBoxLayout( this );
tqlayout->setAutoAdd( true ); tqlayout->setAutoAdd( true );

@ -35,7 +35,7 @@ class KPartsGenericPart : public TQWidget {
TQ_PROPERTY( TQString url READ url WRITE setURL ) TQ_PROPERTY( TQString url READ url WRITE setURL )
TQ_PROPERTY( TQString mimetype READ mimetype WRITE setMimetype ) TQ_PROPERTY( TQString mimetype READ mimetype WRITE setMimetype )
public: public:
KPartsGenericPart( TQWidget* tqparentWidget, const char* name ); KPartsGenericPart( TQWidget* parentWidget, const char* name );
TQString url() const { return m_url; } TQString url() const { return m_url; }
void setURL( const TQString& url ) { m_url = url; load(); } void setURL( const TQString& url ) { m_url = url; load(); }

@ -448,7 +448,7 @@ void KSubscription::changeItemState( GroupItem* item, bool on )
TQListViewItem *p = item->tqparent(); TQListViewItem *p = item->tqparent();
while (p) while (p)
{ {
// make sure all tqparents are subscribed // make sure all parents are subscribed
GroupItem* pi = static_cast<GroupItem*>(p); GroupItem* pi = static_cast<GroupItem*>(p);
if (pi->isCheckItem() && !pi->isOn()) if (pi->isCheckItem() && !pi->isOn())
{ {

@ -52,8 +52,8 @@ void OverlayWidget::reposition()
p.setY( -height() ); p.setY( -height() );
// Position in the toplevelwidget's coordinates // Position in the toplevelwidget's coordinates
TQPoint pTopLevel = mAlignWidget->mapTo( tqtopLevelWidget(), p ); TQPoint pTopLevel = mAlignWidget->mapTo( tqtopLevelWidget(), p );
// Position in the widget's tqparentWidget coordinates // Position in the widget's parentWidget coordinates
TQPoint pParent = tqparentWidget()->mapFrom( tqtopLevelWidget(), pTopLevel ); TQPoint pParent = parentWidget()->mapFrom( tqtopLevelWidget(), pTopLevel );
// Move 'this' to that position. // Move 'this' to that position.
move( pParent ); move( pParent );
} }

@ -87,16 +87,16 @@ void TransactionItemView::resizeContents( int w, int h )
// Tell the tqlayout in the tqparent (progressdialog) that our size changed // Tell the tqlayout in the tqparent (progressdialog) that our size changed
updateGeometry(); updateGeometry();
// Resize the tqparent (progressdialog) - this works but resize horizontally too often // Resize the tqparent (progressdialog) - this works but resize horizontally too often
//tqparentWidget()->adjustSize(); //parentWidget()->adjustSize();
TQApplication::sendPostedEvents( 0, TQEvent::ChildInserted ); TQApplication::sendPostedEvents( 0, TQEvent::ChildInserted );
TQApplication::sendPostedEvents( 0, TQEvent::LayoutHint ); TQApplication::sendPostedEvents( 0, TQEvent::LayoutHint );
TQSize sz = tqparentWidget()->tqsizeHint(); TQSize sz = parentWidget()->tqsizeHint();
int currentWidth = tqparentWidget()->width(); int currentWidth = parentWidget()->width();
// Don't resize to sz.width() every time when it only reduces a little bit // Don't resize to sz.width() every time when it only reduces a little bit
if ( currentWidth < sz.width() || currentWidth > sz.width() + 100 ) if ( currentWidth < sz.width() || currentWidth > sz.width() + 100 )
currentWidth = sz.width(); currentWidth = sz.width();
tqparentWidget()->resize( currentWidth, sz.height() ); parentWidget()->resize( currentWidth, sz.height() );
} }
TQSize TransactionItemView::tqsizeHint() const TQSize TransactionItemView::tqsizeHint() const

@ -260,7 +260,7 @@ signals:
* one with that id, there will not be a new one created but the existing * one with that id, there will not be a new one created but the existing
* one will be returned. This is convenient for accessing items that are * one will be returned. This is convenient for accessing items that are
* needed regularly without the to store a pointer to them or to add child * needed regularly without the to store a pointer to them or to add child
* items to tqparents by id. * items to parents by id.
*/ */
class KDE_EXPORT ProgressManager : public TQObject class KDE_EXPORT ProgressManager : public TQObject
@ -311,7 +311,7 @@ class KDE_EXPORT ProgressManager : public TQObject
* @param canBeCanceled can the user cancel this operation? * @param canBeCanceled can the user cancel this operation?
* @param usesCrypto does the operation use secure transports (SSL) * @param usesCrypto does the operation use secure transports (SSL)
* Cancelling the tqparent will cancel the tqchildren as well (if they can be * Cancelling the tqparent will cancel the tqchildren as well (if they can be
* cancelled) and ongoing tqchildren prevent tqparents from finishing. * cancelled) and ongoing tqchildren prevent parents from finishing.
* @return The ProgressItem representing the operation. * @return The ProgressItem representing the operation.
*/ */
static ProgressItem * createProgressItem( ProgressItem* tqparent, static ProgressItem * createProgressItem( ProgressItem* tqparent,

@ -269,7 +269,7 @@ Base::run( const char *cmd, const char *passphrase, bool onlyReadFromPGP )
output += str; output += str;
} else { } else {
/* /*
* Aptqparently, on NetBSD when the child dies, the pipe begins * Apparently, on NetBSD when the child dies, the pipe begins
* receiving empty data packets *before* waitpid() has signaled * receiving empty data packets *before* waitpid() has signaled
* that the child has died. Also, notice that this happens * that the child has died. Also, notice that this happens
* without any error bit being set in pollfd.revents (is this a * without any error bit being set in pollfd.revents (is this a
@ -313,7 +313,7 @@ Base::run( const char *cmd, const char *passphrase, bool onlyReadFromPGP )
error += str; error += str;
} else { } else {
/* /*
* Aptqparently, on NetBSD when the child dies, the pipe begins * Apparently, on NetBSD when the child dies, the pipe begins
* receiving empty data packets *before* waitpid() has signaled * receiving empty data packets *before* waitpid() has signaled
* that the child has died. Also, notice that this happens * that the child has died. Also, notice that this happens
* without any error bit being set in pollfd.revents (is this a * without any error bit being set in pollfd.revents (is this a
@ -547,7 +547,7 @@ Base::runGpg( const char *cmd, const char *passphrase, bool onlyReadFromGnuPG )
else { else {
// FreeBSD/NetBSD workaround // FreeBSD/NetBSD workaround
// //
// Aptqparently, on Free/NetBSD when the child dies, the pipe begins // Apparently, on Free/NetBSD when the child dies, the pipe begins
// receiving empty data packets *before* waitpid() has signaled // receiving empty data packets *before* waitpid() has signaled
// that the child has died. Also, notice that this happens // that the child has died. Also, notice that this happens
// without any error bit being set in pollfd.revents (is this a // without any error bit being set in pollfd.revents (is this a

@ -1660,7 +1660,7 @@ void CipherTextDialog::setMinimumSize()
#if KDE_IS_VERSION( 3, 1, 90 ) #if KDE_IS_VERSION( 3, 1, 90 )
int maxWidth = KGlobalSettings::desktopGeometry(tqparentWidget()).width()-100; int maxWidth = KGlobalSettings::desktopGeometry(parentWidget()).width()-100;
#else #else
KConfig gc("kdeglobals", false, false); KConfig gc("kdeglobals", false, false);
gc.setGroup("Windows"); gc.setGroup("Windows");
@ -1668,7 +1668,7 @@ void CipherTextDialog::setMinimumSize()
if (TQApplication::desktop()->isVirtualDesktop() && if (TQApplication::desktop()->isVirtualDesktop() &&
gc.readBoolEntry("XineramaEnabled", true) && gc.readBoolEntry("XineramaEnabled", true) &&
gc.readBoolEntry("XineramaPlacementEnabled", true)) { gc.readBoolEntry("XineramaPlacementEnabled", true)) {
maxWidth = TQApplication::desktop()->screenGeometry(TQApplication::desktop()->screenNumber(tqparentWidget())).width()-100; maxWidth = TQApplication::desktop()->screenGeometry(TQApplication::desktop()->screenNumber(parentWidget())).width()-100;
} else { } else {
maxWidth = TQApplication::desktop()->tqgeometry().width()-100; maxWidth = TQApplication::desktop()->tqgeometry().width()-100;
} }

@ -117,7 +117,7 @@ void IdentityCombo::slotIdentityManagerChanged() {
blockSignals( false ); blockSignals( false );
if ( idx < 0 ) if ( idx < 0 )
// aptqparently our oldIdentity got deleted: // apparently our oldIdentity got deleted:
slotEmitChanged( currentItem() ); slotEmitChanged( currentItem() );
} }

@ -278,7 +278,7 @@ following simple example shows how to accomplish this.
cout << fullName << '\n'; cout << fullName << '\n';
} }
else { else {
// Aptqparently, there is no full name, so use the email // Apparently, there is no full name, so use the email
// address // address
cout << mb->LocalPart() << '@' << mb->Domain() << '\n'; cout << mb->LocalPart() << '@' << mb->Domain() << '\n';
} }

@ -77,8 +77,8 @@
<includes> <includes>
<include location="global" impldecl="in declaration">libkdepim/addresseelineedit.h</include> <include location="global" impldecl="in declaration">libkdepim/addresseelineedit.h</include>
</includes> </includes>
<tqlayoutdefaults spacing="6" margin="0"/> <layoutdefaults spacing="6" margin="0"/>
<tqlayoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/> <layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
<includehints> <includehints>
<includehint>kpushbutton.h</includehint> <includehint>kpushbutton.h</includehint>
<includehint>kpushbutton.h</includehint> <includehint>kpushbutton.h</includehint>

Loading…
Cancel
Save