Diffstat (limited to 'noncore/net/opietooth/manager/bluebase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opietooth/manager/bluebase.cpp | 62 |
1 files changed, 9 insertions, 53 deletions
diff --git a/noncore/net/opietooth/manager/bluebase.cpp b/noncore/net/opietooth/manager/bluebase.cpp index 8ba5e0e..f4153a0 100644 --- a/noncore/net/opietooth/manager/bluebase.cpp +++ b/noncore/net/opietooth/manager/bluebase.cpp | |||
@@ -35,64 +35,20 @@ | |||
35 | #include <qpe/resource.h> | 35 | #include <qpe/resource.h> |
36 | 36 | ||
37 | BlueBase::BlueBase( QWidget* parent, const char* name, WFlags fl ) | 37 | BlueBase::BlueBase( QWidget* parent, const char* name, WFlags fl ) |
38 | : QWidget( parent, name, fl ) { | 38 | : BluetoothBase( parent, name, fl ) { |
39 | 39 | ||
40 | QWidget *d = QApplication::desktop(); | ||
41 | int w=d->width(); | ||
42 | int h=d->height(); | ||
43 | resize( w , h ); | ||
44 | 40 | ||
45 | 41 | QPalette pal = this->palette(); | |
46 | QVBoxLayout * TopLayout = new QVBoxLayout(this); | 42 | QColor col = pal.color(QPalette::Active, QColorGroup::Background); |
47 | TabWidget = new QTabWidget( this, "TabWidget" ); | 43 | pal.setColor(QPalette::Active, QColorGroup::Button, col); |
48 | TopLayout->addWidget(TabWidget); | 44 | pal.setColor(QPalette::Inactive, QColorGroup::Button, col); |
49 | TabWidget->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, TabWidget->sizePolicy().hasHeightForWidth() ) ); | 45 | pal.setColor(QPalette::Normal, QColorGroup::Button, col); |
50 | TabWidget->setAutoMask( FALSE ); | 46 | pal.setColor(QPalette::Disabled, QColorGroup::Button, col); |
51 | TabWidget->setTabShape( QTabWidget::Rounded ); | 47 | this->setPalette(pal); |
52 | |||
53 | Tab = new QWidget( TabWidget, "tab" ); | ||
54 | |||
55 | QVBoxLayout * Layout = new QVBoxLayout(Tab); | ||
56 | |||
57 | Test = new QLabel( Tab, "test"); | ||
58 | ScanButton = new QPushButton(Tab, "scanbutton"); | ||
59 | |||
60 | Layout->addWidget(Test); | ||
61 | Layout->addWidget(ScanButton); | ||
62 | |||
63 | |||
64 | TabWidget->insertTab( Tab, tr( "Geräte" ) ); | ||
65 | |||
66 | |||
67 | TabConn = new QWidget( TabWidget, "tab3" ); | ||
68 | |||
69 | TabWidget->insertTab( TabConn, tr("Connections") ); | ||
70 | |||
71 | TabConf = new QWidget( TabWidget, "tab2" ); | ||
72 | |||
73 | AuthCheckBox = new QCheckBox (TabConf, "auth" ); | ||
74 | QLabel *AuthLabel = new QLabel( TabConf, "authlabel" ); | ||
75 | AuthLabel->setText( tr("enable authentification")); | ||
76 | |||
77 | CryptCheckBox = new QCheckBox (TabConf, "crypt"); | ||
78 | QLabel *CryptLabel = new QLabel ( TabConf, "cryptlabel"); | ||
79 | CryptLabel->setText(tr("enable encryption")); | ||
80 | |||
81 | |||
82 | TabWidget->insertTab( TabConf, tr("Configuration")); | ||
83 | |||
84 | |||
85 | |||
86 | QPalette pal = this->palette(); | ||
87 | QColor col = pal.color(QPalette::Active, QColorGroup::Background); | ||
88 | pal.setColor(QPalette::Active, QColorGroup::Button, col); | ||
89 | pal.setColor(QPalette::Inactive, QColorGroup::Button, col); | ||
90 | pal.setColor(QPalette::Normal, QColorGroup::Button, col); | ||
91 | pal.setColor(QPalette::Disabled, QColorGroup::Button, col); | ||
92 | this->setPalette(pal); | ||
93 | } | 48 | } |
94 | 49 | ||
95 | 50 | ||
96 | BlueBase::~BlueBase(){ | 51 | BlueBase::~BlueBase(){ |
97 | } | 52 | } |
98 | 53 | ||
54 | |||