📄 arrowpad.cpp
字号:
/******************************************************************** Implementation of ArrowPad class, translation tutorial 2******************************************************************/#include "arrowpad.h"#include <qpushbutton.h>ArrowPad::ArrowPad( QWidget *parent, const char *name ) : QGrid( 3, Horizontal, parent, name ){ setMargin( 10 ); setSpacing( 10 ); skip(); (void) new QPushButton( tr("&Up"), this ); skip(); (void) new QPushButton( tr("&Left"), this ); skip(); (void) new QPushButton( tr("&Right"), this ); skip(); (void) new QPushButton( tr("&Down"), this ); skip();}void ArrowPad::skip(){ (void) new QWidget( this );}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -