Changeset View
Changeset View
Standalone View
Standalone View
imageslistview.h
Show All 15 Lines | |||||
16 | ***************************************************************************/ | 16 | ***************************************************************************/ | ||
17 | 17 | | |||
18 | #ifndef _IMAGESLISTVIEW_H_ | 18 | #ifndef _IMAGESLISTVIEW_H_ | ||
19 | #define _IMAGESLISTVIEW_H_ | 19 | #define _IMAGESLISTVIEW_H_ | ||
20 | 20 | | |||
21 | #include <QTreeWidget> | 21 | #include <QTreeWidget> | ||
22 | #include <QLinkedList> | 22 | #include <QLinkedList> | ||
23 | 23 | | |||
24 | #include <kurl.h> | 24 | #include <QUrl> | ||
25 | 25 | | |||
26 | #include "kimagemapeditor.h" | 26 | #include "kimagemapeditor.h" | ||
27 | 27 | | |||
28 | class ImagesListView; | 28 | class ImagesListView; | ||
29 | 29 | | |||
30 | class ImagesListViewItem : public QTreeWidgetItem | 30 | class ImagesListViewItem : public QTreeWidgetItem | ||
31 | { | 31 | { | ||
32 | public: | 32 | public: | ||
▲ Show 20 Lines • Show All 54 Lines • ▼ Show 20 Line(s) | 53 | public: | |||
87 | /** | 87 | /** | ||
88 | * Selects the given image | 88 | * Selects the given image | ||
89 | */ | 89 | */ | ||
90 | void selectImage(ImageTag*); | 90 | void selectImage(ImageTag*); | ||
91 | 91 | | |||
92 | /** | 92 | /** | ||
93 | * Sets the base URL of all images | 93 | * Sets the base URL of all images | ||
94 | */ | 94 | */ | ||
95 | void setBaseUrl(const KUrl & url) { _baseUrl = url; }; | 95 | void setBaseUrl(const QUrl & url) { _baseUrl = url; }; | ||
96 | 96 | | |||
97 | protected slots: | 97 | protected slots: | ||
98 | void slotSelectionChanged(); | 98 | void slotSelectionChanged(); | ||
99 | 99 | | |||
100 | signals: | 100 | signals: | ||
101 | void imageSelected(const KUrl &); | 101 | void imageSelected(const QUrl &); | ||
102 | 102 | | |||
103 | protected: | 103 | protected: | ||
104 | KUrl _baseUrl; | 104 | QUrl _baseUrl; | ||
105 | 105 | | |||
106 | /** | 106 | /** | ||
107 | * Finds the first ImageListViewItem with the given ImageTag | 107 | * Finds the first ImageListViewItem with the given ImageTag | ||
108 | * Returns 0L if no item was found | 108 | * Returns 0L if no item was found | ||
109 | */ | 109 | */ | ||
110 | ImagesListViewItem* findListViewItem(ImageTag*); | 110 | ImagesListViewItem* findListViewItem(ImageTag*); | ||
111 | }; | 111 | }; | ||
112 | 112 | | |||
113 | #endif | 113 | #endif |