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

List:       kde-commits
Subject:    playground/office/kmymoney/kmymoney2
From:       Laurent Montel <montel () kde ! org>
Date:       2009-05-22 13:48:21
Message-ID: 1243000101.068899.20955.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 971480 by mlaurent:

Port++


 M  +2 -2      kmymoney2.cpp  
 M  +8 -1      main.cpp  
 M  +3 -0      views/kmymoneyview.cpp  


--- trunk/playground/office/kmymoney/kmymoney2/kmymoney2.cpp #971479:971480
@@ -5555,13 +5555,13 @@
   action("account_online_map")->setEnabled(false);
   action("account_online_update")->setEnabled(false);
   action("account_online_update_all")->setEnabled(false);
-  action("account_online_update_menu")->setEnabled(false);
+  //action("account_online_update_menu")->setEnabled(false);
   action("account_online_unmap")->setEnabled(false);
 #ifdef HAVE_KDCHART
   action("account_chart")->setEnabled(false);
 #endif
 
-  action("category_new")->setEnabled(fileOpen);
+  //action("category_new")->setEnabled(fileOpen);
   action("category_edit")->setEnabled(false);
   action("category_delete")->setEnabled(false);
 
--- trunk/playground/office/kmymoney/kmymoney2/main.cpp #971479:971480
@@ -94,7 +94,7 @@
   aboutData.addCredit(ki18n("Kevin Tambascio" ), ki18n("Initial investment \
support"), "ktambascio@users.sourceforge.net");  aboutData.addCredit(ki18n("Javier \
Campos Morales" ), ki18n("Developer & Artist"), "javi_c@users.sourceforge.net");  \
aboutData.addCredit(ki18n("Robert Wadley" ), ki18n("Icons & splash screen"), \
                "rob@robntina.fastmail.us");
-  aboutData.addCredit(ki18n("Laurent Montel" ),ki18n("Patches"), "montel@kde.org");
+  aboutData.addCredit(ki18n("Laurent Montel" ),ki18n("Patches and port to kde4"), \
"montel@kde.org");  aboutData.addCredit(ki18n("Wolfgang Rohdewald" ), \
ki18n("Patches"), "woro@users.sourceforge.net");  KCmdLineOptions options;
   options.add( "lang <lang-code>", ki18n("language to be used") );
@@ -285,6 +285,13 @@
                                QString("%1 in file %2 line \
%3").arg(e->what()).arg(e->file()).arg(e->line()));  throw e;
   }
+#else
+      if(kmymoney2 != 0) {
+        kmymoney2->updateCaption();
+        args->clear();
+        kmymoney2->setEnabled(true);
+        rc = a->exec();
+	}
 #endif
   delete a;
 
--- trunk/playground/office/kmymoney/kmymoney2/views/kmymoneyview.cpp #971479:971480
@@ -473,6 +473,8 @@
 
 void KMyMoneyView::enableViews(int state)
 {
+#warning "port to kde4"
+#if 0	
   if(state == -1)
     state = m_fileOpen;
 
@@ -489,6 +491,7 @@
   m_forecastViewFrame->setEnabled(state);
 
   emit viewStateChanged(state != 0);
+#endif
 }
 
 void KMyMoneyView::slotLedgerSelected(const QString& _accId, const QString& \
transaction)


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

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