• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KDE3Support

k3sqlpropertymap.h

Go to the documentation of this file.
00001 /* This file is part of the KDE project
00002    Copyright (C) 2002 David Faure <dfaure@kde.org>
00003 
00004    This program is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License as published by the Free Software Foundation; either
00007    version 2 of the License.
00008 
00009    This program is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this program; see the file COPYING.  If not, write to
00016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017    Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef K3SQLPROPERTYMAP_H
00021 #define K3SQLPROPERTYMAP_H
00022 
00023 #ifndef QT_NO_SQL
00024 #include <Qt3Support/Q3SqlPropertyMap>
00025 #endif
00026 
00027 #include <kde3support_export.h>
00028 
00046 static inline KDE_DEPRECATED void kInstallKDEPropertyMap()
00047 {
00048 #ifndef QT_NO_SQL
00049   static bool installed = false;
00050   if (installed) return;
00051   installed = true;
00052   // QSqlPropertyMap takes ownership of the new default map.
00053   Q3SqlPropertyMap *kdeMap = new Q3SqlPropertyMap;
00054   kdeMap->insert( QLatin1String("KColorButton"), QLatin1String("color") );
00055   kdeMap->insert( QLatin1String("KComboBox"), QLatin1String("currentIndex") );
00056   kdeMap->insert( QLatin1String("KDatePicker"), QLatin1String("date") );
00057   kdeMap->insert( QLatin1String("KDateWidget"), QLatin1String("date") );
00058   kdeMap->insert( QLatin1String("KDateTimeWidget"), QLatin1String("dateTime") );
00059   kdeMap->insert( QLatin1String("KEditListBox"), QLatin1String("items") );
00060   kdeMap->insert( QLatin1String("KFontCombo"), QLatin1String("family") );
00061   kdeMap->insert( QLatin1String("KFontRequester"), QLatin1String("font") );
00062   kdeMap->insert( QLatin1String("KFontChooser"), QLatin1String("font") );
00063   kdeMap->insert( QLatin1String("KHistoryCombo"), QLatin1String("currentItem") );
00064   kdeMap->insert( QLatin1String("KListWidget"), QLatin1String("currentItem") );
00065   kdeMap->insert( QLatin1String("KLineEdit"), QLatin1String("text") );
00066   kdeMap->insert( QLatin1String("KRestrictedLine"), QLatin1String("text") );
00067   kdeMap->insert( QLatin1String("KTextBrowser"), QLatin1String("source") );
00068   kdeMap->insert( QLatin1String("KTextEdit"), QLatin1String("text") );
00069   kdeMap->insert( QLatin1String("KUrlRequester"), QLatin1String("url") );
00070   kdeMap->insert( QLatin1String("KPasswordEdit"), QLatin1String("password") );
00071   kdeMap->insert( QLatin1String("KIntNumInput"), QLatin1String("value") );
00072   kdeMap->insert( QLatin1String("KIntSpinBox"), QLatin1String("value") );
00073   kdeMap->insert( QLatin1String("KDoubleNumInput"), QLatin1String("value") );
00074   Q3SqlPropertyMap::installDefaultMap( kdeMap );
00075 #endif
00076 }
00077 
00078 #endif // K3SQLPROPERTYMAP_H

KDE3Support

Skip menu "KDE3Support"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal