Change copyright and format the code using clang-format

This commit is contained in:
2017-01-28 19:43:48 +00:00
parent a69c32bfbf
commit 8a60bb2766
122 changed files with 12950 additions and 12139 deletions
+5 -8
View File
@@ -1,5 +1,5 @@
/* This file is a part of plaYUVer project
* Copyright (C) 2014-2016 by Luis Lucas (luisfrlucas@gmail.com)
* Copyright (C) 2014-2017 by Luis Lucas (luisfrlucas@gmail.com)
* Joao Carreira (jfmcarreira@gmail.com)
*
* This program is free software; you can redistribute it and/or modify
@@ -29,10 +29,8 @@
#include <QProgressBar>
#include <QDesktopWidget>
ProgressBar::ProgressBar( QWidget *parent, UInt maxValue ) :
QWidget( parent ),
m_uiTotalProgress( maxValue ),
m_uiProgress( 0 )
ProgressBar::ProgressBar( QWidget* parent, UInt maxValue )
: QWidget( parent ), m_uiTotalProgress( maxValue ), m_uiProgress( 0 )
{
QVBoxLayout* mainLayout = new QVBoxLayout( this );
m_pcProgressBar = new QProgressBar;
@@ -42,8 +40,8 @@ ProgressBar::ProgressBar( QWidget *parent, UInt maxValue ) :
setLayout( mainLayout );
setWindowTitle( QStringLiteral( "Progress" ) );
// QSize appSize = QApplication::desktop()->availableGeometry().size();
// QPoint appCenter = QApplication::desktop()->availableGeometry().center();
// QSize appSize = QApplication::desktop()->availableGeometry().size();
// QPoint appCenter = QApplication::desktop()->availableGeometry().center();
QSize appSize = parent->size();
QPoint appPos = parent->pos();
QPoint appCenter = QPoint( appPos.x() + appSize.width() / 2, appPos.y() + appSize.height() / 2 );
@@ -58,4 +56,3 @@ Void ProgressBar::incrementProgress( UInt increment )
m_pcProgressBar->setValue( m_uiProgress );
update();
}