[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    PATCH: clickable URl in about window
From:       Daniel Naber <daniel.naber () t-online ! de>
Date:       2001-02-26 19:21:58
[Download RAW message or body]

Hi,

can I apply this patch? It makes the URL in the about window a "real" url 
you can click on.

regards
 Daniel

-- 
Daniel Naber, Paul-Gerhardt-Str. 2, 33332 Guetersloh, Germany
Tel. 05241-59371, Mobil 0170-4819674

["about-url.diff" (text/x-c)]

Index: kaboutapplication.cpp
===================================================================
RCS file: /home/kde/kdelibs/kdeui/kaboutapplication.cpp,v
retrieving revision 1.7
diff -u -B -r1.7 kaboutapplication.cpp
--- kaboutapplication.cpp	2001/01/06 14:16:57	1.7
+++ kaboutapplication.cpp	2001/02/26 19:14:54
@@ -29,6 +29,7 @@
 #include <kapp.h>
 #include <kglobal.h>
 #include <klocale.h>
+#include <kurllabel.h>
 
 KAboutApplication::KAboutApplication( QWidget *parent, const char *name,
 				      bool modal )
@@ -69,9 +70,6 @@
 
   QString appPageText = aboutData->shortDescription() + "\n";
 
-  if (!aboutData->homepage().isEmpty())
-    appPageText += "\n" + aboutData->homepage()+"\n";
-
   if (!aboutData->otherText().isEmpty())
     appPageText += "\n" + aboutData->otherText()+"\n";
 
@@ -83,6 +81,16 @@
   QLabel *appPageLabel = new QLabel( appPageText, 0 );
   appPage->addWidget( appPageLabel );
 
+  if (!aboutData->homepage().isEmpty())
+  {
+    KURLLabel *url = new KURLLabel();
+    url->setText(aboutData->homepage());
+    url->setURL(aboutData->homepage());
+    appPage->addWidget( url );
+    connect( url, SIGNAL(leftClickedURL(const QString &)),
+             this, SLOT(openURLSlot(const QString &)));
+  }
+
   int authorCount = aboutData->authors().count();
   if (authorCount)
   {


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic