From 9b8dd642c4b135070911c78bb5d31a7add7162ee Mon Sep 17 00:00:00 2001 From: mickeyl Date: Tue, 19 Apr 2005 10:11:09 +0000 Subject: This patch courtesy Gints Polis: * gives possibility to enter numerical PIN with dialog buttons for keybordless PDA. * dialog run in full screen mode. --- (limited to 'noncore/net/opietooth/blue-pin/pindlg.cc') 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 @@ #include #include #include +#include /* STD */ #include @@ -32,7 +33,7 @@ PinDlg::PinDlg(QWidget* parent, { test( m_mac ); txtStatus->setText(makeTextFromArgs()); - QPEApplication::showDialog( this , true) ; + QPEApplication::showDialog( this , false) ; } } @@ -94,6 +95,14 @@ QString PinDlg::makeMacFromArgs() return qApp->argv()[2] ; } +void PinDlg::addnum() +{ + if( sender()->inherits( "QPushButton") ) { + const QPushButton* btn = static_cast (sender()); + lnePin->setText(lnePin->text() + btn->text()); + } +} + void PinDlg::accept() { if ( ckbPin->isChecked() ) @@ -107,3 +116,4 @@ void PinDlg::accept() qApp->quit(); ::exit(0); } + -- cgit v0.9.0.2