Fix file transfer buttons spacing

pull/2/head
Tux3 / Mlkj / !Lev.uXFMLA 2014-06-26 20:13:37 +02:00
parent 1b51cbfbea
commit 456deef7b7
2 changed files with 5 additions and 4 deletions

View File

@ -935,7 +935,7 @@ void Core::sendAllFileData(Core *core, ToxFile* file)
QByteArray toSend = file->fileData.mid(file->bytesSent, chunkSize);
if (tox_file_send_data(core->tox, file->friendId, file->fileNum, (uint8_t*)toSend.data(), toSend.size()) == -1)
{
qWarning("Core::fileHeartbeat: Error sending data chunk");
//qWarning("Core::fileHeartbeat: Error sending data chunk");
QThread::sleep(0);
continue;
}

View File

@ -63,12 +63,12 @@ FileTransfertWidget::FileTransfertWidget(ToxFile File)
QPalette toxgreen;
toxgreen.setColor(QPalette::Button, QColor(107,194,96)); // Tox Green
topright->setIconSize(QSize(10,10));
topright->setFixedSize(24,24);
topright->setFixedSize(25,25);
topright->setFlat(true);
topright->setAutoFillBackground(true);
topright->setPalette(toxgreen);
bottomright->setIconSize(QSize(10,10));
bottomright->setFixedSize(24,24);
bottomright->setFixedSize(25,25);
bottomright->setFlat(true);
bottomright->setAutoFillBackground(true);
bottomright->setPalette(toxgreen);
@ -89,9 +89,10 @@ FileTransfertWidget::FileTransfertWidget(ToxFile File)
textLayout->setSpacing(5);
buttonLayout->addWidget(topright);
buttonLayout->addSpacing(2);
buttonLayout->addWidget(bottomright);
buttonLayout->setMargin(0);
buttonLayout->setSpacing(2);
buttonLayout->setSpacing(0);
}
QString FileTransfertWidget::getHumanReadableSize(int size)