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

List:       kde-commits
Subject:    koffice/kexi/core/projectWizard
From:       Jaroslaw Staniek <js () iidea ! pl>
Date:       2003-06-15 15:46:59
[Download RAW message or body]

CVS commit by staniek: 

projectwizard: only non-system databases are visible on the db list; db
icon added


  M +7 -1      kexicreateprojectpagedb.cpp   1.19


--- koffice/kexi/core/projectWizard/kexicreateprojectpagedb.cpp  #1.18:1.19
@@ -30,4 +30,6 @@ Boston, MA 02111-1307, USA.
 #include <kdialog.h>
 #include <kmessagebox.h>
+#include <kapplication.h>
+#include <kiconloader.h>
 
 #include "kexiDB/kexidb.h"
@@ -123,7 +125,11 @@ KexiCreateProjectPageDB::connectHost(con
 
         QStringList databases = db->databases();
+        QPixmap &db_pix = kapp->iconLoader()->loadIcon("db", KIcon::Small);
         for(QStringList::Iterator it = databases.begin(); it != databases.end(); it++)
         {
-                new KListViewItem(m_databases, (*it));
+                if (!db->isSystemDatabase(*it)) {
+                        KListViewItem *item = new KListViewItem(m_databases, (*it));
+                        item->setPixmap(0, db_pix);
+                }
         }
 


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

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