-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathAddressBar.h
More file actions
42 lines (33 loc) · 849 Bytes
/
AddressBar.h
File metadata and controls
42 lines (33 loc) · 849 Bytes
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 COMET_ADDRESSBAR_H
#define COMET_ADDRESSBAR_H
#include <QWidget>
#include <QtWidgets>
class AddressBar : public QWidget
{
Q_OBJECT
public:
explicit AddressBar(QWidget *parent = 0,
bool _disconnectVisible = true,
QString _defaultPath = "");
void updatePath(QString path);
private:
QPushButton* backBtn;
QPushButton* forwardBtn;
QLineEdit* addressEdit;
QPushButton* disconnectBtn;
QString defaultPath;
QStringList backList;
QStringList forwardList;
void setupView();
bool disconnectVisible;
signals:
void updatedPath(QString path);
void disconnect();
public slots:
private slots:
void backButtonClick();
void forwardButtonClick();
void addressEditClick();
void disconnectClicked();
};
#endif // COMET_ADDRESSBAR_H