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

List:       kde-commits
Subject:    branches/KDE/4.5/kdelibs
From:       Dirk Mueller <mueller () kde ! org>
Date:       2010-07-17 10:08:43
Message-ID: 20100717100843.E157EAC76A () svn ! kde ! org
[Download RAW message or body]

SVN commit 1150982 by mueller:

fix build


 M  +1 -2      kdeui/tests/proxymodeltestsuite/modeltest.cpp  
 M  +3 -8      knewstuff/knewstuff3/ui/itemsgridviewdelegate.cpp  
 M  +1 -4      knewstuff/knewstuff3/ui/itemsviewdelegate.cpp  


--- branches/KDE/4.5/kdelibs/kdeui/tests/proxymodeltestsuite/modeltest.cpp \
#1150981:1150982 @@ -24,9 +24,8 @@
 #include <QtGui/QtGui>
 
 #include "modeltest.h"
+#include "modelspy.h"
 
-Q_DECLARE_METATYPE ( QModelIndex )
-
 /*!
     Connect to all of the models signals.  Whenever anything happens recheck \
                everything.
 */
--- branches/KDE/4.5/kdelibs/knewstuff/knewstuff3/ui/itemsgridviewdelegate.cpp \
#1150981:1150982 @@ -39,13 +39,8 @@
 
 namespace KNS3
 {
-    static const int DelegateTitleLabel = 0;
-    static const int DelegateAuthorLabel = 1;
-    static const int DelegateDownloadCounterLabel = 2;
-    static const int DelegateRatingWidget = 3;
-    //optional maybe not sure for now
-    static const int DelegateDetailsButton = 5;
-    static const int DelegateDescriptionLabel = 6;
+    enum { DelegateTitleLabel, DelegateAuthorLabel, DelegateDownloadCounterLabel,
+        DelegateGridRatingWidget };
     
 ItemsGridViewDelegate::ItemsGridViewDelegate(QAbstractItemView *itemView, Engine* \
engine, QObject * parent)  : ItemsViewBaseDelegate(itemView, engine, parent)
@@ -101,7 +96,7 @@
     int elementYPos = PreviewHeight + ItemMargin + FrameThickness*2;
     
     //setup rating widget
-    RatingWidget * rating = \
qobject_cast<RatingWidget*>(widgets.at(DelegateRatingWidget)); +    RatingWidget * \
rating = qobject_cast<RatingWidget*>(widgets.at(DelegateGridRatingWidget));  if \
(rating) {  if (entry.rating() > 0) {
             rating->setToolTip(i18n("Rating: %1%", entry.rating()));
--- branches/KDE/4.5/kdelibs/knewstuff/knewstuff3/ui/itemsviewdelegate.cpp \
#1150981:1150982 @@ -38,10 +38,7 @@
 
 namespace KNS3
 {
-    static const int DelegateLabel = 0;
-    static const int DelegateInstallButton = 1;
-    static const int DelegateDetailsButton = 2;
-    static const int DelegateRatingWidget = 3;
+    enum { DelegateLabel, DelegateInstallButton, DelegateDetailsButton,  \
DelegateRatingWidget };  
 ItemsViewDelegate::ItemsViewDelegate(QAbstractItemView *itemView, Engine* engine, \
QObject * parent)  : ItemsViewBaseDelegate(itemView, engine, parent)


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

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