Diffstat (limited to 'noncore/net/opietooth/blue-pin/pindlg.cc') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/opietooth/blue-pin/pindlg.cc | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/noncore/net/opietooth/blue-pin/pindlg.cc b/noncore/net/opietooth/blue-pin/pindlg.cc index 3db6095..b03ae7d 100644 --- a/noncore/net/opietooth/blue-pin/pindlg.cc +++ b/noncore/net/opietooth/blue-pin/pindlg.cc | |||
@@ -96,4 +96,7 @@ QString PinDlg::makeMacFromArgs() | |||
96 | } | 96 | } |
97 | 97 | ||
98 | /* | ||
99 | * Add a number to the PIN number | ||
100 | */ | ||
98 | void PinDlg::addnum() | 101 | void PinDlg::addnum() |
99 | { | 102 | { |
@@ -104,4 +107,15 @@ void PinDlg::addnum() | |||
104 | } | 107 | } |
105 | 108 | ||
109 | /* | ||
110 | * Delete a number from the end of the line | ||
111 | */ | ||
112 | void PinDlg::delnum() | ||
113 | { | ||
114 | if( sender()->inherits( "QPushButton") ) { | ||
115 | const QPushButton* btn = static_cast<const QPushButton*> (sender()); | ||
116 | lnePin->setText(lnePin->text().remove(lnePin->text().length() - 1, 1)); | ||
117 | } | ||
118 | } | ||
119 | |||
106 | void PinDlg::accept() | 120 | void PinDlg::accept() |
107 | { | 121 | { |
@@ -118,2 +132,10 @@ void PinDlg::accept() | |||
118 | } | 132 | } |
119 | 133 | ||
134 | void PinDlg::reject() | ||
135 | { | ||
136 | printf("ERR\n"); | ||
137 | QDialog::reject(); | ||
138 | qApp->quit(); | ||
139 | ::exit(0); | ||
140 | } | ||
141 | |||