[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [gluon/creator-distributionsupport-shreya] /: including changes from master branch
From:       Shreya Pandit <shreya () shreyapandit ! com>
Date:       2012-08-20 14:18:49
Message-ID: 20120820141849.D3B91A6462 () git ! kde ! org
[Download RAW message or body]

Git commit 3975dbf7ecfe04ada1c99358fc75bb52bf438336 by Shreya Pandit.
Committed on 20/08/2012 at 10:10.
Pushed by pandit into branch 'creator-distributionsupport-shreya'.

including changes from master branch

M  +1    -1    creator/plugins/docks/distributiondock/CMakeLists.txt
M  +3    -3    creator/plugins/docks/distributiondock/distributiondock.cpp
M  +1    -0    player/lib/models/commentitemsmodel.cpp

http://commits.kde.org/gluon/3975dbf7ecfe04ada1c99358fc75bb52bf438336

diff --git a/creator/plugins/docks/distributiondock/CMakeLists.txt \
b/creator/plugins/docks/distributiondock/CMakeLists.txt index 582a6d0..d44b685 100644
--- a/creator/plugins/docks/distributiondock/CMakeLists.txt
+++ b/creator/plugins/docks/distributiondock/CMakeLists.txt
@@ -2,7 +2,7 @@ set(distributiondock_SRCS
     distributiondock.cpp
     distributiondockplugin.cpp
     distributionwizard/distributionwizard.cpp
-    commentsDelegate.cpp
+    commentitemsviewdelegate.cpp
 )
 
 kde4_add_ui_files(
diff --git a/creator/plugins/docks/distributiondock/distributiondock.cpp \
b/creator/plugins/docks/distributiondock/distributiondock.cpp index 7c30ba2..ca32b02 \
                100644
--- a/creator/plugins/docks/distributiondock/distributiondock.cpp
+++ b/creator/plugins/docks/distributiondock/distributiondock.cpp
@@ -20,7 +20,7 @@
 
 #include "distributiondock.h"
 #include "ui_distributiondock.h"
-#include "commentsDelegate.h"
+#include "commentitemsviewdelegate.h"
 #include <engine/game.h>
 #include <player/lib/serviceprovider.h>
 #include <player/lib/addgamejob.h>
@@ -63,7 +63,7 @@ class DistributionDock::DistributionDockPrivate
         QStateMachine machine;
         QStringList licenseIds;
         QListView* m_commentsView;
-        CommentsDelegate* m_commentsDelegate;
+        CommentItemsViewDelegate* m_commentsDelegate;
 	GluonPlayer::CommentItemsModel* m_commentsModel;
 
         QState* loggedOutState;
@@ -379,7 +379,7 @@ void DistributionDock::initGuiStates()
 void DistributionDock::commentsFetched()
 { 
     d->m_commentsView =  new QListView( this );
-    d->m_commentsDelegate =  new CommentsDelegate( d->ui.commentsListView, this );
+    d->m_commentsDelegate =  new CommentItemsViewDelegate( d->ui.commentsListView, \
                this );
     QString id = GluonEngine::Game::instance()->gameProject()->property( "id" \
).toString();  qDebug()<<"ID IS "<<id;
     if(!id.isEmpty())
diff --git a/player/lib/models/commentitemsmodel.cpp \
b/player/lib/models/commentitemsmodel.cpp index 9cf7c4a..a59ba40 100644
--- a/player/lib/models/commentitemsmodel.cpp
+++ b/player/lib/models/commentitemsmodel.cpp
@@ -167,6 +167,7 @@ void CommentItemsModel::loadData()
     d->m_rootNode = list.at( 0 );
     treeTraversal( d->m_rootNode );
     qSort( d->m_nodes.begin(), d->m_nodes.end(), dateTimeLessThan );
+    qDebug()<<"Last comment for this game \
is"<<d->m_nodes.at(d->m_nodes.count()-1)->property("Body");  }
 
 void CommentItemsModel::saveData()


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic