diff options
Diffstat (limited to 'src/frontend/keychooser/cbooktreechooser.cpp')
-rw-r--r-- | src/frontend/keychooser/cbooktreechooser.cpp | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/src/frontend/keychooser/cbooktreechooser.cpp b/src/frontend/keychooser/cbooktreechooser.cpp index e348005..db55dca 100644 --- a/src/frontend/keychooser/cbooktreechooser.cpp +++ b/src/frontend/keychooser/cbooktreechooser.cpp @@ -6,21 +6,20 @@ * The BibleTime source code is licensed under the GNU General Public License version 2.0. * **********/ -#include "cbooktreechooser.h" -#include "bthistory.h" - -#include "backend/keys/cswordtreekey.h" -#include "backend/drivers/cswordbookmoduleinfo.h" -#include "backend/config/cbtconfig.h" +#include "frontend/keychooser/cbooktreechooser.h" +#include <QApplication> +#include <QDebug> #include <QHBoxLayout> +#include <QHeaderView> #include <QTreeWidget> #include <QTreeWidgetItem> -#include <QHeaderView> -#include <QApplication> +#include "backend/config/cbtconfig.h" +#include "backend/drivers/cswordbookmoduleinfo.h" +#include "backend/keys/cswordtreekey.h" +#include "frontend/keychooser/bthistory.h" -#include <QDebug> CBookTreeChooser::CBookTreeChooser(QList<CSwordModuleInfo*> modules, CSwordKey *key, QWidget *parent) : CKeyChooser(modules, key, parent), @@ -60,7 +59,7 @@ void CBookTreeChooser::setKey(CSwordKey* key) { /** Sets a new key to this keychooser. Inherited from ckeychooser. */ void CBookTreeChooser::setKey(CSwordKey* newKey, const bool emitSignal) { - qDebug("CBookTreeChooser::setKey"); + qDebug() << "CBookTreeChooser::setKey"; if (m_key != newKey ) { m_key = dynamic_cast<CSwordTreeKey*>(newKey); @@ -131,13 +130,13 @@ void CBookTreeChooser::refreshContent() { } -//TODO: itemActivated is called too many times. As tested in GDB, the function +/// \todo itemActivated is called too many times. As tested in GDB, the function //is called twice with the pointer to the correct book and twice with a null //pointer. /** Slot for signal when item is selected by user. */ void CBookTreeChooser::itemActivated( QTreeWidgetItem* item ) { - qDebug("CBookTreeChooser::itemActivated"); + qDebug() << "CBookTreeChooser::itemActivated"; //Sometimes Qt calls this function with a null pointer. if (item) { m_key->key(item->text(1)); |