summaryrefslogtreecommitdiffabout
path: root/kmicromail
Side-by-side diff
Diffstat (limited to 'kmicromail') (more/less context) (ignore whitespace changes)
-rw-r--r--kmicromail/accountitem.cpp128
-rw-r--r--kmicromail/accountitem.h63
-rw-r--r--kmicromail/accountview.cpp30
-rw-r--r--kmicromail/accountview.h22
-rw-r--r--kmicromail/composemail.cpp14
-rw-r--r--kmicromail/composemail.h6
-rw-r--r--kmicromail/editaccounts.cpp40
-rw-r--r--kmicromail/editaccounts.h18
-rw-r--r--kmicromail/kmicromail.pro10
-rw-r--r--kmicromail/kmicromailE.pro2
-rw-r--r--kmicromail/koprefs.cpp2
-rw-r--r--kmicromail/koprefsdialog.cpp149
-rw-r--r--kmicromail/koprefsdialog.h12
-rw-r--r--kmicromail/libetpan/libetpan.pro2
-rw-r--r--kmicromail/libetpan/libetpanE.pro2
-rw-r--r--kmicromail/libmailwrapper/abstractmail.cpp30
-rw-r--r--kmicromail/libmailwrapper/abstractmail.h12
-rw-r--r--kmicromail/libmailwrapper/generatemail.cpp6
-rw-r--r--kmicromail/libmailwrapper/genericwrapper.cpp14
-rw-r--r--kmicromail/libmailwrapper/genericwrapper.h6
-rw-r--r--kmicromail/libmailwrapper/imapwrapper.cpp28
-rw-r--r--kmicromail/libmailwrapper/imapwrapper.h14
-rw-r--r--kmicromail/libmailwrapper/libmailwrapper.pro8
-rw-r--r--kmicromail/libmailwrapper/logindialog.cpp2
-rw-r--r--kmicromail/libmailwrapper/logindialog.h2
-rw-r--r--kmicromail/libmailwrapper/mailtypes.cpp10
-rw-r--r--kmicromail/libmailwrapper/mailtypes.h14
-rw-r--r--kmicromail/libmailwrapper/mailwrapper.cpp14
-rw-r--r--kmicromail/libmailwrapper/mailwrapper.h6
-rw-r--r--kmicromail/libmailwrapper/mboxwrapper.cpp14
-rw-r--r--kmicromail/libmailwrapper/mboxwrapper.h10
-rw-r--r--kmicromail/libmailwrapper/mhwrapper.cpp12
-rw-r--r--kmicromail/libmailwrapper/mhwrapper.h8
-rw-r--r--kmicromail/libmailwrapper/nntpwrapper.cpp12
-rw-r--r--kmicromail/libmailwrapper/nntpwrapper.h6
-rw-r--r--kmicromail/libmailwrapper/pop3wrapper.cpp20
-rw-r--r--kmicromail/libmailwrapper/pop3wrapper.h8
-rw-r--r--kmicromail/libmailwrapper/sendmailprogress.cpp2
-rw-r--r--kmicromail/libmailwrapper/settings.cpp10
-rw-r--r--kmicromail/libmailwrapper/smtpwrapper.cpp6
-rw-r--r--kmicromail/mailistviewitem.cpp4
-rw-r--r--kmicromail/mailistviewitem.h2
-rw-r--r--kmicromail/main.cpp5
-rw-r--r--kmicromail/mainwindow.cpp74
-rw-r--r--kmicromail/mainwindow.h26
-rw-r--r--kmicromail/nntpgroups.cpp16
-rw-r--r--kmicromail/nntpgroups.h2
-rw-r--r--kmicromail/nntpgroupsdlg.cpp4
-rw-r--r--kmicromail/opiemail.cpp47
-rw-r--r--kmicromail/opiemail.h17
-rw-r--r--kmicromail/qpe/qdialog.h2
-rw-r--r--kmicromail/qpe/qdialog_hacked.cpp6
-rw-r--r--kmicromail/selectsmtp.cpp4
-rw-r--r--kmicromail/selectsmtp.h2
-rw-r--r--kmicromail/selectstore.h2
-rw-r--r--kmicromail/settingsdialog.cpp6
-rw-r--r--kmicromail/settingsdialog.h2
-rw-r--r--kmicromail/statuswidget.cpp4
-rw-r--r--kmicromail/statuswidget.h2
-rw-r--r--kmicromail/viewmail.cpp47
-rw-r--r--kmicromail/viewmail.h26
-rw-r--r--kmicromail/viewmailbase.cpp25
-rw-r--r--kmicromail/viewmailbase.h25
63 files changed, 612 insertions, 512 deletions
diff --git a/kmicromail/accountitem.cpp b/kmicromail/accountitem.cpp
index 985a762..9b1ea2f 100644
--- a/kmicromail/accountitem.cpp
+++ b/kmicromail/accountitem.cpp
@@ -14,4 +14,6 @@
/* QT */
-#include <qpopupmenu.h>
+#include <q3popupmenu.h>
#include <qmessagebox.h>
+//Added by qt3to4:
+#include <Q3ValueList>
#include <kiconloader.h>
@@ -56,3 +58,3 @@ AbstractMail *POP3viewItem::getWrapper()
-void POP3viewItem::refresh(QValueList<Opie::Core::OSmartPointer<RecMail> > & )
+void POP3viewItem::refresh(Q3ValueList<Opie::Core::OSmartPointer<RecMail> > & )
{
@@ -64,7 +66,7 @@ void POP3viewItem::refresh()
if (account->getOffline()) return;
- QValueList<FolderP> *folders = wrapper->listFolders();
- QListViewItem *child = firstChild();
+ Q3ValueList<FolderP> *folders = wrapper->listFolders();
+ Q3ListViewItem *child = firstChild();
while ( child )
{
- QListViewItem *tmp = child;
+ Q3ListViewItem *tmp = child;
child = child->nextSibling();
@@ -72,4 +74,4 @@ void POP3viewItem::refresh()
}
- QValueList<FolderP>::ConstIterator it;
- QListViewItem*item = 0;
+ Q3ValueList<FolderP>::ConstIterator it;
+ Q3ListViewItem*item = 0;
for ( it = folders->begin(); it!=folders->end(); ++it)
@@ -88,5 +90,5 @@ RECBODYP POP3viewItem::fetchBody( const RecMailP &mail )
-QPopupMenu * POP3viewItem::getContextMenu()
+Q3PopupMenu * POP3viewItem::getContextMenu()
{
- QPopupMenu *m = new QPopupMenu(0);
+ Q3PopupMenu *m = new Q3PopupMenu(0);
if (m)
@@ -110,6 +112,6 @@ void POP3viewItem::disconnect()
{
- QListViewItem *child = firstChild();
+ Q3ListViewItem *child = firstChild();
while ( child )
{
- QListViewItem *tmp = child;
+ Q3ListViewItem *tmp = child;
child = child->nextSibling();
@@ -159,3 +161,3 @@ POP3folderItem::~POP3folderItem()
-POP3folderItem::POP3folderItem( const FolderP&folderInit, POP3viewItem *parent , QListViewItem*after )
+POP3folderItem::POP3folderItem( const FolderP&folderInit, POP3viewItem *parent , Q3ListViewItem*after )
: AccountViewItem(folderInit,parent,after )
@@ -174,3 +176,3 @@ POP3folderItem::POP3folderItem( const FolderP&folderInit, POP3viewItem *parent ,
-void POP3folderItem::refresh(QValueList<RecMailP>&target)
+void POP3folderItem::refresh(Q3ValueList<RecMailP>&target)
{
@@ -185,5 +187,5 @@ RECBODYP POP3folderItem::fetchBody(const RecMailP&aMail)
-QPopupMenu * POP3folderItem::getContextMenu()
+Q3PopupMenu * POP3folderItem::getContextMenu()
{
- QPopupMenu *m = new QPopupMenu(0);
+ Q3PopupMenu *m = new Q3PopupMenu(0);
if (m)
@@ -263,3 +265,3 @@ AbstractMail *NNTPviewItem::getWrapper()
-void NNTPviewItem::refresh( QValueList<RecMailP> & )
+void NNTPviewItem::refresh( Q3ValueList<RecMailP> & )
{
@@ -271,8 +273,8 @@ void NNTPviewItem::refresh()
if (account->getOffline()) return;
- QValueList<FolderP> *folders = wrapper->listFolders();
+ Q3ValueList<FolderP> *folders = wrapper->listFolders();
- QListViewItem *child = firstChild();
+ Q3ListViewItem *child = firstChild();
while ( child )
{
- QListViewItem *tmp = child;
+ Q3ListViewItem *tmp = child;
child = child->nextSibling();
@@ -280,4 +282,4 @@ void NNTPviewItem::refresh()
}
- QValueList<FolderP>::ConstIterator it;
- QListViewItem*item = 0;
+ Q3ValueList<FolderP>::ConstIterator it;
+ Q3ListViewItem*item = 0;
for ( it = folders->begin(); it!=folders->end(); ++it)
@@ -296,5 +298,5 @@ RECBODYP NNTPviewItem::fetchBody( const RecMailP &mail )
-QPopupMenu * NNTPviewItem::getContextMenu()
+Q3PopupMenu * NNTPviewItem::getContextMenu()
{
- QPopupMenu *m = new QPopupMenu(0);
+ Q3PopupMenu *m = new Q3PopupMenu(0);
if (m)
@@ -328,6 +330,6 @@ void NNTPviewItem::disconnect()
{
- QListViewItem *child = firstChild();
+ Q3ListViewItem *child = firstChild();
while ( child )
{
- QListViewItem *tmp = child;
+ Q3ListViewItem *tmp = child;
child = child->nextSibling();
@@ -370,3 +372,3 @@ NNTPfolderItem::~NNTPfolderItem()
-NNTPfolderItem::NNTPfolderItem( const FolderP &folderInit, NNTPviewItem *parent , QListViewItem*after )
+NNTPfolderItem::NNTPfolderItem( const FolderP &folderInit, NNTPviewItem *parent , Q3ListViewItem*after )
: AccountViewItem( folderInit, parent,after )
@@ -385,3 +387,3 @@ NNTPfolderItem::NNTPfolderItem( const FolderP &folderInit, NNTPviewItem *parent
-void NNTPfolderItem::refresh(QValueList<RecMailP>&target)
+void NNTPfolderItem::refresh(Q3ValueList<RecMailP>&target)
{
@@ -396,5 +398,5 @@ RECBODYP NNTPfolderItem::fetchBody(const RecMailP&aMail)
-QPopupMenu * NNTPfolderItem::getContextMenu()
+Q3PopupMenu * NNTPfolderItem::getContextMenu()
{
- QPopupMenu *m = new QPopupMenu(0);
+ Q3PopupMenu *m = new Q3PopupMenu(0);
if (m)
@@ -455,3 +457,3 @@ AbstractMail *IMAPviewItem::getWrapper()
-void IMAPviewItem::refresh(QValueList<RecMailP>&)
+void IMAPviewItem::refresh(Q3ValueList<RecMailP>&)
{
@@ -472,7 +474,7 @@ void IMAPviewItem::refreshFolders(bool force)
currentFolders.clear();
- QValueList<FolderP> * folders = wrapper->listFolders();
+ Q3ValueList<FolderP> * folders = wrapper->listFolders();
- QValueList<FolderP>::Iterator it;
- QListViewItem*item = 0;
- QListViewItem*titem = 0;
+ Q3ValueList<FolderP>::Iterator it;
+ Q3ListViewItem*item = 0;
+ Q3ListViewItem*titem = 0;
QString fname,del,search;
@@ -515,5 +517,5 @@ void IMAPviewItem::refreshFolders(bool force)
-QPopupMenu * IMAPviewItem::getContextMenu()
+Q3PopupMenu * IMAPviewItem::getContextMenu()
{
- QPopupMenu *m = new QPopupMenu(0);
+ Q3PopupMenu *m = new Q3PopupMenu(0);
if (m)
@@ -617,3 +619,3 @@ bool IMAPviewItem::offline()
-IMAPfolderItem::IMAPfolderItem( const FolderP& folderInit, IMAPviewItem *parent , QListViewItem*after )
+IMAPfolderItem::IMAPfolderItem( const FolderP& folderInit, IMAPviewItem *parent , Q3ListViewItem*after )
: AccountViewItem( folderInit, parent , after )
@@ -632,3 +634,3 @@ IMAPfolderItem::IMAPfolderItem( const FolderP& folderInit, IMAPviewItem *parent
-IMAPfolderItem::IMAPfolderItem(const FolderP &folderInit, IMAPfolderItem *parent , QListViewItem*after, IMAPviewItem *master )
+IMAPfolderItem::IMAPfolderItem(const FolderP &folderInit, IMAPfolderItem *parent , Q3ListViewItem*after, IMAPviewItem *master )
: AccountViewItem(folderInit, parent,after )
@@ -655,3 +657,3 @@ const QString& IMAPfolderItem::Delemiter()const
-void IMAPfolderItem::refresh(QValueList<RecMailP>&target)
+void IMAPfolderItem::refresh(Q3ValueList<RecMailP>&target)
{
@@ -672,5 +674,5 @@ RECBODYP IMAPfolderItem::fetchBody(const RecMailP&aMail)
-QPopupMenu * IMAPfolderItem::getContextMenu()
+Q3PopupMenu * IMAPfolderItem::getContextMenu()
{
- QPopupMenu *m = new QPopupMenu(0);
+ Q3PopupMenu *m = new Q3PopupMenu(0);
if (m)
@@ -723,3 +725,3 @@ void IMAPfolderItem::deleteFolder()
{
- QListView*v=listView();
+ Q3ListView*v=listView();
IMAPviewItem * box = imap;
@@ -802,3 +804,3 @@ AbstractMail *MHviewItem::getWrapper()
-void MHviewItem::refresh( QValueList<RecMailP> & target)
+void MHviewItem::refresh( Q3ValueList<RecMailP> & target)
{
@@ -813,4 +815,4 @@ void MHviewItem::refresh(bool force)
currentFolders.clear();
- QValueList<FolderP> *folders = wrapper->listFolders();
- QValueList<FolderP>::ConstIterator it;
+ Q3ValueList<FolderP> *folders = wrapper->listFolders();
+ Q3ValueList<FolderP>::ConstIterator it;
MHfolderItem*item = 0;
@@ -859,5 +861,5 @@ RECBODYP MHviewItem::fetchBody( const RecMailP &mail )
-QPopupMenu * MHviewItem::getContextMenu()
+Q3PopupMenu * MHviewItem::getContextMenu()
{
- QPopupMenu *m = new QPopupMenu(0);
+ Q3PopupMenu *m = new Q3PopupMenu(0);
if (m)
@@ -922,3 +924,3 @@ MHfolderItem::~MHfolderItem()
-MHfolderItem::MHfolderItem( const FolderP &folderInit, MHviewItem *parent , QListViewItem*after )
+MHfolderItem::MHfolderItem( const FolderP &folderInit, MHviewItem *parent , Q3ListViewItem*after )
: AccountViewItem(folderInit, parent,after )
@@ -929,3 +931,3 @@ MHfolderItem::MHfolderItem( const FolderP &folderInit, MHviewItem *parent , QLis
-MHfolderItem::MHfolderItem(const FolderP& folderInit, MHfolderItem *parent, QListViewItem*after, MHviewItem*master)
+MHfolderItem::MHfolderItem(const FolderP& folderInit, MHfolderItem *parent, Q3ListViewItem*after, MHviewItem*master)
: AccountViewItem(folderInit, parent,after )
@@ -969,3 +971,3 @@ const FolderP&MHfolderItem::getFolder()const
-void MHfolderItem::refresh(QValueList<RecMailP>&target)
+void MHfolderItem::refresh(Q3ValueList<RecMailP>&target)
{
@@ -991,3 +993,3 @@ void MHfolderItem::deleteFolder()
{
- QListView*v=listView();
+ Q3ListView*v=listView();
MHviewItem * box = mbox;
@@ -1004,5 +1006,5 @@ void MHfolderItem::deleteFolder()
-QPopupMenu * MHfolderItem::getContextMenu()
+Q3PopupMenu * MHfolderItem::getContextMenu()
{
- QPopupMenu *m = new QPopupMenu(0);
+ Q3PopupMenu *m = new Q3PopupMenu(0);
if (m)
@@ -1033,3 +1035,3 @@ void MHfolderItem::createFolder()
{
- QListView*v=listView();
+ Q3ListView*v=listView();
MHviewItem * box = mbox;
@@ -1080,3 +1082,3 @@ const QString AccountViewItem::contextName="AccountViewItem";
AccountViewItem::AccountViewItem( AccountView *parent )
- : QListViewItem( parent )
+ : Q3ListViewItem( parent )
{
@@ -1086,4 +1088,4 @@ AccountViewItem::AccountViewItem( AccountView *parent )
-AccountViewItem::AccountViewItem( QListViewItem *parent)
- : QListViewItem( parent),folder(0)
+AccountViewItem::AccountViewItem( Q3ListViewItem *parent)
+ : Q3ListViewItem( parent),folder(0)
{
@@ -1092,4 +1094,4 @@ AccountViewItem::AccountViewItem( QListViewItem *parent)
-AccountViewItem::AccountViewItem( QListViewItem *parent , QListViewItem*after )
- :QListViewItem( parent,after ),folder(0)
+AccountViewItem::AccountViewItem( Q3ListViewItem *parent , Q3ListViewItem*after )
+ :Q3ListViewItem( parent,after ),folder(0)
{
@@ -1098,4 +1100,4 @@ AccountViewItem::AccountViewItem( QListViewItem *parent , QListViewItem*after )
-AccountViewItem::AccountViewItem( const Opie::Core::OSmartPointer<Folder>&folderInit,QListViewItem *parent , QListViewItem*after )
- :QListViewItem( parent,after ),folder(folderInit)
+AccountViewItem::AccountViewItem( const Opie::Core::OSmartPointer<Folder>&folderInit,Q3ListViewItem *parent , Q3ListViewItem*after )
+ :Q3ListViewItem( parent,after ),folder(folderInit)
{
@@ -1142,6 +1144,6 @@ void AccountViewItem::removeChilds()
{
- QListViewItem *child = firstChild();
+ Q3ListViewItem *child = firstChild();
while ( child )
{
- QListViewItem *tmp = child;
+ Q3ListViewItem *tmp = child;
child = child->nextSibling();
diff --git a/kmicromail/accountitem.h b/kmicromail/accountitem.h
index 4c92bfc..bbfd05f 100644
--- a/kmicromail/accountitem.h
+++ b/kmicromail/accountitem.h
@@ -4,4 +4,7 @@
-#include <qlistview.h>
+#include <q3listview.h>
#include <qlist.h>
+//Added by qt3to4:
+#include <Q3ValueList>
+#include <Q3PopupMenu>
#include <opie2/osmartpointer.h>
@@ -12,3 +15,3 @@ class RecMail;
class RecBody;
-class QPopupMenu;
+class Q3PopupMenu;
class Selectstore;
@@ -23,3 +26,3 @@ class Folder;
-class AccountViewItem : public QListViewItem
+class AccountViewItem : public Q3ListViewItem
{
@@ -28,10 +31,10 @@ public:
AccountViewItem( AccountView *parent );
- AccountViewItem( QListViewItem *parent);
- AccountViewItem( QListViewItem *parent , QListViewItem*after );
- AccountViewItem( const Opie::Core::OSmartPointer<Folder>&folderInit,QListViewItem *parent , QListViewItem*after );
+ AccountViewItem( Q3ListViewItem *parent);
+ AccountViewItem( Q3ListViewItem *parent , Q3ListViewItem*after );
+ AccountViewItem( const Opie::Core::OSmartPointer<Folder>&folderInit,Q3ListViewItem *parent , Q3ListViewItem*after );
virtual ~AccountViewItem();
- virtual void refresh(QValueList<Opie::Core::OSmartPointer<RecMail> >&)=0;
+ virtual void refresh(Q3ValueList<Opie::Core::OSmartPointer<RecMail> >&)=0;
virtual RECBODYP fetchBody(const Opie::Core::OSmartPointer<RecMail>&)=0;
- virtual QPopupMenu * getContextMenu(){return 0;};
+ virtual Q3PopupMenu * getContextMenu(){return 0;};
virtual void contextMenuSelected(int){}
@@ -58,6 +61,6 @@ public:
virtual ~POP3viewItem();
- virtual void refresh(QValueList<Opie::Core::OSmartPointer<RecMail> >&target );
+ virtual void refresh(Q3ValueList<Opie::Core::OSmartPointer<RecMail> >&target );
virtual RECBODYP fetchBody( const Opie::Core::OSmartPointer<RecMail> &mail );
AbstractMail *getWrapper();
- virtual QPopupMenu * getContextMenu();
+ virtual Q3PopupMenu * getContextMenu();
virtual void contextMenuSelected(int);
@@ -76,7 +79,7 @@ class POP3folderItem : public AccountViewItem
public:
- POP3folderItem( const Opie::Core::OSmartPointer<Folder>&folder, POP3viewItem *parent , QListViewItem*after );
+ POP3folderItem( const Opie::Core::OSmartPointer<Folder>&folder, POP3viewItem *parent , Q3ListViewItem*after );
virtual ~POP3folderItem();
- virtual void refresh(QValueList<Opie::Core::OSmartPointer<RecMail> >&);
+ virtual void refresh(Q3ValueList<Opie::Core::OSmartPointer<RecMail> >&);
virtual RECBODYP fetchBody(const Opie::Core::OSmartPointer<RecMail>&);
- virtual QPopupMenu * getContextMenu();
+ virtual Q3PopupMenu * getContextMenu();
virtual void contextMenuSelected(int);
@@ -95,6 +98,6 @@ public:
virtual ~NNTPviewItem();
- virtual void refresh(QValueList<Opie::Core::OSmartPointer<RecMail> >&target );
+ virtual void refresh(Q3ValueList<Opie::Core::OSmartPointer<RecMail> >&target );
virtual RECBODYP fetchBody( const Opie::Core::OSmartPointer<RecMail> &mail );
AbstractMail *getWrapper();
- virtual QPopupMenu * getContextMenu();
+ virtual Q3PopupMenu * getContextMenu();
virtual void contextMenuSelected(int);
@@ -114,7 +117,7 @@ class NNTPfolderItem : public AccountViewItem
public:
- NNTPfolderItem(const Opie::Core::OSmartPointer<Folder>&folder, NNTPviewItem *parent , QListViewItem*after );
+ NNTPfolderItem(const Opie::Core::OSmartPointer<Folder>&folder, NNTPviewItem *parent , Q3ListViewItem*after );
virtual ~NNTPfolderItem();
- virtual void refresh(QValueList<Opie::Core::OSmartPointer<RecMail> >&);
+ virtual void refresh(Q3ValueList<Opie::Core::OSmartPointer<RecMail> >&);
virtual RECBODYP fetchBody(const Opie::Core::OSmartPointer<RecMail>&);
- virtual QPopupMenu * getContextMenu();
+ virtual Q3PopupMenu * getContextMenu();
virtual void contextMenuSelected(int);
@@ -134,6 +137,6 @@ public:
virtual ~IMAPviewItem();
- virtual void refresh(QValueList<Opie::Core::OSmartPointer<RecMail> >&);
+ virtual void refresh(Q3ValueList<Opie::Core::OSmartPointer<RecMail> >&);
virtual RECBODYP fetchBody(const Opie::Core::OSmartPointer<RecMail>&);
AbstractMail *getWrapper();
- virtual QPopupMenu * getContextMenu();
+ virtual Q3PopupMenu * getContextMenu();
virtual void contextMenuSelected(int);
@@ -154,8 +157,8 @@ class IMAPfolderItem : public AccountViewItem
public:
- IMAPfolderItem( const Opie::Core::OSmartPointer<Folder>&folder, IMAPviewItem *parent , QListViewItem*after );
- IMAPfolderItem( const Opie::Core::OSmartPointer<Folder>&folder, IMAPfolderItem *parent , QListViewItem*after, IMAPviewItem *master );
+ IMAPfolderItem( const Opie::Core::OSmartPointer<Folder>&folder, IMAPviewItem *parent , Q3ListViewItem*after );
+ IMAPfolderItem( const Opie::Core::OSmartPointer<Folder>&folder, IMAPfolderItem *parent , Q3ListViewItem*after, IMAPviewItem *master );
virtual ~IMAPfolderItem();
- virtual void refresh(QValueList<Opie::Core::OSmartPointer<RecMail> >&);
+ virtual void refresh(Q3ValueList<Opie::Core::OSmartPointer<RecMail> >&);
virtual RECBODYP fetchBody(const Opie::Core::OSmartPointer<RecMail>&);
- virtual QPopupMenu * getContextMenu();
+ virtual Q3PopupMenu * getContextMenu();
virtual void contextMenuSelected(int);
@@ -176,6 +179,6 @@ public:
virtual ~MHviewItem();
- virtual void refresh(QValueList<Opie::Core::OSmartPointer<RecMail> >&target );
+ virtual void refresh(Q3ValueList<Opie::Core::OSmartPointer<RecMail> >&target );
virtual RECBODYP fetchBody( const Opie::Core::OSmartPointer<RecMail> &mail );
AbstractMail *getWrapper();
- virtual QPopupMenu * getContextMenu();
+ virtual Q3PopupMenu * getContextMenu();
virtual void contextMenuSelected(int);
@@ -196,8 +199,8 @@ class MHfolderItem : public AccountViewItem
public:
- MHfolderItem( const Opie::Core::OSmartPointer<Folder>&folder, MHviewItem *parent , QListViewItem*after );
- MHfolderItem( const Opie::Core::OSmartPointer<Folder>&folder, MHfolderItem *parent, QListViewItem*after, MHviewItem*master);
+ MHfolderItem( const Opie::Core::OSmartPointer<Folder>&folder, MHviewItem *parent , Q3ListViewItem*after );
+ MHfolderItem( const Opie::Core::OSmartPointer<Folder>&folder, MHfolderItem *parent, Q3ListViewItem*after, MHviewItem*master);
virtual ~MHfolderItem();
- virtual void refresh(QValueList<Opie::Core::OSmartPointer<RecMail> >&);
+ virtual void refresh(Q3ValueList<Opie::Core::OSmartPointer<RecMail> >&);
virtual RECBODYP fetchBody(const Opie::Core::OSmartPointer<RecMail>&);
- virtual QPopupMenu * getContextMenu();
+ virtual Q3PopupMenu * getContextMenu();
virtual void contextMenuSelected(int);
diff --git a/kmicromail/accountview.cpp b/kmicromail/accountview.cpp
index d1d4f7e..eea1f65 100644
--- a/kmicromail/accountview.cpp
+++ b/kmicromail/accountview.cpp
@@ -15,3 +15,3 @@
#include <qmessagebox.h>
-#include <qpopupmenu.h>
+#include <q3popupmenu.h>
#include <qcheckbox.h>
@@ -19,2 +19,4 @@
#include <qspinbox.h>
+//Added by qt3to4:
+#include <Q3ValueList>
#include <klocale.h>
@@ -23,4 +25,4 @@
using namespace Opie::Core;
-AccountView::AccountView( QWidget *parent, const char *name, WFlags flags )
- : QListView( parent, name, flags )
+AccountView::AccountView( QWidget *parent, const char *name, Qt::WFlags flags )
+ : Q3ListView( parent, name, flags )
{
@@ -28,8 +30,8 @@ AccountView::AccountView( QWidget *parent, const char *name, WFlags flags )
// SLOT( refresh(QListViewItem*) ) );
- connect( this, SIGNAL( clicked(QListViewItem*) ),
- SLOT( refresh(QListViewItem*) ) );
- connect( this, SIGNAL( returnPressed(QListViewItem*) ),
- SLOT( refresh(QListViewItem*) ) );
- connect( this, SIGNAL( mouseButtonPressed(int,QListViewItem*,const QPoint&,int) ),this,
- SLOT( slotHold(int,QListViewItem*,const QPoint&,int) ) );
+ connect( this, SIGNAL( clicked(Q3ListViewItem*) ),
+ SLOT( refresh(Q3ListViewItem*) ) );
+ connect( this, SIGNAL( returnPressed(Q3ListViewItem*) ),
+ SLOT( refresh(Q3ListViewItem*) ) );
+ connect( this, SIGNAL( mouseButtonPressed(int,Q3ListViewItem*,const QPoint&,int) ),this,
+ SLOT( slotHold(int,Q3ListViewItem*,const QPoint&,int) ) );
setSorting(0);
@@ -50,3 +52,3 @@ void AccountView::slotContextMenu(int id)
-void AccountView::slotHold(int button, QListViewItem * item,const QPoint&,int)
+void AccountView::slotHold(int button, Q3ListViewItem * item,const QPoint&,int)
{
@@ -55,3 +57,3 @@ void AccountView::slotHold(int button, QListViewItem * item,const QPoint&,int)
AccountViewItem *view = static_cast<AccountViewItem *>(item);
- QPopupMenu*m = view->getContextMenu();
+ Q3PopupMenu*m = view->getContextMenu();
if (!m) return;
@@ -95,3 +97,3 @@ void AccountView::populate( QList<Account> list )
-void AccountView::refresh(QListViewItem *item)
+void AccountView::refresh(Q3ListViewItem *item)
{
@@ -147,3 +149,3 @@ void AccountView::refreshCurrentSelected()
if ( !m_currentItem ) return;
- QValueList<RecMailP> headerlist;
+ Q3ValueList<RecMailP> headerlist;
AccountViewItem *view = static_cast<AccountViewItem *>(m_currentItem);
@@ -168,3 +170,3 @@ RecBodyP AccountView::fetchBody(const RecMailP&aMail)
{
- QListViewItem*item = selectedItem ();
+ Q3ListViewItem*item = selectedItem ();
if (!item) return new RecBody();
diff --git a/kmicromail/accountview.h b/kmicromail/accountview.h
index 33f3479..14b0ff9 100644
--- a/kmicromail/accountview.h
+++ b/kmicromail/accountview.h
@@ -3,4 +3,6 @@
-#include <qlistview.h>
+#include <q3listview.h>
#include <qlist.h>
+//Added by qt3to4:
+#include <Q3ValueList>
#include <opie2/osmartpointer.h>
@@ -15,3 +17,3 @@ class MHviewItem;
-class AccountView : public QListView
+class AccountView : public Q3ListView
{
@@ -20,3 +22,3 @@ class AccountView : public QListView
public:
- AccountView( QWidget *parent = 0, const char *name = 0, WFlags flags = 0 );
+ AccountView( QWidget *parent = 0, const char *name = 0, Qt::WFlags flags = 0 );
virtual ~AccountView();
@@ -27,6 +29,6 @@ public:
virtual bool currentisDraft();
- QValueList<MHviewItem*> allAccounts() { return mhAccounts;}
+ Q3ValueList<MHviewItem*> allAccounts() { return mhAccounts;}
public slots:
virtual void refreshAll();
- virtual void refresh(QListViewItem *item);
+ virtual void refresh(Q3ListViewItem *item);
virtual void refreshCurrent();
@@ -34,3 +36,3 @@ public slots:
virtual void refreshOutgoing();
- virtual void slotHold(int, QListViewItem *,const QPoint&,int);
+ virtual void slotHold(int, Q3ListViewItem *,const QPoint&,int);
virtual void slotContextMenu(int id);
@@ -39,8 +41,8 @@ public slots:
signals:
- void refreshMailview(const QValueList<RecMailP>& );
+ void refreshMailview(const Q3ValueList<RecMailP>& );
protected:
- QListViewItem* m_currentItem;
- QValueList<IMAPviewItem*> imapAccounts;
- QValueList<MHviewItem*> mhAccounts;
+ Q3ListViewItem* m_currentItem;
+ Q3ValueList<IMAPviewItem*> imapAccounts;
+ Q3ValueList<MHviewItem*> mhAccounts;
};
diff --git a/kmicromail/composemail.cpp b/kmicromail/composemail.cpp
index 4bc4441..81d7b52 100644
--- a/kmicromail/composemail.cpp
+++ b/kmicromail/composemail.cpp
@@ -40,3 +40,3 @@
#include <qcheckbox.h>
-#include <qiconset.h>
+#include <qicon.h>
#include <qtimer.h>
@@ -44,6 +44,6 @@
#include <qpushbutton.h>
-#include <qmultilineedit.h>
+#include <q3multilineedit.h>
#include <qlabel.h>
#include <qtabwidget.h>
-#include <qlistview.h>
+#include <q3listview.h>
@@ -127,3 +127,3 @@ ComposeMail::ComposeMail( Settings *sett, QWidget *parent, const char *name, boo
warnAttach = true;
- QIconSet icon;
+ QIcon icon;
//icon = SmallIcon("fileexport");
@@ -143,3 +143,3 @@ ComposeMail::ComposeMail( Settings *sett, QWidget *parent, const char *name, boo
message->setFont ( KOPrefs::instance()->mComposeFont );
- message->setWordWrap (QMultiLineEdit::WidgetWidth);
+ message->setWordWrap (Q3MultiLineEdit::WidgetWidth);
if ( smtpAccounts.count() > 0 ) {
@@ -536,4 +536,4 @@ void ComposeMail::reEditMail(const RecMailP&current)
-AttachViewItem::AttachViewItem( QListView *parent, Attachment *att )
- : QListViewItem( parent )
+AttachViewItem::AttachViewItem( Q3ListView *parent, Attachment *att )
+ : Q3ListViewItem( parent )
{
diff --git a/kmicromail/composemail.h b/kmicromail/composemail.h
index 966ac3e..9aef4e1 100644
--- a/kmicromail/composemail.h
+++ b/kmicromail/composemail.h
@@ -4,3 +4,3 @@
#include <qlineedit.h>
-#include <qlistview.h>
+#include <q3listview.h>
@@ -82,6 +82,6 @@ protected:
-class AttachViewItem : public QListViewItem
+class AttachViewItem : public Q3ListViewItem
{
public:
- AttachViewItem( QListView *parent, Attachment *att );
+ AttachViewItem( Q3ListView *parent, Attachment *att );
Attachment *getAttachment() { return attachment; }
diff --git a/kmicromail/editaccounts.cpp b/kmicromail/editaccounts.cpp
index 2c0f2d8..f274dc3 100644
--- a/kmicromail/editaccounts.cpp
+++ b/kmicromail/editaccounts.cpp
@@ -18,3 +18,3 @@
#include <qtabwidget.h>
-#include <qlistview.h>
+#include <q3listview.h>
#include <qspinbox.h>
@@ -27,4 +27,4 @@ using namespace Opie::Core;
-AccountListItem::AccountListItem( QListView *parent, Account *a)
- : QListViewItem( parent )
+AccountListItem::AccountListItem( Q3ListView *parent, Account *a)
+ : Q3ListViewItem( parent )
{
@@ -53,3 +53,3 @@ AccountListItem::AccountListItem( QListView *parent, Account *a)
-EditAccounts::EditAccounts( Settings *s, QWidget *parent, const char *name, bool modal, WFlags flags )
+EditAccounts::EditAccounts( Settings *s, QWidget *parent, const char *name, bool modal, Qt::WFlags flags )
: EditAccountsUI( parent, name, modal, flags )
@@ -310,3 +310,3 @@ void EditAccounts::accept()
-SelectMailType::SelectMailType( QString *selection, QWidget *parent, const char *name, bool modal, WFlags flags )
+SelectMailType::SelectMailType( QString *selection, QWidget *parent, const char *name, bool modal, Qt::WFlags flags )
: SelectMailTypeUI( parent, name, modal, flags )
@@ -327,3 +327,3 @@ void SelectMailType::slotSelection( const QString &sel )
-IMAPconfig::IMAPconfig( IMAPaccount *account, QWidget *parent, const char *name, bool modal, WFlags flags )
+IMAPconfig::IMAPconfig( IMAPaccount *account, QWidget *parent, const char *name, bool modal, Qt::WFlags flags )
: IMAPconfigUI( parent, name, modal, flags )
@@ -410,3 +410,3 @@ void IMAPconfig::accept()
-POP3config::POP3config( POP3account *account, QWidget *parent, const char *name, bool modal, WFlags flags )
+POP3config::POP3config( POP3account *account, QWidget *parent, const char *name, bool modal, Qt::WFlags flags )
: POP3configUI( parent, name, modal, flags )
@@ -491,3 +491,3 @@ void POP3config::accept()
-SMTPconfig::SMTPconfig( SMTPaccount *account, QWidget *parent, const char *name, bool modal, WFlags flags )
+SMTPconfig::SMTPconfig( SMTPaccount *account, QWidget *parent, const char *name, bool modal, Qt::WFlags flags )
: SMTPconfigUI( parent, name, modal, flags )
@@ -500,3 +500,3 @@ SMTPconfig::SMTPconfig( SMTPaccount *account, QWidget *parent, const char *name,
// fillValues();
- QIconSet icon;
+ QIcon icon;
//icon = SmallIcon("fileexport");
@@ -574,3 +574,3 @@ void SMTPconfig::accept()
-NNTPconfig::NNTPconfig( NNTPaccount *account, QWidget *parent, const char *name, bool modal, WFlags flags )
+NNTPconfig::NNTPconfig( NNTPaccount *account, QWidget *parent, const char *name, bool modal, Qt::WFlags flags )
: NNTPconfigUI( parent, name, modal, flags )
@@ -595,4 +595,4 @@ void NNTPconfig::slotShowSub()
for ( QStringList::Iterator it = subscribedGroups.begin(); it != subscribedGroups.end(); ++it ) {
- QCheckListItem *item;
- item = new QCheckListItem( ListViewGroups, (*it), QCheckListItem::CheckBox );
+ Q3CheckListItem *item;
+ item = new Q3CheckListItem( ListViewGroups, (*it), Q3CheckListItem::CheckBox );
item->setOn( true );
@@ -608,5 +608,5 @@ void NNTPconfig::slotShowFilter()
for ( QStringList::Iterator it = allGroups.begin(); it != allGroups.end(); ++it ) {
- QCheckListItem *item;
+ Q3CheckListItem *item;
if ( GroupFilter->text().isEmpty() || (*it).find( GroupFilter->text() ) >= 0 ) {
- item = new QCheckListItem( ListViewGroups, (*it), QCheckListItem::CheckBox );
+ item = new Q3CheckListItem( ListViewGroups, (*it), Q3CheckListItem::CheckBox );
++count;
@@ -631,4 +631,4 @@ void NNTPconfig::slotGetNG() {
for ( QStringList::Iterator it = allGroups.begin(); it != allGroups.end(); ++it ) {
- QCheckListItem *item;
- item = new QCheckListItem( ListViewGroups, (*it), QCheckListItem::CheckBox );
+ Q3CheckListItem *item;
+ item = new Q3CheckListItem( ListViewGroups, (*it), Q3CheckListItem::CheckBox );
if ( subscribedGroups.contains( (*it) ) >= 1 ) {
@@ -665,4 +665,4 @@ void NNTPconfig::fillValues()
for ( QStringList::Iterator it = subscribedGroups.begin(); it != subscribedGroups.end(); ++it ) {
- QCheckListItem *item;
- item = new QCheckListItem( ListViewGroups, (*it), QCheckListItem::CheckBox );
+ Q3CheckListItem *item;
+ item = new Q3CheckListItem( ListViewGroups, (*it), Q3CheckListItem::CheckBox );
item->setOn( true );
@@ -681,3 +681,3 @@ void NNTPconfig::save()
- QListViewItemIterator list_it( ListViewGroups );
+ Q3ListViewItemIterator list_it( ListViewGroups );
@@ -685,3 +685,3 @@ void NNTPconfig::save()
- if ( ( (QCheckListItem*)list_it.current() )->isOn() ) {
+ if ( ( (Q3CheckListItem*)list_it.current() )->isOn() ) {
if ( subscribedGroups.contains( list_it.current()->text(0) ) < 1 )
diff --git a/kmicromail/editaccounts.h b/kmicromail/editaccounts.h
index 465780c..3d01d23 100644
--- a/kmicromail/editaccounts.h
+++ b/kmicromail/editaccounts.h
@@ -4,3 +4,3 @@
#include <qstring.h>
-#include <qlistview.h>
+#include <q3listview.h>
@@ -17,3 +17,3 @@
-class AccountListItem : public QListViewItem
+class AccountListItem : public Q3ListViewItem
{
@@ -21,3 +21,3 @@ class AccountListItem : public QListViewItem
public:
- AccountListItem( QListView *parent, Account *a);
+ AccountListItem( Q3ListView *parent, Account *a);
Account *getAccount() { return account; }
@@ -34,3 +34,3 @@ class EditAccounts : public EditAccountsUI
public:
- EditAccounts( Settings *s, QWidget *parent = 0, const char *name = 0, bool modal = 0, WFlags flags = 0 );
+ EditAccounts( Settings *s, QWidget *parent = 0, const char *name = 0, bool modal = 0, Qt::WFlags flags = 0 );
@@ -62,3 +62,3 @@ class SelectMailType : public SelectMailTypeUI
public:
- SelectMailType( QString *selection = 0, QWidget *parent = 0, const char *name = 0, bool modal = 0, WFlags flags = 0 );
+ SelectMailType( QString *selection = 0, QWidget *parent = 0, const char *name = 0, bool modal = 0, Qt::WFlags flags = 0 );
@@ -77,3 +77,3 @@ class IMAPconfig : public IMAPconfigUI
public:
- IMAPconfig( IMAPaccount *account, QWidget *parent = 0, const char *name = 0, bool modal = 0, WFlags flags = 0 );
+ IMAPconfig( IMAPaccount *account, QWidget *parent = 0, const char *name = 0, bool modal = 0, Qt::WFlags flags = 0 );
@@ -96,3 +96,3 @@ class POP3config : public POP3configUI
public:
- POP3config( POP3account *account, QWidget *parent = 0, const char *name = 0, bool modal = 0, WFlags flags = 0 );
+ POP3config( POP3account *account, QWidget *parent = 0, const char *name = 0, bool modal = 0, Qt::WFlags flags = 0 );
@@ -115,3 +115,3 @@ class SMTPconfig : public SMTPconfigUI
public:
- SMTPconfig( SMTPaccount *account, QWidget *parent = 0, const char *name = 0, bool modal = 0, WFlags flags = 0 );
+ SMTPconfig( SMTPaccount *account, QWidget *parent = 0, const char *name = 0, bool modal = 0, Qt::WFlags flags = 0 );
@@ -135,3 +135,3 @@ class NNTPconfig : public NNTPconfigUI
public:
- NNTPconfig( NNTPaccount *account, QWidget *parent = 0, const char *name = 0, bool modal = 0, WFlags flags = 0 );
+ NNTPconfig( NNTPaccount *account, QWidget *parent = 0, const char *name = 0, bool modal = 0, Qt::WFlags flags = 0 );
diff --git a/kmicromail/kmicromail.pro b/kmicromail/kmicromail.pro
index 9f4d4bd..ce30bbf 100644
--- a/kmicromail/kmicromail.pro
+++ b/kmicromail/kmicromail.pro
@@ -43,3 +43,4 @@ SOURCES = main.cpp \
-INTERFACES = editaccountsui.ui \
+#The following line was changed from INTERFACES to FORMS3 by qt3to4
+FORMS3 = editaccountsui.ui \
selectmailtypeui.ui \
@@ -58,3 +59,3 @@ INTERFACES = editaccountsui.ui \
INCLUDEPATH += ./qpe . .. ../libkdepim ../microkde ../microkde/kdecore ../libetpan/include ../microkde/kdeui
-LIBS += -L../bin -lmicromailwrapper -lmicrolibetpan -lmicrokde -lssl -lcrypto -lmicrokdepim -lmicrokabc -lpthread
+LIBS += -L../bin -lmicromailwrapper -lxmicrolibetpan -lxmicrokde -lssl -lcrypto -lxmicrokdepim -lxmicrokabc -lpthread
@@ -78 +79,6 @@ MOC_DIR = moc/win
+#The following line was inserted by qt3to4
+QT += xml qt3support
+#The following line was inserted by qt3to4
+CONFIG += uic3
+
diff --git a/kmicromail/kmicromailE.pro b/kmicromail/kmicromailE.pro
index a5a51f7..19fa398 100644
--- a/kmicromail/kmicromailE.pro
+++ b/kmicromail/kmicromailE.pro
@@ -57,3 +57,3 @@ INTERFACES = editaccountsui.ui \
INCLUDEPATH += $(QPEDIR)/include . $(KDEPIMDIR) $(KDEPIMDIR)/libkdepim $(KDEPIMDIR)/qtcompat $(KDEPIMDIR)/microkde $(KDEPIMDIR)/microkde/kdecore $(KDEPIMDIR)/libetpan/include $(KDEPIMDIR)/microkde/kdeui
-LIBS += -L$(QPEDIR)/lib -lmicromailwrapper -lqpe -lmicrolibetpan -lmicrokde -lmicroqtcompat -lssl -lcrypto -ljpeg -lmicrokdepim -lpthread
+LIBS += -L$(QPEDIR)/lib -lmicromailwrapper -lqpe -lxmicrolibetpan -lxmicrokde -lmicroqtcompat -lssl -lcrypto -ljpeg -lxmicrokdepim -lpthread
LIBS += $(QTOPIALIB)
diff --git a/kmicromail/koprefs.cpp b/kmicromail/koprefs.cpp
index e4b61dc..e2eed9a 100644
--- a/kmicromail/koprefs.cpp
+++ b/kmicromail/koprefs.cpp
@@ -28,3 +28,3 @@
#include <qdir.h>
-#include <qtextstream.h>
+#include <q3textstream.h>
#include <qtextcodec.h>
diff --git a/kmicromail/koprefsdialog.cpp b/kmicromail/koprefsdialog.cpp
index 017f1f7..e3102a4 100644
--- a/kmicromail/koprefsdialog.cpp
+++ b/kmicromail/koprefsdialog.cpp
@@ -25,4 +25,4 @@
#include <qlabel.h>
-#include <qgroupbox.h>
-#include <qbuttongroup.h>
+#include <q3groupbox.h>
+#include <q3buttongroup.h>
#include <qlineedit.h>
@@ -31,6 +31,6 @@
#include <qfile.h>
-#include <qtextstream.h>
+#include <q3textstream.h>
#include <qcombobox.h>
-#include <qvbox.h>
-#include <qhbox.h>
+#include <q3vbox.h>
+#include <q3hbox.h>
#include <qregexp.h>
@@ -41,4 +41,9 @@
#include <qpushbutton.h>
-#include <qstrlist.h>
+#include <q3strlist.h>
#include <qapplication.h>
+//Added by qt3to4:
+#include <Q3HBoxLayout>
+#include <Q3GridLayout>
+#include <QPixmap>
+#include <Q3Frame>
@@ -113,5 +118,5 @@ void KOPrefsDialog::setupMainTab()
{
- QFrame *topFrame = addPage(i18n("General"),0,0);
+ Q3Frame *topFrame = addPage(i18n("General"),0,0);
- QGridLayout *topLayout = new QGridLayout(topFrame,6,2);
+ Q3GridLayout *topLayout = new Q3GridLayout(topFrame,6,2);
topLayout->setSpacing(spacingHint());
@@ -138,5 +143,5 @@ void KOPrefsDialog::setupMailTab()
{
- QFrame *topFrame = addPage(i18n("Mail"),0,0);
+ Q3Frame *topFrame = addPage(i18n("Mail"),0,0);
- QGridLayout *topLayout = new QGridLayout(topFrame,4,2);
+ Q3GridLayout *topLayout = new Q3GridLayout(topFrame,4,2);
topLayout->setSpacing(spacingHint());
@@ -184,6 +189,6 @@ void KOPrefsDialog::setupFontsTab()
- QFrame *topFrame = addPage(i18n("Fonts"),0,0);
+ Q3Frame *topFrame = addPage(i18n("Fonts"),0,0);
// DesktopIcon("fonts",KIcon::SizeMedium));
- QGridLayout *topLayout = new QGridLayout(topFrame,7,3);
+ Q3GridLayout *topLayout = new Q3GridLayout(topFrame,7,3);
topLayout->setSpacing(1);
@@ -240,4 +245,4 @@ void KOPrefsDialog::setupLocaleDateTab()
{
-QFrame *topFrame = addPage(i18n("Date Format"),0,0);
- QGridLayout *topLayout = new QGridLayout(topFrame,3,2);
+Q3Frame *topFrame = addPage(i18n("Date Format"),0,0);
+ Q3GridLayout *topLayout = new Q3GridLayout(topFrame,3,2);
topLayout->setSpacing(spacingHint());
@@ -294,4 +299,4 @@ void KOPrefsDialog::setupLocaleTab()
{
- QFrame *topFrame = addPage(i18n("Locale"),0,0);
- QGridLayout *topLayout = new QGridLayout(topFrame,4,2);
+ Q3Frame *topFrame = addPage(i18n("Locale"),0,0);
+ Q3GridLayout *topLayout = new Q3GridLayout(topFrame,4,2);
topLayout->setSpacing(spacingHint());
@@ -333,3 +338,3 @@ void KOPrefsDialog::setupLocaleTab()
QWidget * hb = new QWidget( topFrame );
- QHBoxLayout *hbLayout = new QHBoxLayout(hb);
+ Q3HBoxLayout *hbLayout = new Q3HBoxLayout(hb);
sb =
@@ -363,5 +368,5 @@ void KOPrefsDialog::setupSyncAlgTab()
QLabel * lab;
- QFrame *topFrame = addPage(i18n("Sync Prefs"),0,0);
+ Q3Frame *topFrame = addPage(i18n("Sync Prefs"),0,0);
mSetupSyncAlgTab = topFrame;
- QGridLayout *topLayout = new QGridLayout(topFrame,6,2);
+ Q3GridLayout *topLayout = new Q3GridLayout(topFrame,6,2);
topLayout->setSpacing(spacingHint());
@@ -405,4 +410,4 @@ void KOPrefsDialog::setupSyncTab()
QLabel * lab;
- QFrame *topFrame = addPage(i18n("Sync Network"),0,0);
- QGridLayout *topLayout = new QGridLayout(topFrame,6,2);
+ Q3Frame *topFrame = addPage(i18n("Sync Network"),0,0);
+ Q3GridLayout *topLayout = new Q3GridLayout(topFrame,6,2);
topLayout->setSpacing(spacingHint());
@@ -453,6 +458,6 @@ void KOPrefsDialog::setupMainTab()
{
- QFrame *topFrame = addPage(i18n("General"),0,0);
+ Q3Frame *topFrame = addPage(i18n("General"),0,0);
// DesktopIcon("identity",KIcon::SizeMedium));
- QGridLayout *topLayout = new QGridLayout(topFrame,6,2);
+ Q3GridLayout *topLayout = new Q3GridLayout(topFrame,6,2);
topLayout->setSpacing(spacingHint());
@@ -477,7 +482,7 @@ void KOPrefsDialog::setupMainTab()
KPrefsDialogWidBool *wb;
- QHBox *dummy;
+ Q3HBox *dummy;
if ( QApplication::desktop()->width() > 480 ) {
- dummy = new QHBox(topFrame);
+ dummy = new Q3HBox(topFrame);
} else {
- dummy = new QVBox(topFrame);
+ dummy = new Q3VBox(topFrame);
}
@@ -493,3 +498,3 @@ void KOPrefsDialog::setupMainTab()
- dummy = new QHBox(topFrame);
+ dummy = new Q3HBox(topFrame);
new QLabel(i18n("Days in What's Next:"),dummy);
@@ -501,3 +506,3 @@ void KOPrefsDialog::setupMainTab()
- dummy = new QHBox(topFrame);
+ dummy = new Q3HBox(topFrame);
new QLabel(i18n("Days in Next-X-Days:"),dummy);
@@ -507,3 +512,3 @@ void KOPrefsDialog::setupMainTab()
- QHBox *prioBox = new QHBox(topFrame);
+ Q3HBox *prioBox = new Q3HBox(topFrame);
// intervalBox->setSpacing(spacingHint());
@@ -531,3 +536,3 @@ void KOPrefsDialog::setupMainTab()
- QHBox *intervalBox = new QHBox(topFrame);
+ Q3HBox *intervalBox = new Q3HBox(topFrame);
// intervalBox->setSpacing(spacingHint());
@@ -622,6 +627,6 @@ void KOPrefsDialog::setupTimeTab()
{
- QFrame *topFrame = addPage(i18n("Time"),0,0);
+ Q3Frame *topFrame = addPage(i18n("Time"),0,0);
// DesktopIcon("clock",KIcon::SizeMedium));
- QGridLayout *topLayout = new QGridLayout(topFrame,4,2);
+ Q3GridLayout *topLayout = new Q3GridLayout(topFrame,4,2);
topLayout->setSpacing(spacingHint());
@@ -629,3 +634,3 @@ void KOPrefsDialog::setupTimeTab()
- QHBox *dummy = new QHBox(topFrame);
+ Q3HBox *dummy = new Q3HBox(topFrame);
KPrefsWidTime *dayBegins =
@@ -660,3 +665,3 @@ void KOPrefsDialog::setupTimeTab()
- QGroupBox *workingHoursGroup = new QGroupBox(1,Horizontal,
+ Q3GroupBox *workingHoursGroup = new Q3GroupBox(1,Qt::Horizontal,
i18n("Working Hours"),
@@ -666,3 +671,3 @@ void KOPrefsDialog::setupTimeTab()
workingHoursGroup->layout()->setMargin( 4 );
- QHBox *workStartBox = new QHBox(workingHoursGroup);
+ Q3HBox *workStartBox = new Q3HBox(workingHoursGroup);
// workStartBox->setMargin( 0 );
@@ -671,3 +676,3 @@ void KOPrefsDialog::setupTimeTab()
- QHBox *workEndBox = new QHBox(workingHoursGroup);
+ Q3HBox *workEndBox = new Q3HBox(workingHoursGroup);
//workEndBox->setMargin( 0 );
@@ -675,3 +680,3 @@ void KOPrefsDialog::setupTimeTab()
&(KOPrefs::instance()->mWorkingHoursEnd),workEndBox);
- QVBox *excludeBox = new QVBox(workingHoursGroup);
+ Q3VBox *excludeBox = new Q3VBox(workingHoursGroup);
//excludeBox->setMargin( 0 );
@@ -695,6 +700,6 @@ void KOPrefsDialog::setupViewsTab()
- QFrame *topFrame = addPage(i18n("Views"),0,0);
+ Q3Frame *topFrame = addPage(i18n("Views"),0,0);
// DesktopIcon("viewmag",KIcon::SizeMedium));
- QGridLayout *topLayout = new QGridLayout(topFrame,6,1);
+ Q3GridLayout *topLayout = new Q3GridLayout(topFrame,6,1);
topLayout->setSpacing(spacingHint());
@@ -787,3 +792,3 @@ void KOPrefsDialog::setupViewsTab()
- topLayout = new QGridLayout(topFrame,6,1);
+ topLayout = new Q3GridLayout(topFrame,6,1);
topLayout->setSpacing(spacingHint());
@@ -840,3 +845,3 @@ void KOPrefsDialog::setupViewsTab()
- topLayout = new QGridLayout(topFrame,5,1);
+ topLayout = new Q3GridLayout(topFrame,5,1);
topLayout->setSpacing(spacingHint());
@@ -845,3 +850,3 @@ void KOPrefsDialog::setupViewsTab()
QLabel *lab;
- QHBox *habo = new QHBox( topFrame );
+ Q3HBox *habo = new Q3HBox( topFrame );
if ( QApplication::desktop()->width() < 320 ) {
@@ -867,3 +872,3 @@ void KOPrefsDialog::setupViewsTab()
- habo = new QHBox( topFrame );
+ habo = new Q3HBox( topFrame );
if ( QApplication::desktop()->width() < 320 ) {
@@ -935,3 +940,3 @@ void KOPrefsDialog::setupViewsTab()
- topLayout = new QGridLayout(topFrame,4,1);
+ topLayout = new Q3GridLayout(topFrame,4,1);
topLayout->setSpacing(spacingHint());
@@ -967,3 +972,3 @@ void KOPrefsDialog::setupViewsTab()
&(KOPrefs::instance()->mTodoDueTodayColor),wid);
- QHBoxLayout *widLayout = new QHBoxLayout(wid);
+ Q3HBoxLayout *widLayout = new Q3HBoxLayout(wid);
widLayout->addWidget( todoDueTodayColor->label() );
@@ -975,3 +980,3 @@ void KOPrefsDialog::setupViewsTab()
wid = new QWidget( topFrame );
- widLayout = new QHBoxLayout(wid);
+ widLayout = new Q3HBoxLayout(wid);
KPrefsWidColor *todoOverdueColor =
@@ -999,3 +1004,3 @@ void KOPrefsDialog::setupViewsTab()
- topLayout = new QGridLayout(topFrame,2,1);
+ topLayout = new Q3GridLayout(topFrame,2,1);
topLayout->setSpacing(spacingHint());
@@ -1012,5 +1017,5 @@ void KOPrefsDialog::setupViewsTab()
#ifndef DESKTOP_VERSION
- lab->setAlignment( AlignLeft|WordBreak|AlignTop);
+ lab->setAlignment( Qt::AlignLeft|Qt::TextWordWrap|Qt::AlignTop);
#else
- lab->setAlignment( AlignLeft|BreakAnywhere|WordBreak|AlignTop);
+ lab->setAlignment( Qt::AlignLeft|Qt::TextWrapAnywhere|Qt::TextWordWrap|Qt::AlignTop);
lab->setSizePolicy( QSizePolicy( QSizePolicy::Ignored , QSizePolicy::Ignored,true) );
@@ -1018,3 +1023,3 @@ void KOPrefsDialog::setupViewsTab()
- QHBox* dummyBox = new QHBox(topFrame);
+ Q3HBox* dummyBox = new Q3HBox(topFrame);
new QLabel(i18n("Play beeps count:"),dummyBox);
@@ -1023,3 +1028,3 @@ void KOPrefsDialog::setupViewsTab()
- dummyBox = new QHBox(topFrame);
+ dummyBox = new Q3HBox(topFrame);
new QLabel(i18n("Beeps interval in sec:"),dummyBox);
@@ -1028,3 +1033,3 @@ void KOPrefsDialog::setupViewsTab()
- dummyBox = new QHBox(topFrame);
+ dummyBox = new Q3HBox(topFrame);
new QLabel(i18n("Default suspend time in min:"),dummyBox);
@@ -1033,3 +1038,3 @@ void KOPrefsDialog::setupViewsTab()
- dummyBox = new QHBox(topFrame);
+ dummyBox = new Q3HBox(topFrame);
new QLabel(i18n("Auto suspend count:"),dummyBox);
@@ -1044,3 +1049,3 @@ void KOPrefsDialog::setupViewsTab()
- QHBox* hbo = new QHBox ( topFrame );
+ Q3HBox* hbo = new Q3HBox ( topFrame );
mDefaultAlarmFile = new QLineEdit(hbo);
@@ -1084,6 +1089,6 @@ void KOPrefsDialog::setupFontsTab()
- QFrame *topFrame = addPage(i18n("Fonts"),0,0);
+ Q3Frame *topFrame = addPage(i18n("Fonts"),0,0);
// DesktopIcon("fonts",KIcon::SizeMedium));
- QGridLayout *topLayout = new QGridLayout(topFrame,7,3);
+ Q3GridLayout *topLayout = new Q3GridLayout(topFrame,7,3);
topLayout->setSpacing(1);
@@ -1154,3 +1159,3 @@ void KOPrefsDialog::setupFontsTab()
- topLayout = new QGridLayout(topFrame,7,3);
+ topLayout = new Q3GridLayout(topFrame,7,3);
topLayout->setSpacing(1);
@@ -1222,6 +1227,6 @@ void KOPrefsDialog::setupColorsTab()
{
- QFrame *topFrame = addPage(i18n("Colors"),0,0);
+ Q3Frame *topFrame = addPage(i18n("Colors"),0,0);
// DesktopIcon("colorize",KIcon::SizeMedium));
- QGridLayout *topLayout = new QGridLayout(topFrame,5,2);
+ Q3GridLayout *topLayout = new Q3GridLayout(topFrame,5,2);
// topLayout->setSpacing(spacingHint());
@@ -1233,5 +1238,5 @@ void KOPrefsDialog::setupColorsTab()
int ii = 1;
- QGroupBox *categoryGroup ;
+ Q3GroupBox *categoryGroup ;
- categoryGroup = new QGroupBox(1,Vertical,i18n("Categories"),
+ categoryGroup = new Q3GroupBox(1,Qt::Vertical,i18n("Categories"),
topFrame);
@@ -1328,3 +1333,3 @@ void KOPrefsDialog::setupPrinterTab()
- QGridLayout *topLayout = new QGridLayout(mPrinterTab,5,2);
+ Q3GridLayout *topLayout = new Q3GridLayout(mPrinterTab,5,2);
topLayout->setSpacing(spacingHint());
@@ -1338,6 +1343,6 @@ void KOPrefsDialog::setupGroupSchedulingTab()
#if 0
- QFrame *topFrame = addPage(i18n("Group Scheduling"),0,
+ Q3Frame *topFrame = addPage(i18n("Group Scheduling"),0,
DesktopIcon("personal",KIcon::SizeMedium));
- QGridLayout *topLayout = new QGridLayout(topFrame,6,2);
+ Q3GridLayout *topLayout = new Q3GridLayout(topFrame,6,2);
topLayout->setSpacing(spacingHint());
@@ -1364,3 +1369,3 @@ void KOPrefsDialog::setupGroupSchedulingTab()
topLayout->addMultiCellWidget(new QLabel(i18n("Additional email addresses:"),topFrame),2,2,0,1);
- mAMails = new QListView(topFrame);
+ mAMails = new Q3ListView(topFrame);
mAMails->addColumn(i18n("Email"),300);
@@ -1382,3 +1387,3 @@ void KOPrefsDialog::setupGroupSchedulingTab()
connect(aEmailsEdit,SIGNAL( textChanged(const QString&) ), this,SLOT(updateItem()));
- connect(mAMails,SIGNAL(selectionChanged(QListViewItem *)),SLOT(updateInput()));
+ connect(mAMails,SIGNAL(selectionChanged(Q3ListViewItem *)),SLOT(updateInput()));
#endif
@@ -1389,6 +1394,6 @@ void KOPrefsDialog::setupGroupAutomationTab()
return;
- QFrame *topFrame = addPage(i18n("Group Automation"),0,
+ Q3Frame *topFrame = addPage(i18n("Group Automation"),0,
DesktopIcon("personal",KIcon::SizeMedium));
- QGridLayout *topLayout = new QGridLayout(topFrame,5,1);
+ Q3GridLayout *topLayout = new Q3GridLayout(topFrame,5,1);
topLayout->setSpacing(spacingHint());
@@ -1545,3 +1550,3 @@ void KOPrefsDialog::usrWriteConfig()
- QDictIterator<QColor> it(mCategoryDict);
+ Q3DictIterator<QColor> it(mCategoryDict);
while (it.current()) {
@@ -1685,6 +1690,6 @@ void KOPrefsDialog::setupTimeZoneTab()
{
- QFrame *topFrame = addPage(i18n("Time Zone"),0,0);
+ Q3Frame *topFrame = addPage(i18n("Time Zone"),0,0);
// DesktopIcon("clock",KIcon::SizeMedium));
- QGridLayout *topLayout = new QGridLayout(topFrame,5,2);
+ Q3GridLayout *topLayout = new Q3GridLayout(topFrame,5,2);
topLayout->setSpacing(spacingHint());
@@ -1692,3 +1697,3 @@ void KOPrefsDialog::setupTimeZoneTab()
- QHBox *timeZoneBox = new QHBox( topFrame );
+ Q3HBox *timeZoneBox = new Q3HBox( topFrame );
topLayout->addMultiCellWidget( timeZoneBox, 0, 0, 0, 1 );
diff --git a/kmicromail/koprefsdialog.h b/kmicromail/koprefsdialog.h
index 7fa9261..042af3f 100644
--- a/kmicromail/koprefsdialog.h
+++ b/kmicromail/koprefsdialog.h
@@ -25,6 +25,8 @@
-#include <qframe.h>
-#include <qdict.h>
+#include <q3frame.h>
+#include <q3dict.h>
#include <qcolor.h>
-#include <qlistview.h>
+#include <q3listview.h>
+//Added by qt3to4:
+#include <QLabel>
@@ -121,3 +123,3 @@ protected:
- QFrame *mPrinterTab;
+ Q3Frame *mPrinterTab;
@@ -148,3 +150,3 @@ protected:
KColorButton *mCategoryButton;
- QDict<QColor> mCategoryDict;
+ Q3Dict<QColor> mCategoryDict;
diff --git a/kmicromail/libetpan/libetpan.pro b/kmicromail/libetpan/libetpan.pro
index dfafa07..4b2654e 100644
--- a/kmicromail/libetpan/libetpan.pro
+++ b/kmicromail/libetpan/libetpan.pro
@@ -5,3 +5,3 @@
TEMPLATE = lib
-TARGET = microlibetpan
+TARGET = xmicrolibetpan
diff --git a/kmicromail/libetpan/libetpanE.pro b/kmicromail/libetpan/libetpanE.pro
index 7f37948..ea22692 100644
--- a/kmicromail/libetpan/libetpanE.pro
+++ b/kmicromail/libetpan/libetpanE.pro
@@ -5,3 +5,3 @@
TEMPLATE = lib
-TARGET = microlibetpan
+TARGET = xmicrolibetpan
diff --git a/kmicromail/libmailwrapper/abstractmail.cpp b/kmicromail/libmailwrapper/abstractmail.cpp
index 870985e..746d2ae 100644
--- a/kmicromail/libmailwrapper/abstractmail.cpp
+++ b/kmicromail/libmailwrapper/abstractmail.cpp
@@ -10,5 +10,7 @@
-#include <qprogressbar.h>
+#include <q3progressbar.h>
#include <qapplication.h>
#include <qmessagebox.h>
+//Added by qt3to4:
+#include <Q3ValueList>
#include <klocale.h>
@@ -16,3 +18,3 @@
#include <qfile.h>
-#include <qtextstream.h>
+#include <q3textstream.h>
#include <stdlib.h>
@@ -113,6 +115,6 @@ QString AbstractMail::gen_attachment_id()
QFile file( "/proc/sys/kernel/random/uuid" );
- if (!file.open(IO_ReadOnly ) )
+ if (!file.open(QIODevice::ReadOnly ) )
return QString::null;
- QTextStream stream(&file);
+ Q3TextStream stream(&file);
@@ -140,6 +142,6 @@ QString AbstractMail::draftFolder()
/* temporary - will be removed when implemented in all classes */
-void AbstractMail::deleteMails(const QString &,const QValueList<Opie::Core::OSmartPointer<RecMail> > &)
+void AbstractMail::deleteMails(const QString &,const Q3ValueList<Opie::Core::OSmartPointer<RecMail> > &)
{
}
-void AbstractMail::deleteMailList(const QValueList<RecMailP>&target)
+void AbstractMail::deleteMailList(const Q3ValueList<RecMailP>&target)
{
@@ -149,3 +151,3 @@ void AbstractMail::deleteMailList(const QValueList<RecMailP>&target)
int count = target.count();
- QProgressBar wid ( count );
+ Q3ProgressBar wid ( count );
wid.setCaption( i18n("Deleting ..."));
@@ -179,3 +181,3 @@ void AbstractMail::downloadNewMails(const FolderP&fromFolder, AbstractMail*targe
}
- QValueList<RecMailP> t;
+ Q3ValueList<RecMailP> t;
listMessages(fromFolder->getName(),t,acc->getMaxMailSize() );
@@ -189,6 +191,6 @@ void AbstractMail::downloadNewMails(const FolderP&fromFolder, AbstractMail*targe
qApp->processEvents();
- QValueList<RecMailP> e;
+ Q3ValueList<RecMailP> e;
targetMail->listMessages(lfName,e,acc->getMaxMailSize() );
//qDebug("target has mails %d ", e.count());
- QValueList<RecMailP> n;
+ Q3ValueList<RecMailP> n;
int iii = 0;
@@ -223,3 +225,3 @@ void AbstractMail::downloadNewMails(const FolderP&fromFolder, AbstractMail*targe
#if 0
- QValueList<RecMailP> t;
+ Q3ValueList<RecMailP> t;
listMessages(fromFolder->getName(),t, maxSizeInKb);
@@ -232,3 +234,3 @@ void AbstractMail::mvcpAllMails(const FolderP&fromFolder,
{
- QValueList<RecMailP> t;
+ Q3ValueList<RecMailP> t;
listMessages(fromFolder->getName(),t, maxSizeInKb);
@@ -237,3 +239,3 @@ void AbstractMail::mvcpAllMails(const FolderP&fromFolder,
}
-void AbstractMail::mvcpMailList(const QValueList<RecMailP>& t,
+void AbstractMail::mvcpMailList(const Q3ValueList<RecMailP>& t,
const QString&targetFolder,AbstractMail*targetWrapper,bool moveit)
@@ -248,3 +250,3 @@ void AbstractMail::mvcpMailList(const QValueList<RecMailP>& t,
- QProgressBar wid ( count );
+ Q3ProgressBar wid ( count );
wid.setCaption( i18n("Copying..."));
diff --git a/kmicromail/libmailwrapper/abstractmail.h b/kmicromail/libmailwrapper/abstractmail.h
index 2069ca1..f606b1f 100644
--- a/kmicromail/libmailwrapper/abstractmail.h
+++ b/kmicromail/libmailwrapper/abstractmail.h
@@ -9,2 +9,4 @@
#include <qobject.h>
+//Added by qt3to4:
+#include <Q3ValueList>
#include <opie2/osmartpointer.h>
@@ -27,4 +29,4 @@ public:
virtual ~AbstractMail(){}
- virtual QValueList<Opie::Core::OSmartPointer<Folder> >* listFolders()=0;
- virtual void listMessages(const QString & mailbox,QValueList<RecMailP>&target, int sizeInKb = 0 )=0;
+ virtual Q3ValueList<Opie::Core::OSmartPointer<Folder> >* listFolders()=0;
+ virtual void listMessages(const QString & mailbox,Q3ValueList<RecMailP>&target, int sizeInKb = 0 )=0;
virtual void statusFolder(folderStat&target_stat,const QString & mailbox="INBOX")=0;
@@ -37,6 +39,6 @@ public:
virtual void deleteMail(const RecMailP&mail)=0;
- virtual void deleteMailList(const QValueList<RecMailP>&target);
+ virtual void deleteMailList(const Q3ValueList<RecMailP>&target);
virtual void answeredMail(const RecMailP&mail)=0;
virtual int deleteAllMail(const Opie::Core::OSmartPointer<Folder>&)=0;
- virtual void deleteMails(const QString & FolderName,const QValueList<Opie::Core::OSmartPointer<RecMail> >&target);
+ virtual void deleteMails(const QString & FolderName,const Q3ValueList<Opie::Core::OSmartPointer<RecMail> >&target);
virtual int deleteMbox(const Opie::Core::OSmartPointer<Folder>&)=0;
@@ -46,3 +48,3 @@ public:
const QString&targetFolder,AbstractMail*targetWrapper,bool moveit, int sizeInKb = 0);
- virtual void mvcpMailList(const QValueList<RecMailP>& t,
+ virtual void mvcpMailList(const Q3ValueList<RecMailP>& t,
const QString&targetFolder,AbstractMail*targetWrapper,bool moveit);
diff --git a/kmicromail/libmailwrapper/generatemail.cpp b/kmicromail/libmailwrapper/generatemail.cpp
index 2d213fe..ddad21b 100644
--- a/kmicromail/libmailwrapper/generatemail.cpp
+++ b/kmicromail/libmailwrapper/generatemail.cpp
@@ -9,2 +9,4 @@
#include <qfileinfo.h>
+//Added by qt3to4:
+#include <Q3CString>
@@ -230,3 +232,3 @@ mailmime *Generatemail::buildTxtPart(const QString&str ) {
int err;
- QCString __str;
+ Q3CString __str;
//qDebug(" Generatemail::buildTxtPart %s", str.latin1());
@@ -254,3 +256,3 @@ mailmime *Generatemail::buildTxtPart(const QString&str ) {
//__str = str.utf8();
- __str = QCString (str.latin1());
+ __str = Q3CString (str.latin1());
err = mailmime_set_body_text( txtPart, strdup(__str.data()), __str.length() );
diff --git a/kmicromail/libmailwrapper/genericwrapper.cpp b/kmicromail/libmailwrapper/genericwrapper.cpp
index 0b6adf7..633ab42 100644
--- a/kmicromail/libmailwrapper/genericwrapper.cpp
+++ b/kmicromail/libmailwrapper/genericwrapper.cpp
@@ -8,2 +8,4 @@
#include <kstandarddirs.h>
+//Added by qt3to4:
+#include <Q3ValueList>
@@ -184,3 +186,3 @@ QString Genericwrapper::getencoding(mailmime_mechanism*aEnc)
-void Genericwrapper::traverseBody(RecBodyP&target,mailmessage*message,mailmime*mime,QValueList<int>recList,unsigned int current_rec,int current_count)
+void Genericwrapper::traverseBody(RecBodyP&target,mailmessage*message,mailmime*mime,Q3ValueList<int>recList,unsigned int current_rec,int current_count)
{
@@ -202,3 +204,3 @@ void Genericwrapper::traverseBody(RecBodyP&target,mailmessage*message,mailmime*m
{
- QValueList<int>countlist = recList;
+ Q3ValueList<int>countlist = recList;
countlist.append(current_count);
@@ -252,3 +254,3 @@ void Genericwrapper::traverseBody(RecBodyP&target,mailmessage*message,mailmime*m
mailmime*cbody=0;
- QValueList<int>countlist = recList;
+ Q3ValueList<int>countlist = recList;
for (cur = clist_begin(mime->mm_data.mm_multipart.mm_mp_list) ; cur != NULL ; cur = clist_next(cur)) {
@@ -272,3 +274,3 @@ void Genericwrapper::traverseBody(RecBodyP&target,mailmessage*message,mailmime*m
{
- QValueList<int>countlist = recList;
+ Q3ValueList<int>countlist = recList;
countlist.append(current_count);
@@ -304,3 +306,3 @@ RecBodyP Genericwrapper::parseMail( mailmessage * msg )
err = mailmessage_get_bodystructure(msg,&mime);
- QValueList<int>recList;
+ Q3ValueList<int>recList;
traverseBody(body,msg,mime,recList);
@@ -449,3 +451,3 @@ QStringList Genericwrapper::parseInreplies(mailimf_in_reply_to * in_replies)
-void Genericwrapper::parseList(QValueList<Opie::Core::OSmartPointer<RecMail> > &target,mailsession*session,const QString&mailbox,bool mbox_as_to, int maxSizeInKb)
+void Genericwrapper::parseList(Q3ValueList<Opie::Core::OSmartPointer<RecMail> > &target,mailsession*session,const QString&mailbox,bool mbox_as_to, int maxSizeInKb)
{
diff --git a/kmicromail/libmailwrapper/genericwrapper.h b/kmicromail/libmailwrapper/genericwrapper.h
index c35a6da..a50161d 100644
--- a/kmicromail/libmailwrapper/genericwrapper.h
+++ b/kmicromail/libmailwrapper/genericwrapper.h
@@ -7,2 +7,4 @@
#include <qstring.h>
+//Added by qt3to4:
+#include <Q3ValueList>
#include <libetpan/clist.h>
@@ -53,3 +55,3 @@ protected:
- void traverseBody(RecBodyP&target,mailmessage*message,mailmime*mime,QValueList<int>recList,unsigned int current_rek=0,int current_count=1);
+ void traverseBody(RecBodyP&target,mailmessage*message,mailmime*mime,Q3ValueList<int>recList,unsigned int current_rek=0,int current_count=1);
static void fillSingleBody(RecPartP&target,mailmessage*message,mailmime*mime);
@@ -57,3 +59,3 @@ protected:
static QString getencoding(mailmime_mechanism*aEnc);
- virtual void parseList(QValueList<Opie::Core::OSmartPointer<RecMail> > &target,mailsession*session,const QString&mailbox,bool mbox_as_to=false, int maxSizeInKb = 0);
+ virtual void parseList(Q3ValueList<Opie::Core::OSmartPointer<RecMail> > &target,mailsession*session,const QString&mailbox,bool mbox_as_to=false, int maxSizeInKb = 0);
QStringList parseInreplies(mailimf_in_reply_to * in_replies);
diff --git a/kmicromail/libmailwrapper/imapwrapper.cpp b/kmicromail/libmailwrapper/imapwrapper.cpp
index 4f0c849..f73f4cc 100644
--- a/kmicromail/libmailwrapper/imapwrapper.cpp
+++ b/kmicromail/libmailwrapper/imapwrapper.cpp
@@ -5,2 +5,4 @@
#include <qapplication.h>
+//Added by qt3to4:
+#include <Q3ValueList>
#include "imapwrapper.h"
@@ -8,3 +10,3 @@
#include "logindialog.h"
-#include <qprogressbar.h>
+#include <q3progressbar.h>
#include "genericwrapper.h"
@@ -241,3 +243,3 @@ void IMAPwrapper::logout()
-void IMAPwrapper::listMessages(const QString&mailbox,QValueList<Opie::Core::OSmartPointer<RecMail> > &target , int maxSizeInKb)
+void IMAPwrapper::listMessages(const QString&mailbox,Q3ValueList<Opie::Core::OSmartPointer<RecMail> > &target , int maxSizeInKb)
{
@@ -322,3 +324,3 @@ void IMAPwrapper::listMessages(const QString&mailbox,QValueList<Opie::Core::OSma
-QValueList<Opie::Core::OSmartPointer<Folder> >* IMAPwrapper::listFolders()
+Q3ValueList<Opie::Core::OSmartPointer<Folder> >* IMAPwrapper::listFolders()
{
@@ -331,3 +333,3 @@ QValueList<Opie::Core::OSmartPointer<Folder> >* IMAPwrapper::listFolders()
- QValueList<FolderP>* folders = new QValueList<FolderP>();
+ Q3ValueList<FolderP>* folders = new Q3ValueList<FolderP>();
login();
@@ -615,3 +617,3 @@ RecBodyP IMAPwrapper::fetchBody(const RecMailP&mail)
mailimap_msg_att_item*item = (mailimap_msg_att_item*)msg_att->att_list->first->data;
- QValueList<int> path;
+ Q3ValueList<int> path;
body_desc = item->att_data.att_static->att_data.att_body;
@@ -666,3 +668,3 @@ QStringList IMAPwrapper::address_list_to_stringlist(clist*list)
-encodedString*IMAPwrapper::fetchRawPart(const RecMailP&mail,const QValueList<int>&path,bool internal_call)
+encodedString*IMAPwrapper::fetchRawPart(const RecMailP&mail,const Q3ValueList<int>&path,bool internal_call)
{
@@ -740,3 +742,3 @@ encodedString*IMAPwrapper::fetchRawPart(const RecMailP&mail,const QValueList<int
void IMAPwrapper::traverseBody(const RecMailP&mail,mailimap_body*body,RecBodyP&target_body,
- int current_recursion,QValueList<int>recList,int current_count)
+ int current_recursion,Q3ValueList<int>recList,int current_count)
{
@@ -748,3 +750,3 @@ void IMAPwrapper::traverseBody(const RecMailP&mail,mailimap_body*body,RecBodyP&t
{
- QValueList<int>countlist = recList;
+ Q3ValueList<int>countlist = recList;
countlist.append(current_count);
@@ -801,3 +803,3 @@ void IMAPwrapper::traverseBody(const RecMailP&mail,mailimap_body*body,RecBodyP&t
{
- QValueList<int>countlist = recList;
+ Q3ValueList<int>countlist = recList;
clistcell*current=0;
@@ -987,3 +989,3 @@ void IMAPwrapper::fillBodyFields(RecPartP&target_part,mailimap_body_fields*which
}
-void IMAPwrapper::deleteMailList(const QValueList<RecMailP>&target)
+void IMAPwrapper::deleteMailList(const Q3ValueList<RecMailP>&target)
{
@@ -1007,3 +1009,3 @@ void IMAPwrapper::deleteMailList(const QValueList<RecMailP>&target)
- QProgressBar wid ( count );
+ Q3ProgressBar wid ( count );
wid.setCaption( i18n("Deleting ..."));
@@ -1116,3 +1118,3 @@ void IMAPwrapper::answeredMail(const RecMailP&mail)
-QString IMAPwrapper::fetchTextPart(const RecMailP&mail,const QValueList<int>&path,bool internal_call,const QString&enc)
+QString IMAPwrapper::fetchTextPart(const RecMailP&mail,const Q3ValueList<int>&path,bool internal_call,const QString&enc)
{
@@ -1301,3 +1303,3 @@ encodedString* IMAPwrapper::fetchRawBody(const RecMailP&mail)
// dummy
- QValueList<int> path;
+ Q3ValueList<int> path;
return fetchRawPart(mail,path,false);
diff --git a/kmicromail/libmailwrapper/imapwrapper.h b/kmicromail/libmailwrapper/imapwrapper.h
index 31c60a8..d3d3ecd 100644
--- a/kmicromail/libmailwrapper/imapwrapper.h
+++ b/kmicromail/libmailwrapper/imapwrapper.h
@@ -5,2 +5,4 @@
#include <qlist.h>
+//Added by qt3to4:
+#include <Q3ValueList>
#include "mailwrapper.h"
@@ -26,4 +28,4 @@ public:
virtual ~IMAPwrapper();
- virtual QValueList<Opie::Core::OSmartPointer<Folder> >* listFolders();
- virtual void listMessages(const QString & mailbox,QValueList<Opie::Core::OSmartPointer<RecMail> >&target , int sizeInKb = 0);
+ virtual Q3ValueList<Opie::Core::OSmartPointer<Folder> >* listFolders();
+ virtual void listMessages(const QString & mailbox,Q3ValueList<Opie::Core::OSmartPointer<RecMail> >&target , int sizeInKb = 0);
virtual void statusFolder(folderStat&target_stat,const QString & mailbox="INBOX");
@@ -31,3 +33,3 @@ public:
virtual void deleteMail(const RecMailP&mail);
- void deleteMailList(const QValueList<RecMailP>&target);
+ void deleteMailList(const Q3ValueList<RecMailP>&target);
virtual void answeredMail(const RecMailP&mail);
@@ -61,4 +63,4 @@ protected:
- virtual QString fetchTextPart(const RecMailP&mail,const QValueList<int>&path,bool internal_call=false,const QString&enc="");
- virtual encodedString*fetchRawPart(const RecMailP&mail,const QValueList<int>&path,bool internal_call);
+ virtual QString fetchTextPart(const RecMailP&mail,const Q3ValueList<int>&path,bool internal_call=false,const QString&enc="");
+ virtual encodedString*fetchRawPart(const RecMailP&mail,const Q3ValueList<int>&path,bool internal_call);
int selectMbox(const QString&mbox);
@@ -70,3 +72,3 @@ protected:
void fillMultiPart(RecPartP&target_part,mailimap_body_type_mpart*which);
- void traverseBody(const RecMailP&mail,mailimap_body*body,RecBodyP&target_body,int current_recursion,QValueList<int>recList,int current_count=1);
+ void traverseBody(const RecMailP&mail,mailimap_body*body,RecBodyP&target_body,int current_recursion,Q3ValueList<int>recList,int current_count=1);
diff --git a/kmicromail/libmailwrapper/libmailwrapper.pro b/kmicromail/libmailwrapper/libmailwrapper.pro
index 646630b..6b595ab 100644
--- a/kmicromail/libmailwrapper/libmailwrapper.pro
+++ b/kmicromail/libmailwrapper/libmailwrapper.pro
@@ -40,3 +40,4 @@ SOURCES = imapwrapper.cpp \
-INTERFACES = logindialogui.ui \
+#The following line was changed from INTERFACES to FORMS3 by qt3to4
+FORMS3 = logindialogui.ui \
sendmailprogressui.ui
@@ -65 +66,6 @@ MOC_DIR = moc/win
}
+#The following line was inserted by qt3to4
+QT += xml qt3support
+#The following line was inserted by qt3to4
+CONFIG += uic3
+
diff --git a/kmicromail/libmailwrapper/logindialog.cpp b/kmicromail/libmailwrapper/logindialog.cpp
index 31b75d0..d1f4b5d 100644
--- a/kmicromail/libmailwrapper/logindialog.cpp
+++ b/kmicromail/libmailwrapper/logindialog.cpp
@@ -8,3 +8,3 @@
-LoginDialog::LoginDialog(const QString&user,const QString&pass, QWidget *parent, const char *name, bool modal, WFlags flags )
+LoginDialog::LoginDialog(const QString&user,const QString&pass, QWidget *parent, const char *name, bool modal, Qt::WFlags flags )
: LoginDialogUI( parent, name, modal, flags )
diff --git a/kmicromail/libmailwrapper/logindialog.h b/kmicromail/libmailwrapper/logindialog.h
index f406f2c..a18daa5 100644
--- a/kmicromail/libmailwrapper/logindialog.h
+++ b/kmicromail/libmailwrapper/logindialog.h
@@ -10,3 +10,3 @@ class LoginDialog : public LoginDialogUI
public:
- LoginDialog(const QString&user,const QString&pass, QWidget *parent = 0, const char *name = 0, bool modal = false, WFlags flags = 0 );
+ LoginDialog(const QString&user,const QString&pass, QWidget *parent = 0, const char *name = 0, bool modal = false, Qt::WFlags flags = 0 );
QString getUser() { return _user; }
diff --git a/kmicromail/libmailwrapper/mailtypes.cpp b/kmicromail/libmailwrapper/mailtypes.cpp
index 70a0ab5..84ccf9f 100644
--- a/kmicromail/libmailwrapper/mailtypes.cpp
+++ b/kmicromail/libmailwrapper/mailtypes.cpp
@@ -5,2 +5,4 @@
#include <stdlib.h>
+//Added by qt3to4:
+#include <Q3ValueList>
@@ -285,3 +287,3 @@ const QString RecPart::searchParamter(const QString&key)const
-void RecPart::setPositionlist(const QValueList<int>&poslist)
+void RecPart::setPositionlist(const Q3ValueList<int>&poslist)
{
@@ -290,3 +292,3 @@ void RecPart::setPositionlist(const QValueList<int>&poslist)
-const QValueList<int>& RecPart::Positionlist()const
+const Q3ValueList<int>& RecPart::Positionlist()const
{
@@ -325,3 +327,3 @@ const QString& RecBody::Bodytext()const
-void RecBody::setParts(const QValueList<RecPartP>&parts)
+void RecBody::setParts(const Q3ValueList<RecPartP>&parts)
{
@@ -331,3 +333,3 @@ void RecBody::setParts(const QValueList<RecPartP>&parts)
-const QValueList<RecPartP>& RecBody::Parts()const
+const Q3ValueList<RecPartP>& RecBody::Parts()const
{
diff --git a/kmicromail/libmailwrapper/mailtypes.h b/kmicromail/libmailwrapper/mailtypes.h
index 97f10d7..ac7f8da 100644
--- a/kmicromail/libmailwrapper/mailtypes.h
+++ b/kmicromail/libmailwrapper/mailtypes.h
@@ -16,3 +16,3 @@
#include <qmap.h>
-#include <qvaluelist.h>
+#include <q3valuelist.h>
@@ -111,3 +111,3 @@ protected:
/* describes the position in the mail */
- QValueList<int> m_poslist;
+ Q3ValueList<int> m_poslist;
@@ -138,4 +138,4 @@ public:
const QString searchParamter(const QString&key)const;
- void setPositionlist(const QValueList<int>&poslist);
- const QValueList<int>& Positionlist()const;
+ void setPositionlist(const Q3ValueList<int>&poslist);
+ const Q3ValueList<int>& Positionlist()const;
};
@@ -149,3 +149,3 @@ protected:
QString mCharset;
- QValueList<RecPartP> m_PartsList;
+ Q3ValueList<RecPartP> m_PartsList;
RecPartP m_description;
@@ -164,4 +164,4 @@ public:
- void setParts(const QValueList<RecPartP>&parts);
- const QValueList<RecPartP>& Parts()const;
+ void setParts(const Q3ValueList<RecPartP>&parts);
+ const Q3ValueList<RecPartP>& Parts()const;
void addPart(const RecPartP&part);
diff --git a/kmicromail/libmailwrapper/mailwrapper.cpp b/kmicromail/libmailwrapper/mailwrapper.cpp
index 2ee1ab3..9c299e8 100644
--- a/kmicromail/libmailwrapper/mailwrapper.cpp
+++ b/kmicromail/libmailwrapper/mailwrapper.cpp
@@ -7,2 +7,4 @@
#include <qdir.h>
+//Added by qt3to4:
+#include <Q3CString>
@@ -83,4 +85,4 @@ QString IMAPFolder::decodeFolderName( const QString &name )
unsigned long srcPtr = 0;
- QCString dst = "";
- QCString src = name.ascii();
+ Q3CString dst = "";
+ Q3CString src = name.ascii();
@@ -94,5 +96,5 @@ QString IMAPFolder::decodeFolderName( const QString &name )
while (srcPtr < src.length ()) {
- c = src[srcPtr++];
+ c = src.at(srcPtr++);
/* deal with literal characters and &- */
- if (c != '&' || src[srcPtr] == '-') {
+ if (c != '&' || src.at(srcPtr) == '-') {
/* encode literally */
@@ -107,3 +109,3 @@ QString IMAPFolder::decodeFolderName( const QString &name )
ucs4 = 0;
- while ((c = base64[(unsigned char) src[srcPtr]]) != UNDEFINED) {
+ while ((c = base64[(unsigned char) src.at(srcPtr)]) != UNDEFINED) {
++srcPtr;
@@ -151,3 +153,3 @@ QString IMAPFolder::decodeFolderName( const QString &name )
/* skip over trailing '-' in modified UTF-7 encoding */
- if (src[srcPtr] == '-')
+ if (src.at(srcPtr) == '-')
++srcPtr;
diff --git a/kmicromail/libmailwrapper/mailwrapper.h b/kmicromail/libmailwrapper/mailwrapper.h
index 3e8b51f..bebabf4 100644
--- a/kmicromail/libmailwrapper/mailwrapper.h
+++ b/kmicromail/libmailwrapper/mailwrapper.h
@@ -8,2 +8,4 @@
#include <qfileinfo.h>
+//Added by qt3to4:
+#include <QPixmap>
#include <kiconloader.h>
@@ -63,3 +65,3 @@ public:
void addAttachment( Attachment *att ) { attList.append( att ); }
- const QList<Attachment>& getAttachments()const { return attList; }
+ const QList<Attachment*>& getAttachments()const { return attList; }
void removeAttachment( Attachment *att ) { attList.remove( att ); }
@@ -88,3 +90,3 @@ public:
private:
- QList<Attachment> attList;
+ QList<Attachment*> attList;
QString name, mail, to, cc, bcc, reply, subject, message, charset;
diff --git a/kmicromail/libmailwrapper/mboxwrapper.cpp b/kmicromail/libmailwrapper/mboxwrapper.cpp
index 87f8c8a..888cae2 100644
--- a/kmicromail/libmailwrapper/mboxwrapper.cpp
+++ b/kmicromail/libmailwrapper/mboxwrapper.cpp
@@ -5,2 +5,4 @@
#include <qdir.h>
+//Added by qt3to4:
+#include <Q3ValueList>
#include <stdlib.h>
@@ -25,3 +27,3 @@ MBOXwrapper::~MBOXwrapper()
-void MBOXwrapper::listMessages(const QString & mailbox, QValueList<RecMailP> &target )
+void MBOXwrapper::listMessages(const QString & mailbox, Q3ValueList<RecMailP> &target )
{
@@ -50,5 +52,5 @@ void MBOXwrapper::listMessages(const QString & mailbox, QValueList<RecMailP> &ta
-QValueList<Opie::Core::OSmartPointer<Folder> >* MBOXwrapper::listFolders()
+Q3ValueList<Opie::Core::OSmartPointer<Folder> >* MBOXwrapper::listFolders()
{
- QValueList<Opie::Core::OSmartPointer<Folder> >* folders = new QValueList<Opie::Core::OSmartPointer<Folder> >();
+ Q3ValueList<Opie::Core::OSmartPointer<Folder> >* folders = new Q3ValueList<Opie::Core::OSmartPointer<Folder> >();
QDir dir(MBOXPath);
@@ -219,3 +221,3 @@ encodedString* MBOXwrapper::fetchRawBody(const RecMailP&mail)
-void MBOXwrapper::deleteMails(const QString & mailbox,const QValueList<RecMailP> &target)
+void MBOXwrapper::deleteMails(const QString & mailbox,const Q3ValueList<RecMailP> &target)
{
@@ -233,3 +235,3 @@ void MBOXwrapper::deleteMails(const QString & mailbox,const QValueList<RecMailP>
-void MBOXwrapper::deleteMails(mailmbox_folder*f,const QValueList<RecMailP> &target)
+void MBOXwrapper::deleteMails(mailmbox_folder*f,const Q3ValueList<RecMailP> &target)
{
@@ -237,3 +239,3 @@ void MBOXwrapper::deleteMails(mailmbox_folder*f,const QValueList<RecMailP> &targ
int r;
- QValueList<RecMailP>::ConstIterator it;
+ Q3ValueList<RecMailP>::ConstIterator it;
for (it=target.begin(); it != target.end();++it) {
diff --git a/kmicromail/libmailwrapper/mboxwrapper.h b/kmicromail/libmailwrapper/mboxwrapper.h
index d03940f..e658a71 100644
--- a/kmicromail/libmailwrapper/mboxwrapper.h
+++ b/kmicromail/libmailwrapper/mboxwrapper.h
@@ -5,2 +5,4 @@
#include <qstring.h>
+//Added by qt3to4:
+#include <Q3ValueList>
@@ -17,4 +19,4 @@ public:
- virtual void listMessages(const QString & mailbox, QValueList<RecMailP>&target );
- virtual QValueList<Opie::Core::OSmartPointer<Folder> >* listFolders();
+ virtual void listMessages(const QString & mailbox, Q3ValueList<RecMailP>&target );
+ virtual Q3ValueList<Opie::Core::OSmartPointer<Folder> >* listFolders();
virtual void statusFolder(folderStat&target_stat,const QString & mailbox="INBOX");
@@ -34,3 +36,3 @@ public:
virtual encodedString* fetchRawBody(const RecMailP&mail);
- virtual void deleteMails(const QString & FolderName,const QValueList<RecMailP> &target);
+ virtual void deleteMails(const QString & FolderName,const Q3ValueList<RecMailP> &target);
virtual int deleteAllMail(const Opie::Core::OSmartPointer<Folder>&);
@@ -41,3 +43,3 @@ public:
protected:
- static void deleteMails(mailmbox_folder*f,const QValueList<RecMailP> &target);
+ static void deleteMails(mailmbox_folder*f,const Q3ValueList<RecMailP> &target);
QString MBOXPath;
diff --git a/kmicromail/libmailwrapper/mhwrapper.cpp b/kmicromail/libmailwrapper/mhwrapper.cpp
index 787e85d..4cd7a94 100644
--- a/kmicromail/libmailwrapper/mhwrapper.cpp
+++ b/kmicromail/libmailwrapper/mhwrapper.cpp
@@ -7,2 +7,4 @@
#include <qmessagebox.h>
+//Added by qt3to4:
+#include <Q3ValueList>
#include <stdlib.h>
@@ -66,3 +68,3 @@ MHwrapper::~MHwrapper()
-void MHwrapper::listMessages(const QString & mailbox, QValueList<Opie::Core::OSmartPointer<RecMail> > &target, int maxSizeInKb )
+void MHwrapper::listMessages(const QString & mailbox, Q3ValueList<Opie::Core::OSmartPointer<RecMail> > &target, int maxSizeInKb )
{
@@ -82,5 +84,5 @@ void MHwrapper::listMessages(const QString & mailbox, QValueList<Opie::Core::OSm
-QValueList<Opie::Core::OSmartPointer<Folder> >* MHwrapper::listFolders()
+Q3ValueList<Opie::Core::OSmartPointer<Folder> >* MHwrapper::listFolders()
{
- QValueList<Opie::Core::OSmartPointer<Folder> >* folders = new QValueList<Opie::Core::OSmartPointer<Folder> >();
+ Q3ValueList<Opie::Core::OSmartPointer<Folder> >* folders = new Q3ValueList<Opie::Core::OSmartPointer<Folder> >();
/* this is needed! */
@@ -257,3 +259,3 @@ encodedString* MHwrapper::fetchRawBody(const RecMailP&mail)
-void MHwrapper::deleteMails(const QString & mailbox,const QValueList<RecMailP> &target)
+void MHwrapper::deleteMails(const QString & mailbox,const Q3ValueList<RecMailP> &target)
{
@@ -265,3 +267,3 @@ void MHwrapper::deleteMails(const QString & mailbox,const QValueList<RecMailP> &
}
- QValueList<RecMailP>::ConstIterator it;
+ Q3ValueList<RecMailP>::ConstIterator it;
for (it=target.begin(); it!=target.end();++it) {
diff --git a/kmicromail/libmailwrapper/mhwrapper.h b/kmicromail/libmailwrapper/mhwrapper.h
index 36a443a..6151ff1 100644
--- a/kmicromail/libmailwrapper/mhwrapper.h
+++ b/kmicromail/libmailwrapper/mhwrapper.h
@@ -8,2 +8,4 @@
#include <qstring.h>
+//Added by qt3to4:
+#include <Q3ValueList>
@@ -18,4 +20,4 @@ public:
- virtual void listMessages(const QString & mailbox, QValueList<Opie::Core::OSmartPointer<RecMail> > &target, int maxSizeInKb = 0 );
- virtual QValueList<Opie::Core::OSmartPointer<Folder> >* listFolders();
+ virtual void listMessages(const QString & mailbox, Q3ValueList<Opie::Core::OSmartPointer<RecMail> > &target, int maxSizeInKb = 0 );
+ virtual Q3ValueList<Opie::Core::OSmartPointer<Folder> >* listFolders();
virtual void statusFolder(folderStat&target_stat,const QString & mailbox="INBOX");
@@ -38,3 +40,3 @@ public:
virtual encodedString* fetchRawBody(const RecMailP&mail);
- virtual void deleteMails(const QString & FolderName,const QValueList<Opie::Core::OSmartPointer<RecMail> > &target);
+ virtual void deleteMails(const QString & FolderName,const Q3ValueList<Opie::Core::OSmartPointer<RecMail> > &target);
virtual int deleteAllMail(const Opie::Core::OSmartPointer<Folder>&);
diff --git a/kmicromail/libmailwrapper/nntpwrapper.cpp b/kmicromail/libmailwrapper/nntpwrapper.cpp
index 93cd2b5..b328ecd 100644
--- a/kmicromail/libmailwrapper/nntpwrapper.cpp
+++ b/kmicromail/libmailwrapper/nntpwrapper.cpp
@@ -6,2 +6,4 @@
#include <qfile.h>
+//Added by qt3to4:
+#include <Q3ValueList>
@@ -62,3 +64,3 @@ RecBodyP NNTPwrapper::fetchBody( const RecMailP &mail ) {
}
- msg_cache.open(IO_ReadWrite|IO_Truncate);
+ msg_cache.open(QIODevice::ReadWrite|QIODevice::Truncate);
last_msg_id = mail->getNumber();
@@ -69,3 +71,3 @@ RecBodyP NNTPwrapper::fetchBody( const RecMailP &mail ) {
QString msg="";
- msg_cache.open(IO_ReadOnly);
+ msg_cache.open(QIODevice::ReadOnly);
message = new char[4096];
@@ -101,3 +103,3 @@ RecBodyP NNTPwrapper::fetchBody( const RecMailP &mail ) {
-void NNTPwrapper::listMessages(const QString & which, QValueList<Opie::Core::OSmartPointer<RecMail> > &target, int maxSizeInKb)
+void NNTPwrapper::listMessages(const QString & which, Q3ValueList<Opie::Core::OSmartPointer<RecMail> > &target, int maxSizeInKb)
{
@@ -188,5 +190,5 @@ void NNTPwrapper::logout()
-QValueList<Opie::Core::OSmartPointer<Folder> >* NNTPwrapper::listFolders() {
+Q3ValueList<Opie::Core::OSmartPointer<Folder> >* NNTPwrapper::listFolders() {
- QValueList<Opie::Core::OSmartPointer<Folder> >* folders = new QValueList<Opie::Core::OSmartPointer<Folder> >();
+ Q3ValueList<Opie::Core::OSmartPointer<Folder> >* folders = new Q3ValueList<Opie::Core::OSmartPointer<Folder> >();
QStringList groups;
diff --git a/kmicromail/libmailwrapper/nntpwrapper.h b/kmicromail/libmailwrapper/nntpwrapper.h
index 8c54f12..7c8e671 100644
--- a/kmicromail/libmailwrapper/nntpwrapper.h
+++ b/kmicromail/libmailwrapper/nntpwrapper.h
@@ -7,2 +7,4 @@
#include <qstring.h>
+//Added by qt3to4:
+#include <Q3ValueList>
#include <libetpan/clist.h>
@@ -23,5 +25,5 @@ public:
/* mailbox will be ignored */
- virtual void listMessages(const QString & mailbox, QValueList<Opie::Core::OSmartPointer<RecMail> > &target, int maxSizeInKb = 0 );
+ virtual void listMessages(const QString & mailbox, Q3ValueList<Opie::Core::OSmartPointer<RecMail> > &target, int maxSizeInKb = 0 );
/* should only get the subscribed one */
- virtual QValueList<Opie::Core::OSmartPointer<Folder> >* listFolders();
+ virtual Q3ValueList<Opie::Core::OSmartPointer<Folder> >* listFolders();
/* mailbox will be ignored */
diff --git a/kmicromail/libmailwrapper/pop3wrapper.cpp b/kmicromail/libmailwrapper/pop3wrapper.cpp
index 2888f7c..ebeed71 100644
--- a/kmicromail/libmailwrapper/pop3wrapper.cpp
+++ b/kmicromail/libmailwrapper/pop3wrapper.cpp
@@ -11,4 +11,6 @@
#include <qfile.h>
-#include <qprogressbar.h>
+#include <q3progressbar.h>
#include <qapplication.h>
+//Added by qt3to4:
+#include <Q3ValueList>
@@ -64,3 +66,3 @@ RecBodyP POP3wrapper::fetchBody( const RecMailP &mail ) {
}
- msg_cache.open(IO_ReadWrite|IO_Truncate);
+ msg_cache.open(QIODevice::ReadWrite|QIODevice::Truncate);
last_msg_id = mail->getNumber();
@@ -71,3 +73,3 @@ RecBodyP POP3wrapper::fetchBody( const RecMailP &mail ) {
QString msg="";
- msg_cache.open(IO_ReadOnly);
+ msg_cache.open(QIODevice::ReadOnly);
message = new char[4096];
@@ -102,3 +104,3 @@ RecBodyP POP3wrapper::fetchBody( const RecMailP &mail ) {
-void POP3wrapper::listMessages(const QString &, QValueList<Opie::Core::OSmartPointer<RecMail> > &target, int maxSizeInKb )
+void POP3wrapper::listMessages(const QString &, Q3ValueList<Opie::Core::OSmartPointer<RecMail> > &target, int maxSizeInKb )
{
@@ -189,4 +191,4 @@ void POP3wrapper::logout()
-QValueList<Opie::Core::OSmartPointer<Folder> >* POP3wrapper::listFolders() {
- QValueList<Opie::Core::OSmartPointer<Folder> >* folders = new QValueList<FolderP>();
+Q3ValueList<Opie::Core::OSmartPointer<Folder> >* POP3wrapper::listFolders() {
+ Q3ValueList<Opie::Core::OSmartPointer<Folder> >* folders = new Q3ValueList<FolderP>();
FolderP inb=new Folder("INBOX","/");
@@ -196,3 +198,3 @@ QValueList<Opie::Core::OSmartPointer<Folder> >* POP3wrapper::listFolders() {
-void POP3wrapper::deleteMailList(const QValueList<RecMailP>&target)
+void POP3wrapper::deleteMailList(const Q3ValueList<RecMailP>&target)
{
@@ -204,3 +206,3 @@ void POP3wrapper::deleteMailList(const QValueList<RecMailP>&target)
- QProgressBar wid ( count );
+ Q3ProgressBar wid ( count );
wid.setCaption( i18n("Deleting ..."));
@@ -248,3 +250,3 @@ int POP3wrapper::deleteAllMail(const FolderP&) {
- QProgressBar wid ( result );
+ Q3ProgressBar wid ( result );
wid.setCaption( i18n("Deleting ..."));
diff --git a/kmicromail/libmailwrapper/pop3wrapper.h b/kmicromail/libmailwrapper/pop3wrapper.h
index ebc2fc7..a077877 100644
--- a/kmicromail/libmailwrapper/pop3wrapper.h
+++ b/kmicromail/libmailwrapper/pop3wrapper.h
@@ -7,2 +7,4 @@
#include <qstring.h>
+//Added by qt3to4:
+#include <Q3ValueList>
@@ -20,4 +22,4 @@ public:
/* mailbox will be ignored */
- virtual void listMessages(const QString & mailbox, QValueList<Opie::Core::OSmartPointer<RecMail> > &target, int maxSizeInKb = 0 );
- virtual QValueList<Opie::Core::OSmartPointer<Folder> >* listFolders();
+ virtual void listMessages(const QString & mailbox, Q3ValueList<Opie::Core::OSmartPointer<RecMail> > &target, int maxSizeInKb = 0 );
+ virtual Q3ValueList<Opie::Core::OSmartPointer<Folder> >* listFolders();
/* mailbox will be ignored */
@@ -26,3 +28,3 @@ public:
virtual void deleteMail(const RecMailP&mail);
- virtual void deleteMailList(const QValueList<RecMailP>&target);
+ virtual void deleteMailList(const Q3ValueList<RecMailP>&target);
virtual void answeredMail(const RecMailP&mail);
diff --git a/kmicromail/libmailwrapper/sendmailprogress.cpp b/kmicromail/libmailwrapper/sendmailprogress.cpp
index 20dfe9b..6cd6409 100644
--- a/kmicromail/libmailwrapper/sendmailprogress.cpp
+++ b/kmicromail/libmailwrapper/sendmailprogress.cpp
@@ -1,3 +1,3 @@
#include "sendmailprogress.h"
-#include <qprogressbar.h>
+#include <q3progressbar.h>
#include <qlabel.h>
diff --git a/kmicromail/libmailwrapper/settings.cpp b/kmicromail/libmailwrapper/settings.cpp
index 9436d43..fc01528 100644
--- a/kmicromail/libmailwrapper/settings.cpp
+++ b/kmicromail/libmailwrapper/settings.cpp
@@ -4,3 +4,3 @@
#include <qtextcodec.h>
-#include <qtextstream.h>
+#include <q3textstream.h>
#include <qfile.h>
@@ -378,3 +378,3 @@ QString SMTPaccount::getSignature()
QFile file( signature );
- if (!file.open( IO_ReadOnly ) ) {
+ if (!file.open( QIODevice::ReadOnly ) ) {
return QString();
@@ -382,3 +382,3 @@ QString SMTPaccount::getSignature()
}
- QTextStream ts( &file );
+ Q3TextStream ts( &file );
ts.setCodec( QTextCodec::codecForName("utf8") );
@@ -401,3 +401,3 @@ void SMTPaccount::setSignature( QString b )
QFile fileIn( signature );
- if (!fileIn.open( IO_WriteOnly ) ) {
+ if (!fileIn.open( QIODevice::WriteOnly ) ) {
qDebug("OM: Cannot write signature file %s ", signature.latin1() );
@@ -405,3 +405,3 @@ void SMTPaccount::setSignature( QString b )
}
- QTextStream tsIn( &fileIn );
+ Q3TextStream tsIn( &fileIn );
tsIn.setCodec( QTextCodec::codecForName("utf8") );
diff --git a/kmicromail/libmailwrapper/smtpwrapper.cpp b/kmicromail/libmailwrapper/smtpwrapper.cpp
index 7c813cc..2df55ff 100644
--- a/kmicromail/libmailwrapper/smtpwrapper.cpp
+++ b/kmicromail/libmailwrapper/smtpwrapper.cpp
@@ -11,2 +11,4 @@
#include <qmessagebox.h>
+//Added by qt3to4:
+#include <Q3ValueList>
#include <stdlib.h>
@@ -436,4 +438,4 @@ bool SMTPwrapper::flushOutbox() {
QString oldPw, oldUser;
- QValueList<RecMailP> mailsToSend;
- QValueList<RecMailP> mailsToRemove;
+ Q3ValueList<RecMailP> mailsToSend;
+ Q3ValueList<RecMailP> mailsToRemove;
QString mbox("Outgoing");
diff --git a/kmicromail/mailistviewitem.cpp b/kmicromail/mailistviewitem.cpp
index 41cee52..d8eee7d 100644
--- a/kmicromail/mailistviewitem.cpp
+++ b/kmicromail/mailistviewitem.cpp
@@ -3,3 +3,3 @@
#include <libmailwrapper/abstractmail.h>
-#include <qtextstream.h>
+#include <q3textstream.h>
#include <kiconloader.h>
@@ -8,3 +8,3 @@
-MailListViewItem::MailListViewItem(QListView * parent, MailListViewItem * item )
+MailListViewItem::MailListViewItem(Q3ListView * parent, MailListViewItem * item )
:KListViewItem(parent,item),mail_data()
diff --git a/kmicromail/mailistviewitem.h b/kmicromail/mailistviewitem.h
index b409c9d..ecc01ba 100644
--- a/kmicromail/mailistviewitem.h
+++ b/kmicromail/mailistviewitem.h
@@ -11,3 +11,3 @@ class MailListViewItem:public KListViewItem
public:
- MailListViewItem(QListView * parent, MailListViewItem * after );
+ MailListViewItem(Q3ListView * parent, MailListViewItem * after );
virtual ~MailListViewItem(){}
diff --git a/kmicromail/main.cpp b/kmicromail/main.cpp
index fe4bc76..dc73455 100644
--- a/kmicromail/main.cpp
+++ b/kmicromail/main.cpp
@@ -5,2 +5,4 @@
#include <qpe/qpeapplication.h>
+//Added by qt3to4:
+#include <Q3CString>
#include <libkdepim/externalapphandler.h>
@@ -25,2 +27,3 @@ void dumpMissing();
int main( int argc, char **argv ) {
+ if(!getenv("QPEDIR")) putenv("QPEDIR=/usr/lib/kdepimpi");
@@ -53,3 +56,3 @@ int main( int argc, char **argv ) {
//qDebug("CONNECT ");
- QObject::connect( &a, SIGNAL (appMessage ( const QCString &, const QByteArray & )),&mw, SLOT(message( const QCString&, const QByteArray& )));
+ QObject::connect( &a, SIGNAL (appMessage ( const Q3CString &, const QByteArray & )),&mw, SLOT(message( const Q3CString&, const QByteArray& )));
// QObject::connect(&a, SIGNAL (appMessage ( const QCString &, const QByteArray & )), ExternalAppHandler::instance(), SLOT (appMessage ( const QCString &, const QByteArray & )));
diff --git a/kmicromail/mainwindow.cpp b/kmicromail/mainwindow.cpp
index d547dda..627d92e 100644
--- a/kmicromail/mainwindow.cpp
+++ b/kmicromail/mainwindow.cpp
@@ -3,6 +3,12 @@
#include <qlabel.h>
-#include <qvbox.h>
-#include <qheader.h>
+#include <q3vbox.h>
+#include <q3header.h>
#include <qtimer.h>
#include <qlayout.h>
+//Added by qt3to4:
+#include <Q3CString>
+#include <Q3GridLayout>
+#include <Q3ValueList>
+#include <QPixmap>
+#include <Q3PopupMenu>
//#include <kdialog.h>
@@ -29,4 +35,4 @@ extern QStatusBar* globalSstatusBarMainWindow;
-MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
- : QMainWindow( parent, name ) //, flags )
+MainWindow::MainWindow( QWidget *parent, const char *name, Qt::WFlags flags )
+ : Q3MainWindow( parent, name ) //, flags )
{
@@ -38,7 +44,7 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
//KABC::StdAddressBook::self();
- toolBar = new QToolBar( this );
+ toolBar = new Q3ToolBar( this );
menuBar = new QPEMenuBar( toolBar );
- mailMenu = new QPopupMenu( menuBar );
+ mailMenu = new Q3PopupMenu( menuBar );
menuBar->insertItem( i18n( "Mail" ), mailMenu );
- settingsMenu = new QPopupMenu( menuBar );
+ settingsMenu = new Q3PopupMenu( menuBar );
menuBar->insertItem( i18n( "Settings" ), settingsMenu );
@@ -116,3 +122,3 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
editAccounts->addTo( settingsMenu );
- codecMenu = new QPopupMenu( menuBar );
+ codecMenu = new Q3PopupMenu( menuBar );
codecMenu->insertItem( "Western (iso-8859-1)",0,0);
@@ -127,3 +133,3 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
- QVBox* wrapperBox = new QVBox( this );
+ Q3VBox* wrapperBox = new Q3VBox( this );
setCentralWidget( wrapperBox );
@@ -141,3 +147,3 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
QWidget* infoBox = new QWidget( splithor );
- QGridLayout *griLay = new QGridLayout( infoBox, 2,2);
+ Q3GridLayout *griLay = new Q3GridLayout( infoBox, 2,2);
if ( KOPrefs::instance()->mShowInfoSub ) {
@@ -170,8 +176,8 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
mailView->addColumn( i18n( " " ) );
- mailView->addColumn( i18n( "Subject" ),QListView::Manual );
- mailView->addColumn( i18n( "Sender" ),QListView::Manual );
- mailView->addColumn( i18n( "Size" ),QListView::Manual);
- mailView->addColumn( i18n( "Date" ),QListView::Manual);
+ mailView->addColumn( i18n( "Subject" ),Q3ListView::Manual );
+ mailView->addColumn( i18n( "Sender" ),Q3ListView::Manual );
+ mailView->addColumn( i18n( "Size" ),Q3ListView::Manual);
+ mailView->addColumn( i18n( "Date" ),Q3ListView::Manual);
if ( KOPrefs::instance()->mShowToField )
- mailView->addColumn( i18n( "To" ),QListView::Manual);
+ mailView->addColumn( i18n( "To" ),Q3ListView::Manual);
mailView->setAllColumnsShowFocus(true);
@@ -181,3 +187,3 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
statusWidget->hide();
- mailView->setSelectionMode( QListView::Multi );
+ mailView->setSelectionMode( Q3ListView::Multi );
mailView->setMultiSelection( true);
@@ -199,13 +205,13 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
#endif
- connect( mailView, SIGNAL( doubleClicked (QListViewItem* )),this,
- SLOT( mailLeftClicked(QListViewItem*) ) );
- connect( mailView, SIGNAL( returnPressed (QListViewItem* )),this,
- SLOT( mailLeftClicked(QListViewItem*) ) );
- connect( mailView, SIGNAL( mouseButtonPressed(int,QListViewItem*,const QPoint&,int) ),this,
- SLOT( mailHold(int,QListViewItem*,const QPoint&,int) ) );
- connect(folderView, SIGNAL(refreshMailview(const QValueList<RecMailP>&)),
- this,SLOT(refreshMailView(const QValueList<RecMailP>&)));
-
- connect( mailView, SIGNAL( currentChanged (QListViewItem* )),this,
- SLOT( setInfoFields(QListViewItem*) ) );
+ connect( mailView, SIGNAL( doubleClicked (Q3ListViewItem* )),this,
+ SLOT( mailLeftClicked(Q3ListViewItem*) ) );
+ connect( mailView, SIGNAL( returnPressed (Q3ListViewItem* )),this,
+ SLOT( mailLeftClicked(Q3ListViewItem*) ) );
+ connect( mailView, SIGNAL( mouseButtonPressed(int,Q3ListViewItem*,const QPoint&,int) ),this,
+ SLOT( mailHold(int,Q3ListViewItem*,const QPoint&,int) ) );
+ connect(folderView, SIGNAL(refreshMailview(const Q3ValueList<RecMailP>&)),
+ this,SLOT(refreshMailView(const Q3ValueList<RecMailP>&)));
+
+ connect( mailView, SIGNAL( currentChanged (Q3ListViewItem* )),this,
+ SLOT( setInfoFields(Q3ListViewItem*) ) );
@@ -217,3 +223,3 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
//mailView->setSelectionMode( QListView::Extended );
- QValueList<int> list;
+ Q3ValueList<int> list;
int fw = 100;
@@ -237,3 +243,3 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
- QPopupMenu* helpMenu = new QPopupMenu( menuBar );
+ Q3PopupMenu* helpMenu = new Q3PopupMenu( menuBar );
menuBar->insertItem( i18n( "Help" ), helpMenu );
@@ -261,3 +267,3 @@ MainWindow::~MainWindow()
-void MainWindow::setInfoFields(QListViewItem* item )
+void MainWindow::setInfoFields(Q3ListViewItem* item )
{
@@ -347,3 +353,3 @@ void MainWindow::showEtpanLicence()
}
-void MainWindow::appMessage(const QCString &, const QByteArray &)
+void MainWindow::appMessage(const Q3CString &, const QByteArray &)
{
@@ -407,3 +413,3 @@ void MainWindow::slotShowFolders( bool )
-void MainWindow::refreshMailView(const QValueList<RecMailP>&)
+void MainWindow::refreshMailView(const Q3ValueList<RecMailP>&)
{
@@ -412,3 +418,3 @@ void MainWindow::refreshMailView(const QValueList<RecMailP>&)
-void MainWindow::mailLeftClicked(QListViewItem * )
+void MainWindow::mailLeftClicked(Q3ListViewItem * )
{
@@ -427,3 +433,3 @@ void MainWindow::slotDeleteMail()
-void MainWindow::mailHold(int, QListViewItem *,const QPoint&,int )
+void MainWindow::mailHold(int, Q3ListViewItem *,const QPoint&,int )
{
diff --git a/kmicromail/mainwindow.h b/kmicromail/mainwindow.h
index f65f3b4..1ccadc2 100644
--- a/kmicromail/mainwindow.h
+++ b/kmicromail/mainwindow.h
@@ -5,3 +5,7 @@
-#include <qmainwindow.h>
+#include <q3mainwindow.h>
+//Added by qt3to4:
+#include <Q3CString>
+#include <Q3ValueList>
+#include <Q3PopupMenu>
#include <klistview.h>
@@ -10,3 +14,3 @@
-#include <qtoolbar.h>
+#include <q3toolbar.h>
#ifdef DESKTOP_VERSION
@@ -26,3 +30,3 @@ class RecMail;
-class MainWindow : public QMainWindow
+class MainWindow : public Q3MainWindow
{
@@ -31,3 +35,3 @@ class MainWindow : public QMainWindow
public:
- MainWindow( QWidget *parent = 0, const char *name = 0, WFlags flags = 0 );
+ MainWindow( QWidget *parent = 0, const char *name = 0, Qt::WFlags flags = 0 );
virtual ~MainWindow();
@@ -37,3 +41,3 @@ public slots:
virtual void slotAdjustColumnsWide();
- virtual void appMessage(const QCString &msg, const QByteArray &data);
+ virtual void appMessage(const Q3CString &msg, const QByteArray &data);
virtual void slotComposeMail();
@@ -41,3 +45,3 @@ public slots:
protected slots:
- virtual void setInfoFields(QListViewItem* );
+ virtual void setInfoFields(Q3ListViewItem* );
virtual void slotSendQueued();
@@ -45,3 +49,3 @@ protected slots:
virtual void slotShowFolders( bool show );
- virtual void refreshMailView(const QValueList<RecMailP>&);
+ virtual void refreshMailView(const Q3ValueList<RecMailP>&);
virtual void displayMail();
@@ -52,3 +56,3 @@ protected slots:
virtual void slotSetCodec(int);
- virtual void mailHold(int, QListViewItem *,const QPoint&,int);
+ virtual void mailHold(int, Q3ListViewItem *,const QPoint&,int);
virtual void slotAdjustLayout();
@@ -56,3 +60,3 @@ protected slots:
virtual void slotEditGlobalSettings();
- virtual void mailLeftClicked( QListViewItem * );
+ virtual void mailLeftClicked( Q3ListViewItem * );
void showLicence();
@@ -62,6 +66,6 @@ protected slots:
protected:
- QToolBar *toolBar;
+ Q3ToolBar *toolBar;
StatusWidget *statusWidget;
QPEMenuBar *menuBar;
- QPopupMenu *mailMenu, *settingsMenu, *codecMenu;
+ Q3PopupMenu *mailMenu, *settingsMenu, *codecMenu;
QAction *composeMail, *sendQueued, *showFolders, *searchMails, *deleteMails,
diff --git a/kmicromail/nntpgroups.cpp b/kmicromail/nntpgroups.cpp
index c729f79..d2213d4 100644
--- a/kmicromail/nntpgroups.cpp
+++ b/kmicromail/nntpgroups.cpp
@@ -3,3 +3,3 @@
#include <libmailwrapper/settings.h>
-#include <qlistview.h>
+#include <q3listview.h>
#include <qlineedit.h>
@@ -8,3 +8,3 @@ using namespace Opie::Core;
-NNTPGroups::NNTPGroups(NNTPaccount *account, QWidget* parent, const char* name, WFlags fl)
+NNTPGroups::NNTPGroups(NNTPaccount *account, QWidget* parent, const char* name, Qt::WFlags fl)
: NNTPGroupsUI(parent,name,fl),subscribedGroups()
@@ -29,4 +29,4 @@ void NNTPGroups::slotGetNG()
for ( QStringList::Iterator it = list.begin(); it != list.end(); ++it ) {
- QCheckListItem *item;
- item = new QCheckListItem( GroupListView, (*it), QCheckListItem::CheckBox );
+ Q3CheckListItem *item;
+ item = new Q3CheckListItem( GroupListView, (*it), Q3CheckListItem::CheckBox );
if ( subscribedGroups.contains( (*it) ) >= 1 ) {
@@ -43,4 +43,4 @@ void NNTPGroups::fillGroups()
for ( QStringList::Iterator it = subscribedGroups.begin(); it != subscribedGroups.end(); ++it ) {
- QCheckListItem *item;
- item = new QCheckListItem( GroupListView, (*it), QCheckListItem::CheckBox );
+ Q3CheckListItem *item;
+ item = new Q3CheckListItem( GroupListView, (*it), Q3CheckListItem::CheckBox );
item->setOn( true );
@@ -52,6 +52,6 @@ void NNTPGroups::storeValues()
if (!m_Account) return;
- QListViewItemIterator list_it( GroupListView );
+ Q3ListViewItemIterator list_it( GroupListView );
subscribedGroups.clear();
for ( ; list_it.current(); ++list_it ) {
- if ( ( (QCheckListItem*)list_it.current() )->isOn() ) {
+ if ( ( (Q3CheckListItem*)list_it.current() )->isOn() ) {
subscribedGroups.append( list_it.current()->text(0) );
diff --git a/kmicromail/nntpgroups.h b/kmicromail/nntpgroups.h
index e5b7c35..80cc329 100644
--- a/kmicromail/nntpgroups.h
+++ b/kmicromail/nntpgroups.h
@@ -14,3 +14,3 @@ class NNTPGroups:public NNTPGroupsUI
public:
- NNTPGroups(NNTPaccount *account, QWidget* parent = 0, const char* name = 0, WFlags fl = 0);
+ NNTPGroups(NNTPaccount *account, QWidget* parent = 0, const char* name = 0, Qt::WFlags fl = 0);
virtual ~NNTPGroups();
diff --git a/kmicromail/nntpgroupsdlg.cpp b/kmicromail/nntpgroupsdlg.cpp
index f564b10..bfe1d35 100644
--- a/kmicromail/nntpgroupsdlg.cpp
+++ b/kmicromail/nntpgroupsdlg.cpp
@@ -7,2 +7,4 @@
#include <qlayout.h>
+//Added by qt3to4:
+#include <Q3VBoxLayout>
@@ -13,3 +15,3 @@ NNTPGroupsDlg::NNTPGroupsDlg(NNTPaccount *account,QWidget * parent, const char *
m_Account = account;
- QVBoxLayout*dlglayout = new QVBoxLayout(this);
+ Q3VBoxLayout*dlglayout = new Q3VBoxLayout(this);
dlglayout->setSpacing(2);
diff --git a/kmicromail/opiemail.cpp b/kmicromail/opiemail.cpp
index 75a75b9..f453be5 100644
--- a/kmicromail/opiemail.cpp
+++ b/kmicromail/opiemail.cpp
@@ -6,2 +6,7 @@
#include <qwidget.h>
+//Added by qt3to4:
+#include <Q3ValueList>
+#include <Q3CString>
+#include <QPixmap>
+#include <Q3PopupMenu>
#undef protected
@@ -29,3 +34,3 @@
#include <qcursor.h>
-#include <qtextbrowser.h>
+#include <q3textbrowser.h>
#include <qregexp.h>
@@ -65,3 +70,3 @@ OpieMail::~OpieMail()
-void OpieMail::appMessage(const QCString &msg, const QByteArray &data)
+void OpieMail::appMessage(const Q3CString &msg, const QByteArray &data)
{
@@ -70,3 +75,3 @@ void OpieMail::appMessage(const QCString &msg, const QByteArray &data)
#include <stdlib.h>
-void OpieMail::message(const QCString &msg, const QByteArray &data)
+void OpieMail::message(const Q3CString &msg, const QByteArray &data)
{
@@ -85,3 +90,3 @@ void OpieMail::message(const QCString &msg, const QByteArray &data)
//qDebug("writeMail(QString,QString) ");
- QDataStream stream(data,IO_ReadOnly);
+ QDataStream stream(data,QIODevice::ReadOnly);
stream >> mPendingName >> mPendingEmail;
@@ -102,3 +107,3 @@ void OpieMail::message(const QCString &msg, const QByteArray &data)
//qDebug(" newMail(QString)");
- QDataStream stream(data,IO_ReadOnly);
+ QDataStream stream(data,QIODevice::ReadOnly);
stream >> mPendingName;
@@ -281,3 +286,3 @@ void OpieMail::replyMail()
- QListViewItem*item = mailView->currentItem();
+ Q3ListViewItem*item = mailView->currentItem();
if (!item) return;
@@ -333,3 +338,3 @@ void OpieMail::slotDownloadMail( )
{
- QListViewItem*item = mailView->currentItem();
+ Q3ListViewItem*item = mailView->currentItem();
if (!item ) {
@@ -374,3 +379,3 @@ void OpieMail::deleteAndDisplayNextMail(ViewMail * vm)
{
- QListViewItem*item = mailView->currentItem();
+ Q3ListViewItem*item = mailView->currentItem();
if (!item ) {
@@ -394,3 +399,3 @@ void OpieMail::displayNextMail(ViewMail * vm)
{
- QListViewItem*item = mailView->currentItem();
+ Q3ListViewItem*item = mailView->currentItem();
if (!item) return;
@@ -410,3 +415,3 @@ void OpieMail::displayMail()
{
- QListViewItem*item = mailView->currentItem();
+ Q3ListViewItem*item = mailView->currentItem();
if (!item) return;
@@ -434,3 +439,3 @@ void OpieMail::displayMail()
{
- QListViewItem*item = mailView->currentItem();
+ Q3ListViewItem*item = mailView->currentItem();
if (item)
@@ -441,3 +446,3 @@ void OpieMail::slotGetAllMail()
{
- QListViewItem * item = folderView->firstChild();
+ Q3ListViewItem * item = folderView->firstChild();
while ( item ){
@@ -449,3 +454,3 @@ void OpieMail::slotGetMail()
{
- QListViewItem * item = folderView->currentItem();
+ Q3ListViewItem * item = folderView->currentItem();
if ( ! item ) return;
@@ -466,3 +471,3 @@ void OpieMail::slotDeleteAllMail()
- QValueList<RecMailP> t;
+ Q3ValueList<RecMailP> t;
if ( QMessageBox::warning(this, i18n("Delete All Mails"), i18n("Do you really want to delete\nall selected mails?" ) , QMessageBox::Yes, QMessageBox::No ) == QMessageBox::Yes )
@@ -494,3 +499,3 @@ void OpieMail::selectAll()
{
- QListViewItem* item = mailView->firstChild ();
+ Q3ListViewItem* item = mailView->firstChild ();
while ( item ) {
@@ -501,3 +506,3 @@ void OpieMail::selectAll()
-void OpieMail::mailHold(int button, QListViewItem *item,const QPoint&,int )
+void OpieMail::mailHold(int button, Q3ListViewItem *item,const QPoint&,int )
{
@@ -508,3 +513,3 @@ void OpieMail::mailHold(int button, QListViewItem *item,const QPoint&,int )
if (!item) return;
- QPopupMenu *m = new QPopupMenu(0);
+ Q3PopupMenu *m = new Q3PopupMenu(0);
if (m)
@@ -555,3 +560,3 @@ void OpieMail::slotShowFolders( bool show )
-void OpieMail::refreshMailView(const QValueList<RecMailP>&list)
+void OpieMail::refreshMailView(const Q3ValueList<RecMailP>&list)
{
@@ -560,3 +565,3 @@ void OpieMail::refreshMailView(const QValueList<RecMailP>&list)
- QValueList<RecMailP>::ConstIterator it;
+ Q3ValueList<RecMailP>::ConstIterator it;
for (it = list.begin(); it != list.end();++it)
@@ -570,3 +575,3 @@ void OpieMail::refreshMailView(const QValueList<RecMailP>&list)
-void OpieMail::mailLeftClicked( QListViewItem *item )
+void OpieMail::mailLeftClicked( Q3ListViewItem *item )
{
@@ -616,3 +621,3 @@ void OpieMail::slotMoveCopyAllMail()
if (!mailView->currentItem()) return;
- QValueList<RecMailP> t;
+ Q3ValueList<RecMailP> t;
// if ( QMessageBox::warning(this, i18n("Move/Copy all selected mails"), i18n("Do you really want to copy/move\nall selected mails?" ) , QMessageBox::Yes, QMessageBox::No ) == QMessageBox::Yes )
diff --git a/kmicromail/opiemail.h b/kmicromail/opiemail.h
index bdd9058..ea64dc4 100644
--- a/kmicromail/opiemail.h
+++ b/kmicromail/opiemail.h
@@ -11,2 +11,5 @@
#include <qstringlist.h>
+//Added by qt3to4:
+#include <Q3CString>
+#include <Q3ValueList>
@@ -28,4 +31,4 @@ public slots:
virtual void slotExtAppHandler();
- virtual void appMessage(const QCString &msg, const QByteArray &data);
- virtual void message(const QCString &msg, const QByteArray &data);
+ virtual void appMessage(const Q3CString &msg, const QByteArray &data);
+ virtual void message(const Q3CString &msg, const QByteArray &data);
void insertAttendees(const QString&, const QStringList& namelist, const QStringList& emaillist, const QStringList& uidlist);
@@ -45,6 +48,6 @@ protected slots:
virtual void slotDeleteAllMail();
- virtual void mailHold(int, QListViewItem *,const QPoint&,int);
+ virtual void mailHold(int, Q3ListViewItem *,const QPoint&,int);
virtual void slotShowFolders( bool show );
- virtual void refreshMailView(const QValueList<RecMailP>&);
- virtual void mailLeftClicked( QListViewItem * );
+ virtual void refreshMailView(const Q3ValueList<RecMailP>&);
+ virtual void mailLeftClicked( Q3ListViewItem * );
virtual void slotMoveCopyMail();
@@ -61,5 +64,5 @@ private:
QByteArray mPendingData;
- QCString mPendingMessage;
+ Q3CString mPendingMessage;
Settings *settings;
- QTextBrowser * tb;
+ Q3TextBrowser * tb;
diff --git a/kmicromail/qpe/qdialog.h b/kmicromail/qpe/qdialog.h
index c63133d..3720182 100644
--- a/kmicromail/qpe/qdialog.h
+++ b/kmicromail/qpe/qdialog.h
@@ -16,3 +16,3 @@ class QDialog_hacked : public QDialog
public:
- QDialog_hacked ( QWidget * parent=0, const char * name=0, bool modal=true, WFlags f=0 );
+ QDialog_hacked ( QWidget * parent=0, const char * name=0, bool modal=true, Qt::WFlags f=0 );
diff --git a/kmicromail/qpe/qdialog_hacked.cpp b/kmicromail/qpe/qdialog_hacked.cpp
index 0a34cec..5d4d353 100644
--- a/kmicromail/qpe/qdialog_hacked.cpp
+++ b/kmicromail/qpe/qdialog_hacked.cpp
@@ -2,3 +2,3 @@
#include <qdialog.h>
-#include <qhbox.h>
+#include <q3hbox.h>
#include <qpushbutton.h>
@@ -8,3 +8,3 @@
#endif
- QDialog_hacked::QDialog_hacked ( QWidget * parent, const char * name, bool modal, WFlags f )
+ QDialog_hacked::QDialog_hacked ( QWidget * parent, const char * name, bool modal, Qt::WFlags f )
: QDialog( parent,name,modal, f)
@@ -15,3 +15,3 @@
setOrientation ( Vertical );
- QHBox * hb = new QHBox ( this );
+ Q3HBox * hb = new Q3HBox ( this );
QPushButton *ok = new QPushButton( i18n("OK"), hb );
diff --git a/kmicromail/selectsmtp.cpp b/kmicromail/selectsmtp.cpp
index 10b6d79..ead723c 100644
--- a/kmicromail/selectsmtp.cpp
+++ b/kmicromail/selectsmtp.cpp
@@ -10,5 +10,5 @@
#include <qtabwidget.h>
-#include <qlistview.h>
+#include <q3listview.h>
#include <klocale.h>
-selectsmtp::selectsmtp(QWidget* parent, const char* name, bool modal, WFlags fl)
+selectsmtp::selectsmtp(QWidget* parent, const char* name, bool modal, Qt::WFlags fl)
: selectstoreui(parent,name,modal,fl)
diff --git a/kmicromail/selectsmtp.h b/kmicromail/selectsmtp.h
index 9157ddf..d7accf6 100644
--- a/kmicromail/selectsmtp.h
+++ b/kmicromail/selectsmtp.h
@@ -13,3 +13,3 @@ class selectsmtp : public selectstoreui
public:
- selectsmtp(QWidget* parent = 0, const char* name = 0, bool modal = TRUE, WFlags fl = 0 );
+ selectsmtp(QWidget* parent = 0, const char* name = 0, bool modal = TRUE, Qt::WFlags fl = 0 );
virtual ~selectsmtp();
diff --git a/kmicromail/selectstore.h b/kmicromail/selectstore.h
index 447a6ae..d312c1d 100644
--- a/kmicromail/selectstore.h
+++ b/kmicromail/selectstore.h
@@ -4,3 +4,3 @@
#include "selectstoreui.h"
-#include <qvaluelist.h>
+#include <q3valuelist.h>
#include <qmap.h>
diff --git a/kmicromail/settingsdialog.cpp b/kmicromail/settingsdialog.cpp
index c593b48..889c490 100644
--- a/kmicromail/settingsdialog.cpp
+++ b/kmicromail/settingsdialog.cpp
@@ -4,2 +4,4 @@
#include <qtabwidget.h>
+//Added by qt3to4:
+#include <Q3GridLayout>
@@ -14,3 +16,3 @@
-SettingsDialog::SettingsDialog( QWidget* parent, const char* name, bool modal, WFlags fl )
+SettingsDialog::SettingsDialog( QWidget* parent, const char* name, bool modal, Qt::WFlags fl )
: SettingsDialogUI( parent, name, modal, fl ) {
@@ -20,3 +22,3 @@ SettingsDialog::SettingsDialog( QWidget* parent, const char* name, bool modal, W
- QGridLayout *topLayout = new QGridLayout(topFrame,3,3);
+ Q3GridLayout *topLayout = new Q3GridLayout(topFrame,3,3);
topLayout->setSpacing(2);
diff --git a/kmicromail/settingsdialog.h b/kmicromail/settingsdialog.h
index 042b69f..b168226 100644
--- a/kmicromail/settingsdialog.h
+++ b/kmicromail/settingsdialog.h
@@ -13,3 +13,3 @@ Q_OBJECT
public:
- SettingsDialog( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
+ SettingsDialog( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, Qt::WFlags fl = 0 );
~SettingsDialog();
diff --git a/kmicromail/statuswidget.cpp b/kmicromail/statuswidget.cpp
index 19cf635..6da6f54 100644
--- a/kmicromail/statuswidget.cpp
+++ b/kmicromail/statuswidget.cpp
@@ -1,3 +1,3 @@
#include <qtimer.h>
-#include <qprogressbar.h>
+#include <q3progressbar.h>
#include <qlabel.h>
@@ -9,3 +9,3 @@
-StatusWidget::StatusWidget( QWidget* parent, const char* name,WFlags fl )
+StatusWidget::StatusWidget( QWidget* parent, const char* name,Qt::WFlags fl )
: StatusWidgetUI( parent, name, fl ) {
diff --git a/kmicromail/statuswidget.h b/kmicromail/statuswidget.h
index 73f0d75..1d29daf 100644
--- a/kmicromail/statuswidget.h
+++ b/kmicromail/statuswidget.h
@@ -11,3 +11,3 @@ Q_OBJECT
public:
- StatusWidget( QWidget* parent = 0, const char* name = 0,WFlags fl = 0 );
+ StatusWidget( QWidget* parent = 0, const char* name = 0,Qt::WFlags fl = 0 );
~StatusWidget();
diff --git a/kmicromail/viewmail.cpp b/kmicromail/viewmail.cpp
index 685b4e4..c9dedb0 100644
--- a/kmicromail/viewmail.cpp
+++ b/kmicromail/viewmail.cpp
@@ -26,9 +26,12 @@
/* QT */
-#include <qtextbrowser.h>
+#include <q3textbrowser.h>
#include <qmessagebox.h>
-#include <qtextstream.h>
+#include <q3textstream.h>
#include <qaction.h>
-#include <qpopupmenu.h>
+#include <q3popupmenu.h>
#include <qfile.h>
#include <qlayout.h>
+//Added by qt3to4:
+#include <Q3ValueList>
+#include <Q3VBoxLayout>
@@ -37,5 +40,5 @@
-AttachItem::AttachItem(QListView * parent,QListViewItem *after, const QString&mime,const QString&desc,const QString&file,
- const QString&fsize,int num,const QValueList<int>&path)
- : QListViewItem(parent,after),_partNum(num)
+AttachItem::AttachItem(Q3ListView * parent,Q3ListViewItem *after, const QString&mime,const QString&desc,const QString&file,
+ const QString&fsize,int num,const Q3ValueList<int>&path)
+ : Q3ListViewItem(parent,after),_partNum(num)
{
@@ -48,5 +51,5 @@ AttachItem::AttachItem(QListView * parent,QListViewItem *after, const QString&mi
-AttachItem::AttachItem(QListViewItem * parent,QListViewItem *after, const QString&mime,const QString&desc,const QString&file,
- const QString&fsize,int num,const QValueList<int>&path)
- : QListViewItem(parent,after),_partNum(num)
+AttachItem::AttachItem(Q3ListViewItem * parent,Q3ListViewItem *after, const QString&mime,const QString&desc,const QString&file,
+ const QString&fsize,int num,const Q3ValueList<int>&path)
+ : Q3ListViewItem(parent,after),_partNum(num)
{
@@ -59,3 +62,3 @@ AttachItem::AttachItem(QListViewItem * parent,QListViewItem *after, const QStrin
-bool AttachItem::isParentof(const QValueList<int>&path)
+bool AttachItem::isParentof(const Q3ValueList<int>&path)
{
@@ -72,5 +75,5 @@ bool AttachItem::isParentof(const QValueList<int>&path)
-AttachItem* ViewMail::searchParent(const QValueList<int>&path)
+AttachItem* ViewMail::searchParent(const Q3ValueList<int>&path)
{
- QListViewItemIterator it( attachments );
+ Q3ListViewItemIterator it( attachments );
for ( ; it.current(); ++it )
@@ -156,3 +159,3 @@ void ViewMail::setBody(const RecBodyP&body )
if (w>0) o.precision(2); else o.precision(0);
- o.setf(QTextStream::fixed);
+ o.setf(Q3TextStream::fixed);
o << s << " " << q << "Byte";
@@ -197,3 +200,3 @@ void ViewMail::setBody(const RecBodyP&body )
if (w>0) o.precision(2); else o.precision(0);
- o.setf(QTextStream::fixed);
+ o.setf(Q3TextStream::fixed);
o << s << " " << q << "Byte";
@@ -241,3 +244,3 @@ void ViewMail::slotShowHtml( bool state )
-void ViewMail::slotItemClicked( QListViewItem * item , const QPoint & point, int )
+void ViewMail::slotItemClicked( Q3ListViewItem * item , const QPoint & point, int )
{
@@ -251,3 +254,3 @@ void ViewMail::slotItemClicked( QListViewItem * item , const QPoint & point, int
}
- QPopupMenu *menu = new QPopupMenu();
+ Q3PopupMenu *menu = new Q3PopupMenu();
int ret=0;
@@ -280,3 +283,3 @@ void ViewMail::slotItemClicked( QListViewItem * item , const QPoint & point, int
QFile output(str);
- output.open(IO_WriteOnly);
+ output.open(QIODevice::WriteOnly);
output.writeBlock(content->Content(),content->Length());
@@ -299,3 +302,3 @@ void ViewMail::slotItemClicked( QListViewItem * item , const QPoint & point, int
QFile output(tmpfile);
- output.open(IO_WriteOnly);
+ output.open(QIODevice::WriteOnly);
output.writeBlock(content->Content(),content->Length());
@@ -354,3 +357,3 @@ void ViewMail::slotNextMail()
-ViewMail::ViewMail( QWidget *parent, const char *name, WFlags fl)
+ViewMail::ViewMail( QWidget *parent, const char *name, Qt::WFlags fl)
: ViewMailBase(parent, name, fl), _inLoop(false)
@@ -371,3 +374,3 @@ ViewMail::ViewMail( QWidget *parent, const char *name, WFlags fl)
attachments->setEnabled(m_gotBody);
- connect( attachments, SIGNAL( clicked(QListViewItem*,const QPoint&, int) ), SLOT( slotItemClicked(QListViewItem*,const QPoint&, int) ) );
+ connect( attachments, SIGNAL( clicked(Q3ListViewItem*,const QPoint&, int) ), SLOT( slotItemClicked(Q3ListViewItem*,const QPoint&, int) ) );
@@ -559,6 +562,6 @@ void ViewMail::slotDeleteMail( )
-MailImageDlg::MailImageDlg(const QString&fname,QWidget *parent, const char *name, bool modal, WFlags f)
+MailImageDlg::MailImageDlg(const QString&fname,QWidget *parent, const char *name, bool modal, Qt::WFlags f)
: QDialog(parent,name,modal)
{
- QVBoxLayout*dlglayout = new QVBoxLayout(this);
+ Q3VBoxLayout*dlglayout = new Q3VBoxLayout(this);
dlglayout->setSpacing(2);
diff --git a/kmicromail/viewmail.h b/kmicromail/viewmail.h
index bb5b685..6cf6efb 100644
--- a/kmicromail/viewmail.h
+++ b/kmicromail/viewmail.h
@@ -9,3 +9,3 @@
-#include <qlistview.h>
+#include <q3listview.h>
#include <qmap.h>
@@ -13,3 +13,3 @@
#include <qstringlist.h>
-#include <qvaluelist.h>
+#include <q3valuelist.h>
@@ -17,11 +17,11 @@
-class AttachItem : public QListViewItem
+class AttachItem : public Q3ListViewItem
{
public:
- AttachItem(QListView * parent,QListViewItem *after, const QString&mime,const QString&desc,const QString&file,
- const QString&fsize,int num,const QValueList<int>&path);
- AttachItem(QListViewItem * parent,QListViewItem *after, const QString&mime,const QString&desc,const QString&file,
- const QString&fsize,int num,const QValueList<int>&path);
+ AttachItem(Q3ListView * parent,Q3ListViewItem *after, const QString&mime,const QString&desc,const QString&file,
+ const QString&fsize,int num,const Q3ValueList<int>&path);
+ AttachItem(Q3ListViewItem * parent,Q3ListViewItem *after, const QString&mime,const QString&desc,const QString&file,
+ const QString&fsize,int num,const Q3ValueList<int>&path);
int Partnumber() { return _partNum; }
- bool isParentof(const QValueList<int>&path);
+ bool isParentof(const Q3ValueList<int>&path);
@@ -30,3 +30,3 @@ private:
/* needed for a better display of attachments */
- QValueList<int> _path;
+ Q3ValueList<int> _path;
};
@@ -38,3 +38,3 @@ class ViewMail : public ViewMailBase
public:
- ViewMail( QWidget *parent = 0, const char *name = 0, WFlags fl = 0);
+ ViewMail( QWidget *parent = 0, const char *name = 0, Qt::WFlags fl = 0);
~ViewMail();
@@ -52,3 +52,3 @@ protected:
QString deHtml(const QString &string);
- AttachItem* searchParent(const QValueList<int>&path);
+ AttachItem* searchParent(const Q3ValueList<int>&path);
AttachItem* lastChild(AttachItem*parent);
@@ -60,3 +60,3 @@ protected slots:
void setText();
- void slotItemClicked( QListViewItem * item , const QPoint & point, int c );
+ void slotItemClicked( Q3ListViewItem * item , const QPoint & point, int c );
void slotDeleteMail( );
@@ -85,3 +85,3 @@ class MailImageDlg:public QDialog
public:
- MailImageDlg(const QString&,QWidget *parent = 0, const char *name = 0, bool modal = true, WFlags f = 0);
+ MailImageDlg(const QString&,QWidget *parent = 0, const char *name = 0, bool modal = true, Qt::WFlags f = 0);
~MailImageDlg();
diff --git a/kmicromail/viewmailbase.cpp b/kmicromail/viewmailbase.cpp
index 3bb964e..371ee91 100644
--- a/kmicromail/viewmailbase.cpp
+++ b/kmicromail/viewmailbase.cpp
@@ -1,11 +1,14 @@
// CHANGED 2004-08-06 Lutz Rogowski
-#include <qtextbrowser.h>
-#include <qlistview.h>
+#include <q3textbrowser.h>
+#include <q3listview.h>
#include <qaction.h>
#include <qlabel.h>
-#include <qvbox.h>
+#include <q3vbox.h>
#include <qapplication.h>
-#include <qtoolbar.h>
+#include <q3toolbar.h>
#include <qmenubar.h>
+//Added by qt3to4:
+#include <QKeyEvent>
+#include <Q3PopupMenu>
#include <kiconloader.h>
@@ -17,4 +20,4 @@
-ViewMailBase::ViewMailBase(QWidget *parent, const char *name, WFlags fl)
- : QMainWindow(parent, name, fl)
+ViewMailBase::ViewMailBase(QWidget *parent, const char *name, Qt::WFlags fl)
+ : Q3MainWindow(parent, name, fl)
{
@@ -23,5 +26,5 @@ ViewMailBase::ViewMailBase(QWidget *parent, const char *name, WFlags fl)
- toolbar = new QToolBar(this);
+ toolbar = new Q3ToolBar(this);
menubar = new QMenuBar( toolbar );
- mailmenu = new QPopupMenu( menubar );
+ mailmenu = new Q3PopupMenu( menubar );
menubar->insertItem( i18n( "Mail" ), mailmenu );
@@ -71,6 +74,6 @@ ViewMailBase::ViewMailBase(QWidget *parent, const char *name, WFlags fl)
closeMail->addTo(mailmenu);
- QVBox *view = new QVBox(this);
+ Q3VBox *view = new Q3VBox(this);
setCentralWidget(view);
- attachments = new QListView(view);
+ attachments = new Q3ListView(view);
int fixh = 100;
@@ -87,3 +90,3 @@ ViewMailBase::ViewMailBase(QWidget *parent, const char *name, WFlags fl)
- browser = new QTextBrowser(view);
+ browser = new Q3TextBrowser(view);
diff --git a/kmicromail/viewmailbase.h b/kmicromail/viewmailbase.h
index 7c075eb..3f1dead 100644
--- a/kmicromail/viewmailbase.h
+++ b/kmicromail/viewmailbase.h
@@ -4,3 +4,6 @@
-#include <qmainwindow.h>
+#include <q3mainwindow.h>
+//Added by qt3to4:
+#include <Q3PopupMenu>
+#include <QKeyEvent>
@@ -13,9 +16,9 @@ class QAction;
class OpenDiag;
-class QListView;
-class QToolBar;
-class QTextBrowser;
+class Q3ListView;
+class Q3ToolBar;
+class Q3TextBrowser;
class QMenuBar;
-class QPopupMenu;
+class Q3PopupMenu;
-class ViewMailBase : public QMainWindow
+class ViewMailBase : public Q3MainWindow
{
@@ -24,3 +27,3 @@ class ViewMailBase : public QMainWindow
public:
- ViewMailBase(QWidget *parent = 0, const char *name = 0, WFlags fl = 0);
+ ViewMailBase(QWidget *parent = 0, const char *name = 0, Qt::WFlags fl = 0);
@@ -28,8 +31,8 @@ protected:
QAction *reply, *forward, *attachbutton, *deleteMail, *showHtml, *closeMail, *nextMail, *downloadMail, *viewSource;
- QListView *attachments;
- QToolBar *toolbar;
- QTextBrowser *browser;
+ Q3ListView *attachments;
+ Q3ToolBar *toolbar;
+ Q3TextBrowser *browser;
OpenDiag *openDiag;
QMenuBar *menubar;
- QPopupMenu *mailmenu;
+ Q3PopupMenu *mailmenu;