Add Qt logo to About Qt... action
authorManuel Nickschas <sputnick@quassel-irc.org>
Sun, 16 Nov 2008 02:31:40 +0000 (03:31 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sun, 16 Nov 2008 02:31:40 +0000 (03:31 +0100)
pics/README.qt-logo [new file with mode: 0644]
pics/pics.qrc
pics/qt-logo.png [new file with mode: 0644]
src/qtui/mainwin.cpp

diff --git a/pics/README.qt-logo b/pics/README.qt-logo
new file mode 100644 (file)
index 0000000..dfbb380
--- /dev/null
@@ -0,0 +1,3 @@
+The Qt logo in qt-logo.png has been copied from Qt's source distribution
+and is hence distributed under GPL.
+All rights for this logo remain with Qt Software/Nokia.
index 4ae2ef4..b3aa529 100644 (file)
@@ -1,5 +1,6 @@
 <RCC>
   <qresource prefix="/pics" >
     <file>quassel-large.png</file>
+    <file>qt-logo.png</file>
   </qresource>
 </RCC>
diff --git a/pics/qt-logo.png b/pics/qt-logo.png
new file mode 100644 (file)
index 0000000..0093177
Binary files /dev/null and b/pics/qt-logo.png differ
index e45576e..0a3147f 100644 (file)
@@ -18,7 +18,7 @@
  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
  ***************************************************************************/
 #include "mainwin.h"
-
+#include <QDir>
 #include "aboutdlg.h"
 #include "action.h"
 #include "actioncollection.h"
@@ -142,7 +142,6 @@ void MainWin::init() {
   setDisconnectedState();  // Disable menus and stuff
 
   show();
-
   showCoreConnectionDlg(true); // autoconnect if appropriate
 }
 
@@ -197,7 +196,7 @@ void MainWin::setupActions() {
   // Help
   coll->addAction("AboutQuassel", new Action(SmallIcon("quassel"), tr("&About Quassel..."), coll,
                                               this, SLOT(showAboutDlg())));
-  coll->addAction("AboutQt", new Action(tr("About &Qt..."), coll,
+  coll->addAction("AboutQt", new Action(QIcon(":/pics/qt-logo.png"), tr("About &Qt..."), coll,
                                          qApp, SLOT(aboutQt())));
   coll->addAction("DebugNetworkModel", new Action(SmallIcon("tools-report-bug"), tr("Debug &NetworkModel"), coll,
                                        this, SLOT(on_actionDebugNetworkModel_triggered())));