Added favorite buttons to shop form.

closes #276
This commit is contained in:
2017-03-28 22:13:54 +02:00
parent 7aa00f1b1e
commit b0d67cf93a
19 changed files with 361 additions and 384 deletions
+13
View File
@@ -2,10 +2,14 @@
#define SHOPSETTINGSFORM_H
#include <QWidget>
#include <QToolButton>
#include <formbinder.h>
#include <QMap>
#include "shopsettings.h"
#include <core.h>
#include "shopitem.h"
#include "data/favorititem.h"
#include "favbutton.h"
namespace Ui {
class ShopSettingsForm;
@@ -22,6 +26,11 @@ public:
private:
Ui::ShopSettingsForm *ui;
AutoTableModel<ShopItem> *m_itemModel;
int m_favBtnRows;
int m_favBtnCols;
int m_favBtnSize;
QMap<QString, FavoritItemPtr> m_btnMap;
void drawButtons();
// IForm interface
public:
@@ -29,8 +38,12 @@ public:
public slots:
bool saveRecord();
private slots:
void on_btnCertBrowse_clicked();
void on_favBtnCols_textChanged(const QString &arg1);
void on_favBtnRows_textChanged(const QString &arg1);
void on_favBtnSize_textChanged(const QString &arg1);
};
#endif // SHOPSETTINGSFORM_H