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

List:       kde-commits
Subject:    extragear/office/datakiosk/src
From:       Adam Treat <treat () kde ! org>
Date:       2006-01-13 16:17:34
Message-ID: 1137169054.506773.22962.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 497710 by treat:

* Not ready yet

 M  +8 -8      datatableedit.cpp  
 M  +6 -5      projectbox.cpp  
 M  +2 -3      projectbox.h  


--- trunk/extragear/office/datakiosk/src/datatableedit.cpp #497709:497710
@@ -814,14 +814,14 @@
 void DataTableEdit::setHiddenGenerated( bool generated )
 {
     m_hiddenGenerated = generated;
-    for ( uint i = 0; i < sqlCursor()->editBuffer()->count(); ++i )
-    {
-        if ( !form()->fieldToWidget( sqlCursor()->editBuffer()->field( i ) ) )
-        {
-/*            kdDebug() << sqlCursor()->fieldName( i ) << " " << generated << endl;*/
-            sqlCursor()->setGenerated( i, generated );
-        }
-    }
+//     for ( uint i = 0; i < sqlCursor()->editBuffer()->count(); ++i )
+//     {
+//         if ( !form()->fieldToWidget( sqlCursor()->editBuffer()->field( i ) ) )
+//         {
+//             kdDebug() << sqlCursor()->fieldName( i ) << " " << generated << endl;
+//             sqlCursor()->setGenerated( i, generated );
+//         }
+//     }
 }
 
 #include "datatableedit.moc"
--- trunk/extragear/office/datakiosk/src/projectbox.cpp #497709:497710
@@ -161,7 +161,6 @@
 
 ProjectBox::~ProjectBox()
 {
-    saveConfig();
     removeAllDatabaseConnections();
 }
 
@@ -366,6 +365,8 @@
              m_clipboard, SLOT( lower() ) );
     connect( widget, SIGNAL( closing() ),
              this, SLOT( saveProjectOnClose() ) );
+    connect( widget, SIGNAL( closing() ),
+             this, SLOT( saveConfig() ) );
 
     delete splash;
 
@@ -778,12 +779,9 @@
 {
     DataTableList dataTables;
 
-    QListViewItemIterator it( m_tablesCategory );
+    QListViewItemIterator it( this );
     while ( it.current() )
     {
-        if ( it.current() == m_tablesCategory->nextSibling() )
-            break;
-
         if ( it.current() ->QListViewItem::parent() != m_tablesCategory )
         {
             ++it;
@@ -1019,15 +1017,18 @@
     boxConfig.writeEntry( "Reports", m_reportsCategory->isOpen() );
 
     DataTableList topLevels = topLevelDataTables();
+    kdDebug() << k_funcinfo << " " << topLevels.count() << endl;
     DataTableList::ConstIterator it = topLevels.begin();
     for ( ; it != topLevels.end(); ++it )
     {
+        kdDebug() << ( *it ) ->name() << endl;
         boxConfig.writeEntry( ( *it ) ->name(), itemForWidget( ( *it ) ) ->isOpen() );
 
         DataTableList children = childrenOfDataTable( ( *it ) );
         DataTableList::ConstIterator it2 = children.begin();
         for ( ; it2 != children.end(); ++it2 )
         {
+/*            kdDebug() << ( *it2 ) ->name() << endl;*/
             boxConfig.writeEntry( ( *it2 ) ->name(), itemForWidget( ( *it2 ) ) ->isOpen() );
         }
     }
--- trunk/extragear/office/datakiosk/src/projectbox.h #497709:497710
@@ -222,9 +222,6 @@
     void viewSelectionChanged();
 
 private:
-    void readConfig();
-    void saveConfig();
-
     virtual void contentsMousePressEvent( QMouseEvent *e );
     virtual void contentsMouseReleaseEvent( QMouseEvent *e );
     virtual void keyPressEvent( QKeyEvent *e );
@@ -265,6 +262,8 @@
                             DataRelation *relation = 0 ) const;
 
 private slots:
+    void readConfig();
+    void saveConfig();
     void slotWidgetChanged();
     void slotShowContextMenu( QListViewItem *item, const QPoint &point, int );
     void clipOnWindowShown();
[prev in list] [next in list] [prev in thread] [next in thread] 

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