Commit eb108974 authored by Alexander Wiebel's avatar Alexander Wiebel
Browse files

[ADD] added name to toolbars

parent cff3bce7
......@@ -131,7 +131,7 @@ void WMainWindow::setupGUI()
void WMainWindow::setupRibbonMenu()
{
m_ribbonMenu = new WQtRibbonMenu( this );
m_ribbonMenu = new WQtRibbonMenu( "Main Menu", this );
m_iconManager.addIcon( std::string( "quit" ), quit_xpm );
m_iconManager.addIcon( std::string( "save" ), disc_xpm );
......@@ -190,7 +190,7 @@ void WMainWindow::setupCompatiblesToolBar()
{
m_iconManager.addIcon( std::string( "o" ), o_xpm ); // duumy icon for modules
m_compatiblesToolBar = new WQtToolBar( this );
m_compatiblesToolBar = new WQtToolBar( "Compatible Modules Toolbar", this );
addToolBarBreak( Qt::TopToolBarArea );
addToolBar( Qt::TopToolBarArea, m_compatiblesToolBar );
}
......
......@@ -25,8 +25,8 @@
#include "WQtToolBar.h"
WQtToolBar::WQtToolBar( QWidget* parent )
: QToolBar( parent )
WQtToolBar::WQtToolBar( const QString & title, QWidget* parent )
: QToolBar( title, parent )
{
this->setAllowedAreas( Qt::TopToolBarArea | Qt::BottomToolBarArea );
......
......@@ -30,16 +30,17 @@
#include "guiElements/WQtPushButton.h"
/**
* TODO(wiebel): Document this!
* This is a toolbar. Its main usage for now is the "compatible modules" toolbar
*/
class WQtToolBar : public QToolBar
{
public:
/**
* Constructs the toolbar.
* \param title name of the toolbar.
* \param parent the parent widget of this widget, i.e. the widget that manages it.
*/
explicit WQtToolBar( QWidget* parent );
explicit WQtToolBar( const QString & title, QWidget* parent );
/**
* destructor
......
......@@ -30,8 +30,8 @@
#include "WQtRibbonMenu.h"
WQtRibbonMenu::WQtRibbonMenu( QWidget* parent )
: QToolBar( parent )
WQtRibbonMenu::WQtRibbonMenu( const QString & title, QWidget* parent )
: QToolBar( title, parent )
{
this->setAllowedAreas( Qt::TopToolBarArea | Qt::BottomToolBarArea );
......
......@@ -40,9 +40,10 @@ class WQtRibbonMenu : public QToolBar
public:
/**
* default constructor
* \param title name of the ribbon menu.
* \param parent the parent widget of this widget, i.e. the widget that manages it.
*/
explicit WQtRibbonMenu( QWidget* parent );
explicit WQtRibbonMenu( const QString & title, QWidget* parent );
/**
* destructor
......
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