Changeset View
Changeset View
Standalone View
Standalone View
krusader/BookMan/krbookmark.h
Show All 30 Lines | |||||
31 | class KActionCollection; | 31 | class KActionCollection; | ||
32 | class ListPanelActions; | 32 | class ListPanelActions; | ||
33 | 33 | | |||
34 | 34 | | |||
35 | class KrBookmark: public QAction | 35 | class KrBookmark: public QAction | ||
36 | { | 36 | { | ||
37 | Q_OBJECT | 37 | Q_OBJECT | ||
38 | public: | 38 | public: | ||
39 | KrBookmark(QString name, QUrl url, KActionCollection *parent, QString icon = "", QString actionName = QString()); | 39 | KrBookmark(QString name, QUrl url, KActionCollection *parent, QString iconName = "", QString actionName = QString()); | ||
40 | explicit KrBookmark(QString name, QString iconName = ""); // creates a folder | 40 | explicit KrBookmark(QString name, QString iconName = ""); // creates a folder | ||
41 | ~KrBookmark(); | 41 | ~KrBookmark(); | ||
42 | | ||||
42 | // text() and setText() to change the name of the bookmark | 43 | // text() and setText() to change the name of the bookmark | ||
43 | // icon() and setIcon() to change icons | 44 | // icon() and setIcon() to change icons | ||
45 | | ||||
46 | void setIconName(QString iconName); | ||||
47 | | ||||
44 | inline const QString& iconName() const { | 48 | inline const QString& iconName() const { | ||
45 | return _iconName; | 49 | return _iconName; | ||
46 | } | 50 | } | ||
51 | | ||||
47 | inline const QUrl &url() const { | 52 | inline const QUrl &url() const { | ||
48 | return _url; | 53 | return _url; | ||
49 | } | 54 | } | ||
50 | inline void setURL(const QUrl &url) { | 55 | inline void setURL(const QUrl &url) { | ||
51 | _url = url; | 56 | _url = url; | ||
52 | } | 57 | } | ||
53 | inline bool isFolder() const { | 58 | inline bool isFolder() const { | ||
54 | return _folder; | 59 | return _folder; | ||
Show All 34 Lines |