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

KDEUI

  • sources
  • kde-4.14
  • kdelibs
  • kdeui
  • shortcuts
kglobalshortcutinfo.cpp
Go to the documentation of this file.
1 /* Copyright (C) 2008 Michael Jansen <kde@michael-jansen.biz>
2 
3  This library is free software; you can redistribute it and/or
4  modify it under the terms of the GNU Library General Public
5  License as published by the Free Software Foundation; either
6  version 2 of the License, or (at your option) any later version.
7 
8  This library is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  Library General Public License for more details.
12 
13  You should have received a copy of the GNU Library General Public License
14  along with this library; see the file COPYING.LIB. If not, write to
15  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16  Boston, MA 02110-1301, USA.
17 */
18 
19 #include "kglobalshortcutinfo.h"
20 #include "kglobalshortcutinfo_p.h"
21 
22 KGlobalShortcutInfo::KGlobalShortcutInfo()
23  : d(new KGlobalShortcutInfoPrivate)
24  {}
25 
26 
27 KGlobalShortcutInfo::KGlobalShortcutInfo(const KGlobalShortcutInfo &rhs)
28  : QObject()
29  ,d(new KGlobalShortcutInfoPrivate)
30  {
31  d->contextUniqueName = rhs.d->contextUniqueName;
32  d->contextFriendlyName = rhs.d->contextFriendlyName;
33  d->componentFriendlyName = rhs.d->componentFriendlyName;
34  d->componentUniqueName = rhs.d->componentUniqueName;
35  d->friendlyName = rhs.d->friendlyName;
36  d->uniqueName = rhs.d->uniqueName;
37  d->keys = rhs.d->keys;
38  d->defaultKeys = rhs.d->defaultKeys;
39  }
40 
41 
42 KGlobalShortcutInfo::~KGlobalShortcutInfo()
43  {
44  delete d;
45  }
46 
47 
48 KGlobalShortcutInfo &KGlobalShortcutInfo::operator=(const KGlobalShortcutInfo &rhs)
49  {
50  KGlobalShortcutInfo tmp(rhs);
51  KGlobalShortcutInfoPrivate *swap;
52  swap = d;
53  d = tmp.d;
54  tmp.d = swap;
55  return *this;
56  }
57 
58 
59 QString KGlobalShortcutInfo::contextFriendlyName() const
60  {
61  return d->contextFriendlyName.isEmpty()
62  ? d->contextUniqueName
63  : d->contextFriendlyName;
64  }
65 
66 
67 QString KGlobalShortcutInfo::contextUniqueName() const
68  {
69  return d->contextUniqueName;
70  }
71 
72 
73 QString KGlobalShortcutInfo::componentFriendlyName() const
74  {
75  return d->componentFriendlyName.isEmpty()
76  ? d->componentUniqueName
77  : d->componentFriendlyName;
78  }
79 
80 
81 QString KGlobalShortcutInfo::componentUniqueName() const
82  {
83  return d->componentUniqueName;
84  }
85 
86 
87 QList<QKeySequence> KGlobalShortcutInfo::defaultKeys() const
88  {
89  return d->defaultKeys;
90  }
91 
92 
93 QString KGlobalShortcutInfo::friendlyName() const
94  {
95  return d->friendlyName;
96  }
97 
98 
99 QList<QKeySequence> KGlobalShortcutInfo::keys() const
100  {
101  return d->keys;
102  }
103 
104 QString KGlobalShortcutInfo::uniqueName() const
105  {
106  return d->uniqueName;
107  }
108 
109 
110 #include "moc_kglobalshortcutinfo.cpp"
KGlobalShortcutInfo::componentUniqueName
QString componentUniqueName() const
KGlobalShortcutInfo::contextFriendlyName
QString contextFriendlyName() const
KGlobalShortcutInfo
Definition: kglobalshortcutinfo.h:35
KGlobalShortcutInfo::operator=
KGlobalShortcutInfo & operator=(const KGlobalShortcutInfo &rhs)
Definition: kglobalshortcutinfo.cpp:48
KGlobalShortcutInfo::defaultKeys
QList< QKeySequence > defaultKeys() const
kglobalshortcutinfo.h
QObject
KGlobalShortcutInfo::friendlyName
QString friendlyName() const
QString
QList
KGlobalShortcutInfo::componentFriendlyName
QString componentFriendlyName() const
KGlobalShortcutInfo::~KGlobalShortcutInfo
~KGlobalShortcutInfo()
Definition: kglobalshortcutinfo.cpp:42
KGlobalShortcutInfo::KGlobalShortcutInfo
KGlobalShortcutInfo()
Definition: kglobalshortcutinfo.cpp:22
KGlobalShortcutInfo::contextUniqueName
QString contextUniqueName() const
KGlobalShortcutInfo::uniqueName
QString uniqueName() const
KGlobalShortcutInfo::keys
QList< QKeySequence > keys() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • 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