Skip to content

Commit

Permalink
更新文档
Browse files Browse the repository at this point in the history
  • Loading branch information
feiyangqingyun committed Dec 25, 2024
1 parent f12f71a commit c81c36b
Show file tree
Hide file tree
Showing 46 changed files with 1,409 additions and 1,002 deletions.
5 changes: 5 additions & 0 deletions control/cpumemorylabel/cpumemorylabel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ CpuMemoryLabel::CpuMemoryLabel(QWidget *parent) : QLabel(parent)
connect(timerMemory, SIGNAL(timeout()), this, SLOT(getMemory()));

//执行命令获取
#ifndef Q_OS_WASM
process = new QProcess(this);
connect(process, SIGNAL(readyRead()), this, SLOT(readData()));
#endif

showText = true;
}
Expand All @@ -59,7 +61,10 @@ void CpuMemoryLabel::start(int interval)

void CpuMemoryLabel::stop()
{
#ifndef Q_OS_WASM
process->close();
#endif

if (timerCPU->isActive()) {
timerCPU->stop();
}
Expand Down
6 changes: 5 additions & 1 deletion control/devicebutton/devicebutton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,15 @@ bool DeviceButton::eventFilter(QObject *watched, QEvent *event)
if (canMove && isPressed) {
int dx = mouseEvent->pos().x() - lastPoint.x();
int dy = mouseEvent->pos().y() - lastPoint.y();
this->move(this->x() + dx, this->y() + dy);
this->move(this->x() + dx, this->y() + dy);
return true;
}
} else if (type == QEvent::MouseButtonRelease) {
isPressed = false;
//增加刷新父窗体/防止残影
if (this->parent()) {
QMetaObject::invokeMethod(this->parent(), "update");
}
} else if (type == QEvent::MouseButtonDblClick) {
Q_EMIT doubleClicked();
}
Expand Down
2 changes: 1 addition & 1 deletion control/navbutton/navbutton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ NavButton::NavButton(QWidget *parent) : QPushButton(parent)
setText("导航按钮");
}

void NavButton::enterEvent(QEvent *)
void NavButton::enterEvent(EnterEvent *)
{
hover = true;
this->update();
Expand Down
8 changes: 7 additions & 1 deletion control/navbutton/navbutton.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@

#include <QPushButton>

#if (QT_VERSION >= QT_VERSION_CHECK(6,0,0))
#define EnterEvent QEnterEvent
#else
#define EnterEvent QEvent
#endif

#ifdef quc
class Q_DECL_EXPORT NavButton : public QPushButton
#else
Expand Down Expand Up @@ -92,7 +98,7 @@ class NavButton : public QPushButton
explicit NavButton(QWidget *parent = 0);

protected:
void enterEvent(QEvent *);
void enterEvent(EnterEvent *);
void leaveEvent(QEvent *);
void paintEvent(QPaintEvent *);
void drawBg(QPainter *painter);
Expand Down
16 changes: 9 additions & 7 deletions docs/video_system/index.html

Large diffs are not rendered by default.

Binary file removed docs/video_system/snap/11-1-1.jpg
Binary file not shown.
Binary file removed docs/video_system/snap/11-3-1.jpg
Binary file not shown.
Binary file removed docs/video_system/snap/11-3-2.jpg
Binary file not shown.
Binary file removed docs/video_system/snap/11-3-3.jpg
Binary file not shown.
Binary file removed docs/video_system/snap/11-3-4.jpg
Binary file not shown.
Binary file added docs/video_system/snap/2-6-3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit c81c36b

Please sign in to comment.