You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
858 B
46 lines
858 B
#ifndef ALBUM_H
|
|
#define ALBUM_H
|
|
|
|
#include <QMainWindow>
|
|
#include <QPropertyAnimation>
|
|
#include <QParallelAnimationGroup>
|
|
#include <QDebug>
|
|
#include <QMouseEvent>
|
|
#include <QString>
|
|
#include "flyme/flyme.h"
|
|
#include <QLabel>
|
|
QT_BEGIN_NAMESPACE
|
|
namespace Ui { class album; }
|
|
QT_END_NAMESPACE
|
|
class FloatingButton;
|
|
|
|
class album : public QMainWindow
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
album(QWidget *parent = nullptr);
|
|
~album();
|
|
bool eventFilter(QObject *watch, QEvent *evn); //事件监听函数
|
|
QLabel *showapp;
|
|
|
|
private:
|
|
Ui::album *ui;
|
|
/*图片的标号*/
|
|
int image_num;
|
|
/*图片的路劲*/
|
|
QString image_path;
|
|
|
|
FloatingButton *floatingbutton;
|
|
|
|
int image_max=10;
|
|
int i;
|
|
void album_init();
|
|
private slots:
|
|
/*悬浮球 */
|
|
void onButtonPressed();
|
|
signals:
|
|
void album_close(bool t);
|
|
};
|
|
#endif // ALBUM_H
|