Your ROOT_URL in app.ini is http://git.osmesh.ru/ but you are visiting http://91.221.70.94:3000/MOS/OpenBoard/blame/commit/5952e03b530d66cb93b70d252880b7aea1abaf50/src/gui/UBBlackoutWidget.cpp You should set ROOT_URL correctly, otherwise the web may not work correctly.
новые иконки в OpenBoard
OpenBoard/src/gui/UBBlackoutWidget.cpp

43 lines
646 B

#include <QtGui>
#include "UBBlackoutWidget.h"
#include "core/memcheck.h"
UBBlackoutWidget::UBBlackoutWidget(QWidget *parent)
: QWidget(parent)
{
setAttribute(Qt::WA_DeleteOnClose);
}
void UBBlackoutWidget::mousePressEvent(QMouseEvent *event)
{
Q_UNUSED(event);
doActivity();
}
void UBBlackoutWidget::keyPressEvent(QKeyEvent *event)
{
if (!event->isAccepted())
{
if (event->key() == Qt::Key_B)
{
doActivity();
event->accept();
}
else
{
event->ignore();
}
}
}
void UBBlackoutWidget::doActivity()
{
emit activity();
}