summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-08-18 04:57:31 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-08-18 04:57:31 (GMT)
commitccd11ebe69f0f7088d2b1de2c372326a4f543827 (patch)
tree0bac5b6a4f13dc128922f21f90394d650ed2e66f
parente03276273b77006df4fe7bad4361998a8f894466 (diff)
parent1a226c81b7461b793fb94df5817701caef9c2014 (diff)
downloadQt-ccd11ebe69f0f7088d2b1de2c372326a4f543827.zip
Qt-ccd11ebe69f0f7088d2b1de2c372326a4f543827.tar.gz
Qt-ccd11ebe69f0f7088d2b1de2c372326a4f543827.tar.bz2
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Conflicts: src/declarative/fx/qfxtext.h src/declarative/fx/qfxtextedit.h
-rw-r--r--src/declarative/fx/qfxlineedit.h14
-rw-r--r--src/declarative/fx/qfxtext.cpp2
-rw-r--r--src/declarative/fx/qfxtext.h10
-rw-r--r--src/declarative/fx/qfxtextedit.h15
4 files changed, 20 insertions, 21 deletions
diff --git a/src/declarative/fx/qfxlineedit.h b/src/declarative/fx/qfxlineedit.h
index 0218fb0..1f4a5c6 100644
--- a/src/declarative/fx/qfxlineedit.h
+++ b/src/declarative/fx/qfxlineedit.h
@@ -55,6 +55,7 @@ QT_MODULE(Declarative)
class QFxLineEditPrivate;
class QValidator;
+//### class QFxTextInput??
class Q_DECLARATIVE_EXPORT QFxLineEdit : public QFxPaintedItem
{
Q_OBJECT
@@ -62,10 +63,10 @@ class Q_DECLARATIVE_EXPORT QFxLineEdit : public QFxPaintedItem
Q_PROPERTY(QString text READ text WRITE setText NOTIFY textChanged)
Q_PROPERTY(QColor color READ color WRITE setColor)
- Q_PROPERTY(QColor highlightColor READ highlightColor WRITE setHighlightColor)
- Q_PROPERTY(QColor highlightedTextColor READ highlightedTextColor WRITE setHighlightedTextColor)
+ Q_PROPERTY(QColor highlightColor READ highlightColor WRITE setHighlightColor) //### selectionColor
+ Q_PROPERTY(QColor highlightedTextColor READ highlightedTextColor WRITE setHighlightedTextColor) //### selectedTextColor
Q_PROPERTY(QFont font READ font WRITE setFont)
- Q_PROPERTY(HAlignment hAlign READ hAlign WRITE setHAlign)
+ Q_PROPERTY(HAlignment hAlign READ hAlign WRITE setHAlign) //### horizontalAlignment
Q_PROPERTY(bool readOnly READ isReadOnly WRITE setReadOnly)
Q_PROPERTY(bool cursorVisible READ isCursorVisible WRITE setCursorVisible)
@@ -75,11 +76,12 @@ class Q_DECLARATIVE_EXPORT QFxLineEdit : public QFxPaintedItem
Q_PROPERTY(int selectionEnd READ selectionEnd WRITE setSelectionEnd NOTIFY selectionEndChanged)
Q_PROPERTY(QString selectedText READ selectedText NOTIFY selectedTextChanged)
- Q_PROPERTY(int maxLength READ maxLength WRITE setMaxLength)
- Q_PROPERTY(QObject* validator READ validator WRITE setValidator)
+ Q_PROPERTY(int maxLength READ maxLength WRITE setMaxLength) //### maximumLength
+ Q_PROPERTY(QObject* validator READ validator WRITE setValidator) //### QValidator *
Q_PROPERTY(QString inputMask READ inputMask WRITE setInputMask)
Q_PROPERTY(bool acceptableInput READ hasAcceptableInput NOTIFY acceptableInputChanged)
- Q_PROPERTY(uint echoMode READ echoMode WRITE setEchoMode)
+ Q_PROPERTY(uint echoMode READ echoMode WRITE setEchoMode) //### enum
+ //### Q_PROPERTY(bool focusOnPress READ focusOnPress WRITE setFocusOnPress)
public:
QFxLineEdit(QFxItem* parent=0);
diff --git a/src/declarative/fx/qfxtext.cpp b/src/declarative/fx/qfxtext.cpp
index 216374c..cd34aa0 100644
--- a/src/declarative/fx/qfxtext.cpp
+++ b/src/declarative/fx/qfxtext.cpp
@@ -107,7 +107,6 @@ QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,Text,QFxText)
QFxText::QFxText(QFxItem *parent)
: QFxItem(*(new QFxTextPrivate), parent)
{
- Q_D(QFxText);
setAcceptedMouseButtons(Qt::LeftButton);
setFlag(QGraphicsItem::ItemHasNoContents, false);
}
@@ -115,7 +114,6 @@ QFxText::QFxText(QFxItem *parent)
QFxText::QFxText(QFxTextPrivate &dd, QFxItem *parent)
: QFxItem(dd, parent)
{
- Q_D(QFxText);
setAcceptedMouseButtons(Qt::LeftButton);
setFlag(QGraphicsItem::ItemHasNoContents, false);
}
diff --git a/src/declarative/fx/qfxtext.h b/src/declarative/fx/qfxtext.h
index 4349432..63fb3e9 100644
--- a/src/declarative/fx/qfxtext.h
+++ b/src/declarative/fx/qfxtext.h
@@ -63,11 +63,11 @@ class Q_DECLARATIVE_EXPORT QFxText : public QFxItem
Q_PROPERTY(QColor color READ color WRITE setColor)
Q_PROPERTY(TextStyle style READ style WRITE setStyle)
Q_PROPERTY(QColor styleColor READ styleColor WRITE setStyleColor)
- Q_PROPERTY(HAlignment hAlign READ hAlign WRITE setHAlign)
- Q_PROPERTY(VAlignment vAlign READ vAlign WRITE setVAlign)
- Q_PROPERTY(bool wrap READ wrap WRITE setWrap)
+ Q_PROPERTY(HAlignment hAlign READ hAlign WRITE setHAlign) // ### horizontalAlignment?
+ Q_PROPERTY(VAlignment vAlign READ vAlign WRITE setVAlign) // ### verticalAlignment?
+ Q_PROPERTY(bool wrap READ wrap WRITE setWrap) //### there are several wrap modes in Qt
Q_PROPERTY(TextFormat textFormat READ textFormat WRITE setTextFormat)
- Q_PROPERTY(Qt::TextElideMode elide READ elideMode WRITE setElideMode)
+ Q_PROPERTY(Qt::TextElideMode elide READ elideMode WRITE setElideMode) //### elideMode?
public:
QFxText(QFxItem *parent=0);
@@ -85,7 +85,7 @@ public:
Sunken };
enum TextFormat { PlainText = Qt::PlainText,
RichText = Qt::RichText,
- AutoText = Qt::AutoText};
+ AutoText = Qt::AutoText };
QString text() const;
void setText(const QString &);
diff --git a/src/declarative/fx/qfxtextedit.h b/src/declarative/fx/qfxtextedit.h
index 752a174..8c402b0 100644
--- a/src/declarative/fx/qfxtextedit.h
+++ b/src/declarative/fx/qfxtextedit.h
@@ -56,9 +56,8 @@ QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE
QT_MODULE(Declarative)
-/*!
-WARNING: SHORT TERM CLASS. INTENDED TO MERGE INTO QFxTextItem
-*/
+
+
class QFxTextEditPrivate;
class Q_DECLARATIVE_EXPORT QFxTextEdit : public QFxPaintedItem
{
@@ -69,12 +68,12 @@ class Q_DECLARATIVE_EXPORT QFxTextEdit : public QFxPaintedItem
Q_PROPERTY(QString text READ text WRITE setText NOTIFY textChanged)
Q_PROPERTY(QColor color READ color WRITE setColor)
- Q_PROPERTY(QColor highlightColor READ highlightColor WRITE setHighlightColor)
- Q_PROPERTY(QColor highlightedTextColor READ highlightedTextColor WRITE setHighlightedTextColor)
+ Q_PROPERTY(QColor highlightColor READ highlightColor WRITE setHighlightColor) //### selectionColor
+ Q_PROPERTY(QColor highlightedTextColor READ highlightedTextColor WRITE setHighlightedTextColor) //### selectedTextColor
Q_PROPERTY(QFont font READ font WRITE setFont)
- Q_PROPERTY(HAlignment hAlign READ hAlign WRITE setHAlign)
- Q_PROPERTY(VAlignment vAlign READ vAlign WRITE setVAlign)
- Q_PROPERTY(bool wrap READ wrap WRITE setWrap)
+ Q_PROPERTY(HAlignment hAlign READ hAlign WRITE setHAlign) //### horizontalAlignment
+ Q_PROPERTY(VAlignment vAlign READ vAlign WRITE setVAlign) //### verticalAlignment
+ Q_PROPERTY(bool wrap READ wrap WRITE setWrap) //### other wrap modes
Q_PROPERTY(TextFormat textFormat READ textFormat WRITE setTextFormat)
Q_PROPERTY(bool readOnly READ isReadOnly WRITE setReadOnly)
Q_PROPERTY(bool cursorVisible READ isCursorVisible WRITE setCursorVisible)