Skip to content

Commit

Permalink
reduced slots
Browse files Browse the repository at this point in the history
  • Loading branch information
WangHongshuo committed Feb 16, 2018
1 parent dd11f9a commit 74acabc
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions ImageWidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ class ImageWidget :

void setImageWithData(QImage img);
void setImageWithPointer(QImage* img);
void setEnableOnlyShowImage(bool flag = false);

// 发送点击位置坐标信号默认关闭,使用前需要开启
void setEnableSendLeftClickedPosInWidget(bool flag = false);
void setEnableSendLeftClickedPosInImage(bool flag = false);
QPoint getDrawImageTopLeftPos() const;

signals:
void sendParentWidgetSizeChangedSignal();
Expand All @@ -36,15 +42,10 @@ class ImageWidget :

public slots:
void clear();
void setEnableOnlyShowImage(bool flag = false);
void setEnableDragImage(bool flag = true);
void setEnableZoomImage(bool flag = true);
void setEnableImageFitWidget(bool flag = true);
void setEnableRecordLastParameters(bool flag = false);
// 发送点击位置坐标信号默认关闭,使用前需要开启
void setEnableSendLeftClickedPosInWidget(bool flag = false);
void setEnableSendLeftClickedPosInImage(bool flag = false);
QPoint getDrawImageTopLeftPos() const;

private slots:
void resetImageWidget();
Expand Down

0 comments on commit 74acabc

Please sign in to comment.