diff options
Diffstat (limited to 'src/frontend/keychooser/ckeychooserwidget.cpp')
-rw-r--r-- | src/frontend/keychooser/ckeychooserwidget.cpp | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/src/frontend/keychooser/ckeychooserwidget.cpp b/src/frontend/keychooser/ckeychooserwidget.cpp index 88b7ed7..a11bd6f 100644 --- a/src/frontend/keychooser/ckeychooserwidget.cpp +++ b/src/frontend/keychooser/ckeychooserwidget.cpp @@ -7,20 +7,17 @@ * **********/ +#include "frontend/keychooser/ckeychooserwidget.h" -//BibleTime includes -#include "ckeychooserwidget.h" - -#include "cscrollerwidgetset.h" - -//Qt includes -#include <QString> -#include <QWheelEvent> +#include <QComboBox> +#include <QDebug> #include <QFocusEvent> #include <QHBoxLayout> -#include <QComboBox> #include <QLineEdit> -#include <QDebug> +#include <QString> +#include <QWheelEvent> +#include "frontend/keychooser/cscrollerwidgetset.h" + class BtKeyLineEdit : public QLineEdit { public: @@ -133,7 +130,7 @@ void CKeyChooserWidget::reset(const int count, int index, bool do_emit) { // return; m_list.clear(); - for (int i = 1; i <= count; i++) { //TODO: CHECK + for (int i = 1; i <= count; i++) { /// \todo CHECK m_list.append( QString::number(i) ); } @@ -196,7 +193,7 @@ void CKeyChooserWidget::reset(QStringList *list, int index, bool do_emit) { /** Initializes this widget. We need this function because we have more than one constructor. */ void CKeyChooserWidget::init() { - qDebug("CKeyChooserWidget::init"); + qDebug() << "CKeyChooserWidget::init"; oldKey = QString::null; setFocusPolicy(Qt::WheelFocus); @@ -237,7 +234,7 @@ void CKeyChooserWidget::init() { /** Is called when the return key was presed in the combobox. */ void CKeyChooserWidget::slotReturnPressed( /*const QString& text*/) { Q_ASSERT(comboBox()->lineEdit()); - qDebug("return pressed"); + qDebug() << "return pressed"; QString text = comboBox()->lineEdit()->text(); for (int index = 0; index < comboBox()->count(); ++index) { @@ -251,7 +248,7 @@ void CKeyChooserWidget::slotReturnPressed( /*const QString& text*/) { /** Is called when the current item of the combo box was changed. */ void CKeyChooserWidget::slotComboChanged(int index) { - qDebug("CKeyChooserWidget::slotComboChanged(int index)"); + qDebug() << "CKeyChooserWidget::slotComboChanged(int index)"; if (!updatesEnabled()) { return; } |