#include <filetransferwidget.h>
|
static bool | tryRemoveFile (const QString &filepath) |
| Dangerous way to find out if a path is writable. More...
|
|
Definition at line 37 of file filetransferwidget.h.
◆ FileTransferWidget()
FileTransferWidget::FileTransferWidget |
( |
QWidget * |
parent, |
|
|
CoreFile & |
_coreFile, |
|
|
ToxFile |
file |
|
) |
| |
|
explicit |
◆ ~FileTransferWidget()
FileTransferWidget::~FileTransferWidget |
( |
| ) |
|
|
virtual |
◆ acceptTransfer()
void FileTransferWidget::acceptTransfer |
( |
const QString & |
filepath | ) |
|
|
protected |
◆ drawButtonAreaNeeded()
bool FileTransferWidget::drawButtonAreaNeeded |
( |
| ) |
const |
|
protected |
◆ handleButton()
void FileTransferWidget::handleButton |
( |
QPushButton * |
btn | ) |
|
|
protected |
◆ isActive()
bool FileTransferWidget::isActive |
( |
| ) |
const |
◆ onFileTransferUpdate()
void FileTransferWidget::onFileTransferUpdate |
( |
ToxFile |
file | ) |
|
◆ onLeftButtonClicked
void FileTransferWidget::onLeftButtonClicked |
( |
| ) |
|
|
privateslot |
◆ onPreviewButtonClicked
void FileTransferWidget::onPreviewButtonClicked |
( |
| ) |
|
|
privateslot |
◆ onRightButtonClicked
void FileTransferWidget::onRightButtonClicked |
( |
| ) |
|
|
privateslot |
◆ paintEvent()
void FileTransferWidget::paintEvent |
( |
QPaintEvent * |
| ) |
|
|
finalprotected |
◆ reloadTheme
void FileTransferWidget::reloadTheme |
( |
| ) |
|
|
slot |
◆ setBackgroundColor()
void FileTransferWidget::setBackgroundColor |
( |
const QColor & |
c, |
|
|
bool |
whiteFont |
|
) |
| |
|
protected |
◆ setButtonColor()
void FileTransferWidget::setButtonColor |
( |
const QColor & |
c | ) |
|
|
protected |
◆ setupButtons()
void FileTransferWidget::setupButtons |
( |
ToxFile const & |
file | ) |
|
|
protected |
◆ showPreview()
void FileTransferWidget::showPreview |
( |
const QString & |
filename | ) |
|
|
protected |
◆ tryRemoveFile()
bool FileTransferWidget::tryRemoveFile |
( |
const QString & |
filepath | ) |
|
|
staticprivate |
Dangerous way to find out if a path is writable.
- Parameters
-
filepath | Path to file which should be deleted. |
- Returns
- True, if file writeable, false otherwise.
Definition at line 114 of file filetransferwidget.cpp.
◆ updateBackgroundColor()
◆ updateFileProgress()
void FileTransferWidget::updateFileProgress |
( |
ToxFile const & |
file | ) |
|
|
protected |
◆ updatePreview()
void FileTransferWidget::updatePreview |
( |
ToxFile const & |
file | ) |
|
|
protected |
◆ updateSignals()
void FileTransferWidget::updateSignals |
( |
ToxFile const & |
file | ) |
|
|
protected |
◆ updateWidget()
void FileTransferWidget::updateWidget |
( |
ToxFile const & |
file | ) |
|
|
private |
◆ updateWidgetColor()
void FileTransferWidget::updateWidgetColor |
( |
ToxFile const & |
file | ) |
|
|
protected |
◆ updateWidgetText()
void FileTransferWidget::updateWidgetText |
( |
ToxFile const & |
file | ) |
|
|
protected |
◆ active
bool FileTransferWidget::active |
|
private |
◆ backgroundColor
QColor FileTransferWidget::backgroundColor |
|
private |
◆ backgroundColorAnimation
QVariantAnimation* FileTransferWidget::backgroundColorAnimation = nullptr |
|
private |
◆ buttonBackgroundColor
QColor FileTransferWidget::buttonBackgroundColor |
|
private |
◆ buttonColor
QColor FileTransferWidget::buttonColor |
|
private |
◆ buttonColorAnimation
QVariantAnimation* FileTransferWidget::buttonColorAnimation = nullptr |
|
private |
◆ coreFile
◆ fileInfo
ToxFile FileTransferWidget::fileInfo |
|
private |
◆ lastStatus
◆ lastTransmissionUpdate
QTime FileTransferWidget::lastTransmissionUpdate |
|
private |
◆ ui
Ui::FileTransferWidget* FileTransferWidget::ui |
|
private |
The documentation for this class was generated from the following files: