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
+40
View File
@@ -0,0 +1,40 @@
#ifndef FONTSIZELINEEDIT_H
#define FONTSIZELINEEDIT_H
#include <QLineEdit>
#include <QShortcut>
#include <QKeyEvent>
#include <QDebug>
class FontsizeLineEdit : public QLineEdit
{
Q_OBJECT
public:
FontsizeLineEdit(QWidget* parent = 0) {
Q_UNUSED(parent);
}
~FontsizeLineEdit(){}
signals:
void addSize();
void reduceSize();
protected:
void keyPressEvent(QKeyEvent* e)
{
if (e->key() == Qt::Key_Up)
{
emit addSize();
} else if (e->key() == Qt::Key_Down)
{
emit reduceSize();
} else if (e->key() == Qt::Key_Return || e->key() == Qt::Key_Enter)
{
emit editingFinished();
}
QLineEdit::keyPressEvent(e);
}
};
#endif // FONTSIZELINEEDIT_H