Commit 22654578 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Change widget parameter to QWidget for the palette manager

parent 3570221c
......@@ -130,10 +130,8 @@ bool KisFavoriteResourceManager::isPopupPaletteVisible()
//Palette Manager
void KisFavoriteResourceManager::showPaletteManager()
{
if (!m_favoriteBrushManager)
{
m_favoriteBrushManager = new KisPaletteManager (this, m_paintopBox);
if (!m_favoriteBrushManager) {
m_favoriteBrushManager = new KisPaletteManager(this);
}
m_favoriteBrushManager->show();
......
......@@ -54,8 +54,8 @@
#include "kis_preset_chooser.h"
#include <kconfiggroup.h>
KisPaletteManager::KisPaletteManager(KisFavoriteResourceManager *manager, KisPaintopBox *paintOpBox)
: KDialog(paintOpBox)
KisPaletteManager::KisPaletteManager(KisFavoriteResourceManager *manager, QWidget *parent)
: KDialog(parent)
, m_saveButton(0)
, m_removeButton(0)
, m_resourceManager(manager)
......
......@@ -38,7 +38,7 @@ class KisPaletteManager : public KDialog
Q_OBJECT
public:
KisPaletteManager(KisFavoriteResourceManager*, KisPaintopBox*);
KisPaletteManager(KisFavoriteResourceManager*, QWidget *parent = 0);
~KisPaletteManager();
virtual void showEvent(QShowEvent* );
......
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