summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/manager/bluebase.cpp
blob: c17271f6c62dee98023e454359fb721d870b65e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*
 * bluebase.cpp *
 * ---------------------
 *
 * begin       : Sun 10 17:20:00 CEST 2002
 * copyright   : (c) 2002 by Maximilian Reiß
 * email       : max.reiss@gmx.de
 *
 */
/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#include "bluebase.h"
#include "scandialog.h"

#include <qframe.h>
#include <qlabel.h>
#include <qpushbutton.h>
#include <qlayout.h>
#include <qvariant.h>
#include <qwhatsthis.h>
#include <qimage.h>
#include <qpixmap.h>
#include <qtabwidget.h>
#include <qscrollview.h>
#include <qvbox.h>
#include <qapplication.h>
#include <qcheckbox.h>

#include <qpe/resource.h>

BlueBase::BlueBase( QWidget* parent,  const char* name, WFlags fl )
    : BluetoothBase( parent, name, fl ) {


    QObject::connect( (QObject*) PushButton2,  SIGNAL( clicked() ), this, SLOT(startScan()));

    QPalette pal = this->palette();
    QColor col = pal.color(QPalette::Active, QColorGroup::Background);
    pal.setColor(QPalette::Active, QColorGroup::Button, col);
    pal.setColor(QPalette::Inactive, QColorGroup::Button, col);
    pal.setColor(QPalette::Normal, QColorGroup::Button, col);
    pal.setColor(QPalette::Disabled, QColorGroup::Button, col);
    this->setPalette(pal);
}


void BlueBase::startScan() {
    Form3 *scan = new Form3( this, "", true);
    scan->exec();
}

BlueBase::~BlueBase(){
}