compare: add search and replace.
This commit is contained in:
@@ -24,6 +24,7 @@ GuiUtil/Public.h GuiUtil/Public.cpp
|
||||
Control/Transform.h Control/Transform.cpp Control/Transform.ui
|
||||
../Res/frelay.qrc ../Res/ico.rc
|
||||
Control/cusTableWidget.cpp Control/cusTableWidget.h
|
||||
Control/cpTableWidget.h Control/cpTableWidget.cpp
|
||||
)
|
||||
|
||||
if(${QT_VERSION_MAJOR} GREATER_EQUAL 6)
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QTableWidget" name="tableWidget"/>
|
||||
<widget class="CpTableWidget" name="tableWidget"/>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||
@@ -127,6 +127,13 @@
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>CpTableWidget</class>
|
||||
<extends>QTableWidget</extends>
|
||||
<header>cpTableWidget.h</header>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
||||
|
||||
21
Gui/Control/cpTableWidget.cpp
Normal file
21
Gui/Control/cpTableWidget.cpp
Normal file
@@ -0,0 +1,21 @@
|
||||
#include "cpTableWidget.h"
|
||||
|
||||
#include <QApplication>
|
||||
#include <QDrag>
|
||||
#include <QMimeData>
|
||||
#include <QPainter>
|
||||
|
||||
CpTableWidget::CpTableWidget(QWidget* parent) : QTableWidget(parent)
|
||||
{
|
||||
}
|
||||
|
||||
CpTableWidget::~CpTableWidget()
|
||||
{
|
||||
}
|
||||
|
||||
void CpTableWidget::dragEnterEvent(QDragEnterEvent* event)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
21
Gui/Control/cpTableWidget.h
Normal file
21
Gui/Control/cpTableWidget.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef CP_TABLEWIDET_H
|
||||
#define CP_TABLEWIDET_H
|
||||
|
||||
#include <QTableWidget>
|
||||
#include <QDropEvent>
|
||||
|
||||
class CpTableWidget : public QTableWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit CpTableWidget(QWidget* parent = nullptr);
|
||||
~CpTableWidget() override;
|
||||
|
||||
protected:
|
||||
void dragEnterEvent(QDragEnterEvent* event);
|
||||
|
||||
protected:
|
||||
QPoint startPos_;
|
||||
};
|
||||
|
||||
#endif // CP_TABLEWIDET_H
|
||||
Reference in New Issue
Block a user