From: Flavio Tordini Date: Sun, 30 Aug 2009 17:04:45 +0000 (+0200) Subject: Commented debug statements X-Git-Tag: 0.6~35 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f896b1ecf602ba1504ed1018f50534d60f02d5c7;p=minitube Commented debug statements --- diff --git a/src/googlesuggest.cpp b/src/googlesuggest.cpp index 234fe61..141bf23 100644 --- a/src/googlesuggest.cpp +++ b/src/googlesuggest.cpp @@ -60,6 +60,7 @@ bool GSuggestCompletion::eventFilter(QObject *obj, QEvent *ev) { QKeyEvent *keyEvent = static_cast(ev); int key = keyEvent->key(); + // qDebug() << keyEvent->text(); switch (key) { case Qt::Key_Enter: case Qt::Key_Return: @@ -89,7 +90,7 @@ bool GSuggestCompletion::eventFilter(QObject *obj, QEvent *ev) { break; default: - + qDebug() << keyEvent->text(); editor->setFocus(); editor->event(ev); popup->hide(); @@ -157,7 +158,7 @@ void GSuggestCompletion::autoSuggest() { QString query = editor->text(); originalText = query; - qDebug() << "originalText" << originalText; + // qDebug() << "originalText" << originalText; if (query.isEmpty()) return; QString locale = QLocale::system().name().replace("_", "-"); @@ -193,7 +194,7 @@ void GSuggestCompletion::handleNetworkData(QByteArray response) { void GSuggestCompletion::currentItemChanged(QListWidgetItem *current) { if (current) { - qDebug() << "current" << current->text(); + // qDebug() << "current" << current->text(); current->setSelected(true); editor->setText(current->text()); editor->setSelection(originalText.length(), editor->text().length());