summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/blue-pin/pindlg.cc
Unidiff
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.cc12
1 files changed, 11 insertions, 1 deletions
diff --git a/noncore/net/opietooth/blue-pin/pindlg.cc b/noncore/net/opietooth/blue-pin/pindlg.cc
index e40fe33..3db6095 100644
--- a/noncore/net/opietooth/blue-pin/pindlg.cc
+++ b/noncore/net/opietooth/blue-pin/pindlg.cc
@@ -9,6 +9,7 @@
9#include <qcheckbox.h> 9#include <qcheckbox.h>
10#include <qlabel.h> 10#include <qlabel.h>
11#include <qlineedit.h> 11#include <qlineedit.h>
12#include <qpushbutton.h>
12 13
13/* STD */ 14/* STD */
14#include <stdio.h> 15#include <stdio.h>
@@ -32,7 +33,7 @@ PinDlg::PinDlg(QWidget* parent,
32 { 33 {
33 test( m_mac ); 34 test( m_mac );
34 txtStatus->setText(makeTextFromArgs()); 35 txtStatus->setText(makeTextFromArgs());
35 QPEApplication::showDialog( this , true) ; 36 QPEApplication::showDialog( this , false) ;
36 } 37 }
37} 38}
38 39
@@ -94,6 +95,14 @@ QString PinDlg::makeMacFromArgs()
94 return qApp->argv()[2] ; 95 return qApp->argv()[2] ;
95} 96}
96 97
98void PinDlg::addnum()
99{
100 if( sender()->inherits( "QPushButton") ) {
101 const QPushButton* btn = static_cast<const QPushButton*> (sender());
102 lnePin->setText(lnePin->text() + btn->text());
103 }
104}
105
97void PinDlg::accept() 106void PinDlg::accept()
98{ 107{
99 if ( ckbPin->isChecked() ) 108 if ( ckbPin->isChecked() )
@@ -107,3 +116,4 @@ void PinDlg::accept()
107 qApp->quit(); 116 qApp->quit();
108 ::exit(0); 117 ::exit(0);
109} 118}
119