Skip to content

Commit

Permalink
使m_preview成为一个Tool Window,这样它就不会显示在任务栏上了
Browse files Browse the repository at this point in the history
  • Loading branch information
wangwenx190 authored Jul 30, 2017
1 parent ef3d1d3 commit f645895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/player/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1325,7 +1325,7 @@ void MainWindow::onTimeSliderHover(int pos, int value)
m_preview->preview();
const int w = Config::instance().previewWidth();
const int h = Config::instance().previewHeight();
m_preview->setWindowFlags(m_preview->windowFlags() |Qt::FramelessWindowHint|Qt::WindowStaysOnTopHint);
m_preview->setWindowFlags(Qt::Tool |Qt::FramelessWindowHint|Qt::WindowStaysOnTopHint);
m_preview->resize(w, h);
m_preview->move(gpos - QPoint(w/2, h));
m_preview->show();
Expand Down

0 comments on commit f645895

Please sign in to comment.