aboutdialog.cpp
changeset 150 85eab6b8120b
parent 149 4426ecd854bb
child 153 47cd4ae30000
     1.1 --- a/aboutdialog.cpp	Mon Aug 08 16:16:42 2005 +0000
     1.2 +++ b/aboutdialog.cpp	Wed Aug 10 06:26:20 2005 +0000
     1.3 @@ -3,9 +3,8 @@
     1.4  
     1.5  #include "icons/vym-48x48.xpm"
     1.6  
     1.7 -AboutDialog::AboutDialog( QWidget *parent, const char *name )
     1.8 -    : QDialog ( parent, name)
     1.9 -
    1.10 +AboutDialog::AboutDialog( QWidget *parent, const char *name)
    1.11 +    : QDialog( parent, name)
    1.12  {
    1.13  	mainLayout=new QVBoxLayout( this);
    1.14  
    1.15 @@ -23,7 +22,7 @@
    1.16  				", with one exception (see the file \"LICENSE\"which "
    1.17  				"comes with vym). This exception is needed to build vym with QT libraries for proprietary operating systems.</li>"
    1.18  				"<li> Project homepage <a href=\"http:/www.InSilmaril.de/vym\">"
    1.19 -    					"http:/www.InSilmaril.de/vym</a></li>"
    1.20 +    					"http://www.InSilmaril.de/vym</a></li>"
    1.21  			"<li> Credits " 
    1.22  				"<ul>"
    1.23  					"<li>Jakob Hilmer for image drag and drop patch </li>"
    1.24 @@ -36,6 +35,7 @@
    1.25  				"</ul>"
    1.26  			"</li>");
    1.27  	credits->setFrameStyle( QFrame::Panel | QFrame::Plain );
    1.28 +	credits->mimeSourceFactory();
    1.29      tabs->addTab (credits,"Credits");
    1.30  
    1.31  	license=new QTextBrowser (this,"license");
    1.32 @@ -52,18 +52,16 @@
    1.33  	okbutton->setAutoDefault (true);
    1.34      mainLayout->addWidget( okbutton); 
    1.35  
    1.36 -	connect (credits,SIGNAL (linkClicked(const QString&)),this ,SLOT
    1.37 -	(openLnk(const QString&)));
    1.38 +	connect (credits,SIGNAL ( linkClicked(const QString&)),this ,SLOT ( openLink(const QString&)));
    1.39 +//	connect( credits, SIGNAL( sourceChanged(const QString& ) ),
    1.40 +//	     this, SLOT( openLink( const QString&) ) );
    1.41 +
    1.42  
    1.43  	connect( okbutton, SIGNAL( clicked() ), this, SLOT( accept() ) );
    1.44  }
    1.45  
    1.46 -AboutDialog::~AboutDialog()
    1.47 +
    1.48 +void AboutDialog::openLink(const QString &url)
    1.49  {
    1.50 +//	okbutton->setText (url);
    1.51  }
    1.52 -
    1.53 -
    1.54 -void AboutDialog::openLnk(const QString &url)
    1.55 -{
    1.56 -	okbutton->setText (url);
    1.57 -}