author | harlekin <harlekin> | 2002-07-20 23:54:44 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-07-20 23:54:44 (UTC) |
commit | 76d7938ec6b89aa11f54f9fbdad40bb358b4886a (patch) (side-by-side diff) | |
tree | 0dfa86240e9674cefa489d85ac4841a94d43e175 /noncore/net/opietooth/manager/bluebase.cpp | |
parent | 594dfd3535846a536cebdb3381f4858239404c49 (diff) | |
download | opie-76d7938ec6b89aa11f54f9fbdad40bb358b4886a.zip opie-76d7938ec6b89aa11f54f9fbdad40bb358b4886a.tar.gz opie-76d7938ec6b89aa11f54f9fbdad40bb358b4886a.tar.bz2 |
update
Diffstat (limited to 'noncore/net/opietooth/manager/bluebase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opietooth/manager/bluebase.cpp | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/noncore/net/opietooth/manager/bluebase.cpp b/noncore/net/opietooth/manager/bluebase.cpp index af64663..c81d4d1 100644 --- a/noncore/net/opietooth/manager/bluebase.cpp +++ b/noncore/net/opietooth/manager/bluebase.cpp @@ -15,21 +15,25 @@ * * ***************************************************************************/ #include "bluebase.h" #include "scandialog.h" #include "hciconfwrapper.h" +#include "devicehandler.h" +#include "btconnectionitem.h" + +#include <remotedevice.h> +#include <services.h> #include <stdlib.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 <qmessagebox.h> @@ -37,20 +41,16 @@ #include <qlineedit.h> #include <qlistview.h> #include <qdir.h> #include <qpopupmenu.h> #include <qtimer.h> +#include <qpe/qpeapplication.h> #include <qpe/resource.h> #include <qpe/config.h> -#include <remotedevice.h> -#include <services.h> - -#include "devicehandler.h" -#include "btconnectionitem.h" using namespace OpieTooth; BlueBase::BlueBase( QWidget* parent, const char* name, WFlags fl ) : BluetoothBase( parent, name, fl ) { @@ -69,12 +69,17 @@ BlueBase::BlueBase( QWidget* parent, const char* name, WFlags fl ) this, SLOT( addServicesToDevice( const QString& , Services::ValueList ) ) ); connect( m_localDevice, SIGNAL( available( const QString&, bool ) ), this, SLOT( deviceActive( const QString& , bool ) ) ); connect( m_localDevice, SIGNAL( connections( ConnectionState::ValueList ) ), this, SLOT( addConnectedDevices( ConnectionState::ValueList ) ) ); + + // let hold be rightButtonClicked() + QPEApplication::setStylusOperation( ListView2->viewport(), QPEApplication::RightOnHold); + QPEApplication::setStylusOperation( ListView4->viewport(), QPEApplication::RightOnHold); + //Load all icons needed m_offPix = Resource::loadPixmap( "editdelete" ); m_onPix = Resource::loadPixmap( "installed" ); QPalette pal = this->palette(); QColor col = pal.color( QPalette::Active, QColorGroup::Background ); @@ -159,13 +164,12 @@ void BlueBase::writeToHciConfig() { hciconf.save(); } /** * Read the list of allready known devices - * */ void BlueBase::readSavedDevices() { QValueList<RemoteDevice> loadedDevices; DeviceHandler handler; loadedDevices = handler.load(); @@ -173,13 +177,12 @@ void BlueBase::readSavedDevices() { addSearchedDevices( loadedDevices ); } /** * Write the list of allready known devices - * */ void BlueBase::writeSavedDevices() { QListViewItemIterator it( ListView2 ); BTListItem* item; BTDeviceItem* device; RemoteDevice::ValueList list; |