?? undowidget.h
字號:
#ifndef UNDOWIDGET_H_
#define UNDOWIDGET_H_
#include <QTableWidget>
#include <QUndoStack>
class UndoWidget : public QTableWidget
{
Q_OBJECT
public:
QUndoStack *undoStack;
UndoWidget(QWidget * parent = 0);
virtual ~UndoWidget();
public slots:
void undo();
void redo();
protected slots:
void changeFrgColor();
void changeBkgColor();
void changeFont();
//void recordText(QTableWidgetItem *current, QTableWidgetItem* /*previous*/);
void recordText(QTableWidgetItem *current);
void itemEdited(QTableWidgetItem* item);
private:
QAction *actFrgColor;
QAction *actBkgColor;
QAction *actFont;
QString currentText;
bool ignore;
void populateTable();
void createActions();
};
#endif /*UNDOWIDGET_H_*/
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -