Add MataAvistas project (BudgetPro) as regular files

This commit is contained in:
Javier
2026-06-04 15:59:46 +02:00
parent 7643acf109
commit dccaa63bcc
644 changed files with 104937 additions and 1 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