Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Qt6: Add missing include

Halla Rempt9a10936c5531
diff --git a/libs/libkis/Scratchpad.cpp b/libs/libkis/Scratchpad.cpp
index 3fd381148d..44f127970e 100644
--- a/libs/libkis/Scratchpad.cpp
+++ b/libs/libkis/Scratchpad.cpp
@@ -17,7 +17,7 @@
#include <QColor>
#include <QVBoxLayout>
-
+#include <QWidget>
struct Scratchpad::Private
{
@@ -35,7 +35,7 @@ Scratchpad::Scratchpad(View *view, const QColor & defaultColor, QWidget *parent)
QVBoxLayout *layout = new QVBoxLayout(this);
layout->addWidget(d->scratchpad);
- // Forward KisScratchPad::scaleChanged to Scratchpad::scaleChanged
+ // Forward KisScratchPad::scaleChanged to Scratchpad::scaleCha`nged
connect(d->scratchpad, SIGNAL(scaleChanged(qreal)), this, SIGNAL(scaleChanged(qreal)));
// Forward KisScratchPad::contentChanged to Scratchpad::contentChanged
diff --git a/libs/libkis/Scratchpad.h b/libs/libkis/Scratchpad.h
index de19437c7e..3a37797622 100644
--- a/libs/libkis/Scratchpad.h
+++ b/libs/libkis/Scratchpad.h
@@ -8,11 +8,16 @@
#include <QObject>
#include <QColor>
+#include <QWidget>
+
#include <kis_types.h>
-#include "kritalibkis_export.h"
+
#include "libkis.h"
#include "View.h"
+#include "kritalibkis_export.h"
+
+
class KoCanvasBase;
class Canvas; // This comes from Python. This would be maybe better
class KisView;