summaryrefslogtreecommitdiff
path: root/noncore
authorharlekin <harlekin>2002-06-15 21:29:57 (UTC)
committer harlekin <harlekin>2002-06-15 21:29:57 (UTC)
commite7712c9535a461c6f5f98e78b856af0bb9eca0c6 (patch) (unidiff)
tree2cd21c2ad707dbf9461ccb2c5d1d13c63b6f7440 /noncore
parente31f557a84055ce00f814fd44427f9b3584243f9 (diff)
downloadopie-e7712c9535a461c6f5f98e78b856af0bb9eca0c6.zip
opie-e7712c9535a461c6f5f98e78b856af0bb9eca0c6.tar.gz
opie-e7712c9535a461c6f5f98e78b856af0bb9eca0c6.tar.bz2
update
Diffstat (limited to 'noncore') (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/opietooth/manager/scandialog.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/noncore/net/opietooth/manager/scandialog.cpp b/noncore/net/opietooth/manager/scandialog.cpp
index e81b2ee..b0ffbb3 100644
--- a/noncore/net/opietooth/manager/scandialog.cpp
+++ b/noncore/net/opietooth/manager/scandialog.cpp
@@ -93,30 +93,30 @@ namespace OpieTooth {
93 connect( (QObject*)localDevice, SIGNAL( foundDevices( const QString& , RemoteDevices::ValueList ) ), 93 connect( (QObject*)localDevice, SIGNAL( foundDevices( const QString& , RemoteDevices::ValueList ) ),
94 this, SLOT(fillList(const QString& , RemoteDevices::ValueList ) ) ) ; 94 this, SLOT(fillList(const QString& , RemoteDevices::ValueList ) ) ) ;
95 progressStat = 0; 95 progressStat = 0;
96 } 96 }
97 97
98// hack, make cleaner later 98// hack, make cleaner later
99 void ScanDialog::progressTimer(int maxSeconds) { 99 void ScanDialog::progressTimer() {
100 100
101 progressStat++; 101 progressStat++;
102 if (progressStat++ < maxSeconds) { 102 if (progressStat++ < 20) {
103 QTimer::singleShot( 1000, this, SLOT(progressTimer ) ); 103 QTimer::singleShot( 1000, this, SLOT(progressTimer() ) );
104 } 104 }
105 105
106 } 106 }
107 107
108 void ScanDialog::startSearch() { 108 void ScanDialog::startSearch() {
109 progress->setProgress(0); 109 progress->setProgress(0);
110 progressStat = 0; 110 progressStat = 0;
111 111
112 progressTimer(20); 112 progressTimer();
113 // when finished, it emmite foundDevices() 113 // when finished, it emmite foundDevices()
114 // checken ob initialisiert , qcop ans applet. 114 // checken ob initialisiert , qcop ans applet.
115 localDevice->searchDevices(); 115 localDevice->searchDevices();
116 progress->setProgress(20); 116
117 } 117 }
118 118
119 void ScanDialog::stopSearch() { 119 void ScanDialog::stopSearch() {
120 120
121 } 121 }
122 122