You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AppFlow/GUIWidget/CompLineEdit.h

86 lines
2.1 KiB
C

/**
*
* @file CompLineEdit.h
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-16
*
*/
#ifndef CompLineEdit_H
#define CompLineEdit_H
#include "GUIWidgetAPI.h"
#include <QLineEdit>
namespace GUI
{
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-16
*/
class GUIWIDGETAPI CompLineEdit : public QLineEdit
{
Q_OBJECT;
public:
/**
* @brief Construct a new Comp Line Edit object
* @param[i] widget
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-16
*/
CompLineEdit(QWidget* widget);
/**
* @brief Destroy the Comp Line Edit object
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-16
*/
~CompLineEdit();
signals:
;
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-16
*/
void sigEditStart();
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-16
*/
void sigEditFinish();
private:
/**
* @brief
* @param[i] event
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-16
*/
void mouseDoubleClickEvent(QMouseEvent* event) override;
/**
* @brief
* @param[i] event
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-16
*/
void focusOutEvent(QFocusEvent* event) override;
/**
* @brief
* @param[i] event
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-16
*/
void keyPressEvent(QKeyEvent* event) override;
private:
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-16
*/
bool _isEdit = false;
};
}
#endif