26 lines
482 B
C++
26 lines
482 B
C++
#pragma once
|
|
|
|
#include <QDialog>
|
|
#include <QComboBox>
|
|
#include <QPushButton>
|
|
#include "sqlitehelper.h"
|
|
#include "ui_addcategory.h"
|
|
|
|
class AddCategory : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
AddCategory(QWidget *parent = nullptr);
|
|
~AddCategory();
|
|
QList<Categrory> categrories;
|
|
bool changed = false;
|
|
private:
|
|
Ui::AddCategoryClass ui;
|
|
SQLiteHelper sqlite_helper;
|
|
QPushButton* submit_btn;
|
|
QList<QComboBox *> combo_boxes;
|
|
private slots:
|
|
void submit();
|
|
};
|