-
Notifications
You must be signed in to change notification settings - Fork 1
/
fm_news.h
42 lines (34 loc) · 872 Bytes
/
fm_news.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef NEWS_H
#define NEWS_H
#include <QWidget>
#include <QtWidgets/QLabel>
#include <QtWidgets/QVBoxLayout>
#include <QGridLayout>
#include <QPalette>
#include <QPushButton>
class FM_News : public QWidget
{
Q_OBJECT
public:
explicit FM_News(QWidget *parent, QString title, QString data, QString abstract, QString address, bool needfavor);
~FM_News();
QLabel *title_Lab;
QLabel *data_lab;
QLabel *abstract_Lab;
QPushButton *favor_Btn;
QGridLayout *thislayout;
QFrame *line;
bool isFavor;
QString address;
signals:
void FavorNews(bool);
public slots:
void changeFavor(bool);
protected:
void initComponents();
void initSignalAndSlot();
void setThisLayout();
void setThisStyle(QString title, QString data, QString abstract);
void mousePressEvent ( QMouseEvent * event );
};
#endif // NEWS_H