Changeset View
Changeset View
Standalone View
Standalone View
krusader/Dialogs/popularurls.h
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Line(s) | |||||
48 | } UrlNode; | 48 | } UrlNode; | ||
49 | 49 | | |||
50 | class PopularUrlsDlg; | 50 | class PopularUrlsDlg; | ||
51 | 51 | | |||
52 | class PopularUrls : public QObject | 52 | class PopularUrls : public QObject | ||
53 | { | 53 | { | ||
54 | Q_OBJECT | 54 | Q_OBJECT | ||
55 | public: | 55 | public: | ||
56 | explicit PopularUrls(QObject *parent = 0); | 56 | explicit PopularUrls(QObject *parent = nullptr); | ||
57 | ~PopularUrls(); | 57 | ~PopularUrls() override; | ||
58 | void save(); | 58 | void save(); | ||
59 | void load(); | 59 | void load(); | ||
60 | void addUrl(const QUrl& url); | 60 | void addUrl(const QUrl& url); | ||
61 | QList<QUrl> getMostPopularUrls(int max); | 61 | QList<QUrl> getMostPopularUrls(int max); | ||
62 | 62 | | |||
63 | public slots: | 63 | public slots: | ||
64 | void showDialog(); | 64 | void showDialog(); | ||
65 | 65 | | |||
Show All 20 Lines | |||||
86 | class KTreeWidgetSearchLine; | 86 | class KTreeWidgetSearchLine; | ||
87 | class QModelIndex; | 87 | class QModelIndex; | ||
88 | 88 | | |||
89 | class PopularUrlsDlg: public QDialog | 89 | class PopularUrlsDlg: public QDialog | ||
90 | { | 90 | { | ||
91 | Q_OBJECT | 91 | Q_OBJECT | ||
92 | public: | 92 | public: | ||
93 | PopularUrlsDlg(); | 93 | PopularUrlsDlg(); | ||
94 | ~PopularUrlsDlg(); | 94 | ~PopularUrlsDlg() override; | ||
95 | void run(QList<QUrl> list); // use this to open the dialog | 95 | void run(QList<QUrl> list); // use this to open the dialog | ||
96 | inline int result() const { | 96 | inline int result() const { | ||
97 | return selection; | 97 | return selection; | ||
98 | } // returns index 0 - topmost, or -1 | 98 | } // returns index 0 - topmost, or -1 | ||
99 | 99 | | |||
100 | 100 | | |||
101 | protected slots: | 101 | protected slots: | ||
102 | void slotVisibilityChanged(); | 102 | void slotVisibilityChanged(); | ||
Show All 9 Lines |