Logo Search packages:      
Sourcecode: valknut version File versions  Download package

void DCGuiApp::slotHelpAbout (  )  [private, slot]

shows an about dlg

Definition at line 1578 of file dcgui.cpp.

Referenced by initActions().

{
      QString s;
      DCDialogAbout * dlg;

      dlg = new DCDialogAbout(this);

      dlg->TextLabel_VERSION->setText( "Valknut " VERSION );
      dlg->PixmapLabel_ICON->setPixmap( g_pIconLoader->GetPixmap(eiGLOBE) );

      dlg->TextEdit_AUTHORS->append(g_sAboutAuthors);
      dlg->TextEdit_AUTHORS->setCursorPosition(0,0);

      // load license file
      QFile f(g_pConfig->GetValknutDataPath() + DIRSEPARATOR + "COPYING");
      
      if ( f.open(IO_ReadOnly) == TRUE )
      {
            QTextStream t( &f );
            t.setEncoding(QTextStream::UnicodeUTF8);
            dlg->TextEdit_LICENSE->setText( t.read() );
      }
      else
      {
            dlg->TextEdit_LICENSE->append(tr("Warning license file not found !"));
      }
      
      dlg->exec();

      delete dlg;
}


Generated by  Doxygen 1.6.0   Back to index