##// END OF EJS Templates
Integrated lppserial lib to lppmoncommon as a sub-repository.
Integrated lppserial lib to lppmoncommon as a sub-repository.

File last commit:

r0:1aa783210b8e default
r19:dbff9217c66f default
Show More
toolbar.cpp
21 lines | 489 B | text/x-c | CppLexer
#include "toolbar.h"
toolBar::toolBar(QWidget *parent) :
QDockWidget(parent)
{
this->toolsContainer = new toolBarContainer;
this->setWidget(this->toolsContainer);
this->setFeatures(DockWidgetMovable | DockWidgetFloatable);
this->setWindowTitle("SocExplorer Toolbar");
}
void toolBar::addTool(QDockWidget* widget)
{
widget->setAllowedAreas(Qt::AllDockWidgetAreas);
this->toolsContainer->addDockWidget(Qt::TopDockWidgetArea,widget);
}