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

List:       kde-commits
Subject:    [cantor] src: raise the helppanel to the front if new help-text arrives
From:       Alexander Rieder <alexanderrieder () gmail ! com>
Date:       2012-09-22 19:27:31
Message-ID: 20120922192731.00B38A6094 () git ! kde ! org
[Download RAW message or body]

Git commit 8fb1c07461fccd434824431665dd1ab0899f6b6f by Alexander Rieder.
Committed on 23/09/2012 at 21:29.
Pushed by arieder into branch 'master'.

raise the helppanel to the front if new help-text arrives

M  +2    -0    src/cantor.cpp
M  +1    -0    src/lib/panelplugin.h
M  +1    -0    src/panelplugins/helppanel/helppanelplugin.cpp

http://commits.kde.org/cantor/8fb1c07461fccd434824431665dd1ab0899f6b6f

diff --git a/src/cantor.cpp b/src/cantor.cpp
index 62321b5..3278b59 100644
--- a/src/cantor.cpp
+++ b/src/cantor.cpp
@@ -486,6 +486,8 @@ void CantorShell::updatePanel()
             tabifyDockWidget(last, docker);
         last=docker;
 
+        connect(plugin, SIGNAL(visibilityRequested()), docker, SLOT(raise()));
+
         m_panels.append(docker);
 
         //Create the action to show/hide this panel
diff --git a/src/lib/panelplugin.h b/src/lib/panelplugin.h
index de2e057..96639d0 100644
--- a/src/lib/panelplugin.h
+++ b/src/lib/panelplugin.h
@@ -103,6 +103,7 @@ class CANTOR_EXPORT PanelPlugin : public QObject /*, public \
KXMLGUIClient*/  
   signals:
     void requestRunCommand(const QString& cmd);
+    void visibilityRequested();
 
   protected:
     virtual void onSessionChanged();
diff --git a/src/panelplugins/helppanel/helppanelplugin.cpp \
b/src/panelplugins/helppanel/helppanelplugin.cpp index 7381d6a..ccea79a 100644
--- a/src/panelplugins/helppanel/helppanelplugin.cpp
+++ b/src/panelplugins/helppanel/helppanelplugin.cpp
@@ -43,6 +43,7 @@ QWidget* HelpPanelPlugin::widget()
         m_edit->setTextInteractionFlags(Qt::TextBrowserInteraction);
 
         connect(parent()->parent(), SIGNAL(showHelp(QString)), m_edit, \
SLOT(setHtml(QString))); +        connect(parent()->parent(), \
SIGNAL(showHelp(QString)), this, SIGNAL(visibilityRequested()));  }
 
     return m_edit;


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

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