##// END OF EJS Templates
fixed win32 build
fixed win32 build

File last commit:

r0:1aa783210b8e default
r8:ee188276b590 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);
}