[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/pim/kblogger/src
From: Antonio Aloisio <antonio.aloisio () gmail ! com>
Date: 2008-05-08 19:04:02
Message-ID: 1210273442.138195.22290.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 805571 by aloisio:
- Change version to 1.0alpha3
- Set previewWidget background to white
M +1 -1 backend/blogjob.cpp
M +1 -1 main.cpp
M +7 -2 mainwidget.cpp
M +1 -1 mainwidgetbase.ui
M +1 -1 mainwindow.h
--- trunk/playground/pim/kblogger/src/backend/blogjob.cpp #805570:805571
@@ -40,7 +40,7 @@
#include "backend/bloglist.h"
#define APPLICATION_NAME "KBlogger"
-#define APPLICATION_VER "1.0-alpha2"
+#define APPLICATION_VER "1.0-alpha3"
Q_DECLARE_METATYPE(KBlog::BlogPost*)
Q_DECLARE_METATYPE(KBlog::BlogMedia*)
--- trunk/playground/pim/kblogger/src/main.cpp #805570:805571
@@ -27,7 +27,7 @@
static const char description[] =
I18N_NOOP("KDE BlogServer Manager");
-static const char version[] = "1.0-alpha2";
+static const char version[] = "1.0-alpha3";
int main(int argc, char **argv)
{
--- trunk/playground/pim/kblogger/src/mainwidget.cpp #805570:805571
@@ -39,6 +39,7 @@
#include "backend/blogserver.h"
#include "composer/visualeditor.h"
+#define HTML_CODE "<html><body bgcolor=white >"
namespace KBlogger
{
@@ -96,10 +97,12 @@
kDebug();
if (!post) return;
QString text;
- text = "<div><H3><FONT COLOR=#a0b0ff>" + post->title() + "</font></H3></div>";
+ text += HTML_CODE;
+ text += "<div><H3><FONT COLOR=#a0b0ff>" + post->title() + "</font></H3></div>";
text += "<div><i> " + post->categories().join(", ") + "</i></div>" ;
// text+=i18n("<i>Creation Date<i>")+
text += "<div> " + post->content() + "</div>";
+ text += "</html>";
previewBrowser->setText(text);
}
@@ -108,9 +111,11 @@
kDebug();
if (!media) return;
QString text;
- text = "<div><b>Name:</b> " + media->name() + "</div>";
+ text = HTML_CODE;
+ text += "<div><b>Name:</b> " + media->name() + "</div>";
text += "<div><b>Url:</b> " + media->url().url() + "</div>" ;
text += "<div align='center'><img src='" + media->cachedFilename() + "' /></div>";
+ text += "</html>";
previewBrowser->setText(text);
}
--- trunk/playground/pim/kblogger/src/mainwidgetbase.ui #805570:805571
@@ -69,7 +69,7 @@
</property>
<column>
<property name="text" >
- <string/>
+ <string>Accounts</string>
</property>
</column>
</widget>
--- trunk/playground/pim/kblogger/src/mainwindow.h #805570:805571
@@ -49,7 +49,7 @@
*
* @short Main window class
* @author Antonio Aloisio <gnuton@gnuton.org>
- * @version 1.0alpha1
+ * @version 1.0-alpha3
*/
namespace KBlogger
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic