More porting

svn path=/trunk/KDE/kdepim/; revision=804298
wilder-work
Thomas McGuire 18 years ago
parent e8869d99d5
commit 9955fe44d0
  1. 14
      kmmsgdict.cpp
  2. 2
      kmsearchpatternedit.cpp
  3. 5
      tests/recipientseditortest.cpp
  4. 4
      urlhandlermanager.cpp

@ -13,7 +13,7 @@
#include <kglobal.h> #include <kglobal.h>
#include <QFileInfo> #include <QFileInfo>
#include <Q3MemArray> #include <QVector>
#include <stdio.h> #include <stdio.h>
#include <unistd.h> #include <unistd.h>
@ -96,15 +96,15 @@ public:
int newsize = qMax(size + 25, index + 1); int newsize = qMax(size + 25, index + 1);
array.resize(newsize); array.resize(newsize);
for (int j = size; j < newsize; j++) for (int j = size; j < newsize; j++)
array.at(j) = 0; array[j] = 0;
} }
array.at(index) = entry; array[index] = entry;
} }
} }
KMMsgDictEntry *get(int index) KMMsgDictEntry *get(int index)
{ {
if (index >= 0 && (unsigned)index < array.size()) if (index >= 0 && index < array.size())
return array.at(index); return array.at(index);
return 0; return 0;
} }
@ -134,10 +134,14 @@ public:
} }
public: public:
Q3MemArray<KMMsgDictEntry *> array;
FILE *fp; FILE *fp;
bool swapByteOrder; bool swapByteOrder;
off_t baseOffset; off_t baseOffset;
private:
QVector<KMMsgDictEntry *> array;
}; };

@ -28,8 +28,6 @@ using KMail::RuleWidgetHandlerManager;
#include <kdialog.h> #include <kdialog.h>
#include <kdebug.h> #include <kdebug.h>
#include <Q3PtrList> // KWidgetLister in libkdepim needs to be ported
#include <QButtonGroup> #include <QButtonGroup>
#include <QByteArray> #include <QByteArray>
#include <QComboBox> #include <QComboBox>

@ -36,8 +36,7 @@
#include <QLayout> #include <QLayout>
#include <QLabel> #include <QLabel>
#include <QLineEdit> #include <QLineEdit>
#include <q3textedit.h> #include <QTextEdit>
//Added by qt3to4:
#include <QGridLayout> #include <QGridLayout>
Composer::Composer( QWidget *parent ) Composer::Composer( QWidget *parent )
@ -59,7 +58,7 @@ Composer::Composer( QWidget *parent )
// mRecipients->setFixedHeight( 10 ); // mRecipients->setFixedHeight( 10 );
Q3TextEdit *editor = new Q3TextEdit( this ); QTextEdit *editor = new QTextEdit( this );
topLayout->addWidget( editor, 2, 0, 1, 2 ); topLayout->addWidget( editor, 2, 0, 1, 2 );
topLayout->setRowStretch( 2, 1 ); topLayout->setRowStretch( 2, 1 );

@ -46,7 +46,7 @@
#include <QProcess> #include <QProcess>
#include <algorithm> #include <algorithm>
#include <q3scrollview.h> // temporary hack #include <QScrollArea>
using std::for_each; using std::for_each;
using std::remove; using std::remove;
@ -459,7 +459,7 @@ namespace {
if ( url.hasHost() || url.path() != "/" || !url.hasRef() ) if ( url.hasHost() || url.path() != "/" || !url.hasRef() )
return false; return false;
if ( w && !w->htmlPart()->gotoAnchor( url.ref() ) ) if ( w && !w->htmlPart()->gotoAnchor( url.ref() ) )
static_cast<Q3ScrollView*>( w->htmlPart()->widget() )->ensureVisible( 0, 0 ); static_cast<QScrollArea*>( w->htmlPart()->widget() )->ensureVisible( 0, 0 );
return true; return true;
} }
} }

Loading…
Cancel
Save