[Uml-devel] KDE/kdesdk/umbrello/umbrello/clipboard
Laurent Montel
montel at kde.org
Fri Oct 27 14:09:39 UTC 2006
SVN commit 599535 by mlaurent:
Byebye Q3CString
M +5 -6 umldrag.cpp
M +1 -2 umldrag.h
--- trunk/KDE/kdesdk/umbrello/umbrello/clipboard/umldrag.cpp #599534:599535
@@ -13,7 +13,6 @@
//Added by qt3to4:
#include <QPixmap>
#include <QTextStream>
-#include <Q3CString>
#include "umldrag.h"
#include "idchangelog.h"
@@ -33,21 +32,21 @@
#define nfmt 4
class UMLDragPrivate {
public:
- Q3CString fmt[nfmt];
- Q3CString subtype;
+ QByteArray fmt[nfmt];
+ QByteArray subtype;
QByteArray enc[nfmt];
UMLDragPrivate() {
setSubType("clip1", 0);
}
- void setType(const Q3CString& st, int index) {
+ void setType(const QByteArray& st, int index) {
if (index < nfmt) {
fmt[index] = st.lower();
}
}
- void setSubType(const Q3CString& st, int index) {
+ void setSubType(const QByteArray& st, int index) {
if (index < nfmt) {
subtype = st.lower();
fmt[index] = "application/x-uml-";
@@ -103,7 +102,7 @@
delete data;
}
-void UMLDrag::setSubType(const Q3CString& string, int index) {
+void UMLDrag::setSubType(const QByteArray& string, int index) {
data->setSubType(string, index);
}
--- trunk/KDE/kdesdk/umbrello/umbrello/clipboard/umldrag.h #599534:599535
@@ -17,7 +17,6 @@
#include <q3ptrlist.h>
//Added by qt3to4:
#include <QPixmap>
-#include <Q3CString>
#include "../umllistviewitemlist.h"
#include "../associationwidgetlist.h"
@@ -137,7 +136,7 @@
* Sets the type of the clip to "application/x-uml-" + sub
* sub should be clip[1-5]
*/
- virtual void setSubType(const Q3CString& sub, int index);
+ virtual void setSubType(const QByteArray& sub, int index);
/**
* Sets the data in the clip
More information about the umbrello-devel
mailing list