diff options
Diffstat (limited to 'src/frontend/bookshelfmanager/installpage/btinstallmodulechooserdialog.cpp')
-rw-r--r-- | src/frontend/bookshelfmanager/installpage/btinstallmodulechooserdialog.cpp | 129 |
1 files changed, 13 insertions, 116 deletions
diff --git a/src/frontend/bookshelfmanager/installpage/btinstallmodulechooserdialog.cpp b/src/frontend/bookshelfmanager/installpage/btinstallmodulechooserdialog.cpp index 1668a87..8fd87ec 100644 --- a/src/frontend/bookshelfmanager/installpage/btinstallmodulechooserdialog.cpp +++ b/src/frontend/bookshelfmanager/installpage/btinstallmodulechooserdialog.cpp @@ -1,132 +1,29 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - /********* * * This file is part of BibleTime's source code, http://www.bibletime.info/. * -* Copyright 1999-2008 by the BibleTime developers. +* Copyright 1999-2009 by the BibleTime developers. * The BibleTime source code is licensed under the GNU General Public License version 2.0. * **********/ -#include "btinstallmodulechooserdialog.h" +#include "frontend/bookshelfmanager/installpage/btinstallmodulechooserdialog.h" -#include "frontend/cmodulechooserdialog.h" -#include "backend/drivers/cswordmoduleinfo.h" -#include "backend/btmoduletreeitem.h" - -#include <QString> +#include <QBrush> +#include <QDebug> #include <QList> -#include <QWidget> +#include <QPushButton> #include <QString> #include <QTreeWidgetItem> -#include <QBrush> -#include <QPushButton> - -#include <QDebug> +#include <QWidget> +#include "backend/btmoduletreeitem.h" +#include "backend/drivers/cswordmoduleinfo.h" +#include "frontend/cmodulechooserdialog.h" BtInstallModuleChooserDialog::BtInstallModuleChooserDialog(QWidget* parent, QString title, QString label, QList<CSwordModuleInfo*>* empty) : CModuleChooserDialog(parent, title, label, empty) { - qDebug("BtInstallModuleChooserDialog::BtInstallModuleChooserDialog start"); + qDebug() << "BtInstallModuleChooserDialog::BtInstallModuleChooserDialog start"; init(); okButton()->setText(tr("Install")); m_nameList = QStringList(); @@ -163,16 +60,16 @@ void BtInstallModuleChooserDialog::initModuleItem(QString name, QTreeWidgetItem* void BtInstallModuleChooserDialog::slotItemChecked(QTreeWidgetItem* item, int column) { QString moduleName = item->text(0); - qDebug("BtInstallModuleChooserDialog::slotItemChecked start"); + qDebug() << "BtInstallModuleChooserDialog::slotItemChecked start"; // handle only non-toplevel items which has duplicates and where the first column was changed if (item->parent() && column == 0 && (findModuleItemsByName(moduleName).count() > 1)) { //prevent handling when the color is changed if (item->data(1, Qt::UserRole).toBool() == false) { - qDebug("was not updating"); + qDebug() << "was not updating"; item->setData(1, Qt::UserRole, true); } else { - qDebug("was updating"); + qDebug() << "was updating"; item->setData(1, Qt::UserRole, false); return; } |