[vlmc-devel] StackViewNavController: Add missing license block and apply hackings.
Rohit Yadav
git at videolan.org
Sat Jun 4 16:51:11 CEST 2011
vlmc | branch: master | Rohit Yadav <rohityadav89 at gmail.com> | Sat Jun 4 20:34:04 2011 +0530| [54b19770d09057e120c2cbc01bd3f36c0149e746] | committer: Rohit Yadav
StackViewNavController: Add missing license block and apply hackings.
Add missing license block and credit to authors from git blame.
Apply Hackings.
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=54b19770d09057e120c2cbc01bd3f36c0149e746
---
src/Gui/library/StackViewNavController.cpp | 47 +++++++++++++++++++++------
src/Gui/library/StackViewNavController.h | 22 +++++++++++++
2 files changed, 58 insertions(+), 11 deletions(-)
diff --git a/src/Gui/library/StackViewNavController.cpp b/src/Gui/library/StackViewNavController.cpp
index 7f09d74..60e0c90 100644
--- a/src/Gui/library/StackViewNavController.cpp
+++ b/src/Gui/library/StackViewNavController.cpp
@@ -1,3 +1,25 @@
+/*****************************************************************************
+ * StackViewNavController.cpp
+ *****************************************************************************
+ * Copyright (C) 2008-2011 VideoLAN
+ *
+ * Authors: Thomas Boquet <thomas.boquet at 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;
}
diff --git a/src/Gui/library/StackViewNavController.h b/src/Gui/library/StackViewNavController.h
index db7e421..59ffaa1 100644
--- a/src/Gui/library/StackViewNavController.h
+++ b/src/Gui/library/StackViewNavController.h
@@ -1,3 +1,25 @@
+/*****************************************************************************
+ * StackViewNavController.h
+ *****************************************************************************
+ * Copyright (C) 2008-2011 VideoLAN
+ *
+ * Authors: Thomas Boquet <thomas.boquet at 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
More information about the Vlmc-devel
mailing list