summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/blue-pin/pindlg.cc
Side-by-side diff
Diffstat (limited to 'noncore/net/opietooth/blue-pin/pindlg.cc') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/blue-pin/pindlg.cc22
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
@@ -97,2 +97,5 @@ QString PinDlg::makeMacFromArgs()
+/*
+ * Add a number to the PIN number
+ */
void PinDlg::addnum()
@@ -105,2 +108,13 @@ void PinDlg::addnum()
+/*
+ * Delete a number from the end of the line
+ */
+void PinDlg::delnum()
+{
+ if( sender()->inherits( "QPushButton") ) {
+ const QPushButton* btn = static_cast<const QPushButton*> (sender());
+ lnePin->setText(lnePin->text().remove(lnePin->text().length() - 1, 1));
+ }
+}
+
void PinDlg::accept()
@@ -119 +133,9 @@ void PinDlg::accept()
+void PinDlg::reject()
+{
+ printf("ERR\n");
+ QDialog::reject();
+ qApp->quit();
+ ::exit(0);
+}
+