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

KDE3Support

  • sources
  • kde-4.14
  • kdelibs
  • kde3support
  • kdecore
k3sqlpropertymap.h
Go to the documentation of this file.
1 /* This file is part of the KDE project
2  Copyright (C) 2002 David Faure <dfaure@kde.org>
3 
4  This program is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License as published by the Free Software Foundation; either
7  version 2 of the License.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this program; see the file COPYING. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 
20 #ifndef K3SQLPROPERTYMAP_H
21 #define K3SQLPROPERTYMAP_H
22 
23 #ifndef QT_NO_SQL
24 #include <Qt3Support/Q3SqlPropertyMap>
25 #endif
26 
27 #include <kde3support_export.h>
28 
46 static inline KDE_DEPRECATED void kInstallKDEPropertyMap()
47 {
48 #ifndef QT_NO_SQL
49  static bool installed = false;
50  if (installed) return;
51  installed = true;
52  // QSqlPropertyMap takes ownership of the new default map.
53  Q3SqlPropertyMap *kdeMap = new Q3SqlPropertyMap;
54  kdeMap->insert( QLatin1String("KColorButton"), QLatin1String("color") );
55  kdeMap->insert( QLatin1String("KComboBox"), QLatin1String("currentIndex") );
56  kdeMap->insert( QLatin1String("KDatePicker"), QLatin1String("date") );
57  kdeMap->insert( QLatin1String("KDateWidget"), QLatin1String("date") );
58  kdeMap->insert( QLatin1String("KDateTimeWidget"), QLatin1String("dateTime") );
59  kdeMap->insert( QLatin1String("KEditListBox"), QLatin1String("items") );
60  kdeMap->insert( QLatin1String("KFontCombo"), QLatin1String("family") );
61  kdeMap->insert( QLatin1String("KFontRequester"), QLatin1String("font") );
62  kdeMap->insert( QLatin1String("KFontChooser"), QLatin1String("font") );
63  kdeMap->insert( QLatin1String("KHistoryCombo"), QLatin1String("currentItem") );
64  kdeMap->insert( QLatin1String("KListWidget"), QLatin1String("currentItem") );
65  kdeMap->insert( QLatin1String("KLineEdit"), QLatin1String("text") );
66  kdeMap->insert( QLatin1String("KRestrictedLine"), QLatin1String("text") );
67  kdeMap->insert( QLatin1String("KTextBrowser"), QLatin1String("source") );
68  kdeMap->insert( QLatin1String("KTextEdit"), QLatin1String("text") );
69  kdeMap->insert( QLatin1String("KUrlRequester"), QLatin1String("url") );
70  kdeMap->insert( QLatin1String("KPasswordEdit"), QLatin1String("password") );
71  kdeMap->insert( QLatin1String("KIntNumInput"), QLatin1String("value") );
72  kdeMap->insert( QLatin1String("KIntSpinBox"), QLatin1String("value") );
73  kdeMap->insert( QLatin1String("KDoubleNumInput"), QLatin1String("value") );
74  Q3SqlPropertyMap::installDefaultMap( kdeMap );
75 #endif
76 }
77 
78 #endif // K3SQLPROPERTYMAP_H
Q3SqlPropertyMap::installDefaultMap
void installDefaultMap(Q3SqlPropertyMap *map)
kde3support_export.h
kInstallKDEPropertyMap
static void kInstallKDEPropertyMap()
Install a Qt SQL property map with entries for all KDE widgets Call this in any application using KDE...
Definition: k3sqlpropertymap.h:46
Q3SqlPropertyMap::insert
void insert(const QString &classname, const QString &property)
QLatin1String
Q3SqlPropertyMap
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDE3Support

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal