fix -Wextra in Image
This commit is contained in:
parent
f944ab3846
commit
49072208ee
|
@ -60,6 +60,8 @@ CmdImageOpen::CmdImageOpen()
|
|||
|
||||
void CmdImageOpen::activated(int iMsg)
|
||||
{
|
||||
Q_UNUSED(iMsg);
|
||||
|
||||
// add all supported QImage formats
|
||||
QString formats;
|
||||
QTextStream str(&formats);
|
||||
|
@ -102,6 +104,8 @@ CmdCreateImagePlane::CmdCreateImagePlane()
|
|||
|
||||
void CmdCreateImagePlane::activated(int iMsg)
|
||||
{
|
||||
Q_UNUSED(iMsg);
|
||||
|
||||
QString formats;
|
||||
QTextStream str(&formats);
|
||||
str << QObject::tr("Images") << " (";
|
||||
|
|
|
@ -457,7 +457,7 @@ void ImageView::wheelEvent(QWheelEvent * cEvent)
|
|||
}
|
||||
}
|
||||
|
||||
void ImageView::showEvent (QShowEvent * e)
|
||||
void ImageView::showEvent (QShowEvent *)
|
||||
{
|
||||
_pGLImageBox->setFocus();
|
||||
}
|
||||
|
@ -607,6 +607,8 @@ void ImageView::select(int currX, int currY)
|
|||
{
|
||||
// base class implementation does nothing
|
||||
// override this method and implement selection capability if required
|
||||
Q_UNUSED(currX);
|
||||
Q_UNUSED(currY);
|
||||
}
|
||||
|
||||
// Add selection at the given position
|
||||
|
@ -614,6 +616,8 @@ void ImageView::addSelect(int currX, int currY)
|
|||
{
|
||||
// base class implementation does nothing
|
||||
// override this method and implement selection capability if required
|
||||
Q_UNUSED(currX);
|
||||
Q_UNUSED(currY);
|
||||
}
|
||||
|
||||
// Draw any 2D graphics necessary
|
||||
|
|
|
@ -41,8 +41,8 @@ public:
|
|||
const char *getName(void) const {return "ImageView";}
|
||||
void onUpdate(void){};
|
||||
|
||||
bool onMsg(const char* pMsg,const char** ppReturn){ return true; }
|
||||
bool onHasMsg(const char* pMsg) const { return false; }
|
||||
bool onMsg(const char* ,const char** ){ return true; }
|
||||
bool onHasMsg(const char* ) const { return false; }
|
||||
|
||||
virtual void clearImage();
|
||||
virtual int createImageCopy(void* pSrcPixelData, unsigned long width, unsigned long height, int format, unsigned short numSigBitsPerSample, int displayMode = IV_DISPLAY_RESET);
|
||||
|
|
Loading…
Reference in New Issue
Block a user