MCPcopy Create free account
hub / github.com/RGAA-Software/GoDesk / FloatController

Method FloatController

src/client/ui/float_controller.cpp:16–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14namespace tc
15{
16 FloatController::FloatController(const std::shared_ptr<ClientContext>& ctx, QWidget* parent) : BaseWidget(ctx, parent){
17 auto image = new QImage(":resources/tc_icon.png");
18 pixmap_ = QPixmap::fromImage(*image);
19 pixmap_ = pixmap_.scaled(25, 25, Qt::KeepAspectRatio, Qt::SmoothTransformation);
20 setMouseTracking(true);
21 this->setStyleSheet("background:#00000000;");
22 QTimer::singleShot(200, [=, this]() {
23 ReCalculatePosition();
24 });
25 }
26
27 void FloatController::paintEvent(QPaintEvent *event) {
28 QPainter painter(this);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected