summaryrefslogtreecommitdiffabout
path: root/kmicromail/editaccounts.cpp
Side-by-side diff
Diffstat (limited to 'kmicromail/editaccounts.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--kmicromail/editaccounts.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/kmicromail/editaccounts.cpp b/kmicromail/editaccounts.cpp
index 2c0f2d8..f274dc3 100644
--- a/kmicromail/editaccounts.cpp
+++ b/kmicromail/editaccounts.cpp
@@ -16,7 +16,7 @@
#include <qlineedit.h>
#include <qlabel.h>
#include <qtabwidget.h>
-#include <qlistview.h>
+#include <q3listview.h>
#include <qspinbox.h>
#include <klocale.h>
#include <kfiledialog.h>
@@ -25,8 +25,8 @@
using namespace Opie::Core;
-AccountListItem::AccountListItem( QListView *parent, Account *a)
- : QListViewItem( parent )
+AccountListItem::AccountListItem( Q3ListView *parent, Account *a)
+ : Q3ListViewItem( parent )
{
account = a;
setText( 0, account->getAccountName() );
@@ -51,7 +51,7 @@ AccountListItem::AccountListItem( QListView *parent, Account *a)
setText( 1, ttext);
}
-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 )
{
settings = s;
@@ -308,7 +308,7 @@ void EditAccounts::accept()
* SelectMailType
*/
-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 )
{
selected = selection;
@@ -325,7 +325,7 @@ void SelectMailType::slotSelection( const QString &sel )
* IMAPconfig
*/
-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 )
{
data = account;
@@ -408,7 +408,7 @@ void IMAPconfig::accept()
* POP3config
*/
-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 )
{
data = account;
@@ -489,7 +489,7 @@ void POP3config::accept()
* SMTPconfig
*/
-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 )
{
data = account;
@@ -498,7 +498,7 @@ SMTPconfig::SMTPconfig( SMTPaccount *account, QWidget *parent, const char *name,
connect( loginBox, SIGNAL( toggled(bool) ), passLine, SLOT( setEnabled(bool) ) );
// fillValues();
- QIconSet icon;
+ QIcon icon;
//icon = SmallIcon("fileexport");
icon = SmallIcon("fileopen");
SignaturButton->setText("");
@@ -572,7 +572,7 @@ void SMTPconfig::accept()
* NNTPconfig
*/
-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 )
{
data = account;
@@ -593,8 +593,8 @@ void NNTPconfig::slotShowSub()
data->save();
ListViewGroups->clear();
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 );
}
topLevelWidget()->setCaption( i18n("%1 groups subscribed").arg( subscribedGroups.count()));
@@ -606,9 +606,9 @@ void NNTPconfig::slotShowFilter()
ListViewGroups->clear();
int count = 0;
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;
if ( subscribedGroups.contains( (*it) ) >= 1 ) {
item->setOn( true );
@@ -629,8 +629,8 @@ void NNTPconfig::slotGetNG() {
ListViewGroups->clear();
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 ) {
item->setOn( true );
@@ -663,8 +663,8 @@ void NNTPconfig::fillValues()
subscribedGroups = data->getGroups();
/* don't forget that - you will overwrite values if user clicks cancel! */
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 );
}
}
@@ -679,11 +679,11 @@ void NNTPconfig::save()
data->setUser( userLine->text() );
data->setPassword( passLine->text() );
- QListViewItemIterator list_it( ListViewGroups );
+ Q3ListViewItemIterator list_it( ListViewGroups );
for ( ; list_it.current(); ++list_it ) {
- if ( ( (QCheckListItem*)list_it.current() )->isOn() ) {
+ if ( ( (Q3CheckListItem*)list_it.current() )->isOn() ) {
if ( subscribedGroups.contains( list_it.current()->text(0) ) < 1 )
subscribedGroups.append( list_it.current()->text(0) );
} else {