Log In
New Account
  
Home My Page Project Cloud Code Snippets Project Openings Pierogi
Summary Forums Tracker Lists Tasks Docs News SCM Files
1 #include "pirkeysetwidgetitem.h"
3 PIRKeysetWidgetItem::PIRKeysetWidgetItem(
4   QString displayName,
5   QString in,
6   unsigned int i,
7   PIRMakeName m)
8   : QListWidgetItem(displayName),
9     id(i),
10     make(m),
11     favorite(false),
12     nicknameNotEmpty(false),
13     internalName(in)
14 {
15 }
18 PIRKeysetWidgetItem::PIRKeysetWidgetItem(
19   QString displayName,
20   QString in,
21   unsigned int i,
22   PIRMakeName m,
23   PIRDeviceTypeName t)
24   : QListWidgetItem(displayName),
25     id(i),
26     make(m),
27     deviceType(t),
28     favorite(false),
29     nicknameNotEmpty(false),
30     internalName(in)
31 {
32 }
35 PIRKeysetWidgetItem::PIRKeysetWidgetItem(
36   PIRKeysetWidgetItem *original)
37   : QListWidgetItem(original->text()),
38     id(original->getID()),
39     make(original->getMake()),
40     deviceType(original->getDeviceType()),
41     favorite(original->isFavorite()),
42     nicknameNotEmpty(original->hasNickname()),
43     internalName(original->getInternalName())
44 {
45   if (nicknameNotEmpty)
46   {
47     nickname = original->getNickname();
48   }
49 }
52 void PIRKeysetWidgetItem::setNickname(
53   QString nn)
54 {
55   nickname = nn;
57   nicknameNotEmpty = !nn.isEmpty();
58 }

Terms of Use    Privacy Policy    Contribution Guidelines    Feedback

Powered By GForge Collaborative Development Environment