summaryrefslogtreecommitdiff
path: root/noncore
Side-by-side diff
Diffstat (limited to 'noncore') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/manager/scandialog.cpp18
1 files changed, 9 insertions, 9 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
@@ -64,6 +64,6 @@ namespace OpieTooth {
- QFrame *buttonFrame = new QFrame(Frame7, "");
-
+ QFrame *buttonFrame = new QFrame(Frame7, "");
+
StartButton = new QPushButton( buttonFrame, "StartButton" );
StartButton->setText( tr( "Start" ) );
@@ -72,8 +72,8 @@ namespace OpieTooth {
StopButton->setText( tr( "Cancel" ) );
-
+
QHBoxLayout *buttonLayout = new QHBoxLayout(buttonFrame);
buttonLayout->addWidget(StartButton);
- buttonLayout->addWidget(StopButton);
+ buttonLayout->addWidget(StopButton);
ListView1 = new QListView( privateLayoutWidget, "ListView1" );
@@ -97,9 +97,9 @@ namespace OpieTooth {
// hack, make cleaner later
- void ScanDialog::progressTimer(int maxSeconds) {
+ void ScanDialog::progressTimer() {
progressStat++;
- if (progressStat++ < maxSeconds) {
- QTimer::singleShot( 1000, this, SLOT(progressTimer ) );
+ if (progressStat++ < 20) {
+ QTimer::singleShot( 1000, this, SLOT(progressTimer() ) );
}
@@ -110,9 +110,9 @@ namespace OpieTooth {
progressStat = 0;
- progressTimer(20);
+ progressTimer();
// when finished, it emmite foundDevices()
// checken ob initialisiert , qcop ans applet.
localDevice->searchDevices();
- progress->setProgress(20);
+
}