Commit 36afa0b2 authored by Dirk Wilden's avatar Dirk Wilden

info plugin statusbar stuff

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@8507 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 1af23628
......@@ -96,6 +96,11 @@ class StatusbarInterface {
*/
void clearStatusMessage() {};
/** \brief Add a widget on the right side of the statusBar
*
*/
void addWidgetToStatusbar(QWidget* _widget) {};
};
Q_DECLARE_INTERFACE(StatusbarInterface,"OpenFlipper.StatusbarInterface/1.0")
......
......@@ -678,7 +678,9 @@ void Core::loadPlugin(QString filename, bool silent){
if ( checkSignal(plugin,"clearStatusMessage()") )
connect(plugin,SIGNAL(clearStatusMessage()),
coreWidget_,SLOT(clearStatusMessage()));
if ( checkSignal(plugin,"addWidgetToStatusbar(QWidget*)") )
connect(plugin,SIGNAL(addWidgetToStatusbar(QWidget*)), coreWidget_,SLOT(addWidgetToStatusbar(QWidget*)));
}
//Check if the plugin supports Key-Interface
......
......@@ -889,6 +889,8 @@ public:
void setStatus( ApplicationStatus::applicationStatus _status);
void addWidgetToStatusbar(QWidget* _widget);
private:
void setupStatusBar();
......
......@@ -121,6 +121,17 @@ void CoreWidget::setStatus( ApplicationStatus::applicationStatus _status)
// QApplication::processEvents();
}
void CoreWidget::addWidgetToStatusbar(QWidget* _widget){
statusBar_->addPermanentWidget(_widget);
statusBar_->removeWidget(statusIcon_);
statusBar_->addPermanentWidget(statusIcon_);
statusIcon_->show();
}
//=============================================================================
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment