switch from spaces to tabs
This commit is contained in:
@ -7,51 +7,52 @@
|
||||
#include "itemsettingsdialog.h"
|
||||
#include "../items/item.h"
|
||||
|
||||
namespace Ui {
|
||||
namespace Ui
|
||||
{
|
||||
class ItemWidget;
|
||||
}
|
||||
|
||||
class ItemWidget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_OBJECT
|
||||
private:
|
||||
std::weak_ptr<Item> item_;
|
||||
std::weak_ptr<Item> item_;
|
||||
|
||||
std::vector< std::unique_ptr<QShortcut> > shortcuts_;
|
||||
std::vector< std::unique_ptr<QShortcut> > shortcuts_;
|
||||
|
||||
void disable();
|
||||
void disable();
|
||||
|
||||
signals:
|
||||
|
||||
void deleteRequest(const ItemData& item);
|
||||
void deleteRequest(const ItemData& item);
|
||||
|
||||
private slots:
|
||||
void setValue(int8_t value);
|
||||
void moveToValue(int8_t value);
|
||||
void deleteItem();
|
||||
void deleteItem();
|
||||
|
||||
void stepUp();
|
||||
void stepDown();
|
||||
void stepUp();
|
||||
void stepDown();
|
||||
|
||||
void f1(int state);
|
||||
void f2(int state);
|
||||
void f3(int state);
|
||||
void f4(int state);
|
||||
void reverse();
|
||||
void f1(int state);
|
||||
void f2(int state);
|
||||
void f3(int state);
|
||||
void f4(int state);
|
||||
void reverse();
|
||||
|
||||
public:
|
||||
explicit ItemWidget(std::weak_ptr<Item> item, QWidget *parent);
|
||||
std::weak_ptr<Item> getItem();
|
||||
bool controles(const ItemData& relay);
|
||||
~ItemWidget();
|
||||
void setShortcuts(QKeySequence up, QKeySequence down, QKeySequence rev);
|
||||
explicit ItemWidget(std::weak_ptr<Item> item, QWidget *parent);
|
||||
std::weak_ptr<Item> getItem();
|
||||
bool controles(const ItemData& relay);
|
||||
~ItemWidget();
|
||||
void setShortcuts(QKeySequence up, QKeySequence down, QKeySequence rev);
|
||||
|
||||
public slots:
|
||||
|
||||
void stateChanged(int state);
|
||||
void stateChanged(int state);
|
||||
|
||||
private:
|
||||
Ui::ItemWidget *ui;
|
||||
Ui::ItemWidget *ui;
|
||||
};
|
||||
|
||||
#endif // RELAYWIDGET_H
|
||||
|
Reference in New Issue
Block a user