Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_image_manager.cc File Reference
#include "kis_image_manager.h"
#include <QString>
#include <QStandardPaths>
#include <QAction>
#include <QUrl>
#include <QColorDialog>
#include <klocalizedstring.h>
#include <KoColor.h>
#include <KoFileDialog.h>
#include <kis_types.h>
#include <kis_image.h>
#include <kis_icon.h>
#include <KisImportExportManager.h>
#include "kis_import_catcher.h"
#include "KisViewManager.h"
#include "KisDocument.h"
#include "dialogs/kis_dlg_image_properties.h"
#include "commands/kis_image_commands.h"
#include "kis_action.h"
#include "kis_action_manager.h"
#include "kis_layer_utils.h"
#include "kis_canvas2.h"
#include "kis_signal_compressor_with_param.h"

Go to the source code of this file.

Functions

void updateImageBackgroundColor (KisImageSP image, const QColorDialog *dlg)
 

Function Documentation

◆ updateImageBackgroundColor()

void updateImageBackgroundColor ( KisImageSP image,
const QColorDialog * dlg )

Definition at line 182 of file kis_image_manager.cc.

183{
184 QColor newColor = dlg->currentColor();
185 KoColor bg = image->defaultProjectionColor();
186 bg.fromQColor(newColor);
187
189}
KoColor defaultProjectionColor() const
void fromQColor(const QColor &c)
Convenient function for converting from a QColor.
Definition KoColor.cpp:213
void changeImageDefaultProjectionColor(KisImageSP image, const KoColor &color)

References KisLayerUtils::changeImageDefaultProjectionColor(), KisImage::defaultProjectionColor(), and KoColor::fromQColor().