2026年5月25日15:57:50
This commit is contained in:
+15
-6
@@ -72,7 +72,7 @@ public:
|
||||
|
||||
void setFontNameIndex(float);
|
||||
|
||||
void addDateTimeItem(const DateItemModel& model);
|
||||
void addDateTimeItem(const DateItemModel& model, const TextItemModel& textModel);
|
||||
|
||||
void addScheduleShiftsItem(QVector<ScheduleModel> schedules, TextItemModel txtModel);
|
||||
|
||||
@@ -102,6 +102,13 @@ public slots:
|
||||
void slt_BarCodeItemDone();
|
||||
|
||||
void slt_QRCodeItemDone(QString str);
|
||||
|
||||
void selectNextItem();
|
||||
|
||||
void selectPreviousItem();
|
||||
|
||||
void onLineEditReturnPressed();
|
||||
|
||||
protected:
|
||||
// 重写事件过滤器
|
||||
bool eventFilter(QObject *watched, QEvent *event) override;
|
||||
@@ -184,7 +191,6 @@ private:
|
||||
//寻找当前选中的图层,没有选中的就不继续处理
|
||||
int checkSelectScene();
|
||||
|
||||
|
||||
// 复制
|
||||
int pasteTime = 1;
|
||||
SourceType m_copiedSourceType = SourceType::UNKNOWN;
|
||||
@@ -201,22 +207,25 @@ private:
|
||||
QPointF m_copiedPos;
|
||||
//判断要复制什么图层,添加该图层
|
||||
PicTextItem* checkSelectItem(PicTextItem* srcItem);
|
||||
|
||||
//保存复制内容
|
||||
bool cacheSelectedLayerForPaste(PicTextItem* srcItem);
|
||||
|
||||
//粘贴
|
||||
void pasteCopiedLayer();
|
||||
|
||||
void selectItemByDirection(bool forward);
|
||||
|
||||
signals:
|
||||
void sendButtonClickedSignal(int index);
|
||||
void sendUpdateFontSignl(int);
|
||||
|
||||
void sig_showEditCounter(CounterViewModel viewModel);
|
||||
|
||||
// 用户请求打开日期类型图元编辑窗口时发送此信号,
|
||||
// 如果item为null,表明是从新建按钮发出的,如果item不为null,表明用户正在尝试编辑一个日期item
|
||||
void sig_showEditDataTime(PicDateItem* item);
|
||||
// 用户请求打开日期类型图元编辑窗口时发送此信号
|
||||
void sig_showEditDateTime(DateItemModel dateModel, TextItemModel textModel);
|
||||
|
||||
void sig_showScheduleShiftsEditor(QVector<ScheduleModel> schedules, TextItemModel txtModel);
|
||||
};
|
||||
|
||||
#endif // TESTPRINTWIDGET_H
|
||||
#endif // TESTPRINTWIDGET_H
|
||||
Reference in New Issue
Block a user