SVN commit 854804 by aclemens:
digiKam from trunk: Adjust Levels plugin is now ported to Editor Tool API.
CCMAIL:
[hidden email]
M +1 -1 CMakeLists.txt
D adjustlevels.cpp
D adjustlevels.h
A adjustlevelstool.cpp adjustlevels.cpp#854724 [License: GPL (v2+)]
A adjustlevelstool.h adjustlevels.h#854724 [License: GPL (v2+)]
M +5 -3 imageplugin_adjustlevels.cpp
--- trunk/extragear/graphics/digikam/imageplugins/adjustlevels/CMakeLists.txt #854803:854804
@@ -1,6 +1,6 @@
SET(digikamimageplugin_adjustlevels_PART_SRCS imageplugin_adjustlevels.cpp
- adjustlevels.cpp
+ adjustlevelstool.cpp
)
--- trunk/extragear/graphics/digikam/imageplugins/adjustlevels/imageplugin_adjustlevels.cpp #854803:854804
@@ -34,10 +34,12 @@
// Local includes.
#include "ddebug.h"
-#include "adjustlevels.h"
+#include "adjustlevelstool.h"
#include "imageplugin_adjustlevels.h"
#include "imageplugin_adjustlevels.moc"
+using namespace DigikamAdjustLevelsImagesPlugin;
+
K_PLUGIN_FACTORY( AdjustLevelsFactory, registerPlugin<ImagePlugin_AdjustLevels>(); )
K_EXPORT_PLUGIN ( AdjustLevelsFactory("digikamimageplugin_adjustlevels") )
@@ -67,6 +69,6 @@
void ImagePlugin_AdjustLevels::slotLevelsAdjust()
{
- DigikamAdjustLevelsImagesPlugin::AdjustLevelDialog dlg(kapp->activeWindow());
- dlg.exec();
+ AdjustLevelTool *tool = new AdjustLevelTool(kapp->activeWindow());
+ loadTool(tool);
}
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel