# HG changeset patch # User insilmaril # Date 1123655180 0 # Node ID 85eab6b8120bae58aab3652506758fd8f4e54481 # Parent 4426ecd854bb24f59a9afe0b4c354613576a77f5 still changing aboutWindow diff -r 4426ecd854bb -r 85eab6b8120b aboutdialog.cpp --- a/aboutdialog.cpp Mon Aug 08 16:16:42 2005 +0000 +++ b/aboutdialog.cpp Wed Aug 10 06:26:20 2005 +0000 @@ -3,9 +3,8 @@ #include "icons/vym-48x48.xpm" -AboutDialog::AboutDialog( QWidget *parent, const char *name ) - : QDialog ( parent, name) - +AboutDialog::AboutDialog( QWidget *parent, const char *name) + : QDialog( parent, name) { mainLayout=new QVBoxLayout( this); @@ -23,7 +22,7 @@ ", with one exception (see the file \"LICENSE\"which " "comes with vym). This exception is needed to build vym with QT libraries for proprietary operating systems." "
  • Project homepage " - "http:/www.InSilmaril.de/vym
  • " + "http://www.InSilmaril.de/vym" "
  • Credits " "" "
  • "); credits->setFrameStyle( QFrame::Panel | QFrame::Plain ); + credits->mimeSourceFactory(); tabs->addTab (credits,"Credits"); license=new QTextBrowser (this,"license"); @@ -52,18 +52,16 @@ okbutton->setAutoDefault (true); mainLayout->addWidget( okbutton); - connect (credits,SIGNAL (linkClicked(const QString&)),this ,SLOT - (openLnk(const QString&))); + connect (credits,SIGNAL ( linkClicked(const QString&)),this ,SLOT ( openLink(const QString&))); +// connect( credits, SIGNAL( sourceChanged(const QString& ) ), +// this, SLOT( openLink( const QString&) ) ); + connect( okbutton, SIGNAL( clicked() ), this, SLOT( accept() ) ); } -AboutDialog::~AboutDialog() + +void AboutDialog::openLink(const QString &url) { +// okbutton->setText (url); } - - -void AboutDialog::openLnk(const QString &url) -{ - okbutton->setText (url); -} diff -r 4426ecd854bb -r 85eab6b8120b aboutdialog.h --- a/aboutdialog.h Mon Aug 08 16:16:42 2005 +0000 +++ b/aboutdialog.h Wed Aug 10 06:26:20 2005 +0000 @@ -12,12 +12,14 @@ ///////////////////////////////////////////////////////////////////////////// class AboutDialog :public QDialog { + Q_OBJECT + public: - AboutDialog( QWidget * parent = 0, const char * name = 0); - ~AboutDialog(); + AboutDialog(QWidget* parent = 0, const char* name = 0); + public slots: - virtual void openLnk (const QString &); + virtual void openLink (const QString &); private: QTabWidget *tabs; diff -r 4426ecd854bb -r 85eab6b8120b mainwindow.cpp --- a/mainwindow.cpp Mon Aug 08 16:16:42 2005 +0000 +++ b/mainwindow.cpp Wed Aug 10 06:26:20 2005 +0000 @@ -2364,6 +2364,7 @@ void Main::helpAbout() { AboutDialog ad; + ad.setName ("aboutwindow"); ad.setMinimumSize(500,500); ad.resize (QSize (500,500)); ad.exec(); diff -r 4426ecd854bb -r 85eab6b8120b vym.pro --- a/vym.pro Mon Aug 08 16:16:42 2005 +0000 +++ b/vym.pro Wed Aug 10 06:26:20 2005 +0000 @@ -91,44 +91,3 @@ demo.path = $${DESTROOT}/share/vym INSTALLS += demo - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -