28 : KComboBox(parent,
"KexiDBDriverComboBox")
31 TQStringList captionsForFileBasedDrivers, captionsForServerBasedDrivers;
32 TQMap<TQString,TQString> fileBasedDriversDict, serverBasedDriversDict;
33 foreach(KexiDB::Driver::InfoMap::ConstIterator, it, driversInfo) {
34 if (it.data().fileBased) {
35 captionsForFileBasedDrivers += it.data().caption;
36 fileBasedDriversDict[it.data().caption] = it.data().name.lower();
39 captionsForServerBasedDrivers += it.data().caption;
40 serverBasedDriversDict[it.data().caption] = it.data().name.lower();
43 captionsForFileBasedDrivers.sort();
44 captionsForServerBasedDrivers.sort();
46 if (options & ShowFileDrivers) {
47 foreach(TQStringList::ConstIterator, it, captionsForFileBasedDrivers) {
50 insertItem( SmallIcon(
"gear"), info.caption );
51 m_driversMap.insert(info.caption, info.name.lower());
55 if (options & ShowServerDrivers) {
56 foreach(TQStringList::ConstIterator, it, captionsForServerBasedDrivers) {
59 insertItem( SmallIcon(
"gear"), info.caption );
60 m_driversMap.insert(info.caption, info.name.lower());
67 for (
int i=0; i<count(); i++)
68 m_driverNames += m_driversMap[ text(i) ];