Files
gcs-nf/App/CommandBox/CommandBox.h
T

43 lines
634 B
C++
Raw Normal View History

2020-10-10 12:12:30 +08:00
#ifndef COMMANDBOX_H
#define COMMANDBOX_H
#include <QWidget>
#include "QAction"
#include "QContextMenuEvent"
#include "QMenu"
namespace Ui {
class CommandBox;
}
class CommandBox : public QWidget
{
Q_OBJECT
public:
explicit CommandBox(QWidget *parent = nullptr);
~CommandBox();
protected:
void closeEvent(QCloseEvent *event);
void contextMenuEvent(QContextMenuEvent *event);
public slots:
void setFloat(void);
void setFloatFlag(bool flag);
private:
QWidget *m_parent;
bool floatflag = true;
Ui::CommandBox *ui;
};
#endif // COMMANDBOX_H