Skip to content

Commit

Permalink
disable some unused printf , disable return result using clipborad
Browse files Browse the repository at this point in the history
  • Loading branch information
josephshen committed Jul 10, 2017
1 parent 71fdadc commit 6bde616
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/ColorPicker/ColorPickerCanvas.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ ColorPickerCanvas::mousePressEvent(QMouseEvent* event)
// .arg(m_current_color.blue())
// );

qGuiApp->clipboard()->setText(m_current_color.name().toUpper());
// qGuiApp->clipboard()->setText(m_current_color.name().toUpper());

// qDebug() << m_current_color.name().toUpper().toStdString() ;
printf("%s\n", m_current_color.name().toUpper().toStdString().c_str());
Expand Down
2 changes: 1 addition & 1 deletion src/ColorPicker/ColorPickerCanvas.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ private:
const QImage& m_current_capture_image;
private:
QColor m_current_color;
QLabel* m_color_info_label;
// QLabel* m_color_info_label;
public:
QColor currentColor() const
{
Expand Down
16 changes: 8 additions & 8 deletions src/ColorPicker/ColorPickerCanvas.win.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ class EventFilter: public QObject, public QAbstractNativeEventFilter
public:
EventFilter()
{
printf("%s\n", __FUNCTION__);
// printf("%s\n", __FUNCTION__);
}
public:
~EventFilter()
{
printf("%s\n", __FUNCTION__);
// printf("%s\n", __FUNCTION__);
}
public:
bool nativeEventFilter(const QByteArray&, void*, long*) final override;
Expand Down Expand Up @@ -136,7 +136,7 @@ BOOL WINAPI TheMagnifierCallback(HWND,void*,MAGIMAGEHEADER,void*,MAGIMAGEHEADER,
template<>
void Hack::BootProcessForTrackPictureSurroundCursor<Hack::OS::Windows>()
{
printf("%s\n", __FUNCTION__);
// printf("%s\n", __FUNCTION__);

if (FALSE == ::MagInitialize())
{
Expand All @@ -148,7 +148,7 @@ void Hack::BootProcessForTrackPictureSurroundCursor<Hack::OS::Windows>()
template<>
void Hack::ShutdonwProcessForTrackPictureSurroundCursor<Hack::OS::Windows>()
{
printf("%s\n", __FUNCTION__);
// printf("%s\n", __FUNCTION__);

MAGNIFIER_UPDATE_TIMER->stop();
// ::SendMessage(HWND_HOST, WM_DESTROY, 0, 0);
Expand All @@ -163,11 +163,11 @@ void Hack::ShutdonwProcessForTrackPictureSurroundCursor<Hack::OS::Windows>()
template<>
void Hack::BootMagnificationHost<Hack::OS::Windows>(WId winId)
{
printf("%s\n", __FUNCTION__);
// printf("%s\n", __FUNCTION__);

HWND_QT = HWND(winId);

std::cout << HWND_QT << " << HWND_QT \n";
// std::cout << HWND_QT << " << HWND_QT \n";

auto event_filter = new EventFilter;
qApp->installNativeEventFilter(event_filter);
Expand Down Expand Up @@ -202,7 +202,7 @@ void Hack::BootMagnificationHost<Hack::OS::Windows>(WId winId)
printf("::CreateWindow HWND_HOST Failed\n");
throw std::runtime_error("::CreateWindow HWND_HOST Failed");
}
std::cout << HWND_HOST << " << HWND_HOST \n";
// std::cout << HWND_HOST << " << HWND_HOST \n";

HWND_MAGNIFIER = ::CreateWindow(WC_MAGNIFIER,
TEXT("MagnifierWidget"),
Expand All @@ -220,7 +220,7 @@ void Hack::BootMagnificationHost<Hack::OS::Windows>(WId winId)
printf("::CreateWindow HWND_MAGNIFIER Failed\n");
throw std::runtime_error("::CreateWindow HWND_MAGNIFIER Failed");
}
std::cout << HWND_MAGNIFIER << " << HWND_MAGNIFIER \n";
// std::cout << HWND_MAGNIFIER << " << HWND_MAGNIFIER \n";

if( FALSE == ::MagSetImageScalingCallback(HWND_MAGNIFIER, TheMagnifierCallback) )
{
Expand Down

0 comments on commit 6bde616

Please sign in to comment.