diff -r 3dc98c8843bc -r 7b74fa3772bf aboutdialog.cpp --- a/aboutdialog.cpp Tue Aug 01 09:30:57 2006 +0000 +++ b/aboutdialog.cpp Tue Sep 05 09:47:13 2006 +0000 @@ -1,5 +1,6 @@ -#include -#include +#include +#include +#include #include "aboutdialog.h" #include "version.h" @@ -18,9 +19,9 @@ mainLayout=new QVBoxLayout( this, 10); tabs=new QTabWidget (this); - credits=new AboutTextBrowser (this,"credits"); + credits=new AboutTextBrowser (parent,"credits"); - credits->setText ( + credits->setHtml( "
" "

VYM - View Your Mind

" "

A tool to put the things you have got in your mind into a map.

" @@ -52,11 +53,12 @@ credits->setFrameStyle( QFrame::Panel | QFrame::Plain ); tabs->addTab (credits,"Credits"); - license=new AboutTextBrowser (this,"license"); - //license->setTextFormat (PlainText); + license=new AboutTextBrowser (parent,"license"); license->setText ( + "
" "

VYM - View Your Mind

" - "

Copyright (C) 2004-2005 Uwe Drechsel

" + "

Copyright (C) 2004-2006 Uwe Drechsel

" + "
" "

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.

" @@ -185,19 +187,9 @@ } -void AboutTextBrowser::setSource(const QString &name) +void AboutTextBrowser::setSource(const QUrl &url ) { - QMimeSourceFactory *factory = QMimeSourceFactory::defaultFactory(); - const QMimeSource *data = factory->data(name); - if (data) { - QTextBrowser::setSource(name); - } else { - QProcess *proc = new QProcess( this ); - proc->addArgument( settings.readEntry("/vym/mainwindow/readerURL" )); - proc->addArgument( name); - - if ( !proc->start() ) - if (mainWindow->settingsURL() ) - setSource(name); - } + QProcess *proc= new QProcess (); + proc->start( settings.value("/mainwindow/readerURL").toString(),QStringList ()<waitForStarted() &&mainWindow->settingsURL() ) setSource(url); }