Changeset View
Changeset View
Standalone View
Standalone View
part.cpp
Show First 20 Lines • Show All 172 Lines • ▼ Show 20 Line(s) | 153 | { | |||
---|---|---|---|---|---|
173 | return retFile; | 173 | return retFile; | ||
174 | } | 174 | } | ||
175 | 175 | | |||
176 | private: | 176 | private: | ||
177 | std::FILE * m_handle; | 177 | std::FILE * m_handle; | ||
178 | }; | 178 | }; | ||
179 | #endif | 179 | #endif | ||
180 | 180 | | |||
181 | K_PLUGIN_FACTORY(OkularPartFactory, registerPlugin<Okular::Part>();) | 181 | K_PLUGIN_FACTORY_WITH_JSON(OkularPartFactory, "okular_part.json", registerPlugin<Okular::Part>();) | ||
182 | 182 | | |||
183 | static QAction* actionForExportFormat( const Okular::ExportFormat& format, QObject *parent = Q_NULLPTR ) | 183 | static QAction* actionForExportFormat( const Okular::ExportFormat& format, QObject *parent = Q_NULLPTR ) | ||
184 | { | 184 | { | ||
185 | QAction *act = new QAction( format.description(), parent ); | 185 | QAction *act = new QAction( format.description(), parent ); | ||
186 | if ( !format.icon().isNull() ) | 186 | if ( !format.icon().isNull() ) | ||
187 | { | 187 | { | ||
188 | act->setIcon( format.icon() ); | 188 | act->setIcon( format.icon() ); | ||
189 | } | 189 | } | ||
▲ Show 20 Lines • Show All 3535 Lines • Show Last 20 Lines |