author | mickeyl <mickeyl> | 2005-04-19 10:11:09 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2005-04-19 10:11:09 (UTC) |
commit | 9b8dd642c4b135070911c78bb5d31a7add7162ee (patch) (unidiff) | |
tree | 1d0ac94b911609605403ef83ceda0f5052757e7a /noncore/net/opietooth/blue-pin/pindlg.cc | |
parent | 16202ec32c1647b113fd7c06bc652bff32e6d6d2 (diff) | |
download | opie-9b8dd642c4b135070911c78bb5d31a7add7162ee.zip opie-9b8dd642c4b135070911c78bb5d31a7add7162ee.tar.gz opie-9b8dd642c4b135070911c78bb5d31a7add7162ee.tar.bz2 |
This patch courtesy Gints Polis:
* gives possibility to enter numerical PIN with dialog buttons for
keybordless PDA.
* dialog run in full screen mode.
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 | 12 |
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 | |||
@@ -10,4 +10,5 @@ | |||
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 */ |
@@ -33,5 +34,5 @@ PinDlg::PinDlg(QWidget* parent, | |||
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 | } |
@@ -95,4 +96,12 @@ QString PinDlg::makeMacFromArgs() | |||
95 | } | 96 | } |
96 | 97 | ||
98 | void 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 | |||
97 | void PinDlg::accept() | 106 | void PinDlg::accept() |
98 | { | 107 | { |
@@ -108,2 +117,3 @@ void PinDlg::accept() | |||
108 | ::exit(0); | 117 | ::exit(0); |
109 | } | 118 | } |
119 | |||