| 63 | } |
| 64 | |
| 65 | SendingHandler::SendingHandler(QObject *parent, QPushButton *cancelBtn, QProgressBar *bar, QTableWidget *table) : QObject{parent} { |
| 66 | m_progressBar = bar; |
| 67 | m_btnCancelTransfer = cancelBtn; |
| 68 | m_table = table; |
| 69 | |
| 70 | bar->setMinimum(0); |
| 71 | bar->setMinimumWidth(0); |
| 72 | bar->setMaximumWidth(200); |
| 73 | bar->setTextVisible(false); |
| 74 | bar->setValue(0); |
| 75 | bar->setVisible(false); |
| 76 | m_btnCancelTransfer->setVisible(false); |
| 77 | m_iconSend.addPixmap(QPixmap(":/icons/resources/icons/variables.png")); |
| 78 | m_iconCheck.addPixmap(QPixmap(":/icons/resources/icons/check.png")); |
| 79 | m_btnCancelTransfer->setIcon(QIcon(QPixmap(":/icons/resources/icons/exit.png"))); |
| 80 | m_iconCheckGray.addPixmap(QPixmap(":/icons/resources/icons/checkgray.png")); |
| 81 | |
| 82 | connect(m_btnCancelTransfer, &QPushButton::clicked, this, &SendingHandler::cancelTransfer); |
| 83 | } |
| 84 | |
| 85 | void SendingHandler::dropOccured(QDropEvent *e, int location) { |
| 86 | if (guiSend || guiDebug) { |
nothing calls this directly
no outgoing calls
no test coverage detected