Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove debug noise
  • Loading branch information
m-kuhn committed Jun 12, 2016
1 parent 5fcadeb commit c63b910
Show file tree
Hide file tree
Showing 44 changed files with 0 additions and 108 deletions.
1 change: 0 additions & 1 deletion src/app/composer/qgscomposerlegendwidget.cpp
Expand Up @@ -945,7 +945,6 @@ void QgsComposerLegendWidget::selectedChanged( const QModelIndex & current, cons
{
Q_UNUSED( current );
Q_UNUSED( previous );
QgsDebugMsg( "Entered" );

if ( mLegend && mLegend->autoUpdateModel() )
return;
Expand Down
1 change: 0 additions & 1 deletion src/app/qgsbrowserdockwidget.cpp
Expand Up @@ -470,7 +470,6 @@ void QgsBrowserDockWidget::refresh()

void QgsBrowserDockWidget::refreshModel( const QModelIndex& index )
{
QgsDebugMsg( "Entered" );
QgsDataItem *item = mModel->dataItem( index );
if ( item )
{
Expand Down
6 changes: 0 additions & 6 deletions src/app/qgscustomization.cpp
Expand Up @@ -291,7 +291,6 @@ void QgsCustomizationDialog::on_mCustomizationEnabledCheckBox_toggled( bool chec

void QgsCustomizationDialog::init()
{
QgsDebugMsg( "Entered" );
QTreeWidgetItem * wi = createTreeItemWidgets();
if ( wi )
{
Expand All @@ -313,7 +312,6 @@ void QgsCustomizationDialog::init()

QTreeWidgetItem * QgsCustomizationDialog::createTreeItemWidgets()
{
QgsDebugMsg( "Entered" );

QDomDocument myDoc( "QgsWidgets" );
QFile myFile( QgsApplication::pkgDataPath() + "/resources/customization.xml" );
Expand Down Expand Up @@ -342,7 +340,6 @@ QTreeWidgetItem * QgsCustomizationDialog::createTreeItemWidgets()

QTreeWidgetItem * QgsCustomizationDialog::readWidgetsXmlNode( const QDomNode& theNode )
{
QgsDebugMsg( "Entered" );
QDomElement myElement = theNode.toElement();

QString name = myElement.attribute( "objectName", "" );
Expand Down Expand Up @@ -382,7 +379,6 @@ QTreeWidgetItem * QgsCustomizationDialog::readWidgetsXmlNode( const QDomNode& th
bool QgsCustomizationDialog::switchWidget( QWidget *widget, QMouseEvent *e )
{
Q_UNUSED( e );
QgsDebugMsg( "Entered" );
if ( !actionCatch->isChecked() )
return false;
QString path = widgetPath( widget );
Expand Down Expand Up @@ -636,7 +632,6 @@ QgsCustomization::QgsCustomization()
, mSettings( nullptr )
, mStatusPath( "/Customization/status" )
{
QgsDebugMsg( "Entered" );

QSettings settings;
mEnabled = settings.value( "/UI/Customization/enabled", "false" ).toString() == "true";
Expand Down Expand Up @@ -794,7 +789,6 @@ void QgsCustomization::updateMenu( QMenu* menu, QSettings* settings )

void QgsCustomization::openDialog( QWidget *parent )
{
QgsDebugMsg( "Entered" );
if ( !pDialog )
{
pDialog = new QgsCustomizationDialog( parent, mSettings );
Expand Down
2 changes: 0 additions & 2 deletions src/app/qgscustomprojectiondialog.cpp
Expand Up @@ -367,7 +367,6 @@ void QgsCustomProjectionDialog::on_leNameList_currentItemChanged( QTreeWidgetIte

void QgsCustomProjectionDialog::on_pbnCopyCRS_clicked()
{
QgsDebugMsg( "Entered" );
QgsGenericProjectionSelector *mySelector = new QgsGenericProjectionSelector( this );
if ( mySelector->exec() )
{
Expand All @@ -388,7 +387,6 @@ void QgsCustomProjectionDialog::on_pbnCopyCRS_clicked()

void QgsCustomProjectionDialog::on_buttonBox_accepted()
{
QgsDebugMsg( "Entered" );
//Update the current CRS:
int i = leNameList->currentIndex().row();
if ( i != -1 )
Expand Down
2 changes: 0 additions & 2 deletions src/app/qgsdecorationitem.cpp
Expand Up @@ -64,15 +64,13 @@ void QgsDecorationItem::update()

void QgsDecorationItem::projectRead()
{
QgsDebugMsg( "Entered" );
mEnabled = QgsProject::instance()->readBoolEntry( mNameConfig, "/Enabled", false );
mPlacement = static_cast< Placement >( QgsProject::instance()->readNumEntry( mNameConfig, "/Placement", static_cast< int >( mPlacement ) ) );
mMarginUnit = QgsSymbolLayerV2Utils::decodeOutputUnit( QgsProject::instance()->readEntry( mNameConfig, "/MarginUnit", QgsSymbolLayerV2Utils::encodeOutputUnit( mMarginUnit ) ) );
}

void QgsDecorationItem::saveToProject()
{
QgsDebugMsg( "Entered" );
QgsProject::instance()->writeEntry( mNameConfig, "/Enabled", mEnabled );
QgsProject::instance()->writeEntry( mNameConfig, "/Placement", static_cast< int >( mPlacement ) );
QgsProject::instance()->writeEntry( mNameConfig, "/MarginUnit", QgsSymbolLayerV2Utils::encodeOutputUnit( mMarginUnit ) );
Expand Down
7 changes: 0 additions & 7 deletions src/app/qgsidentifyresultsdialog.cpp
Expand Up @@ -214,7 +214,6 @@ QgsIdentifyResultsWebViewItem::QgsIdentifyResultsWebViewItem( QTreeWidget *treeW

void QgsIdentifyResultsWebViewItem::loadFinished( bool ok )
{
QgsDebugMsg( "Entered" );
Q_UNUSED( ok );

mWebView->show();
Expand Down Expand Up @@ -920,7 +919,6 @@ void QgsIdentifyResultsDialog::itemClicked( QTreeWidgetItem *item, int column )

void QgsIdentifyResultsDialog::contextMenuEvent( QContextMenuEvent* event )
{
QgsDebugMsg( "Entered" );

// only handle context menu event if showing tree widget
if ( stackedWidget->currentIndex() != 0 )
Expand Down Expand Up @@ -1070,7 +1068,6 @@ void QgsIdentifyResultsDialog::expandColumnsToFit()

void QgsIdentifyResultsDialog::clear()
{
QgsDebugMsg( "Entered" );
for ( int i = 0; i < lstResults->topLevelItemCount(); i++ )
{
disconnectLayer( lstResults->topLevelItem( i )->data( 0, Qt::UserRole ).value<QObject *>() );
Expand Down Expand Up @@ -1672,7 +1669,6 @@ void QgsIdentifyResultsDialog::copyAttributeValue()

void QgsIdentifyResultsDialog::copyFeatureAttributes()
{
QgsDebugMsg( "Entered" );
QClipboard *clipboard = QApplication::clipboard();
QString text;

Expand Down Expand Up @@ -1782,7 +1778,6 @@ void QgsIdentifyResultsDialog::on_mActionCopy_triggered( bool checked )

void QgsIdentifyResultsDialog::copyFeature()
{
QgsDebugMsg( "Entered" );

QgsIdentifyResultsFeatureItem *item = dynamic_cast<QgsIdentifyResultsFeatureItem *>( featureItem( lstResults->selectedItems().value( 0 ) ) );

Expand All @@ -1799,7 +1794,6 @@ void QgsIdentifyResultsDialog::copyFeature()

void QgsIdentifyResultsDialog::toggleFeatureSelection()
{
QgsDebugMsg( "Entered" );

QgsIdentifyResultsFeatureItem *item = dynamic_cast<QgsIdentifyResultsFeatureItem *>( featureItem( lstResults->selectedItems().value( 0 ) ) );

Expand All @@ -1821,7 +1815,6 @@ void QgsIdentifyResultsDialog::toggleFeatureSelection()

void QgsIdentifyResultsDialog::formatChanged( int index )
{
QgsDebugMsg( "Entered" );
QComboBox *combo = qobject_cast<QComboBox*>( sender() );
if ( !combo )
{
Expand Down
2 changes: 0 additions & 2 deletions src/app/qgsrasterlayerproperties.cpp
Expand Up @@ -445,7 +445,6 @@ QgsRasterLayerProperties::~QgsRasterLayerProperties()

void QgsRasterLayerProperties::setupTransparencyTable( int nBands )
{
QgsDebugMsg( "Entered" );
tableTransparency->clear();
tableTransparency->setColumnCount( 0 );
tableTransparency->setRowCount( 0 );
Expand Down Expand Up @@ -1160,7 +1159,6 @@ void QgsRasterLayerProperties::on_mCrsSelector_crsChanged( const QgsCoordinateRe

void QgsRasterLayerProperties::on_pbnDefaultValues_clicked()
{
QgsDebugMsg( "Entered" );
if ( !mRendererWidget )
{
return;
Expand Down
5 changes: 0 additions & 5 deletions src/browser/qgsbrowser.cpp
Expand Up @@ -364,7 +364,6 @@ void QgsBrowser::restoreWindowState()

void QgsBrowser::keyPressEvent( QKeyEvent * e )
{
QgsDebugMsg( "Entered" );
if ( e->key() == Qt::Key_Escape )
{
stopRendering();
Expand All @@ -377,7 +376,6 @@ void QgsBrowser::keyPressEvent( QKeyEvent * e )

void QgsBrowser::keyReleaseEvent( QKeyEvent * e )
{
QgsDebugMsg( "Entered" );
if ( treeView->hasFocus() && ( e->key() == Qt::Key_Up || e->key() == Qt::Key_Down ) )
{
itemClicked( treeView->selectionModel()->currentIndex() );
Expand All @@ -390,7 +388,6 @@ void QgsBrowser::keyReleaseEvent( QKeyEvent * e )

void QgsBrowser::stopRendering()
{
QgsDebugMsg( "Entered" );
if ( mapCanvas )
mapCanvas->stopRendering();
}
Expand Down Expand Up @@ -485,13 +482,11 @@ void QgsBrowser::tabChanged()

void QgsBrowser::on_mActionRefresh_triggered()
{
QgsDebugMsg( "Entered" );
refresh();
}

void QgsBrowser::refresh( const QModelIndex& index )
{
QgsDebugMsg( "Entered" );
if ( index.isValid() )
{
QgsDataItem *item = mModel->dataItem( index );
Expand Down
1 change: 0 additions & 1 deletion src/core/composer/qgscomposerlegend.cpp
Expand Up @@ -291,7 +291,6 @@ void QgsComposerLegend::setRasterBorderWidth( double width ) { mSettings.setRast

void QgsComposerLegend::synchronizeWithModel()
{
QgsDebugMsg( "Entered" );
adjustBoxSize();
updateItem();
}
Expand Down
2 changes: 0 additions & 2 deletions src/core/qgsbrowsermodel.cpp
Expand Up @@ -410,7 +410,6 @@ void QgsBrowserModel::itemDataChanged( QgsDataItem * item )
}
void QgsBrowserModel::itemStateChanged( QgsDataItem * item, QgsDataItem::State oldState )
{
QgsDebugMsg( "Entered" );
if ( !item )
return;
QModelIndex idx = findItem( item );
Expand Down Expand Up @@ -503,7 +502,6 @@ bool QgsBrowserModel::canFetchMore( const QModelIndex & parent ) const

void QgsBrowserModel::fetchMore( const QModelIndex & parent )
{
QgsDebugMsg( "Entered" );
QgsDataItem* item = dataItem( parent );

if ( !item || item->state() == QgsDataItem::Populating || item->state() == QgsDataItem::Populated )
Expand Down
2 changes: 0 additions & 2 deletions src/core/qgsdataitem.cpp
Expand Up @@ -874,7 +874,6 @@ QVector<QgsDataItem*> QgsDirectoryItem::createChildren()

void QgsDirectoryItem::setState( State state )
{
QgsDebugMsg( "Entered" );
QgsDataCollectionItem::setState( state );

if ( state == Populated )
Expand All @@ -898,7 +897,6 @@ void QgsDirectoryItem::setState( State state )

void QgsDirectoryItem::directoryChanged()
{
QgsDebugMsg( "Entered" );
if ( state() == Populating )
{
// schedule to refresh later, because refres() simply returns if Populating
Expand Down
1 change: 0 additions & 1 deletion src/core/qgsgmlschema.cpp
Expand Up @@ -330,7 +330,6 @@ QDomElement QgsGmlSchema::domElement( const QDomElement &element, const QString

bool QgsGmlSchema::guessSchema( const QByteArray &data )
{
QgsDebugMsg( "Entered" );
mLevel = 0;
mSkipLevel = std::numeric_limits<int>::max();
XML_Parser p = XML_ParserCreateNS( nullptr, NS_SEPARATOR );
Expand Down
2 changes: 0 additions & 2 deletions src/core/qgsnetworkaccessmanager.cpp
Expand Up @@ -387,14 +387,12 @@ void QgsNetworkAccessManager::setupDefaultProxyAndCache()

void QgsNetworkAccessManager::sendGet( const QNetworkRequest & request )
{
QgsDebugMsg( "Entered" );
QNetworkReply * reply = get( request );
emit requestSent( reply, QObject::sender() );
}

void QgsNetworkAccessManager::deleteReply( QNetworkReply * reply )
{
QgsDebugMsg( "Entered" );
if ( !reply )
{
return;
Expand Down
3 changes: 0 additions & 3 deletions src/core/symbology-ng/qgscptcityarchive.cpp
Expand Up @@ -845,7 +845,6 @@ QgsCptCityCollectionItem::QgsCptCityCollectionItem( QgsCptCityDataItem* parent,

QgsCptCityCollectionItem::~QgsCptCityCollectionItem()
{
// QgsDebugMsg( "Entered" );
Q_FOREACH ( QgsCptCityDataItem* i, mChildren )
{
// QgsDebugMsg( QString( "delete child = 0x%0" ).arg(( qlonglong )i, 8, 16, QLatin1Char( '0' ) ) );
Expand Down Expand Up @@ -1651,7 +1650,6 @@ void QgsCptCityBrowserModel::beginInsertItems( QgsCptCityDataItem *parent, int f
}
void QgsCptCityBrowserModel::endInsertItems()
{
QgsDebugMsg( "Entered" );
endInsertRows();
}
void QgsCptCityBrowserModel::beginRemoveItems( QgsCptCityDataItem *parent, int first, int last )
Expand All @@ -1664,7 +1662,6 @@ void QgsCptCityBrowserModel::beginRemoveItems( QgsCptCityDataItem *parent, int f
}
void QgsCptCityBrowserModel::endRemoveItems()
{
QgsDebugMsg( "Entered" );
endRemoveRows();
}
void QgsCptCityBrowserModel::connectItem( QgsCptCityDataItem* item )
Expand Down
1 change: 0 additions & 1 deletion src/core/symbology-ng/qgsgraduatedsymbolrendererv2.cpp
Expand Up @@ -1628,7 +1628,6 @@ bool valueGreaterThan( const QgsRendererRangeV2 &r1, const QgsRendererRangeV2 &r

void QgsGraduatedSymbolRendererV2::sortByValue( Qt::SortOrder order )
{
QgsDebugMsg( "Entered" );
if ( order == Qt::AscendingOrder )
{
qSort( mRanges.begin(), mRanges.end(), valueLessThan );
Expand Down
5 changes: 0 additions & 5 deletions src/gui/qgsbrowsertreeview.cpp
Expand Up @@ -33,7 +33,6 @@ QgsBrowserTreeView::~QgsBrowserTreeView()

void QgsBrowserTreeView::setModel( QAbstractItemModel* model )
{
QgsDebugMsg( "Entered" );

QTreeView::setModel( model );

Expand All @@ -43,7 +42,6 @@ void QgsBrowserTreeView::setModel( QAbstractItemModel* model )
void QgsBrowserTreeView::showEvent( QShowEvent * e )
{
Q_UNUSED( e );
QgsDebugMsg( "Entered" );
if ( model() )
restoreState();
QTreeView::showEvent( e );
Expand All @@ -53,7 +51,6 @@ void QgsBrowserTreeView::showEvent( QShowEvent * e )
void QgsBrowserTreeView::hideEvent( QHideEvent * e )
{
Q_UNUSED( e );
QgsDebugMsg( "Entered" );
// hideEvent() may be called (Mac) before showEvent
if ( model() )
saveState();
Expand All @@ -62,7 +59,6 @@ void QgsBrowserTreeView::hideEvent( QHideEvent * e )

void QgsBrowserTreeView::saveState()
{
QgsDebugMsg( "Entered" );
QSettings settings;
QStringList expandedPaths = expandedPathsList( QModelIndex() );
settings.setValue( expandedPathsKey(), expandedPaths );
Expand All @@ -71,7 +67,6 @@ void QgsBrowserTreeView::saveState()

void QgsBrowserTreeView::restoreState()
{
QgsDebugMsg( "Entered" );
QSettings settings;
mExpandPaths = settings.value( expandedPathsKey(), QVariant() ).toStringList();

Expand Down

0 comments on commit c63b910

Please sign in to comment.