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:
parent
1b51cbfbea
commit
456deef7b7
2
core.cpp
2
core.cpp
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user