#include "aboutwidget.h" #include #include #include #include #include #include AboutWidget::AboutWidget(QWidget *parent) : QDialog(parent) { setObjectName("AboutWidget"); setWindowIcon(QIcon(":/icons/question.png")); setWindowTitle(QString::fromWCharArray(L"ÇÁ·Î±×·¥ Á¤º¸")); setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint | Qt::MSWindowsFixedSizeDialogHint); QVBoxLayout *aboutLayout = new QVBoxLayout; QVBoxLayout *frameLayout = new QVBoxLayout; QVBoxLayout *buttonLayout = new QVBoxLayout; QTextBrowser *aboutContent = new QTextBrowser; QDialogButtonBox *dialogButtonBox = new QDialogButtonBox(QDialogButtonBox::Ok); frameLayout->addWidget(aboutContent); frameLayout->setMargin(10); buttonLayout->addWidget(dialogButtonBox); buttonLayout->setMargin(10); QFrame *background = new QFrame; QFrame *middleLine = new QFrame; QPalette backPalette = background->palette(); backPalette.setColor(QPalette::Background, QColor(Qt::white)); background->setLayout(frameLayout); background->setPalette(backPalette); background->setBackgroundRole(QPalette::Background); background->setAutoFillBackground(true); middleLine->setFrameStyle(QFrame::HLine | QFrame::Sunken); aboutLayout->addWidget(background); aboutLayout->addWidget(middleLine); aboutLayout->addLayout(buttonLayout); aboutLayout->setMargin(0); aboutLayout->setSpacing(0); setLayout(aboutLayout); setContentsMargins(0, 0, 0, 0); QString message; message.append(QString::fromWCharArray(L"

¸¶ºñ³ë±â ŸÀÌ¸Ó ¹öÀü %1

\n").arg(LONG_VERSION)); message.append(QString::fromWCharArray(L"
\n")); message.append(QString::fromWCharArray( L"ÀÌ ÇÁ·Î±×·¥Àº ¸¶ºñ³ë±â ŸÀÓÁîÀÇ Á¤º¸¸¦ ¹ÙÅÁÀ¸·Î ¿¡¸°ÀÇ ±âº» Á¤º¸¸¦ Á¦°øÇϸç " L"¿ù¸ÁÃÊ´ÔÀÇ ³¯¾¾ ¶óÀ̺귯¸®¸¦ ÅëÇÏ¿© ³¯¾¾ Á¤º¸¸¦ Á¦°øÇÕ´Ï´Ù.

\n")); message.append(QString::fromWCharArray( L"ÇöÀç ÇÁ·Î±×·¥ÀÇ ¼Ò½º ÄÚµå´Â ÀÌ°÷ SVN ÀúÀå¼Ò¿¡¼­ ¹ÞÀ¸½Ç ¼ö ÀÖÀ¸¸ç " L"ÇÁ·Î±×·¥¿¡ ´ëÇÑ ÀÇ°ß ¹× °ÇÀÇ»çÇ×Àº ÀÌ°÷ ¹èÆ÷ ȨÆäÀÌÁö¿¡¼­ ÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.

\n")); message.append(QString::fromWCharArray(L"¸¶ºñ³ë±â ŸÀÓÁî: http://www.mabinogi.pe.kr
")); message.append(QString::fromWCharArray(L"¸¶ºñ³ë±â ´Þµ¿³×: http://mabinogi.lune.kr
")); message.append(QString::fromWCharArray(L"¹èÆ÷ ºí·Î±×: http://rette.iruis.net
")); aboutContent->setReadOnly(true); aboutContent->setAcceptDrops(false); aboutContent->setOpenExternalLinks(true); aboutContent->setFrameStyle(QFrame::NoFrame); aboutContent->setMinimumWidth(300); aboutContent->setMinimumHeight(200); aboutContent->setHtml(message); connect(dialogButtonBox, SIGNAL(accepted()), this, SLOT(close())); }