Rename tabButton/tab_button

This commit is contained in:
Lukas W
2014-11-26 11:03:35 +01:00
parent d57b51142d
commit 497c792871
5 changed files with 16 additions and 16 deletions

View File

@@ -33,7 +33,7 @@
#include "export.h"
class tabButton;
class TabButton;
class EXPORT TabBar : public QWidget
@@ -44,7 +44,7 @@ public:
QBoxLayout::Direction _dir = QBoxLayout::LeftToRight );
virtual ~TabBar();
tabButton * addTab( QWidget * _w, const QString & _text,
TabButton * addTab( QWidget * _w, const QString & _text,
int _id, bool _add_stretch = false,
bool _text_is_tooltip = false );
void removeTab( int _id );
@@ -73,7 +73,7 @@ protected slots:
private:
QMap<int, QPair<tabButton *, QWidget *> > m_tabs;
QMap<int, QPair<TabButton *, QWidget *> > m_tabs;
QBoxLayout * m_layout;
bool m_exclusive;

View File

@@ -1,5 +1,5 @@
/*
* tab_button.h - declaration of class tabButton
* TabButton.h - declaration of class TabButton
*
* Copyright (c) 2005-2007 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
@@ -29,11 +29,11 @@
#include <QPushButton>
class tabButton : public QPushButton
class TabButton : public QPushButton
{
Q_OBJECT
public:
tabButton( const QString & _text, int _id, QWidget * _parent ) :
TabButton( const QString & _text, int _id, QWidget * _parent ) :
QPushButton( _text, _parent ),
m_id( _id )
{
@@ -42,7 +42,7 @@ public:
SLOT( slotClicked() ) );
}
~tabButton()
~TabButton()
{
}

View File

@@ -36,7 +36,7 @@
#include "ladspa_description.h"
#include "ladspa_port_dialog.h"
#include "TabBar.h"
#include "tab_button.h"
#include "TabButton.h"
#include "embed.cpp"

View File

@@ -33,7 +33,7 @@
#include "SetupDialog.h"
#include "TabBar.h"
#include "tab_button.h"
#include "TabButton.h"
#include "TabWidget.h"
#include "gui_templates.h"
#include "Mixer.h"

View File

@@ -24,7 +24,7 @@
#include "TabBar.h"
#include "tab_button.h"
#include "TabButton.h"
#include "gui_templates.h"
#include "ToolTip.h"
@@ -51,7 +51,7 @@ TabBar::~TabBar()
tabButton * TabBar::addTab( QWidget * _w, const QString & _text, int _id,
TabButton * TabBar::addTab( QWidget * _w, const QString & _text, int _id,
bool _add_stretch, bool _text_is_tooltip )
{
// already tab with id?
@@ -62,7 +62,7 @@ tabButton * TabBar::addTab( QWidget * _w, const QString & _text, int _id,
}
QString caption = ( _text_is_tooltip ) ? QString( "" ) : _text;
// create tab-button
tabButton * b = new tabButton( caption, _id, this );
TabButton * b = new TabButton( caption, _id, this );
connect( b, SIGNAL( clicked( int ) ), this, SLOT( tabClicked( int ) ) );
b->setIconSize( QSize( 48, 48 ) );
b->setFixedSize( 64, 64 );
@@ -75,7 +75,7 @@ tabButton * TabBar::addTab( QWidget * _w, const QString & _text, int _id,
// small workaround, because QBoxLayout::addWidget(...) doesn't
// work properly, so we first have to remove all tabs from the
// layout and them add them in the correct order
QMap<int, QPair<tabButton *, QWidget *> >::iterator it;
QMap<int, QPair<TabButton *, QWidget *> >::iterator it;
for( it = m_tabs.begin(); it != m_tabs.end(); ++it )
{
m_layout->removeWidget( it.value().first );
@@ -136,7 +136,7 @@ void TabBar::setActiveTab( int _id )
int TabBar::activeTab()
{
QMap<int, QPair<tabButton *, QWidget *> >::iterator it;
QMap<int, QPair<TabButton *, QWidget *> >::iterator it;
for( it = m_tabs.begin(); it != m_tabs.end(); ++it )
{
if( tabState( it.key() ) == true )
@@ -175,7 +175,7 @@ void TabBar::setTabState( int _id, bool _checked )
void TabBar::hideAll( int _exception )
{
QMap<int, QPair<tabButton *, QWidget *> >::iterator it;
QMap<int, QPair<TabButton *, QWidget *> >::iterator it;
for( it = m_tabs.begin(); it != m_tabs.end(); ++it )
{
if( it.key() != _exception )
@@ -228,7 +228,7 @@ void TabBar::tabClicked( int _id )
bool TabBar::allHidden()
{
QMap<int, QPair<tabButton *, QWidget *> >::iterator it;
QMap<int, QPair<TabButton *, QWidget *> >::iterator it;
for( it = m_tabs.begin(); it != m_tabs.end(); ++it )
{
if( !it.value().second->isHidden() )