main.cpp
来自「LinPacker是一个优化矩形布局的工具」· C++ 代码 · 共 36 行
CPP
36 行
/*************************************************************************** * Copyright (C) 2003 by ita * * tnagy@eleve.emn.fr * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * ***************************************************************************/#include <qapplication.h>#include "interface.h"#include <qtextcodec.h>int main( int argc, char ** argv ){ QApplication a( argc, argv ); QTranslator translator( 0 ); translator.load( QString("linpacker_") + QTextCodec::locale(), "." ); a.installTranslator( &translator ); interface w; w.setCaption("LinPacker"); w.show(); a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) ); return a.exec();}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?