From e31f557a84055ce00f814fd44427f9b3584243f9 Mon Sep 17 00:00:00 2001 From: harlekin Date: Sat, 15 Jun 2002 21:19:03 +0000 Subject: update --- (limited to 'noncore') diff --git a/noncore/net/opietooth/manager/bluebase.cpp b/noncore/net/opietooth/manager/bluebase.cpp index c905ea3..e3b9e53 100644 --- a/noncore/net/opietooth/manager/bluebase.cpp +++ b/noncore/net/opietooth/manager/bluebase.cpp @@ -57,6 +57,8 @@ namespace OpieTooth { pal.setColor(QPalette::Disabled, QColorGroup::Button, col); this->setPalette(pal); + setCaption( tr( "Bluetooth Manager" ) ); + readConfig(); initGui(); } @@ -152,7 +154,7 @@ namespace OpieTooth { */ void BlueBase::startScan() { ScanDialog *scan = new ScanDialog( this, "", true); - scan->exec(); + scan->showMaximized(); } /** diff --git a/noncore/net/opietooth/manager/scandialog.cpp b/noncore/net/opietooth/manager/scandialog.cpp index 842466a..e81b2ee 100644 --- a/noncore/net/opietooth/manager/scandialog.cpp +++ b/noncore/net/opietooth/manager/scandialog.cpp @@ -53,8 +53,8 @@ namespace OpieTooth { QWidget* privateLayoutWidget = new QWidget( Frame7, "Layout11" ); - privateLayoutWidget->setGeometry( QRect( 10, 9, 221, 310 ) ); - Layout11 = new QGridLayout( privateLayoutWidget ); + privateLayoutWidget->setGeometry( QRect( 10, 9, 221, 280 ) ); + Layout11 = new QVBoxLayout( privateLayoutWidget ); Layout11->setSpacing( 6 ); Layout11->setMargin( 0 ); @@ -62,18 +62,19 @@ namespace OpieTooth { progress = new QProgressBar(privateLayoutWidget, "progbar"); progress->setTotalSteps(20); - //Layout11->addMultiCellWidget( progress, 1, 1, 0, 1 ); - Layout11->addWidget(progress, 2, 2); - StartButton = new QPushButton( privateLayoutWidget, "StartButton" ); + QFrame *buttonFrame = new QFrame(Frame7, ""); + + StartButton = new QPushButton( buttonFrame, "StartButton" ); StartButton->setText( tr( "Start" ) ); - Layout11->addWidget( StartButton, 2, 0 ); - - StopButton = new QPushButton( privateLayoutWidget, "StopButton" ); + StopButton = new QPushButton( buttonFrame, "StopButton" ); StopButton->setText( tr( "Cancel" ) ); - Layout11->addWidget( StopButton, 2, 1 ); + + QHBoxLayout *buttonLayout = new QHBoxLayout(buttonFrame); + buttonLayout->addWidget(StartButton); + buttonLayout->addWidget(StopButton); ListView1 = new QListView( privateLayoutWidget, "ListView1" ); @@ -81,7 +82,11 @@ namespace OpieTooth { ListView1->addColumn( tr( "Device Name" ) ); //ListView1->addColumn( tr( "Type" ) ); - Layout11->addMultiCellWidget( ListView1, 0, 0, 0, 1 ); + Layout11->addWidget( ListView1); + Layout11->addWidget(progress); + Layout11->addWidget( buttonFrame); + + localDevice = new Manager( "hci0" ); connect( (QObject*)StartButton, SIGNAL( clicked() ), this, SLOT( startSearch() ) ); connect( (QObject*)StopButton, SIGNAL( clicked() ), this, SLOT( stopSearch() ) ); @@ -103,8 +108,7 @@ namespace OpieTooth { void ScanDialog::startSearch() { progress->setProgress(0); progressStat = 0; - // read it from config later - localDevice = new Manager( "hci0" ); + progressTimer(20); // when finished, it emmite foundDevices() // checken ob initialisiert , qcop ans applet. diff --git a/noncore/net/opietooth/manager/scandialog.h b/noncore/net/opietooth/manager/scandialog.h index 6d9b877..22ee01d 100644 --- a/noncore/net/opietooth/manager/scandialog.h +++ b/noncore/net/opietooth/manager/scandialog.h @@ -55,7 +55,7 @@ class Device; protected: - QGridLayout* Layout11; + QVBoxLayout* Layout11; private slots: void stopSearch(); -- cgit v0.9.0.2