From 4d80e4a2a5eb56bce7f1eddb3caf8b3a955e96fd Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Mon, 30 Jul 2012 01:43:41 +0200 Subject: [PATCH] qasim-gui: prepare for About. --- bin/qasim-gui.rb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/bin/qasim-gui.rb b/bin/qasim-gui.rb index 0e57366..4fa8367 100755 --- a/bin/qasim-gui.rb +++ b/bin/qasim-gui.rb @@ -18,6 +18,7 @@ $:.push QASIM_INCLUDE_DIR require 'qasim/constants' require 'qasim/config' require 'qasim/map' +require 'qasim/about' require 'qasim/qasim_qrc' @@ -162,7 +163,10 @@ module Qasim act_about = Qt::Action.new '&About', @context_menu act_about.setIcon( Qt::Icon::fromTheme("help-about") ) rescue nil act_about.setIconVisibleInMenu true - act_about.setEnabled false + act_about.setEnabled true + act_about.connect(SIGNAL(:triggered)) do + puts "Show about dialog!" + end @context_menu.addAction act_about; @context_menu.addSeparator @@ -183,7 +187,9 @@ module Qasim @app = Qt::Application.new(ARGV) si = Qt::SystemTrayIcon.new - std_icon = Qt::Icon.new( ":/qasim/qasim-icon" ) #File.join APP_ICON_PATH, "qasim.svg" ) + std_icon = Qt::Icon.new( ":/qasim/qasim-icon" ) + #std_icon = Qt::Icon.new( File.join APP_ICON_PATH, "qasim.svg" ) + #std_icon = Qt::Icon.new alt_icon = Qt::Icon.new blinking = false