1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Fix file transfer buttons spacing

This commit is contained in:
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); 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) 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); QThread::sleep(0);
continue; continue;
} }

View File

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