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

KDEUI

  • 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
22KGlobalShortcutInfo::KGlobalShortcutInfo()
23 : d(new KGlobalShortcutInfoPrivate)
24 {}
25
26
27KGlobalShortcutInfo::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
42KGlobalShortcutInfo::~KGlobalShortcutInfo()
43 {
44 delete d;
45 }
46
47
48KGlobalShortcutInfo &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
59QString KGlobalShortcutInfo::contextFriendlyName() const
60 {
61 return d->contextFriendlyName.isEmpty()
62 ? d->contextUniqueName
63 : d->contextFriendlyName;
64 }
65
66
67QString KGlobalShortcutInfo::contextUniqueName() const
68 {
69 return d->contextUniqueName;
70 }
71
72
73QString KGlobalShortcutInfo::componentFriendlyName() const
74 {
75 return d->componentFriendlyName.isEmpty()
76 ? d->componentUniqueName
77 : d->componentFriendlyName;
78 }
79
80
81QString KGlobalShortcutInfo::componentUniqueName() const
82 {
83 return d->componentUniqueName;
84 }
85
86
87QList<QKeySequence> KGlobalShortcutInfo::defaultKeys() const
88 {
89 return d->defaultKeys;
90 }
91
92
93QString KGlobalShortcutInfo::friendlyName() const
94 {
95 return d->friendlyName;
96 }
97
98
99QList<QKeySequence> KGlobalShortcutInfo::keys() const
100 {
101 return d->keys;
102 }
103
104QString KGlobalShortcutInfo::uniqueName() const
105 {
106 return d->uniqueName;
107 }
108
109
110#include "moc_kglobalshortcutinfo.cpp"
KGlobalShortcutInfo
Definition: kglobalshortcutinfo.h:36
KGlobalShortcutInfo::keys
Q_SCRIPTABLEQList< QKeySequence > keys
Definition: kglobalshortcutinfo.h:50
KGlobalShortcutInfo::contextUniqueName
Q_SCRIPTABLEQString contextUniqueName
Definition: kglobalshortcutinfo.h:47
KGlobalShortcutInfo::operator=
KGlobalShortcutInfo & operator=(const KGlobalShortcutInfo &rhs)
Definition: kglobalshortcutinfo.cpp:48
KGlobalShortcutInfo::friendlyName
Q_SCRIPTABLEQString friendlyName
Definition: kglobalshortcutinfo.h:42
KGlobalShortcutInfo::contextFriendlyName
Q_SCRIPTABLEQString contextFriendlyName
Definition: kglobalshortcutinfo.h:48
KGlobalShortcutInfo::KGlobalShortcutInfo
KGlobalShortcutInfo()
Definition: kglobalshortcutinfo.cpp:22
KGlobalShortcutInfo::componentFriendlyName
Q_SCRIPTABLEQString componentFriendlyName
Definition: kglobalshortcutinfo.h:45
KGlobalShortcutInfo::defaultKeys
Q_SCRIPTABLEQList< QKeySequence > defaultKeys
Definition: kglobalshortcutinfo.h:51
KGlobalShortcutInfo::componentUniqueName
Q_SCRIPTABLEQString componentUniqueName
Definition: kglobalshortcutinfo.h:44
KGlobalShortcutInfo::~KGlobalShortcutInfo
~KGlobalShortcutInfo()
Definition: kglobalshortcutinfo.cpp:42
KGlobalShortcutInfo::uniqueName
Q_SCRIPTABLEQString uniqueName
Definition: kglobalshortcutinfo.h:41
QList
QObject
kglobalshortcutinfo.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 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-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 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
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