author | leseb <leseb> | 2002-06-14 19:15:16 (UTC) |
---|---|---|
committer | leseb <leseb> | 2002-06-14 19:15:16 (UTC) |
commit | 251404b1ad7c5712270233821699ab8492fe76ac (patch) (unidiff) | |
tree | b78e72bd4d420e95951eca8b5f5015cf405f2f9c | |
parent | 0aa515c2f050a85dbaf7b20b7a3c3fc12a213ed1 (diff) | |
download | opie-251404b1ad7c5712270233821699ab8492fe76ac.zip opie-251404b1ad7c5712270233821699ab8492fe76ac.tar.gz opie-251404b1ad7c5712270233821699ab8492fe76ac.tar.bz2 |
Minor fixes
-rw-r--r-- | noncore/graphics/drawpad/drawpadcanvas.cpp | 4 | ||||
-rw-r--r-- | noncore/graphics/drawpad/thumbnailview.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/noncore/graphics/drawpad/drawpadcanvas.cpp b/noncore/graphics/drawpad/drawpadcanvas.cpp index dcf0871..4547b41 100644 --- a/noncore/graphics/drawpad/drawpadcanvas.cpp +++ b/noncore/graphics/drawpad/drawpadcanvas.cpp | |||
@@ -82,7 +82,7 @@ bool DrawPadCanvasXmlHandler::startElement(const QString& namespaceURI, const QS | |||
82 | 82 | ||
83 | if (qName == "image") { | 83 | if (qName == "image") { |
84 | m_title = QString(); | 84 | m_title = QString(); |
85 | m_date = QDateTime(QDate(1970, 1, 1)); | 85 | m_date = QDateTime::currentDateTime(); |
86 | } else if (qName == "title") { | 86 | } else if (qName == "title") { |
87 | m_state = InTitle; | 87 | m_state = InTitle; |
88 | } else if (qName == "date") { | 88 | } else if (qName == "date") { |
@@ -122,7 +122,7 @@ bool DrawPadCanvasXmlHandler::characters(const QString& ch) | |||
122 | if (m_state == InTitle) { | 122 | if (m_state == InTitle) { |
123 | m_title = ch; | 123 | m_title = ch; |
124 | } else if (m_state == InDate) { | 124 | } else if (m_state == InDate) { |
125 | m_date = m_date.addSecs(ch.toInt()); | 125 | m_date = QDateTime(QDate(1970, 1, 1)).addSecs(ch.toInt()); |
126 | } else if (m_state == InData) { | 126 | } else if (m_state == InData) { |
127 | QByteArray byteArray(ch.length() / 2); | 127 | QByteArray byteArray(ch.length() / 2); |
128 | 128 | ||
diff --git a/noncore/graphics/drawpad/thumbnailview.cpp b/noncore/graphics/drawpad/thumbnailview.cpp index 81ec79f..14092bf 100644 --- a/noncore/graphics/drawpad/thumbnailview.cpp +++ b/noncore/graphics/drawpad/thumbnailview.cpp | |||
@@ -66,9 +66,9 @@ PageListBoxItem::PageListBoxItem(Page* page, QListBox* parent) | |||
66 | baseColor.hsv(&h, &s, &v); | 66 | baseColor.hsv(&h, &s, &v); |
67 | 67 | ||
68 | if (v > 128) { | 68 | if (v > 128) { |
69 | m_alternateColor = baseColor.dark(106); | 69 | m_alternateColor = baseColor.dark(115); |
70 | } else if (baseColor != Qt::black) { | 70 | } else if (baseColor != Qt::black) { |
71 | m_alternateColor = baseColor.light(110); | 71 | m_alternateColor = baseColor.light(115); |
72 | } else { | 72 | } else { |
73 | m_alternateColor = QColor(32, 32, 32); | 73 | m_alternateColor = QColor(32, 32, 32); |
74 | } | 74 | } |