mirror of
https://github.com/fralx/LimeReport.git
synced 2025-10-04 04:06:43 +03:00
Borders editor dialog added
This commit is contained in:
42
limereport/items/borderframeeditor.h
Normal file
42
limereport/items/borderframeeditor.h
Normal file
@@ -0,0 +1,42 @@
|
||||
#ifndef WIDGET
|
||||
#define WIDGET
|
||||
|
||||
#include <QWidget>
|
||||
#include <QGraphicsScene>
|
||||
#include <QGraphicsLineItem>
|
||||
#include "lrbasedesignintf.h"
|
||||
QT_BEGIN_NAMESPACE
|
||||
namespace Ui { class BorderFrameEditor; }
|
||||
QT_END_NAMESPACE
|
||||
|
||||
class BorderFrameEditor : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
BorderFrameEditor(QWidget *parent = nullptr);
|
||||
~BorderFrameEditor();
|
||||
void setPen(QPen pen);
|
||||
QPen pen();
|
||||
void setAllLines();
|
||||
void unSetAllLines();
|
||||
protected:
|
||||
void mousePressEvent(QMouseEvent *event);
|
||||
signals:
|
||||
void borderSideClicked(int side,bool show);
|
||||
private slots:
|
||||
void SlotBorderSideClicked(int side, bool show);
|
||||
|
||||
private:
|
||||
Ui::BorderFrameEditor *ui;
|
||||
QGraphicsScene *scene;
|
||||
QGraphicsLineItem *topLine = NULL
|
||||
,*bottomLine = NULL
|
||||
,*leftLine = NULL
|
||||
,*rightLine = NULL;
|
||||
QPen m_pen;
|
||||
void updateBorders();
|
||||
|
||||
|
||||
};
|
||||
#endif // WIDGET
|
Reference in New Issue
Block a user