summaryrefslogtreecommitdiffstats
path: root/kmail/kmmainwidget.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
commit67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch)
tree5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /kmail/kmmainwidget.cpp
parent2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff)
downloadtdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz
tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmail/kmmainwidget.cpp')
-rw-r--r--kmail/kmmainwidget.cpp140
1 files changed, 70 insertions, 70 deletions
diff --git a/kmail/kmmainwidget.cpp b/kmail/kmmainwidget.cpp
index a3363e4fc..e573af2a8 100644
--- a/kmail/kmmainwidget.cpp
+++ b/kmail/kmmainwidget.cpp
@@ -46,7 +46,7 @@
#include "globalsettings.h"
#include "kcursorsaver.h"
#include "broadcaststatus.h"
-using KPIM::BroadcasStatus;
+using KPIM::BroadcastqStatus;
#include "kmfoldermgr.h"
#include "kmfolderdia.h"
#include "accountmanager.h"
@@ -135,10 +135,10 @@ TQValueList<KMMainWidget*>* KMMainWidget::s_mainWidgetList = 0;
static KStaticDeleter<TQValueList<KMMainWidget*> > mwlsd;
//-----------------------------------------------------------------------------
-KMMainWidget::KMMainWidget(TQWidget *parent, const char *name,
+KMMainWidget::KMMainWidget(TQWidget *tqparent, const char *name,
KXMLGUIClient *aGUIClient,
KActionCollection *actionCollection, KConfig* config ) :
- TQWidget(parent, name),
+ TQWidget(tqparent, name),
mFavoritesCheckMailAction( 0 ),
mFavoriteFolderView( 0 ),
mFolderView( 0 ),
@@ -238,7 +238,7 @@ KMMainWidget::KMMainWidget(TQWidget *parent, const char *name,
this, TQT_SLOT(slotFolderRemoved(KMFolder*)));
connect( kmkernel, TQT_SIGNAL( onlineStatusChanged( GlobalSettings::EnumNetworkState::type ) ),
- this, TQT_SLOT( slotUpdateOnlineStatus( GlobalSettings::EnumNetworkState::type ) ) );
+ this, TQT_SLOT( slotUpdateOnlinetqStatus( GlobalSettings::EnumNetworkState::type ) ) );
toggleSystemTray();
@@ -559,9 +559,9 @@ void KMMainWidget::createWidgets(void)
if ( mLongFolderList ) {
// superior splitter: folder tree vs. rest
// inferior splitter: headers vs. message vs. mime tree
- mPanner1 = new TQSplitter( Qt::Horizontal, this, "panner 1" );
+ mPanner1 = new TQSplitter( TQt::Horizontal, this, "panner 1" );
mPanner1->setOpaqueResize( opaqueResize );
- Qt::Orientation orientation = mReaderWindowBelow ? Qt::Vertical : Qt::Horizontal;
+ Qt::Orientation orientation = mReaderWindowBelow ? TQt::Vertical : TQt::Horizontal;
mPanner2 = new TQSplitter( orientation, mPanner1, "panner 2" );
mPanner2->setOpaqueResize( opaqueResize );
mPanner2->setChildrenCollapsible( false );
@@ -570,10 +570,10 @@ void KMMainWidget::createWidgets(void)
} else /* !mLongFolderList */ {
// superior splitter: ( folder tree + headers ) vs. message vs. mime
// inferior splitter: folder tree vs. headers
- mPanner1 = new TQSplitter( Qt::Vertical, this, "panner 1" );
+ mPanner1 = new TQSplitter( TQt::Vertical, this, "panner 1" );
mPanner1->setOpaqueResize( opaqueResize );
mPanner1->setChildrenCollapsible( false );
- mPanner2 = new TQSplitter( Qt::Horizontal, mPanner1, "panner 2" );
+ mPanner2 = new TQSplitter( TQt::Horizontal, mPanner1, "panner 2" );
mPanner2->setOpaqueResize( opaqueResize );
headerParent = mFolderViewParent = mPanner2;
mimeParent = messageParent = mPanner1;
@@ -637,7 +637,7 @@ void KMMainWidget::createWidgets(void)
mMsgActions->setMessageView( mMsgView );
}
- connect(mMsgView, TQT_SIGNAL(tqreplaceMsgByUnencryptedVersion()),
+ connect(mMsgView, TQT_SIGNAL(replaceMsgByUnencryptedVersion()),
this, TQT_SLOT(slotReplaceMsgByUnencryptedVersion()));
connect(mMsgView, TQT_SIGNAL(popupMenu(KMMessage&,const KURL&,const TQPoint&)),
this, TQT_SLOT(slotMsgPopup(KMMessage&,const KURL&,const TQPoint&)));
@@ -677,7 +677,7 @@ void KMMainWidget::createWidgets(void)
action->plugAccel( actionCollection()->kaccel() );
// create list of folders
- mFolderViewSplitter = new TQSplitter( Qt::Vertical, mFolderViewParent );
+ mFolderViewSplitter = new TQSplitter( TQt::Vertical, mFolderViewParent );
mFolderViewSplitter->setOpaqueResize( KGlobalSettings::opaqueResize() );
mFavoriteFolderView = new KMail::FavoriteFolderView( this, mFolderViewSplitter );
if ( mFavoritesCheckMailAction )
@@ -939,7 +939,7 @@ void KMMainWidget::slotMailChecked( bool newMail, bool sendOnCheck,
for ( TQStringList::const_iterator it = keys.begin();
it != keys.end();
++it ) {
- kdDebug(5006) << newInFolder.find( *it ).data() << " new message(s) in "
+ kdDebug(5006) << newInFolder.tqfind( *it ).data() << " new message(s) in "
<< *it << endl;
KMFolder *folder = kmkernel->findFolderById( *it );
@@ -949,7 +949,7 @@ void KMMainWidget::slotMailChecked( bool newMail, bool sendOnCheck,
if ( GlobalSettings::self()->verboseNewMailNotification() ) {
summary += "<br>" + i18n( "1 new message in %1",
"%n new messages in %1",
- newInFolder.find( *it ).data() )
+ newInFolder.tqfind( *it ).data() )
.arg( folder->prettyURL() );
}
}
@@ -1096,7 +1096,7 @@ void KMMainWidget::modifyFolder( KMFolderTreeItem* folderItem )
{
KMFolder* folder = folderItem->folder();
KMFolderTree* folderTree = static_cast<KMFolderTree *>( folderItem->listView() );
- KMFolderDialog props( folder, folder->parent(), folderTree,
+ KMFolderDialog props( folder, folder->tqparent(), folderTree,
i18n("Properties of Folder %1").arg( folder->label() ) );
props.exec();
updateFolderMenu();
@@ -1170,7 +1170,7 @@ void KMMainWidget::slotEmptyFolder()
if (mMsgView) mMsgView->clearCache();
if ( !isTrash )
- BroadcasStatus::instance()->seStatusMsg(i18n("Moved all messages to the trash"));
+ BroadcastqStatus::instance()->seStatusMsg(i18n("Moved all messages to the trash"));
updateMessageActions();
@@ -1268,9 +1268,9 @@ void KMMainWidget::slotCompactFolder()
KCursorSaver busy(KBusyPtr::busy());
mFolder->compact( KMFolder::CompactNow );
// setCurrentItemByIndex will override the statusbar message, so save/restore it
- TQString statusMsg = BroadcasStatus::instance()->statusMsg();
+ TQString statusMsg = BroadcastqStatus::instance()->statusMsg();
mHeaders->setCurrentItemByIndex(idx);
- BroadcasStatus::instance()->seStatusMsg( statusMsg );
+ BroadcastqStatus::instance()->seStatusMsg( statusMsg );
}
}
@@ -1713,12 +1713,12 @@ void KMMainWidget::slotApplyFilters()
//-----------------------------------------------------------------------------
void KMMainWidget::slotCheckVacation()
{
- updateVactionScripStatus( false );
+ updateVactionScriptqStatus( false );
if ( !kmkernel->askToGoOnline() )
return;
Vacation *vac = new Vacation( this, true /* check only */ );
- connect( vac, TQT_SIGNAL(scriptActive(bool)), TQT_SLOT(updateVactionScripStatus(bool)) );
+ connect( vac, TQT_SIGNAL(scriptActive(bool)), TQT_SLOT(updateVactionScriptqStatus(bool)) );
}
void KMMainWidget::slotEditVacation()
@@ -1731,7 +1731,7 @@ void KMMainWidget::slotEditVacation()
return;
mVacation = new Vacation( this );
- connect( mVacation, TQT_SIGNAL(scriptActive(bool)), TQT_SLOT(updateVactionScripStatus(bool)) );
+ connect( mVacation, TQT_SIGNAL(scriptActive(bool)), TQT_SLOT(updateVactionScriptqStatus(bool)) );
if ( mVacation->isUsable() ) {
connect( mVacation, TQT_SIGNAL(result(bool)), mVacation, TQT_SLOT(deleteLater()) );
} else {
@@ -1763,7 +1763,7 @@ void KMMainWidget::slotDebugSieve()
void KMMainWidget::slotStartCertManager()
{
KProcess certManagerProc; // save to create on the heap, since
- // there is no parent
+ // there is no tqparent
certManagerProc << "kleopatra";
if( !certManagerProc.start( KProcess::DontCare ) )
@@ -1903,10 +1903,10 @@ void KMMainWidget::slotSaveAttachments()
saveCommand->start();
}
-void KMMainWidget::slotOnlineStatus()
+void KMMainWidget::slotOnlinetqStatus()
{
// KMKernel will emit a signal when we toggle the network state that is caught by
- // KMMainWidget::slotUpdateOnlineStatus to update our GUI
+ // KMMainWidget::slotUpdateOnlinetqStatus to update our GUI
if ( GlobalSettings::self()->networkState() == GlobalSettings::EnumNetworkState::Online ) {
// if online; then toggle and set it offline.
kmkernel->stopNetworkJobs();
@@ -1916,7 +1916,7 @@ void KMMainWidget::slotOnlineStatus()
}
}
-void KMMainWidget::slotUpdateOnlineStatus( GlobalSettings::EnumNetworkState::type )
+void KMMainWidget::slotUpdateOnlinetqStatus( GlobalSettings::EnumNetworkState::type )
{
if ( GlobalSettings::self()->networkState() == GlobalSettings::EnumNetworkState::Online )
actionCollection()->action( "online_status" )->setText( i18n("Work Offline") );
@@ -2120,7 +2120,7 @@ void KMMainWidget::showOfflinePage()
//-----------------------------------------------------------------------------
void KMMainWidget::slotMsgSelected(KMMessage *msg)
{
- if ( msg && msg->parent() && !msg->isComplete() )
+ if ( msg && msg->tqparent() && !msg->isComplete() )
{
if ( msg->transferInProgress() )
return;
@@ -2131,7 +2131,7 @@ void KMMainWidget::slotMsgSelected(KMMessage *msg)
disconnect( mJob, 0, mMsgView, 0 );
delete mJob;
}
- mJob = msg->parent()->createJob( msg, FolderJob::tGetMessage, 0,
+ mJob = msg->tqparent()->createJob( msg, FolderJob::tGetMessage, 0,
"STRUCTURE", mMsgView->attachmentStrategy() );
connect(mJob, TQT_SIGNAL(messageRetrieved(KMMessage*)),
mMsgView, TQT_SLOT(slotMessageArrived(KMMessage*)));
@@ -2165,7 +2165,7 @@ void KMMainWidget::slotSelectFolder(KMFolder* folder)
//-----------------------------------------------------------------------------
void KMMainWidget::slotSelectMessage(KMMessage* msg)
{
- int idx = mFolder->find(msg);
+ int idx = mFolder->tqfind(msg);
if (idx != -1) {
mHeaders->setCurrentMsg(idx);
if (mMsgView)
@@ -2189,7 +2189,7 @@ void KMMainWidget::slotReplaceMsgByUnencryptedVersion()
{
TQString msgId( oldMsg->msgId() );
TQString prefix("DecryptedMsg.");
- int oldIdx = msgId.find(prefix, 0, false);
+ int oldIdx = msgId.tqfind(prefix, 0, false);
if( -1 == oldIdx ) {
int leftAngle = msgId.findRev( '<' );
msgId = msgId.insert( (-1 == leftAngle) ? 0 : ++leftAngle, prefix );
@@ -2210,12 +2210,12 @@ void KMMainWidget::slotReplaceMsgByUnencryptedVersion()
kdDebug(5006) << "KMMainWidget - adding unencrypted message to folder" << endl;
mFolder->addMsg( newMsg );
/* Figure out its index in the folder for selecting. This must be count()-1,
- * since we append. Be safe and do find, though, just in case. */
- int newMsgIdx = mFolder->find( newMsg );
+ * since we append. Be safe and do tqfind, though, just in case. */
+ int newMsgIdx = mFolder->tqfind( newMsg );
Q_ASSERT( newMsgIdx != -1 );
/* we need this unget, to have the message displayed correctly initially */
mFolder->unGetMsg( newMsgIdx );
- int idx = mFolder->find( oldMsg );
+ int idx = mFolder->tqfind( oldMsg );
Q_ASSERT( idx != -1 );
/* only select here, so the old one is not un-Gotten before, which would
* render the pointer we hold invalid so that find would fail */
@@ -2239,37 +2239,37 @@ void KMMainWidget::slotReplaceMsgByUnencryptedVersion()
//-----------------------------------------------------------------------------
void KMMainWidget::slotSetThreadStatusNew()
{
- mHeaders->setThreadStatus(KMMsgStatusNew);
+ mHeaders->setThreadtqStatus(KMMsgStatusNew);
}
//-----------------------------------------------------------------------------
void KMMainWidget::slotSetThreadStatusUnread()
{
- mHeaders->setThreadStatus(KMMsgStatusUnread);
+ mHeaders->setThreadtqStatus(KMMsgStatusUnread);
}
//-----------------------------------------------------------------------------
void KMMainWidget::slotSetThreadStatusFlag()
{
- mHeaders->setThreadStatus(KMMsgStatusFlag, true);
+ mHeaders->setThreadtqStatus(KMMsgStatusFlag, true);
}
//-----------------------------------------------------------------------------
void KMMainWidget::slotSetThreadStatusRead()
{
- mHeaders->setThreadStatus(KMMsgStatusRead);
+ mHeaders->setThreadtqStatus(KMMsgStatusRead);
}
//-----------------------------------------------------------------------------
void KMMainWidget::slotSetThreadStatusTodo()
{
- mHeaders->setThreadStatus(KMMsgStatusTodo, true);
+ mHeaders->setThreadtqStatus(KMMsgStatusTodo, true);
}
//-----------------------------------------------------------------------------
void KMMainWidget::slotSetThreadStatusWatched()
{
- mHeaders->setThreadStatus(KMMsgStatusWatched, true);
+ mHeaders->setThreadtqStatus(KMMsgStatusWatched, true);
if (mWatchThreadAction->isChecked()) {
mIgnoreThreadAction->setChecked(false);
}
@@ -2278,7 +2278,7 @@ void KMMainWidget::slotSetThreadStatusWatched()
//-----------------------------------------------------------------------------
void KMMainWidget::slotSetThreadStatusIgnored()
{
- mHeaders->setThreadStatus(KMMsgStatusIgnored, true);
+ mHeaders->setThreadtqStatus(KMMsgStatusIgnored, true);
if (mIgnoreThreadAction->isChecked()) {
mWatchThreadAction->setChecked(false);
}
@@ -2316,8 +2316,8 @@ void KMMainWidget::slotDisplayCurrentMessage()
void KMMainWidget::slotMsgActivated(KMMessage *msg)
{
if ( !msg ) return;
- if ( msg->parent() && !msg->isComplete() ) {
- FolderJob *job = msg->parent()->createJob( msg );
+ if ( msg->tqparent() && !msg->isComplete() ) {
+ FolderJob *job = msg->tqparent()->createJob( msg );
connect( job, TQT_SIGNAL( messageRetrieved( KMMessage* ) ),
TQT_SLOT( slotMsgActivated( KMMessage* ) ) );
job->start();
@@ -2340,7 +2340,7 @@ void KMMainWidget::slotMsgActivated(KMMessage *msg)
: reader.readBoolEntry( "useFixedFont", false );
win->setUseFixedFont( useFixedFont );
KMMessage *newMessage = new KMMessage(*msg);
- newMessage->setParent( msg->parent() );
+ newMessage->setParent( msg->tqparent() );
newMessage->setMsgSerNum( msg->getMsgSerNum() );
newMessage->setReadyToShow( true );
win->showMsg( overrideEncoding(), newMessage );
@@ -2689,8 +2689,8 @@ void KMMainWidget::setupActions()
(void) new KAction( i18n("&Send Queued Messages"), "mail_send", 0, this,
TQT_SLOT(slotSendQueued()), actionCollection(), "send_queued");
- (void) new KAction( i18n("Online Status (unknown)"), "online_status", 0, this,
- TQT_SLOT(slotOnlineStatus()), actionCollection(), "online_status");
+ (void) new KAction( i18n("Online tqStatus (unknown)"), "online_status", 0, this,
+ TQT_SLOT(slotOnlinetqStatus()), actionCollection(), "online_status");
KActionMenu *sendActionMenu = new
KActionMenu( i18n("Send Queued Messages Via"), "mail_send_via", actionCollection(),
@@ -2703,7 +2703,7 @@ void KMMainWidget::setupActions()
KAction *act;
//----- Tools menu
- if (parent()->inherits("KMMainWin")) {
+ if (tqparent()->inherits("KMMainWin")) {
act = new KAction( i18n("&Address Book..."), "contents", 0, this,
TQT_SLOT(slotAddrBook()), actionCollection(), "addressbook" );
if (KStandardDirs::findExe("kaddressbook").isEmpty()) act->setEnabled(false);
@@ -2767,10 +2767,10 @@ void KMMainWidget::setupActions()
TQT_SLOT(slotDeleteThread()), actionCollection(), "delete_thread" );
- (void) new KAction( i18n("&Find Messages..."), "mail_find", Key_S, this,
+ (void) new KAction( i18n("&Find Messages..."), "mail_tqfind", Key_S, this,
TQT_SLOT(slotRequestFullSearchFromQuickSearch()), actionCollection(), "search_messages" );
- mFindInMessageAction = new KAction( i18n("&Find in Message..."), "find", KStdAccel::shortcut(KStdAccel::Find), this,
+ mFindInMessageAction = new KAction( i18n("&Find in Message..."), "tqfind", KStdAccel::shortcut(KStdAccel::Find), this,
TQT_SLOT(slotFind()), actionCollection(), "find_in_messages" );
(void) new KAction( i18n("Select &All Messages"), KStdAccel::selectAll(), this,
@@ -3029,25 +3029,25 @@ void KMMainWidget::setupActions()
mSizeColumnToggle->setToolTip( i18n("Toggle display of column showing the "
"total size of messages in folders.") );
- (void)new KAction( KGuiItem( i18n("View->","&Expand Thread"), TQString::null,
+ (void)new KAction( KGuiItem( i18n("View->","&Expand Thread"), TQString(),
i18n("Expand the current thread") ),
Key_Period, this,
TQT_SLOT(slotExpandThread()),
actionCollection(), "expand_thread" );
- (void)new KAction( KGuiItem( i18n("View->","&Collapse Thread"), TQString::null,
+ (void)new KAction( KGuiItem( i18n("View->","&Collapse Thread"), TQString(),
i18n("Collapse the current thread") ),
Key_Comma, this,
TQT_SLOT(slotCollapseThread()),
actionCollection(), "collapse_thread" );
- (void)new KAction( KGuiItem( i18n("View->","Ex&pand All Threads"), TQString::null,
+ (void)new KAction( KGuiItem( i18n("View->","Ex&pand All Threads"), TQString(),
i18n("Expand all threads in the current folder") ),
CTRL+Key_Period, this,
TQT_SLOT(slotExpandAllThreads()),
actionCollection(), "expand_all_threads" );
- (void)new KAction( KGuiItem( i18n("View->","C&ollapse All Threads"), TQString::null,
+ (void)new KAction( KGuiItem( i18n("View->","C&ollapse All Threads"), TQString(),
i18n("Collapse all threads in the current folder") ),
CTRL+Key_Comma, this,
TQT_SLOT(slotCollapseAllThreads()),
@@ -3063,7 +3063,7 @@ void KMMainWidget::setupActions()
dukeOfMonmoth->plugAccel( actionCollection()->kaccel() );
//----- Go Menu
- new KAction( KGuiItem( i18n("&Next Message"), TQString::null,
+ new KAction( KGuiItem( i18n("&Next Message"), TQString(),
i18n("Go to the next message") ),
"N;Right", this, TQT_SLOT(slotNextMessage()),
actionCollection(), "go_next_message" );
@@ -3075,13 +3075,13 @@ void KMMainWidget::setupActions()
actionCollection(), "go_next_unread_message" );
/* ### needs better support from folders:
- new KAction( KGuiItem( i18n("Next &Important Message"), TQString::null,
+ new KAction( KGuiItem( i18n("Next &Important Message"), TQString(),
i18n("Go to the next important message") ),
0, this, TQT_SLOT(slotNextImportantMessage()),
actionCollection(), "go_next_important_message" );
*/
- new KAction( KGuiItem( i18n("&Previous Message"), TQString::null,
+ new KAction( KGuiItem( i18n("&Previous Message"), TQString(),
i18n("Go to the previous message") ),
"P;Left", this, TQT_SLOT(slotPrevMessage()),
actionCollection(), "go_prev_message" );
@@ -3093,14 +3093,14 @@ void KMMainWidget::setupActions()
actionCollection(), "go_prev_unread_message" );
/* needs better support from folders:
- new KAction( KGuiItem( i18n("Previous I&mportant Message"), TQString::null,
+ new KAction( KGuiItem( i18n("Previous I&mportant Message"), TQString(),
i18n("Go to the previous important message") ),
0, this, TQT_SLOT(slotPrevImportantMessage()),
actionCollection(), "go_prev_important_message" );
*/
KAction *action =
- new KAction( KGuiItem( i18n("Next Unread &Folder"), TQString::null,
+ new KAction( KGuiItem( i18n("Next Unread &Folder"), TQString(),
i18n("Go to the next folder with unread messages") ),
ALT+Key_Plus, this, TQT_SLOT(slotNextUnreadFolder()),
actionCollection(), "go_next_unread_folder" );
@@ -3109,7 +3109,7 @@ void KMMainWidget::setupActions()
action->setShortcut( shortcut );
action =
- new KAction( KGuiItem( i18n("Previous Unread F&older"), TQString::null,
+ new KAction( KGuiItem( i18n("Previous Unread F&older"), TQString(),
i18n("Go to the previous folder with unread messages") ),
ALT+Key_Minus, this, TQT_SLOT(slotPrevUnreadFolder()),
actionCollection(), "go_prev_unread_folder" );
@@ -3117,7 +3117,7 @@ void KMMainWidget::setupActions()
shortcut.append( KKey( CTRL+Key_Minus ) );
action->setShortcut( shortcut );
- new KAction( KGuiItem( i18n("Go->","Next Unread &Text"), TQString::null,
+ new KAction( KGuiItem( i18n("Go->","Next Unread &Text"), TQString(),
i18n("Go to the next unread text"),
i18n("Scroll down current message. "
"If at end of current message, "
@@ -3126,7 +3126,7 @@ void KMMainWidget::setupActions()
actionCollection(), "go_next_unread_text" );
//----- Settings Menu
- mToggleShowQuickSearchAction = new KToggleAction(i18n("Show Quick Search"), TQString::null,
+ mToggleShowQuickSearchAction = new KToggleAction(i18n("Show Quick Search"), TQString(),
0, this, TQT_SLOT(slotToggleShowQuickSearch()),
actionCollection(), "show_quick_search");
mToggleShowQuickSearchAction->setChecked( GlobalSettings::self()->quickSearchActive() );
@@ -3328,7 +3328,7 @@ void KMMainWidget::updateMessageActions()
for ( TQPtrListIterator<TQListViewItem> it( selectedItems ) ;
it.current() ; ++ it ) {
TQListViewItem * item = *it;
- if ( item->parent()==0 && item->childCount()==0 ) {
+ if ( item->tqparent()==0 && item->childCount()==0 ) {
allSelectedInCommonThread = false;
break;
}
@@ -3339,8 +3339,8 @@ void KMMainWidget::updateMessageActions()
}
TQListViewItem *curItemParent = mHeaders->currentItem();
- bool parent_thread = 0;
- if ( curItemParent && curItemParent->firstChild() != 0 ) parent_thread = 1;
+ bool tqparent_thread = 0;
+ if ( curItemParent && curItemParent->firstChild() != 0 ) tqparent_thread = 1;
bool mass_actions = count >= 1;
bool thread_actions = mass_actions && allSelectedInCommonThread &&
@@ -3376,7 +3376,7 @@ void KMMainWidget::updateMessageActions()
mFindInMessageAction->setEnabled( mass_actions && !kmkernel->folderIsTemplates( mFolder ) );
mForwardInlineAction->setEnabled( mass_actions && !kmkernel->folderIsTemplates( mFolder ));
mForwardAttachedAction->setEnabled( mass_actions && !kmkernel->folderIsTemplates( mFolder ) );
- mForwardDigestAction->setEnabled( ( count > 1 || parent_thread ) && !kmkernel->folderIsTemplates( mFolder ) );
+ mForwardDigestAction->setEnabled( ( count > 1 || tqparent_thread ) && !kmkernel->folderIsTemplates( mFolder ) );
forwardMenu()->setEnabled( mass_actions && !kmkernel->folderIsTemplates( mFolder ));
@@ -3402,7 +3402,7 @@ void KMMainWidget::updateMessageActions()
actionCollection()->action( "go_prev_unread_message" )->setEnabled( enable_goto_unread );
actionCollection()->action( "send_queued" )->setEnabled( kmkernel->outboxFolder()->count() > 0 );
actionCollection()->action( "send_queued_via" )->setEnabled( kmkernel->outboxFolder()->count() > 0 );
- slotUpdateOnlineStatus( static_cast<GlobalSettingsBase::EnumNetworkState::type>( GlobalSettings::self()->networkState() ) );
+ slotUpdateOnlinetqStatus( static_cast<GlobalSettingsBase::EnumNetworkState::type>( GlobalSettings::self()->networkState() ) );
if (action( "edit_undo" ))
action( "edit_undo" )->setEnabled( mHeaders->canUndo() );
@@ -3578,7 +3578,7 @@ void KMMainWidget::slotShowStartupFolder()
void KMMainWidget::slotShowTip()
{
- KTipDialog::showTip( this, TQString::null, true );
+ KTipDialog::showTip( this, TQString(), true );
}
//-----------------------------------------------------------------------------
@@ -3587,7 +3587,7 @@ void KMMainWidget::slotChangeCaption(TQListViewItem * i)
if ( !i ) return;
// set the caption to the current full path
TQStringList names;
- for ( TQListViewItem * item = i ; item ; item = item->parent() )
+ for ( TQListViewItem * item = i ; item ; item = item->tqparent() )
names.prepend( item->text(0) );
emit captionChangeRequest( names.join( "/" ) );
}
@@ -3649,7 +3649,7 @@ void KMMainWidget::removeDuplicates()
"Removed %n duplicate messages.", numDuplicates );
else
msg = i18n("No duplicate messages found.");
- BroadcasStatus::instance()->seStatusMsg( msg );
+ BroadcastqStatus::instance()->seStatusMsg( msg );
}
@@ -3993,20 +3993,20 @@ void KMMainWidget::slotRequestFullSearchFromQuickSearch()
assert( mSearchWin );
KMSearchPattern pattern;
pattern.append( KMSearchRule::createInstance( "<message>", KMSearchRule::FuncContains, mQuickSearchLine->currentSearchTerm() ) );
- int status = mQuickSearchLine->currenStatus();
+ int status = mQuickSearchLine->currentqStatus();
if ( status != 0 ) {
- pattern.append( new KMSearchRuleStatus( status ) );
+ pattern.append( new KMSearchRuletqStatus( status ) );
}
mSearchWin->setSearchPattern( pattern );
}
-void KMMainWidget::updateVactionScripStatus(bool active)
+void KMMainWidget::updateVactionScriptqStatus(bool active)
{
mVacationIndicatorActive = active;
if ( active ) {
mVacationScriptIndicator->setText( i18n("Out of office reply active") );
- mVacationScriptIndicator->setPaletteBackgroundColor( Qt::yellow );
- mVacationScriptIndicator->setCursor( TQCursor( Qt::PointingHandCursor ) );
+ mVacationScriptIndicator->setPaletteBackgroundColor( TQt::yellow );
+ mVacationScriptIndicator->setCursor( TQCursor( TQt::PointingHandCursor ) );
mVacationScriptIndicator->show();
} else {
mVacationScriptIndicator->hide();