QTfrontend/ui/widget/about.cpp
changeset 8447 250142acef7b
parent 8434 4821897a0f10
child 8613 82c649dfc7c3
equal deleted inserted replaced
8445:828cacaa9b24 8447:250142acef7b
    85     /* Library information */
    85     /* Library information */
    86 
    86 
    87     QString libinfo = "<style type=text/css>a:link { color: #FFFF6E; }</style>";
    87     QString libinfo = "<style type=text/css>a:link { color: #FFFF6E; }</style>";
    88 
    88 
    89 #ifdef __GNUC__
    89 #ifdef __GNUC__
    90     libinfo.append(QString("Compiler: <a href=\"http://gcc.gnu.org\">GCC</a> %1<br>").arg(__VERSION__));
    90     libinfo.append(QString("<a href=\"http://gcc.gnu.org\">GCC</a> %1<br>").arg(__VERSION__));
    91 #else
    91 #else
    92     libinfo.append(QString("Compiler: Unknown<br>").arg(__VERSION__));
    92     libinfo.append(QString(tr("Unknown Compiler")).arg(__VERSION__) + QString("<br>"));
    93 #endif
    93 #endif
    94 
    94 
    95     libinfo.append(QString("<a href=\"http://www.libsdl.org/\">SDL</a> version: %1.%2.%3<br>")
    95     libinfo.append(QString("<a href=\"http://www.libsdl.org/\">SDL</a> version: %1.%2.%3<br>")
    96         .arg(SDL_MAJOR_VERSION)
    96         .arg(SDL_MAJOR_VERSION)
    97         .arg(SDL_MINOR_VERSION)
    97         .arg(SDL_MINOR_VERSION)
   113 
   113 
   114     QLabel * lblLibInfo = new QLabel();
   114     QLabel * lblLibInfo = new QLabel();
   115     lblLibInfo->setText(libinfo);
   115     lblLibInfo->setText(libinfo);
   116     lblLibInfo->setWordWrap(true);
   116     lblLibInfo->setWordWrap(true);
   117     lblLibInfo->setMaximumWidth(280);
   117     lblLibInfo->setMaximumWidth(280);
   118     leftLayout->addWidget(lblLibInfo, 0, Qt::AlignTop | Qt::AlignHCenter);
   118     leftLayout->addWidget(lblLibInfo, 0, Qt::AlignHCenter);
   119     leftLayout->addStretch(1);
   119     leftLayout->addStretch(1);
   120 
   120 
   121     setAcceptDrops(true);
   121     setAcceptDrops(true);
   122 }
   122 }
   123 
   123