summaryrefslogtreecommitdiff
path: root/noncore
Unidiff
Diffstat (limited to 'noncore') (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/opietooth/blue-pin/pindlg.cc22
-rw-r--r--noncore/net/opietooth/blue-pin/pindlg.h3
2 files changed, 24 insertions, 1 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
@@ -97,2 +97,5 @@ QString PinDlg::makeMacFromArgs()
97 97
98/*
99 * Add a number to the PIN number
100 */
98void PinDlg::addnum() 101void PinDlg::addnum()
@@ -105,2 +108,13 @@ void PinDlg::addnum()
105 108
109/*
110 * Delete a number from the end of the line
111 */
112void 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
106void PinDlg::accept() 120void PinDlg::accept()
@@ -119 +133,9 @@ void PinDlg::accept()
119 133
134void PinDlg::reject()
135{
136 printf("ERR\n");
137 QDialog::reject();
138 qApp->quit();
139 ::exit(0);
140}
141
diff --git a/noncore/net/opietooth/blue-pin/pindlg.h b/noncore/net/opietooth/blue-pin/pindlg.h
index 1817aa8..8557010 100644
--- a/noncore/net/opietooth/blue-pin/pindlg.h
+++ b/noncore/net/opietooth/blue-pin/pindlg.h
@@ -30,4 +30,5 @@ namespace OpieTooth {
30 void accept(); 30 void accept();
31 void reject();
31 void addnum(); 32 void addnum();
32 33 void delnum();
33 }; 34 };