[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:       2007-07-31 21:29:27
Message-ID: 1185917367.926860.5062.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 694834 by aloisio:

Little Bug fixes

 M  +4 -4      mainwidget.cpp  
 M  +4 -0      medialist.cpp  
 M  +1 -0      medialist.h  
 M  +4 -2      postingslist.cpp  
 M  +4 -7      postingslistbase.ui  


--- trunk/playground/pim/kblogger/src/mainwidget.cpp #694833:694834
@@ -93,7 +93,7 @@
 }*/
 
 void mainWidget::reloadSettings()
-{ //FIXME It Doesn't work yet!
+{ 
     kDebug() << "mainWidget::reloadSettings()" << endl;
     populateAccountList();
 }
@@ -269,8 +269,8 @@
 
     //Sent, Trash & Modify entries Lists
     postingsList *mEntriesWidget;  //FIXME MediaList Crash=>it will be a postingsList
-    mEntriesWidget = static_cast<postingsList*>( stackedWidget->widget(i) );
-    if ( mEntriesWidget) {
+    mEntriesWidget = qobject_cast<postingsList*>( stackedWidget->widget(i) );
+    if ( mEntriesWidget ) {
         mEntriesWidget->updateKActions();
         return;
     }
@@ -299,7 +299,7 @@
         TreeIndex treeIndexFromMap( i.value() );
         int count;
 
-        entrieslistWidget = dynamic_cast<postingsList *>( treeIndexFromMap.widget() );
+        entrieslistWidget = qobject_cast<postingsList *>( treeIndexFromMap.widget() );
         if (!entrieslistWidget) continue;
         count = entrieslistWidget->count();
 
--- trunk/playground/pim/kblogger/src/medialist.cpp #694833:694834
@@ -67,6 +67,10 @@
     kDebug() << "mediaList::open" << endl;
 }
 
+void mediaList::updateKActions(){
+    kDebug() << "mediaList::updateKActions" << endl;
 }
 
+}
+
 #include "medialist.moc"
--- trunk/playground/pim/kblogger/src/medialist.h #694833:694834
@@ -43,6 +43,7 @@
     void insertItem();
     void save();
     void open();
+    void updateKActions();
 };
 }
 #endif
--- trunk/playground/pim/kblogger/src/postingslist.cpp #694833:694834
@@ -59,8 +59,9 @@
         mKblogger(kbloggerParent)
 {
     kDebug() << "setAttributelocalDraftPostingsList::localDraftPostingsList" << endl;
-    setupUi((QDialog*)this);
-    setAttribute(Qt::WA_DeleteOnClose); //Destroy on close
+    
+     setupUi(this);
+//     setAttribute(Qt::WA_DeleteOnClose); //Destroy on close
     mMainWidget = dynamic_cast<mainWidget*> (parent);
     if ( !mMainWidget ) {
         kError() << "The parent widget of postingsList isn't the mainWidget" << endl;
@@ -379,6 +380,7 @@
 void postingsList::updateKActions()
 {
     kDebug() << "postingsList::updateKActions" << endl;
+    Q_ASSERT(mKblogger);
     KActionCollection *actionCollection = mKblogger->actionCollection();
     switch ( mType ) {
     case sent: {
--- trunk/playground/pim/kblogger/src/postingslistbase.ui #694833:694834
@@ -1,20 +1,17 @@
 <ui version="4.0" >
  <class>postingsListBase</class>
- <widget class="QDialog" name="postingsListBase" >
+ <widget class="QWidget" name="postingsListBase" >
   <property name="geometry" >
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>722</width>
-    <height>353</height>
+    <width>400</width>
+    <height>300</height>
    </rect>
   </property>
   <property name="windowTitle" >
-   <string>KBlogger </string>
+   <string>Form</string>
   </property>
-  <property name="styleSheet" >
-   <string/>
-  </property>
   <layout class="QGridLayout" >
    <property name="leftMargin" >
     <number>0</number>
[prev in list] [next in list] [prev in thread] [next in thread] 

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