forked from blue/squawk
0.2.0 finalization
This commit is contained in:
parent
8a2658e4fc
commit
4d3ba6b11f
12 changed files with 194 additions and 179 deletions
|
@ -38,7 +38,7 @@
|
|||
*/
|
||||
class Preview {
|
||||
public:
|
||||
Preview(const QString& pPath, const QSize& pMaxSize, const QPoint& pos, bool pRight, QWidget* parent);
|
||||
Preview(const QString& pPath, const QSize& pMaxSize, const QPoint& pos, QWidget* parent);
|
||||
~Preview();
|
||||
|
||||
void actualize(const QString& newPath, const QSize& newSize, const QPoint& newPoint);
|
||||
|
@ -51,6 +51,7 @@ public:
|
|||
static void initializeFont(const QFont& newFont);
|
||||
static QSize constrainAttachSize(QSize src, QSize bounds);
|
||||
static QSize calculateAttachSize(const QString& path, const QRect& bounds);
|
||||
static bool canVisualize(const Shared::Global::FileInfo& info);
|
||||
static QFont font;
|
||||
static QFontMetrics metrics;
|
||||
|
||||
|
@ -64,7 +65,6 @@ private:
|
|||
|
||||
private:
|
||||
Shared::Global::FileInfo info;
|
||||
QString path;
|
||||
QSize maxSize;
|
||||
QSize actualSize;
|
||||
QSize cachedLabelSize;
|
||||
|
@ -75,7 +75,6 @@ private:
|
|||
QMovie* movie;
|
||||
bool fileReachable;
|
||||
bool actualPreview;
|
||||
bool right;
|
||||
};
|
||||
|
||||
#endif // PREVIEW_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue