still changing aboutWindow
authorinsilmaril
Wed, 10 Aug 2005 06:26:20 +0000
changeset 15085eab6b8120b
parent 149 4426ecd854bb
child 151 4b2e70fbacec
still changing aboutWindow
aboutdialog.cpp
aboutdialog.h
mainwindow.cpp
vym.pro
     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 -}
     2.1 --- a/aboutdialog.h	Mon Aug 08 16:16:42 2005 +0000
     2.2 +++ b/aboutdialog.h	Wed Aug 10 06:26:20 2005 +0000
     2.3 @@ -12,12 +12,14 @@
     2.4  /////////////////////////////////////////////////////////////////////////////
     2.5  class AboutDialog :public QDialog
     2.6  {
     2.7 +	Q_OBJECT
     2.8 +
     2.9  public:
    2.10 -	AboutDialog( QWidget * parent = 0, const char * name = 0);
    2.11 -	~AboutDialog();
    2.12 +	AboutDialog(QWidget* parent = 0, const char* name = 0);
    2.13 +
    2.14  
    2.15  public slots:
    2.16 -	virtual void openLnk (const QString &);
    2.17 +	virtual void openLink (const QString &);
    2.18  
    2.19  private:
    2.20  	QTabWidget *tabs;
     3.1 --- a/mainwindow.cpp	Mon Aug 08 16:16:42 2005 +0000
     3.2 +++ b/mainwindow.cpp	Wed Aug 10 06:26:20 2005 +0000
     3.3 @@ -2364,6 +2364,7 @@
     3.4  void Main::helpAbout()
     3.5  {
     3.6  	AboutDialog ad;
     3.7 +	ad.setName ("aboutwindow");
     3.8  	ad.setMinimumSize(500,500);
     3.9  	ad.resize (QSize (500,500));
    3.10  	ad.exec();
     4.1 --- a/vym.pro	Mon Aug 08 16:16:42 2005 +0000
     4.2 +++ b/vym.pro	Wed Aug 10 06:26:20 2005 +0000
     4.3 @@ -91,44 +91,3 @@
     4.4  demo.path = $${DESTROOT}/share/vym
     4.5  INSTALLS += demo
     4.6  
     4.7 -
     4.8 -
     4.9 -
    4.10 -
    4.11 -
    4.12 -
    4.13 -
    4.14 -
    4.15 -
    4.16 -
    4.17 -
    4.18 -
    4.19 -
    4.20 -
    4.21 -
    4.22 -
    4.23 -
    4.24 -
    4.25 -
    4.26 -
    4.27 -
    4.28 -
    4.29 -
    4.30 -
    4.31 -
    4.32 -
    4.33 -
    4.34 -
    4.35 -
    4.36 -
    4.37 -
    4.38 -
    4.39 -
    4.40 -
    4.41 -
    4.42 -
    4.43 -
    4.44 -
    4.45 -
    4.46 -
    4.47 -