Uncomment qDebugs for debugging
This commit is contained in:
		
					parent
					
						
							
								7afc82127f
							
						
					
				
			
			
				commit
				
					
						9b47e26bcb
					
				
			
		
					 1 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
					@ -106,6 +106,7 @@ void DanbooruService::getPostList()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void DanbooruService::getTagList(int limit, QString name)
 | 
					void DanbooruService::getTagList(int limit, QString name)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    QMap<QString, QString> parameters;
 | 
					    QMap<QString, QString> parameters;
 | 
				
			||||||
| 
						 | 
					@ -168,7 +169,7 @@ void DanbooruService::getPool(int poolId, int page)
 | 
				
			||||||
    QUrl danbooruUrl = requestUrl(m_url, POOL_DATA_URL, m_username,
 | 
					    QUrl danbooruUrl = requestUrl(m_url, POOL_DATA_URL, m_username,
 | 
				
			||||||
                                  m_password, parameters);
 | 
					                                  m_password, parameters);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    //qDebug() << "Final constructed pool URL" << danbooruUrl.url();
 | 
					    qDebug() << "Final constructed pool URL" << danbooruUrl.url();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    KIO::StoredTransferJob *job = KIO::storedGet(danbooruUrl, KIO::NoReload,
 | 
					    KIO::StoredTransferJob *job = KIO::storedGet(danbooruUrl, KIO::NoReload,
 | 
				
			||||||
                                  KIO::HideProgressInfo);
 | 
					                                  KIO::HideProgressInfo);
 | 
				
			||||||
| 
						 | 
					@ -197,7 +198,7 @@ void DanbooruService::getPoolList()
 | 
				
			||||||
                                 m_password, map);
 | 
					                                 m_password, map);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    //qDebug() << "Final constructed pool list URL" << danbooruUrl.url();
 | 
					    qDebug() << "Final constructed pool list URL" << danbooruUrl.url();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    KIO::StoredTransferJob *job = KIO::storedGet(danbooruUrl, KIO::NoReload,
 | 
					    KIO::StoredTransferJob *job = KIO::storedGet(danbooruUrl, KIO::NoReload,
 | 
				
			||||||
                                  KIO::HideProgressInfo);
 | 
					                                  KIO::HideProgressInfo);
 | 
				
			||||||
| 
						 | 
					@ -427,6 +428,7 @@ void DanbooruService::processPostList(KJob *job)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    for (auto element : postList) {
 | 
					    for (auto element : postList) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        QVariantMap map = element.toMap();
 | 
					        QVariantMap map = element.toMap();
 | 
				
			||||||
        DanbooruPost *post = new DanbooruPost(map);
 | 
					        DanbooruPost *post = new DanbooruPost(map);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue