summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/graphics/drawpad/drawpadcanvas.cpp4
-rw-r--r--noncore/graphics/drawpad/thumbnailview.cpp4
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
@@ -84,3 +84,3 @@ bool DrawPadCanvasXmlHandler::startElement(const QString& namespaceURI, const QS
m_title = QString();
- m_date = QDateTime(QDate(1970, 1, 1));
+ m_date = QDateTime::currentDateTime();
} else if (qName == "title") {
@@ -124,3 +124,3 @@ bool DrawPadCanvasXmlHandler::characters(const QString& ch)
} else if (m_state == InDate) {
- m_date = m_date.addSecs(ch.toInt());
+ m_date = QDateTime(QDate(1970, 1, 1)).addSecs(ch.toInt());
} else if (m_state == InData) {
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
@@ -68,5 +68,5 @@ PageListBoxItem::PageListBoxItem(Page* page, QListBox* parent)
if (v > 128) {
- m_alternateColor = baseColor.dark(106);
+ m_alternateColor = baseColor.dark(115);
} else if (baseColor != Qt::black) {
- m_alternateColor = baseColor.light(110);
+ m_alternateColor = baseColor.light(115);
} else {