summaryrefslogtreecommitdiff
path: root/src/frontend/bookshelfmanager/installpage/btinstallprogressdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/bookshelfmanager/installpage/btinstallprogressdialog.cpp')
-rw-r--r--src/frontend/bookshelfmanager/installpage/btinstallprogressdialog.cpp37
1 files changed, 17 insertions, 20 deletions
diff --git a/src/frontend/bookshelfmanager/installpage/btinstallprogressdialog.cpp b/src/frontend/bookshelfmanager/installpage/btinstallprogressdialog.cpp
index 7883220..365d5c8 100644
--- a/src/frontend/bookshelfmanager/installpage/btinstallprogressdialog.cpp
+++ b/src/frontend/bookshelfmanager/installpage/btinstallprogressdialog.cpp
@@ -7,26 +7,22 @@
*
**********/
-#include "btinstallprogressdialog.h"
+#include "frontend/bookshelfmanager/installpage/btinstallprogressdialog.h"
-#include "btinstallthread.h"
-
-#include "util/ctoolclass.h"
-#include "util/cpointers.h"
-#include "backend/managers/cswordbackend.h"
-
-#include <QTreeWidget>
-#include <QTreeWidgetItem>
+#include <QApplication>
+#include <QCloseEvent>
+#include <QDebug>
#include <QDialog>
#include <QHeaderView>
+#include <QMultiMap>
#include <QProgressBar>
#include <QPushButton>
+#include <QTreeWidget>
+#include <QTreeWidgetItem>
#include <QVBoxLayout>
-#include <QApplication>
-#include <QCloseEvent>
-#include <QMultiMap>
-
-#include <QDebug>
+#include "backend/managers/cswordbackend.h"
+#include "frontend/bookshelfmanager/installpage/btinstallthread.h"
+#include "util/cpointers.h"
BtInstallProgressDialog::BtInstallProgressDialog(QWidget* parent, QTreeWidget* selectedModulesTreeWidget, QString destination)
@@ -41,7 +37,7 @@ BtInstallProgressDialog::BtInstallProgressDialog(QWidget* parent, QTreeWidget* s
m_statusWidget->header()->setStretchLastSection(false);
m_statusWidget->header()->setResizeMode(1, QHeaderView::Stretch);
m_statusWidget->header()->setMovable(false);
- //m_statusWidget->setColumnWidth(1, CToolClass::mWidth(m_statusWidget, 2));
+ //m_statusWidget->setColumnWidth(1, util::tool::mWidth(m_statusWidget, 2));
foreach (QTreeWidgetItem* sourceItem, selectedModulesTreeWidget->invisibleRootItem()->takeChildren()) {
// create items and threads for modules under this source
@@ -125,7 +121,7 @@ void BtInstallProgressDialog::startThreads() {
t->start();
}
- qDebug("BtInstallProgressDialog::startThreads end");
+ qDebug() << "BtInstallProgressDialog::startThreads end";
}
BtInstallProgressDialog::~BtInstallProgressDialog() {}
@@ -133,7 +129,8 @@ BtInstallProgressDialog::~BtInstallProgressDialog() {}
void BtInstallProgressDialog::slotOneItemCompleted(QString module, QString source, int status) {
QString message;
- //status comes from the sword installer. TODO: Additionally we should check that there are files really installed.
+ //status comes from the sword installer.
+ /// \todo Additionally we should check that there are files really installed.
if (status != 0) {
message = tr("Failed");
}
@@ -189,7 +186,7 @@ void BtInstallProgressDialog::oneItemStoppedOrCompleted(QString module, QString
}
void BtInstallProgressDialog::slotStopInstall() {
- qDebug("BtInstallProgressDialog::slotStopInstall");
+ qDebug() << "BtInstallProgressDialog::slotStopInstall";
// Clear the waiting threads map, stop all running threads.
@@ -205,7 +202,7 @@ void BtInstallProgressDialog::slotStopInstall() {
}
void BtInstallProgressDialog::slotStatusUpdated(QString module, int status) {
- //qDebug("BtInstallProgressDialog::slotStatusUpdated");
+ //qDebug() << "BtInstallProgressDialog::slotStatusUpdated";
//qDebug() << "module:" << module << "status:" << status;
// find the progress bar for this module and update the value
QWidget* itemWidget = m_statusWidget->itemWidget(getItem(module) , 1);
@@ -234,7 +231,7 @@ QTreeWidgetItem* BtInstallProgressDialog::getItem(QString moduleName) {
}
void BtInstallProgressDialog::closeEvent(QCloseEvent* event) {
- qDebug("BtInstallProgressDialog::closeEvent");
+ qDebug() << "BtInstallProgressDialog::closeEvent";
if (event->spontaneous()) {
event->ignore();