?? 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 + -