diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-05-22 21:25:05 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-05-22 21:31:45 -0700 |
commit | 115e5e5fbc5fcf190ceafaa2b800160cec93d52e (patch) | |
tree | 81f8308c48c11b7b3ff393ab35b3ae6999351d5c /qt-ui/downloadfromdivecomputer.cpp | |
parent | 775736395363ddfe65387b6e05d37546a4601ab9 (diff) | |
download | subsurface-115e5e5fbc5fcf190ceafaa2b800160cec93d52e.tar.gz |
The never ending, futile fight for whitespace consistency
I just need to write a tool that does this...
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/downloadfromdivecomputer.cpp')
-rw-r--r-- | qt-ui/downloadfromdivecomputer.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/qt-ui/downloadfromdivecomputer.cpp b/qt-ui/downloadfromdivecomputer.cpp index e621096ff..9b8ad29ef 100644 --- a/qt-ui/downloadfromdivecomputer.cpp +++ b/qt-ui/downloadfromdivecomputer.cpp @@ -69,11 +69,11 @@ void DownloadFromDCWidget::fill_computer_list() const char *vendor = dc_descriptor_get_vendor(descriptor); const char *product = dc_descriptor_get_product(descriptor); - if (!vendorList.contains( vendor )) - vendorList.append( vendor ); + if (!vendorList.contains(vendor)) + vendorList.append(vendor); - if( !productList[vendor].contains( product )) - productList[vendor].push_back( product ); + if (!productList[vendor].contains(product)) + productList[vendor].push_back(product); descriptorLookup[QString(vendor) + QString(product)] = descriptor; } @@ -91,11 +91,11 @@ void DownloadFromDCWidget::fill_computer_list() mydescriptor->type = DC_FAMILY_NULL; mydescriptor->model = 0; - if(!vendorList.contains( "Uemis")) + if (!vendorList.contains("Uemis")) vendorList.append("Uemis"); - if( !productList["Uemis"].contains( "Zurich" )) - productList["Uemis"].push_back( "Zurich" ); + if (!productList["Uemis"].contains("Zurich")) + productList["Uemis"].push_back("Zurich"); descriptorLookup[QString("UemisZurich")] = (dc_descriptor_t *)mydescriptor; } @@ -103,7 +103,7 @@ void DownloadFromDCWidget::fill_computer_list() void DownloadFromDCWidget::on_cancel_clicked() { import_thread_cancelled = true; - if(thread){ + if (thread) { thread->wait(); thread->deleteLater(); thread = 0; @@ -119,7 +119,7 @@ void DownloadFromDCWidget::on_ok_clicked() ui->progressBar->setValue(0); ui->progressBar->show(); - if(thread){ + if (thread) { thread->deleteLater(); } @@ -159,7 +159,7 @@ void InterfaceThread::run() DownloadThread *download = new DownloadThread(data); download->start(); - while(download->isRunning()){ + while (download->isRunning()) { msleep(200); updateInterface(progress_bar_fraction *100); } |