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
public:
PluginCheckBox(PluginLoader::Info* const info, QTreeWidget* const parent)
: QTreeWidgetItem(parent),
: QTreeWidgetItem(parent),
m_info(info)
{
setFlags(Qt::ItemIsUserCheckable | Qt::ItemIsEnabled);
......
......@@ -56,15 +56,15 @@ public:
/** Apply all changes about plugins selected to be hosted in KIPI host application.
*/
void apply();
/** Return the number of plugins actived in the list.
*/
int actived() const;
/** Return the total number of plugins in the list.
*/
int count() const;
/** Return the number of visible plugins in the list.
*/
int visible() const;
......@@ -76,7 +76,7 @@ public:
/** Clear all selected plugins in the list.
*/
void clearAll();
/** Set the string used to filter the plugins list. signalSearchResult() is emitted when all is done.
*/
void setFilter(const QString& filter, Qt::CaseSensitivity cs);
......
......@@ -126,11 +126,11 @@ public:
* 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.
*
* 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.
* The root directory returned by uploadPath() (which is the default implementation for this method)
* will be the directory returned by uploadPath().
*
*
* IMPORTANT: uploadRoot() must be a subpath of uploadPath()
*/
QUrl uploadRootUrl() const;
......
......@@ -28,7 +28,7 @@
#include "imagecollectionselector.h"
#include "imagecollection.h"
namespace KIPI
namespace KIPI
{
ImageCollectionSelector::ImageCollectionSelector(QWidget* const parent)
......
......@@ -53,7 +53,7 @@ class ImageInfoShared;
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,
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.
*/
class LIBKIPI_EXPORT ImageInfo
......
......@@ -305,7 +305,7 @@ MetadataProcessor* Interface::createMetadataProcessor() const
PrintWarningMessageFeature("HostSupportsMetadataProcessing");
return 0;
}
void Interface::aboutToEdit(const QUrl&, EditHints)
{
}
......
......@@ -335,7 +335,7 @@ public:
/**
* 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.
* 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.
* Use gotPreview() signal to take preview.
*/
......@@ -354,7 +354,7 @@ public:
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
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.
......@@ -466,12 +466,12 @@ Q_SIGNALS:
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.
*/
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.
*/
void gotThumbnail(const QUrl&, const QPixmap&);
......
......@@ -421,9 +421,9 @@ void Plugin::mergeXMLFile(KXMLGUIClient *const host)
// be safe rather than sorry
// create the appname folder in kxmlgui5
QDir localUIDir(localUIdir);
if (!localUIDir.exists())
if (!localUIDir.exists())
QDir().mkpath(localUIdir);
if (!localUIFile.exists() || !localUIFile.open(QFile::ReadOnly) || !localDomDoc.setContent(&localUIFile))
{
newGuiElem.appendChild(defToolBarElem.cloneNode());
......
......@@ -170,7 +170,7 @@ boolean fill_input_buffer(j_decompress_ptr cinfo)
src->pub.next_input_byte = fakeEOI;
src->pub.bytes_in_buffer = 2;
}
return true;
}
......
......@@ -28,9 +28,9 @@
// C++ includes
#include <cstdio>
// Qt includes
// Qt includes
#include <QIODevice>
// C ANSI includes
......
......@@ -135,7 +135,7 @@ int main(int argc, char* argv[])
KipiTestMainWindow* const mainWindow = new KipiTestMainWindow(listSelectedImages, listSelectedAlbums, listAllAlbums);
QObject::connect(mainWindow, &KipiTestMainWindow::destroyed,
QObject::connect(mainWindow, &KipiTestMainWindow::destroyed,
&app, &QApplication::quit);
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