Changeset View
Changeset View
Standalone View
Standalone View
app/urlinfo.h
Show First 20 Lines • Show All 96 Lines • ▼ Show 20 Line(s) | 37 | public: | |||
---|---|---|---|---|---|
97 | QUrl url; | 97 | QUrl url; | ||
98 | 98 | | |||
99 | /** | 99 | /** | ||
100 | * initial cursor position, if any found inside the path as line/column specification at the end | 100 | * initial cursor position, if any found inside the path as line/column specification at the end | ||
101 | */ | 101 | */ | ||
102 | KTextEditor::Cursor cursor; | 102 | KTextEditor::Cursor cursor; | ||
103 | }; | 103 | }; | ||
104 | 104 | | |||
105 | Q_DECLARE_TYPEINFO(UrlInfo, Q_MOVABLE_TYPE); | ||||
106 | | ||||
105 | QDataStream& operator<<(QDataStream& stream, const UrlInfo& info) | 107 | QDataStream& operator<<(QDataStream& stream, const UrlInfo& info) | ||
106 | { | 108 | { | ||
107 | stream << info.url; | 109 | stream << info.url; | ||
108 | stream << info.cursor.line(); | 110 | stream << info.cursor.line(); | ||
109 | stream << info.cursor.column(); | 111 | stream << info.cursor.column(); | ||
110 | return stream; | 112 | return stream; | ||
111 | } | 113 | } | ||
112 | 114 | | |||
Show All 12 Lines |