forked from blue/squawk
aspectRation handling for images, other then images types of downloads, progress fix, labels, context menu to open files
This commit is contained in:
parent
94a3766aaf
commit
cc54c6393a
10 changed files with 307 additions and 80 deletions
|
@ -25,8 +25,14 @@
|
|||
#include <QLabel>
|
||||
#include <QGraphicsDropShadowEffect>
|
||||
#include <QPushButton>
|
||||
#include <QProgressBar>
|
||||
#include <QAction>
|
||||
#include <QDesktopServices>
|
||||
#include <QUrl>
|
||||
|
||||
#include "../../global.h"
|
||||
#include "../utils/resizer.h"
|
||||
#include "../utils/image.h"
|
||||
|
||||
/**
|
||||
* @todo write docs
|
||||
|
@ -58,15 +64,21 @@ private:
|
|||
QGraphicsDropShadowEffect* shadow;
|
||||
QPushButton* downloadButton;
|
||||
QLabel* file;
|
||||
QLabel* progress;
|
||||
QProgressBar* progress;
|
||||
QLabel* fileComment;
|
||||
bool hasDownloadButton;
|
||||
bool hasProgress;
|
||||
bool hasFile;
|
||||
bool commentAdded;
|
||||
|
||||
private slots:
|
||||
void onDownload();
|
||||
|
||||
|
||||
private:
|
||||
void hideDownload();
|
||||
void hideProgress();
|
||||
void hideFile();
|
||||
void hideComment();
|
||||
};
|
||||
|
||||
#endif // MESSAGE_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue