Commit cbc435ff authored by Gilles Caulier's avatar Gilles Caulier 🗼

drop extra spaces in source codes

parent 95669f3a
...@@ -45,7 +45,7 @@ class PluginCheckBox : public QTreeWidgetItem ...@@ -45,7 +45,7 @@ class PluginCheckBox : public QTreeWidgetItem
public: public:
PluginCheckBox(PluginLoader::Info* const info, QTreeWidget* const parent) PluginCheckBox(PluginLoader::Info* const info, QTreeWidget* const parent)
: QTreeWidgetItem(parent), : QTreeWidgetItem(parent),
m_info(info) m_info(info)
{ {
setFlags(Qt::ItemIsUserCheckable | Qt::ItemIsEnabled); setFlags(Qt::ItemIsUserCheckable | Qt::ItemIsEnabled);
......
...@@ -56,15 +56,15 @@ public: ...@@ -56,15 +56,15 @@ public:
/** Apply all changes about plugins selected to be hosted in KIPI host application. /** Apply all changes about plugins selected to be hosted in KIPI host application.
*/ */
void apply(); void apply();
/** Return the number of plugins actived in the list. /** Return the number of plugins actived in the list.
*/ */
int actived() const; int actived() const;
/** Return the total number of plugins in the list. /** Return the total number of plugins in the list.
*/ */
int count() const; int count() const;
/** Return the number of visible plugins in the list. /** Return the number of visible plugins in the list.
*/ */
int visible() const; int visible() const;
...@@ -76,7 +76,7 @@ public: ...@@ -76,7 +76,7 @@ public:
/** Clear all selected plugins in the list. /** Clear all selected plugins in the list.
*/ */
void clearAll(); void clearAll();
/** Set the string used to filter the plugins list. signalSearchResult() is emitted when all is done. /** Set the string used to filter the plugins list. signalSearchResult() is emitted when all is done.
*/ */
void setFilter(const QString& filter, Qt::CaseSensitivity cs); void setFilter(const QString& filter, Qt::CaseSensitivity cs);
......
...@@ -126,11 +126,11 @@ public: ...@@ -126,11 +126,11 @@ public:
* This tree view widget needs to starts at some URL. This function specifies that location. * This tree view widget needs to starts at some URL. This function specifies that location.
* Here are a couble of possible return value different host applications may choose. * Here are a couble of possible return value different host applications may choose.
* *
* If all images are stored rooted at some tree (which is the case for KPhotoAlbum), * If all images are stored rooted at some tree (which is the case for KPhotoAlbum),
* then this function may return this directory unconditionally. * then this function may return this directory unconditionally.
* The root directory returned by uploadPath() (which is the default implementation for this method) * The root directory returned by uploadPath() (which is the default implementation for this method)
* will be the directory returned by uploadPath(). * will be the directory returned by uploadPath().
* *
* IMPORTANT: uploadRoot() must be a subpath of uploadPath() * IMPORTANT: uploadRoot() must be a subpath of uploadPath()
*/ */
QUrl uploadRootUrl() const; QUrl uploadRootUrl() const;
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
#include "imagecollectionselector.h" #include "imagecollectionselector.h"
#include "imagecollection.h" #include "imagecollection.h"
namespace KIPI namespace KIPI
{ {
ImageCollectionSelector::ImageCollectionSelector(QWidget* const parent) ImageCollectionSelector::ImageCollectionSelector(QWidget* const parent)
......
...@@ -53,7 +53,7 @@ class ImageInfoShared; ...@@ -53,7 +53,7 @@ class ImageInfoShared;
Holds info about an image from KIPI host application. Holds info about an image from KIPI host application.
NOTE: If you want to manage item properties from kipi-plugins, use wrapper class KIPIPlugins::KPImageInfo, NOTE: If you want to manage item properties from kipi-plugins, use wrapper class KIPIPlugins::KPImageInfo,
not this class directly. See kipi-plugins/common/libkipi-plugins API for details. not this class directly. See kipi-plugins/common/libkipi-plugins API for details.
IMPORTANT: this class must re-implemented in KIPI host application through KIPI::ImageInfoShared. This implementation IMPORTANT: this class must re-implemented in KIPI host application through KIPI::ImageInfoShared. This implementation
must be thread-safe, due to possible use into kipi plugins separated thread implementation in the future. must be thread-safe, due to possible use into kipi plugins separated thread implementation in the future.
*/ */
class LIBKIPI_EXPORT ImageInfo class LIBKIPI_EXPORT ImageInfo
......
...@@ -305,7 +305,7 @@ MetadataProcessor* Interface::createMetadataProcessor() const ...@@ -305,7 +305,7 @@ MetadataProcessor* Interface::createMetadataProcessor() const
PrintWarningMessageFeature("HostSupportsMetadataProcessing"); PrintWarningMessageFeature("HostSupportsMetadataProcessing");
return 0; return 0;
} }
void Interface::aboutToEdit(const QUrl&, EditHints) void Interface::aboutToEdit(const QUrl&, EditHints)
{ {
} }
......
...@@ -335,7 +335,7 @@ public: ...@@ -335,7 +335,7 @@ public:
/** /**
* Tells to host application to render a preview image for one item. * Tells to host application to render a preview image for one item.
* A resizement to to a specific size will be generated if preview is largest than. * A resizement to to a specific size will be generated if preview is largest than.
* Use a positive resizedTo value in this case, else -1. Aspect ratio is preserved while rendering. * Use a positive resizedTo value in this case, else -1. Aspect ratio is preserved while rendering.
* This asynchronous method must be re-implemented in host application. * This asynchronous method must be re-implemented in host application.
* Use gotPreview() signal to take preview. * Use gotPreview() signal to take preview.
*/ */
...@@ -354,7 +354,7 @@ public: ...@@ -354,7 +354,7 @@ public:
virtual void thumbnails(const QList<QUrl>& list, int size); virtual void thumbnails(const QList<QUrl>& list, int size);
/** /**
Ask to Kipi host application to prepare progress manager for a new entry. This method must return from host Ask to Kipi host application to prepare progress manager for a new entry. This method must return from host
a string identification about progress item created. This id will be used later to change in host progress item a string identification about progress item created. This id will be used later to change in host progress item
value and text. Title is text used to name progress item in host application. value and text. Title is text used to name progress item in host application.
Set canBeCanceled to true if you want that progress item provide a cancel button to close process from kipi host. Set canBeCanceled to true if you want that progress item provide a cancel button to close process from kipi host.
...@@ -466,12 +466,12 @@ Q_SIGNALS: ...@@ -466,12 +466,12 @@ Q_SIGNALS:
void selectionChanged(bool hasSelection); void selectionChanged(bool hasSelection);
/** /**
* Emit when current album selection as changed from host application user interface. * Emit when current album selection as changed from host application user interface.
* Boolean argument is true if album are select or not in collection. * Boolean argument is true if album are select or not in collection.
*/ */
void currentAlbumChanged(bool hasSelection); void currentAlbumChanged(bool hasSelection);
/** Emit when host application has rendered item thumbnail. See asynchronous thumbnail() and thumbnails() /** Emit when host application has rendered item thumbnail. See asynchronous thumbnail() and thumbnails()
* methods for details. * methods for details.
*/ */
void gotThumbnail(const QUrl&, const QPixmap&); void gotThumbnail(const QUrl&, const QPixmap&);
......
...@@ -421,9 +421,9 @@ void Plugin::mergeXMLFile(KXMLGUIClient *const host) ...@@ -421,9 +421,9 @@ void Plugin::mergeXMLFile(KXMLGUIClient *const host)
// be safe rather than sorry // be safe rather than sorry
// create the appname folder in kxmlgui5 // create the appname folder in kxmlgui5
QDir localUIDir(localUIdir); QDir localUIDir(localUIdir);
if (!localUIDir.exists()) if (!localUIDir.exists())
QDir().mkpath(localUIdir); QDir().mkpath(localUIdir);
if (!localUIFile.exists() || !localUIFile.open(QFile::ReadOnly) || !localDomDoc.setContent(&localUIFile)) if (!localUIFile.exists() || !localUIFile.open(QFile::ReadOnly) || !localDomDoc.setContent(&localUIFile))
{ {
newGuiElem.appendChild(defToolBarElem.cloneNode()); newGuiElem.appendChild(defToolBarElem.cloneNode());
......
...@@ -170,7 +170,7 @@ boolean fill_input_buffer(j_decompress_ptr cinfo) ...@@ -170,7 +170,7 @@ boolean fill_input_buffer(j_decompress_ptr cinfo)
src->pub.next_input_byte = fakeEOI; src->pub.next_input_byte = fakeEOI;
src->pub.bytes_in_buffer = 2; src->pub.bytes_in_buffer = 2;
} }
return true; return true;
} }
......
...@@ -28,9 +28,9 @@ ...@@ -28,9 +28,9 @@
// C++ includes // C++ includes
#include <cstdio> #include <cstdio>
// Qt includes // Qt includes
#include <QIODevice> #include <QIODevice>
// C ANSI includes // C ANSI includes
......
...@@ -135,7 +135,7 @@ int main(int argc, char* argv[]) ...@@ -135,7 +135,7 @@ int main(int argc, char* argv[])
KipiTestMainWindow* const mainWindow = new KipiTestMainWindow(listSelectedImages, listSelectedAlbums, listAllAlbums); KipiTestMainWindow* const mainWindow = new KipiTestMainWindow(listSelectedImages, listSelectedAlbums, listAllAlbums);
QObject::connect(mainWindow, &KipiTestMainWindow::destroyed, QObject::connect(mainWindow, &KipiTestMainWindow::destroyed,
&app, &QApplication::quit); &app, &QApplication::quit);
app.setActiveWindow(mainWindow); app.setActiveWindow(mainWindow);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment