Commit 21ff2487 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Fix a wrong signal.

svn path=/trunk/koffice/; revision=316425
parent b1f28cb5
......@@ -61,8 +61,8 @@ DlgImageSize::DlgImageSize( QWidget * parent,
this, SLOT(okClicked()));
connect(m_page -> chkConstrain, SIGNAL(toggled()),
this, SLOT(slotConstrainToggled));
connect(m_page -> chkConstrain, SIGNAL(toggled(bool)),
this, SLOT(slotConstrainToggled(bool)));
// Still unimplemented
......@@ -98,9 +98,9 @@ void DlgImageSize::setMaximumWidth(Q_UINT32 w)
m_maxW = w;
}
Q_UINT32 DlgImageSize::width()
Q_INT32 DlgImageSize::width()
{
return (Q_UINT32)round(m_oldW);
return (Q_INT32)round(m_oldW);
}
void DlgImageSize::setHeight(Q_UINT32 h)
......@@ -122,9 +122,9 @@ void DlgImageSize::setMaximumHeight(Q_UINT32 h)
}
Q_UINT32 DlgImageSize::height()
Q_INT32 DlgImageSize::height()
{
return (Q_UINT32)round(m_oldH);
return (Q_INT32)round(m_oldH);
}
void DlgImageSize::setXRes(double x)
......@@ -262,7 +262,7 @@ void DlgImageSize::slotScaleTypeHChanged(int i)
connectAll();
}
void DlgImageSize::slotConstrainToggled()
void DlgImageSize::slotConstrainToggled(bool b)
{
m_origW = m_oldW;
m_origH = m_oldH;
......
......@@ -44,11 +44,11 @@ public:
void setWidth(Q_UINT32 w);
void setMaximumWidth(Q_UINT32 w);
Q_UINT32 width();
Q_INT32 width();
void setHeight(Q_UINT32 h);
void setMaximumHeight(Q_UINT32 h);
Q_UINT32 height();
Q_INT32 height();
void setXRes(double x);
void setYRes(double y);
......@@ -63,7 +63,7 @@ private slots:
void slotHeightChanged(int h);
void slotScaleTypeWChanged(int i);
void slotScaleTypeHChanged(int i);
void slotConstrainToggled();
void slotConstrainToggled(bool b);
private:
void disconnectAll();
......
......@@ -73,6 +73,7 @@ ImageSize::ImageSize(QObject *parent, const char *name, const QStringList &)
ImageSize::~ImageSize()
{
m_view = 0;
}
void ImageSize::slotActivated()
......@@ -96,8 +97,8 @@ void ImageSize::slotActivated()
dlgImageSize -> setYRes(y);
if (dlgImageSize -> exec() == QDialog::Accepted) {
int w = dlgImageSize -> width();
int h = dlgImageSize -> height();
Q_INT32 w = dlgImageSize -> width();
Q_INT32 h = dlgImageSize -> height();
if (dlgImageSize -> scale()) {
}
......@@ -109,7 +110,7 @@ void ImageSize::slotActivated()
delete dlgImageSize;
}
void ImageSize::imageResize(Q_UINT32 w, Q_UINT32 h)
void ImageSize::imageResize(Q_INT32 w, Q_INT32 h)
{
if (m_view) {
KisImageSP image = m_view -> currentImg();
......
......@@ -39,7 +39,7 @@ private slots:
private:
void imageResize(Q_UINT32 w, Q_UINT32 h);
void imageResize(Q_INT32 w, Q_INT32 h);
KisView * m_view;
KisPainter * m_painter;
......
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