author | zecke <zecke> | 2002-07-09 18:28:19 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-07-09 18:28:19 (UTC) |
commit | 411ac6f9199b1aae2b6a40e7a8cf6bfea260acba (patch) (side-by-side diff) | |
tree | 218836d6509d2dcaba3c6306f9f488b759169b1a /noncore/net/opietooth/manager/bluebase.cpp | |
parent | 5f549398401acc5591ffcb67459dbf55ea323b91 (diff) | |
download | opie-411ac6f9199b1aae2b6a40e7a8cf6bfea260acba.zip opie-411ac6f9199b1aae2b6a40e7a8cf6bfea260acba.tar.gz opie-411ac6f9199b1aae2b6a40e7a8cf6bfea260acba.tar.bz2 |
Add a generic class for the sensitive QPopupMenu
Diffstat (limited to 'noncore/net/opietooth/manager/bluebase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opietooth/manager/bluebase.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/noncore/net/opietooth/manager/bluebase.cpp b/noncore/net/opietooth/manager/bluebase.cpp index c29eb1a..85c6717 100644 --- a/noncore/net/opietooth/manager/bluebase.cpp +++ b/noncore/net/opietooth/manager/bluebase.cpp @@ -235,25 +235,25 @@ using namespace OpieTooth; m_enablePagescan = pagescanCheckBox->isChecked(); m_enableInquiryscan = inquiryscanCheckBox->isChecked(); writeConfig(); QMessageBox::information( this, tr("Test") , tr("Changes were applied.") ); } /** * Add fresh found devices from scan dialog to the listing * */ - void BlueBase::addSearchedDevices( QValueList<RemoteDevice> &newDevices ) { + void BlueBase::addSearchedDevices( const QValueList<RemoteDevice> &newDevices ) { BTListItem * deviceItem; QValueList<RemoteDevice>::ConstIterator it; for( it = newDevices.begin(); it != newDevices.end() ; ++it ) { deviceItem = new BTListItem( ListView2 , (*it).name(), (*it).mac(), "device" ); deviceItem->setExpandable ( true ); // look if device is avail. atm, async deviceActive( (*it) ); // ggf auch hier? addServicesToDevice( deviceItem ); @@ -425,26 +425,26 @@ void BlueBase::startServiceActionHold( QListViewItem * item, const QPoint & poin deviceItem->setPixmap( 1, m_onPix ); } else { deviceItem->setPixmap( 1, m_offPix ); } } /** * Open the "scan for devices" dialog */ void BlueBase::startScan() { ScanDialog *scan = new ScanDialog( this, "ScanDialog", true, WDestructiveClose ); - QObject::connect( scan, SIGNAL( selectedDevices( QValueList<RemoteDevice>& ) ), - this, SLOT( addSearchedDevices( QValueList<RemoteDevice>& ) ) ); + QObject::connect( scan, SIGNAL( selectedDevices( const QValueList<RemoteDevice>& ) ), + this, SLOT( addSearchedDevices( const QValueList<RemoteDevice>& ) ) ); scan->showMaximized(); } /** * Set the informations about the local device in information Tab */ void BlueBase::setInfo() { StatusLabel->setText( status() ); } |