summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/btconfigwidget.cpp
Unidiff
Diffstat (limited to 'noncore/apps/opie-console/btconfigwidget.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-console/btconfigwidget.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/btconfigwidget.cpp b/noncore/apps/opie-console/btconfigwidget.cpp
index acc4811..eac6a79 100644
--- a/noncore/apps/opie-console/btconfigwidget.cpp
+++ b/noncore/apps/opie-console/btconfigwidget.cpp
@@ -2,2 +2,3 @@
2#include <qlayout.h> 2#include <qlayout.h>
3#include <qlineedit.h>
3#include <qcombobox.h> 4#include <qcombobox.h>
@@ -31,2 +32,6 @@ BTConfigWidget::BTConfigWidget( const QString& name,
31 32
33 QLabel *macLabel = new QLabel( this );
34 macLabel->setText( tr("Enter peer mac address here:") );
35 m_mac = new QLineEdit( this );
36
32 m_base = new IOLayerBase(this, "base"); 37 m_base = new IOLayerBase(this, "base");
@@ -35,2 +40,4 @@ BTConfigWidget::BTConfigWidget( const QString& name,
35 m_lay->addWidget( m_deviceCmb ); 40 m_lay->addWidget( m_deviceCmb );
41 m_lay->addWidget( macLabel );
42 m_lay->addWidget( m_mac );
36 m_lay->addWidget( m_base ); 43 m_lay->addWidget( m_base );
@@ -48,3 +55,7 @@ void BTConfigWidget::load( const Profile& prof ) {
48 int speed = prof.readNumEntry("Speed"); 55 int speed = prof.readNumEntry("Speed");
56 QString mac = prof.readEntry("Mac");
49 57
58 if (!mac.isEmpty() ) {
59 m_mac->setText( mac );
60 }
50 61
@@ -139,2 +150,3 @@ void BTConfigWidget::save( Profile& prof ) {
139 prof.writeEntry("Speed", speed); 150 prof.writeEntry("Speed", speed);
151 prof.writeEntry("Mac", m_mac->text() );
140} 152}