Initial commit of BudgetPro

This commit is contained in:
Javi
2026-05-24 23:21:33 +02:00
commit f3096faee6
575 changed files with 90288 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
#include "arrowrectangle.h"
#include <DApplication>
ArrowRectangle::ArrowRectangle(ArrowDirection direction, QWidget *parent)
: DArrowRectangle(direction, DArrowRectangle::FloatWindow, parent)
{
connect(qApp, &DApplication::focusChanged, this, [=](QWidget* old, QWidget* now){
Q_UNUSED(old);
if (now != this && !this->isAncestorOf(now))
{
hide();
}
});
}
void ArrowRectangle::hideEvent(QHideEvent *e)
{
Q_UNUSED(e);
emit hideWindow();
}
ArrowRectangle::~ArrowRectangle()
{}