Commit 54b19770 authored by Rohit Yadav's avatar Rohit Yadav

StackViewNavController: Add missing license block and apply hackings.

Add missing license block and credit to authors from git blame.
Apply Hackings.
parent f5fe90ad
/*****************************************************************************
* StackViewNavController.cpp
*****************************************************************************
* Copyright (C) 2008-2011 VideoLAN
*
* Authors: Thomas Boquet <thomas.boquet@gmail.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#include "StackViewNavController.h"
#include "ui_StackViewNavController.h"
......@@ -14,29 +36,32 @@ StackViewNavController::~StackViewNavController()
delete m_ui;
}
void StackViewNavController::changeEvent( QEvent *e )
void
StackViewNavController::changeEvent( QEvent *e )
{
QWidget::changeEvent( e );
switch ( e->type() )
{
case QEvent::LanguageChange:
m_ui->retranslateUi( this );
// This is a quick and dirty fix.
// But the title won't be translated anyway.
setTitle( m_title );
break;
default:
break;
case QEvent::LanguageChange:
m_ui->retranslateUi( this );
// TODO: Work on this quick and dirty fix.
// But the title won't be translated anyway.
setTitle( m_title );
break;
default:
break;
}
}
void StackViewNavController::setTitle( const QString& title )
void
StackViewNavController::setTitle( const QString& title )
{
m_title = title;
m_ui->title->setText( title );
}
QPushButton* StackViewNavController::previousButton() const
QPushButton*
StackViewNavController::previousButton() const
{
return m_ui->previousButton;
}
/*****************************************************************************
* StackViewNavController.h
*****************************************************************************
* Copyright (C) 2008-2011 VideoLAN
*
* Authors: Thomas Boquet <thomas.boquet@gmail.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifndef STACKVIEWNAVCONTROLLER_H
#define STACKVIEWNAVCONTROLLER_H
......
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