-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathweblist.h
44 lines (37 loc) · 847 Bytes
/
weblist.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
43
44
#ifndef WEBLIST_H
#define WEBLIST_H
#include<QtHeaderFiles.h>
#include<mainwindow.h>
#ifndef qout
#define qout qDebug()
#endif
class WebList;
class LinkInfo{
QString name,link;
public:
LinkInfo(QString _name="",QString _link="");
friend class WebList;
friend bool operator == (const LinkInfo&,const LinkInfo&);
};
class WebList : public QWidget
{
Q_OBJECT
public:
explicit WebList(QWidget *parent = nullptr);
QVBoxLayout* whole_layout;
QListWidget* web_list;
QList<LinkInfo> info_list;
QPushButton* but;
QFile* link_file;
QMenu* menu;
QListWidgetItem* curr_item;
void refresh();
void new_link();
void action_reflect(QAction* action);
void show_menu(QPoint pos);
void del_link();
void open_link(QListWidgetItem*);
~WebList();
signals:
};
#endif // WEBLIST_H