From 9955fe44d0690f11981bf2c065c0b798dd772bbb Mon Sep 17 00:00:00 2001 From: Thomas McGuire Date: Mon, 5 May 2008 16:35:23 +0000 Subject: [PATCH] More porting svn path=/trunk/KDE/kdepim/; revision=804298 --- kmmsgdict.cpp | 14 +++++++++----- kmsearchpatternedit.cpp | 2 -- tests/recipientseditortest.cpp | 5 ++--- urlhandlermanager.cpp | 4 ++-- 4 files changed, 13 insertions(+), 12 deletions(-) diff --git a/kmmsgdict.cpp b/kmmsgdict.cpp index 906c4714d..b1336f9e6 100644 --- a/kmmsgdict.cpp +++ b/kmmsgdict.cpp @@ -13,7 +13,7 @@ #include #include -#include +#include #include #include @@ -96,15 +96,15 @@ public: int newsize = qMax(size + 25, index + 1); array.resize(newsize); 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) { - if (index >= 0 && (unsigned)index < array.size()) + if (index >= 0 && index < array.size()) return array.at(index); return 0; } @@ -134,10 +134,14 @@ public: } public: - Q3MemArray array; + FILE *fp; bool swapByteOrder; off_t baseOffset; + +private: + + QVector array; }; diff --git a/kmsearchpatternedit.cpp b/kmsearchpatternedit.cpp index 06ecf2410..58b4feb83 100644 --- a/kmsearchpatternedit.cpp +++ b/kmsearchpatternedit.cpp @@ -28,8 +28,6 @@ using KMail::RuleWidgetHandlerManager; #include #include -#include // KWidgetLister in libkdepim needs to be ported - #include #include #include diff --git a/tests/recipientseditortest.cpp b/tests/recipientseditortest.cpp index 96128f589..790f37465 100644 --- a/tests/recipientseditortest.cpp +++ b/tests/recipientseditortest.cpp @@ -36,8 +36,7 @@ #include #include #include -#include -//Added by qt3to4: +#include #include Composer::Composer( QWidget *parent ) @@ -59,7 +58,7 @@ Composer::Composer( QWidget *parent ) // mRecipients->setFixedHeight( 10 ); - Q3TextEdit *editor = new Q3TextEdit( this ); + QTextEdit *editor = new QTextEdit( this ); topLayout->addWidget( editor, 2, 0, 1, 2 ); topLayout->setRowStretch( 2, 1 ); diff --git a/urlhandlermanager.cpp b/urlhandlermanager.cpp index 1c5e6e98d..c4cbee83d 100644 --- a/urlhandlermanager.cpp +++ b/urlhandlermanager.cpp @@ -46,7 +46,7 @@ #include #include -#include // temporary hack +#include using std::for_each; using std::remove; @@ -459,7 +459,7 @@ namespace { if ( url.hasHost() || url.path() != "/" || !url.hasRef() ) return false; if ( w && !w->htmlPart()->gotoAnchor( url.ref() ) ) - static_cast( w->htmlPart()->widget() )->ensureVisible( 0, 0 ); + static_cast( w->htmlPart()->widget() )->ensureVisible( 0, 0 ); return true; } }