📄 mapwidget.h
字号:
#ifndef MAPWIDGET_H
#define MAPWIDGET_H
#include <QtGui>
class MapWidget : public QWidget
{
Q_OBJECT
public:
MapWidget(QWidget *parent = 0);
private slots:
void updateUI(int row);
inline void toNext()
{
mapper->toNext();
};
inline void toPrevious()
{
mapper->toPrevious();
};
private:
void populateModel();
QLabel *companyLabel;
QLabel *typeLabel;
QLabel *displacementLabel;
QLabel *nationLabel;
QComboBox *companyCombo;
QLineEdit *typeEdit;
QDoubleSpinBox *displacementSpin;
QLabel *flagLabel;
QPushButton *btnNext;
QPushButton *btnPrev;
QPushButton *btnSubmit;
QPushButton *btnRevert;
QStringList companies;
QStandardItemModel *model;
QDataWidgetMapper *mapper;
QShortcut *leftShortCut;
QShortcut *rightShortCut;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -